Repository navigation
fix: 避免 Claude 长计划撑满审批面板 - #245
Conversation
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Summary
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Description check | ✅ Passed | 描述准确说明了长计划显示问题、实现方案、行为保持项和验证结果,与变更内容直接相关。 |
| Title check | ✅ Passed | 标题明确概括了主要修复:避免 Claude 长计划占满审批面板。标题简洁,并与变更内容一致。 |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID: 4e80f889-8661-4b49-b1b0-85d565bdf6f3
📒 Files selected for processing (4)
-
docs/claude-code-plan-mode.md
packages/adapters/claude-code/src/claude-code-adapter.ts
packages/adapters/claude-code/src/plan-review.ts
packages/adapters/claude-code/test/claude-code-adapter.test.ts
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📜 Recent review details
-
⏰ Context from checks skipped due to timeout. (4)
-
- GitHub Check: Check Linux ARM64
- GitHub Check: Check macos-14
- GitHub Check: Check ubuntu-22.04
- GitHub Check: Check windows-latest
🔇 Additional comments (4)
-
packages/adapters/claude-code/src/claude-code-adapter.ts (1)
-
1700-1714: LGTM!
packages/adapters/claude-code/src/plan-review.ts (1)
-
30-30: LGTM!
docs/claude-code-plan-mode.md (1)
-
11-11: LGTM!
packages/adapters/claude-code/test/claude-code-adapter.test.ts (1)
-
4008-4017: LGTM!
Also applies to: 4037-4038
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4e80f889-8661-4b49-b1b0-85d565bdf6f3
📒 Files selected for processing (4)
-
docs/claude-code-plan-mode.mdpackages/adapters/claude-code/src/claude-code-adapter.tspackages/adapters/claude-code/src/plan-review.tspackages/adapters/claude-code/test/claude-code-adapter.test.ts
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.
-
📜 Recent review details
-
⏰ Context from checks skipped due to timeout. (4)
-
- GitHub Check: Check Linux ARM64
- GitHub Check: Check macos-14
- GitHub Check: Check ubuntu-22.04
- GitHub Check: Check windows-latest
🔇 Additional comments (4)
-
packages/adapters/claude-code/src/claude-code-adapter.ts (1)
-
1700-1714: LGTM!
packages/adapters/claude-code/src/plan-review.ts (1)
-
30-30: LGTM!
docs/claude-code-plan-mode.md (1)
-
11-11: LGTM!
packages/adapters/claude-code/test/claude-code-adapter.test.ts (1)
-
4008-4017: LGTM!Also applies to: 4037-4038
-
-
|
@coderabbitai help |
ChatThere are 3 ways to chat with CodeRabbit:
CodeRabbit commands
Other keywords and placeholders
Status, support, documentation and community
|
|
感谢贡献!我们已关注到这个 PR,会尽快安排审查。 |
|
感谢贡献!这个痛点在当前 |
Claude Code 调用
ExitPlanMode并提供较长计划时,完整 Markdown 被拼进requestUserInput的问题正文。Desktop 将它显示为固定输入区域中的纯文本,长内容会挤占审批和对话空间,计划也无法正常按 Markdown 阅读。本 PR 在发出审批问题之前,将完整计划作为独立的 assistant message 投影到对话正文;审批问题只保留简短提示和退出规划的说明。保持规划、明确批准和取消的原生决策映射不变;没有计划正文时仍不提供批准选项。
验证:
72d6585,仅修改 Claude Adapter、回归测试和相关文档。npm run typecheck、修改文件 ESLint/Prettier、git diff --check通过。