Repository navigation
Accept qwen as a name for Qwen Code - #316
Conversation
Reviewer's GuideImplementationMap the alternate harness name
DocumentationDocument
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 57 minutes. View limit details
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. |
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. Canonicalizing qwen makes existing MCP servers and hooks configured for that name reach Qwen Code, where they may receive context or run commands during sync or use. Reverting stops future routing, but cannot undo data already disclosed or actions already taken.
What and why
Qwen Code's key is
qwen-code, while every other harness goes by its short name, so a config can end up withname: qwen. tackroom 3.0.0 read that as an unknown custom harness: it got skills only,config inventoryreportedqwenwith no MCP, hooks or roles, and the web view and the Herdr panel showed "qwen" in lowercase and said it takes no roles.qwenis now read asqwen-code, the wayclaude-codeis read asclaude: one entry inlegacyAgentNames. It applies inagents:, in--agentsand in theagents:lists of MCP servers, hooks and skill sources.tackroom.yamlis not rewritten.Things to know:
skills.directoriesin~/.qwen/settings.json, MCP servers, hooks, roles in~/.qwen/agentsand~/.qwen/QWEN.md. It deletes nothing; the skills link an earlier sync made stays and counts as external.~/.qwen/QWEN.mdis a conflict, as for any harness with a root file: sync skips Qwen Code untilsync --replace-conflicts, which backs the file up.qwenandqwen-codenow stops withconfig agent qwen-code is duplicated, asclaudewithclaude-codedoes. 3.0.0 accepted the pair as two harnesses.status --jsonandconfig inventoryreport the entry asqwen-code.How I checked it
In throwaway homes, with the 3.0.0 binary for the "before" state:
config inventoryfor aname: qwenentry: 3.0.0 givesqwen/qwenwith roles and MCP false; this branch givesqwen-code/Qwen Codewith both true.Upgrade path: a home synced by 3.0.0 with the
qwenentry, thensync --dry-runandsyncon this branch: 0 conflicts, the plan adds skills, 6 roles, 2 MCP servers, 1 hook and the root link; a second dry run plans nothing. With existing user files in~/.qwen,settings.jsonis merged and a realQWEN.mdis reported as a conflict.agents: [qwen]on an MCP server and a hook, andsetup --agents claude,qwen: failed with "unknown agent" on 3.0.0, work here.Not checked: the web view and the Herdr panel were not rendered with this build, and whether Qwen Code itself lists a skill twice when the old link and
skills.directoriesboth point at it.go test ./...andgo vet ./...passI can explain this change without an AI tool
Summary by Sourcery
Treat
qwenas the legacy alias forqwen-codethroughout agent configuration and synchronization.Bug Fixes:
qwenas an alias for Qwen Code across configuration, CLI agent selection, and agent-targeted resource lists, so Qwen receives its MCP servers, hooks, roles, root file, and skill settings.qwen-codeand detect duplicateqwen/qwen-codeentries.Documentation:
qwenalias and describe the upgrade behavior and conflict handling.