Skip to content

test: use default provider in TestPatchChatMessage/ChangesModel#25189

Merged
ethanndickson merged 3 commits into
mainfrom
fix-test-patch-chat-message-changes-model
May 12, 2026
Merged

test: use default provider in TestPatchChatMessage/ChangesModel#25189
ethanndickson merged 3 commits into
mainfrom
fix-test-patch-chat-message-changes-model

Conversation

@ethanndickson
Copy link
Copy Markdown
Member

TestPatchChatMessage/ChangesModel hardcoded "openai" as the provider for the override model config. After #25171, the shared chat test harness registers a single "openai-compat" provider by default, so calling createAdditionalChatModelConfig(..., "openai", ...) fails with HTTP 400 Chat provider is not configured before the test can exercise the model-change path. The subtest was added in #25084 after #25171 was reviewed, so the harness change and the new hardcoded provider only met on main.

Use defaultModel.Provider so the override always matches whatever provider the harness registered. This mirrors every other call site of createAdditionalChatModelConfig in the file.

Closes coder/internal#1530

TestPatchChatMessage/ChangesModel hardcoded "openai" as the provider for
the override model config. After #25171, the shared chat test harness
registers a single "openai-compat" provider by default, so calling
createAdditionalChatModelConfig(..., "openai", ...) fails with HTTP 400
"Chat provider is not configured" before the test can exercise the
model-change path.

Use defaultModel.Provider so the override always matches whatever
provider the harness registered. This mirrors every other call site of
createAdditionalChatModelConfig in the file.
@ethanndickson ethanndickson marked this pull request as ready for review May 12, 2026 13:47
@ethanndickson ethanndickson enabled auto-merge (squash) May 12, 2026 13:48
…ers.test.ts): pass hasActiveStream to deriveMessageDisplayState

deriveMessageDisplayState gained a required hasActiveStream prop in
#25119, but messageHelpers.test.ts (added in the same PR) was not
updated, breaking lint/ts on main.

Pass hasActiveStream: false; all existing assertions exercise static
messages where the prop has no effect.
@ethanndickson ethanndickson merged commit fabf7d3 into main May 12, 2026
27 of 29 checks passed
@ethanndickson ethanndickson deleted the fix-test-patch-chat-message-changes-model branch May 12, 2026 14:05
@github-actions github-actions Bot locked and limited conversation to collaborators May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake: TestPatchChatMessage/ChangesModel

2 participants