Repository navigation
fix(ccr): detect installed version without running CCR - #417
Conversation
- resolve the active command to matching package metadata across npm layouts - prevent CCR 3.x version probes from mutating the user Codex config - add isolated regression coverage for fnm links, Windows shims, and zcf check Refs: #377
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoDetect CCR version safely from installed package metadata
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
- construct mocked command and package paths with the host path implementation - keep CCR version assertions consistent on Windows and Unix runners Refs: #377
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 30b07fc49c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Trim CRLF-separated where results before filesystem use and align CCR path handling with the repository's pathe convention. Refs #377
|
审查跟进已完成(HEAD 08163ef):\n\n- 已修复 Windows where 多路径输出中的 CRLF 尾随字符,并增加回归测试。\n- 已将本次新增的路径处理统一改为仓库约定的 pathe,同时明确 CCR 专用辅助函数命名。\n- 已评估 pnpm/Volta 普通 shim 建议;因其超出 #377 明确的 fnm/nvm/npm 全局安装范围,且需要包管理器特定解析规则,本 PR 不扩展该兼容范围。\n- 本地验证:lint、typecheck、build、完整 coverage 均通过;145 个测试文件、2552 个测试通过。\n- GitHub CI:lint、Ubuntu、macOS、Windows、Codecov patch 全部通过。\n- 所有审查线程均已逐条回复并解决。 |
Description
@musistudio/claude-code-routerversion from the active command path and its matchingpackage.json..cmdshims without invoking the CCR CLI.ccr -v,ccr --version, or other version-like arguments can be treated as profiles and rewrite the user’s global Codex config before profile validation.Fixes #377
Type of Change
Testing
Validation performed:
pnpm vitest run tests/unit/utils/ccr-version-detection.test.ts tests/unit/utils/version-checker.test.ts tests/unit/utils/auto-updater.test.ts tests/commands/check-updates.test.ts— 120 tests passedpnpm typecheck— passedpnpm lint— passedpnpm test:run— 145 files, 2552 tests passedpnpm build— passed3.0.21without executingccrChecklist