mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +00:00
2.1 KiB
2.1 KiB
Model Configuration Workflow
- Slice date: 2026-04-26
- Executable harness:
packages/desktop/scripts/e2e-cdp-smoke.mjs - Command:
cd packages/desktop && npm run e2e:cdp - Result: pass
- Artifact directory:
.qwen/e2e-tests/electron-desktop/artifacts/2026-04-26T03-47-01-812Z/
Scenario
- Launch the real Electron app with isolated HOME, runtime, user-data, fake ACP, and a dirty temporary Git workspace.
- Open the fake project, type a first composer prompt, create a thread, and approve the fake command request.
- Complete the existing review, discard-cancel safety, stage, and commit path.
- Open Settings, save
qwen-e2e-cdpwith a fake API key and base URL, and assert the saved model is visible without exposing the secret. - Return to Conversation and select
qwen-e2e-cdpfrom the composer model picker. - Continue through terminal expand, command execution, attach-to-composer, and send verification.
Assertions
- The Settings default view includes product sections and keeps diagnostics behind Advanced.
- The API key input remains
type="password"and is cleared after save. - The fake API key is absent from settings text, composer text, input values, advanced diagnostics, and the model-switch artifact.
- The composer model picker is enabled for the active thread, includes both the
fake ACP runtime model and the saved configured model, and switches to
qwen-e2e-cdp. - The conversation view after returning from Settings does not expose the local server URL.
- The composer stays contained in the chat panel and does not overflow after the model switch.
- Console errors: 0.
- Failed local network requests: 0.
Artifacts
settings-page.pngsettings-product-state.jsonsettings-advanced-diagnostics.jsoncomposer-model-switch.jsonelectron.logsummary.json
Known Uncovered Risk
The harness verifies the API-key model save and active-session model switch using fake ACP. It does not yet cover Coding Plan model switching, invalid API key validation, or keyboard-only navigation through the model picker.