mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-09 17:19:02 +00:00
Follow-up to #5724. The `supports session/set_config_option for mode and model` test asserted that an openai model appears in `availableModels`, which depended on the env-driven OPENAI_MODEL being captured as a runtime-model snapshot and enumerated at session/new. That capture is environment-sensitive: in CI the openai model was absent from `availableModels`, failing `expect(openaiModel).toBeDefined()` (acp-integration.test.ts:535). The earlier QWEN_HOME isolation (#5724) did not address this. Inject an openai provider model via `modelProviders` in the test's settings so the model is a registry entry that is always enumerated and switchable without inference. The test now targets that specific model, making it deterministic regardless of how the ambient openai credentials resolve. Verified locally to pass both with and without OPENAI_MODEL set. |
||
|---|---|---|
| .. | ||
| baselines | ||
| cli | ||
| concurrent-runner | ||
| fixtures | ||
| hook-integration | ||
| interactive | ||
| sdk-typescript | ||
| terminal-bench | ||
| terminal-capture | ||
| channel-plugin.test.ts | ||
| fake-openai-server.test.ts | ||
| fake-openai-server.ts | ||
| globalSetup.ts | ||
| test-helper.ts | ||
| test-mcp-server.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||
| vitest.loadtest.config.ts | ||
| vitest.terminal-bench.config.ts | ||