Skip to content

Commit b22cdb7

Browse files
committed
test(web): re-picking the shown model saves nothing
1 parent b16f6a5 commit b22cdb7

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎apps/web/src/components/ChatView.modelPick.browser.test.tsx‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,19 @@ it("a model picked for an existing thread reaches the server before any message
6565
const modelSets = () =>
6666
dispatchedCommands().filter((command) => command.type === "thread.model-selection.set");
6767

68-
// With no options remembered in this browser, the thread's own model keeps its stored ones.
68+
// Re-picking the model the composer shows saves nothing, so the thread keeps its stored options.
6969
await page.getByRole("button", { name: "GPT-5.4", exact: true }).click();
7070
await page.getByRole("option", { name: /GPT-5\.4/ }).click();
71-
await vi.waitFor(() =>
72-
expect(modelSets()).toEqual([
73-
expect.objectContaining({ threadId: thread.id, modelSelection: stored }),
74-
]),
75-
);
7671

7772
// The picker stays open beside its effort column.
7873
await page.getByRole("option", { name: /GPT-5\.5/ }).click();
7974
await vi.waitFor(() =>
80-
expect(modelSets().at(-1)).toEqual(
75+
expect(modelSets()).toEqual([
8176
expect.objectContaining({
8277
threadId: thread.id,
8378
modelSelection: { instanceId: "codex", model: "gpt-5.5" },
8479
}),
85-
),
80+
]),
8681
);
8782

8883
// A thread stored under an alias keeps its options when its canonical model is picked.

0 commit comments

Comments
 (0)