From 183545805417dcb8a52dea00a109c1d8cb6f8350 Mon Sep 17 00:00:00 2001 From: Youngbin Kim <64558592+youngbinkim0@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:28:39 -0500 Subject: [PATCH] fix(test): revert atlas test to use uiSelectedModel Revert test name and assertion to original behavior per PR review feedback. The test now correctly expects Atlas to respect uiSelectedModel instead of using its own fallback chain. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/agents/utils.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agents/utils.test.ts b/src/agents/utils.test.ts index 493f25d2..2feb7121 100644 --- a/src/agents/utils.test.ts +++ b/src/agents/utils.test.ts @@ -51,7 +51,7 @@ describe("createBuiltinAgents with model overrides", () => { expect(agents.sisyphus.thinking).toBeUndefined() }) - test("Atlas does not use uiSelectedModel (respects its own fallback chain)", async () => { + test("Atlas uses uiSelectedModel", async () => { // #given const fetchSpy = spyOn(shared, "fetchAvailableModels").mockResolvedValue( new Set(["openai/gpt-5.2", "anthropic/claude-sonnet-4-6"]) @@ -75,7 +75,7 @@ describe("createBuiltinAgents with model overrides", () => { // #then expect(agents.atlas).toBeDefined() - expect(agents.atlas.model).toBe("anthropic/claude-sonnet-4-5") + expect(agents.atlas.model).toBe("openai/gpt-5.2") } finally { fetchSpy.mockRestore() }