feat: Add Qwen model recognition tests and documentation (follow-up to #1050)#1094
feat: Add Qwen model recognition tests and documentation (follow-up to #1050)#1094LoneWolf36 wants to merge 6 commits intocoleam00:devfrom
Conversation
Integrate Qwen as a first-class assistant across config, workflows, CLI setup, API schemas, and the web UI. Add a Qwen smoke test and tighten the docs so the remaining provider-specific limits are explicit. This keeps Archon aligned with the new Qwen path while documenting where behavior still differs from Claude and Codex. Co-Authored-By: Codex GPT-5 <noreply@openai.com>
Preserve existing Qwen settings when assistant config is updated so the web settings flow no longer drops qwen entries from global config. Stop forcing OpenAI auth in the Qwen client and allow the SDK to follow its native auth resolution unless Archon is configured explicitly. Also pass through OpenAI-compatible env vars and wire the Qwen smoke test into the package test script so the reviewed behavior stays covered. Co-Authored-By: Codex GPT-5 <noreply@openai.com>
Prevent duplicate tool-call emission when partial Qwen streaming emits a tool start before the final assistant message, and pass native Qwen auth environment variables through the subprocess allowlist. Co-Authored-By: Codex GPT-5 <noreply@openai.com>
- Config persistence: unconditionally preserve qwen in updateGlobalConfig() - CLI setup: filter default assistant options by actually configured assistants - Add mode: read hasQwen and defaultAssistant from existing config instead of hardcoding - Missing env vars: inject config.envVars into Qwen node options in dag-executor - Provider misrouting: return undefined instead of 'codex' for unknown models - Streaming dedup: track sawPartialText separately from tool_use partials - Security: scope Qwen credentials to QwenClient only, remove from shared allowlist - UI robustness: add optional chaining for config.assistants.qwen?.model in SettingsPage Co-Authored-By: Codex GPT-5 <noreply@openai.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
…ator warnings - Schema: make qwen optional+nullable in safeConfigSchema for unset state - Docstring: fix authType docstring to reflect SDK-resolved default (not 'openai') - Validator: add Qwen warnings for MCP, skills, hooks, and tool restrictions (previously only warned for Codex; now warns for both non-Claude providers) Co-Authored-By: Codex GPT-5 <noreply@openai.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
- Improve model recognition for Qwen variants (qwen-coder, qwen-max, qwen-turbo, qwen-plus, qwq-*, qvq-*) - Add comprehensive test coverage for Qwen model validation and provider inference - Create detailed Qwen setup guide in docs/qwen-setup.md - Update README.md to highlight Qwen as first-class AI assistant - Add configuration examples and migration guide for binary v0.3.5 users - Ensure all Qwen model patterns are properly recognized in isQwenModel() - Add tests for provider inference with various Qwen model names - Document Qwen-specific workflow configuration patterns Closes: Qwen support gap between source code and binary v0.3.5 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
Closing - will document proper merge strategy in PR #1050 instead. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (43)
📝 WalkthroughWalkthroughThis PR adds comprehensive support for Qwen Code SDK as a third AI assistant alongside Claude and Codex. Changes span configuration, CLI setup, client implementation, workflow execution, API schemas, web UI, and documentation. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR should be reviewed AFTER #1050 is merged.
Adds comprehensive test coverage and documentation for Qwen provider support:
Stats: 1 commit | 4 files changed | +500 lines
Changes:
isQwenModel()to recognize all Qwen variants (qwen-coder,qwen-max,qwq-*, etc.)model-validation.ts, 100% passing)docs/qwen-setup.md)Why this is clean:
Merge order:
Testing:
Summary by CodeRabbit
Release Notes
New Features
Documentation