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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Youngbin Kim
2026-02-17 16:28:39 -05:00
committed by YeonGyu-Kim
parent 90cae149b0
commit a326c090ba
+2 -2
View File
@@ -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()
}