Repository navigation
Add budget-aware pack compression guidance - #306
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Warning Review limit reached
Your plan includes 10 reviews of capacity. Refill in 5 minutes and 1 second. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR implements token-budgeted pack compression and negative guidance per issue ChangesToken-budgeted pack compression and negative guidance
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/runtime/implementation-pack.ts`:
- Around line 565-567: The suppression of helper-like files (computed using
hasNonHelperWorkflowCenter and helperLikeFileContext) can accidentally drop
files that are explicitly named as edit targets; update mergeLikelyEditFiles to
accept an explicit-target escape hatch by passing retrieval.question from
buildImplementationPackGuidance into mergeLikelyEditFiles, then inside
mergeLikelyEditFiles detect when retrieval.question explicitly names a helper
file/symbol and skip the helper-like suppression for those explicit targets so
likely_edit_files preserves user-specified helper edits.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 28a5a25e-9710-4d85-aa69-4c1f8ae2259b
📒 Files selected for processing (6)
README.mdsrc/infrastructure/context-pack-command.tssrc/runtime/context-pack.tssrc/runtime/implementation-pack.tstests/unit/context-pack-command.test.tstests/unit/context-pack.test.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
Closes #297
Summary by CodeRabbit
New Features
Documentation
--format jsonfor tool/script consumption,--format textfor brief execution summaries.Tests