Repository navigation
Launch and detect Qwen Code via its qwen executable - #6530
Conversation
Qwen Code's installed CLI executable is `qwen`, but Orca hardcoded `qwen-code` as the detect/launch command and expected process name, so launching Qwen Code and recognizing its running process both failed. Point detectCmd/launchCmd/expectedProcess (desktop), the agent catalog launch cmd, and the mobile launch command at `qwen`, keeping the agent id `qwen-code` for stable identity. Fixes #5350
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
Fixes #5350
Root cause
Qwen Code's installed CLI executable on PATH is
qwen, notqwen-code(the latter is only the npm package / repo name,QwenLM/qwen-code). Orca hardcodedqwen-codeas the detect command, launch command, and expected process name. As a result:qwen-codebinary, so the agent never started.qwen-code, so a runningqwensession was never identified as Qwen Code.This is the same package-name-vs-executable mismatch already handled for Mistral Vibe (
mistral-vibepackage,vibeexecutable).Change
Point the launch/detect/recognition command at the real
qwenexecutable, while keeping the agent idqwen-codefor stable identity (settings keys, telemetry, picker, display name all unchanged):src/shared/tui-agent-config.ts—detectCmd/launchCmd/expectedProcess:qwen-code->qwen.src/renderer/src/lib/agent-catalog.tsx— catalogcmd:qwen-code->qwen(id kept).mobile/src/tasks/mobile-tui-agents.ts—MOBILE_TUI_AGENT_LAUNCH_COMMANDS['qwen-code']:qwen-code->qwen.Added regression tests asserting Qwen Code launches and is recognized via
qwen.Evidence
Before — new tests fail (reproduces the bug)
(
recognizeAgentProcess('/home/dev/.local/bin/qwen')returnednullbefore the fix.)After — full relevant suites pass
Mobile suite (edited file):
Lint (oxlint) — clean
Typecheck — clean