Fix overhead deltas filtering and flags (#454) - #513
Conversation
|
Warning Review limit reached
Next review available in: 42 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe CLI now handles overhead filters at subcommand scope and rejects unsupported or duplicate flags. The SDK accepts relative or ISO ChangesContext-delta filtering and overhead CLI
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant ContextDeltaQuery
participant NormalizeSince
participant SessionDiscovery
participant DeltasForSessionSince
CLI->>ContextDeltaQuery: pass project and since filters
ContextDeltaQuery->>NormalizeSince: normalize relative or ISO since
ContextDeltaQuery->>SessionDiscovery: select eligible sessions
SessionDiscovery-->>ContextDeltaQuery: return matching turns and inferences
ContextDeltaQuery->>DeltasForSessionSince: calculate deltas with cutoff
DeltasForSessionSince-->>CLI: return filtered context deltas
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a107e28f1
ℹ️ 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".
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CHANGELOG.md (1)
8-8: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winState the
--kindbehavior directly.Replace the removed-behavior wording with the user-visible result: unsupported
--kindis rejected with an error. This is clearer and more impact-focused.Proposed wording
-- `burn overhead deltas` now honors `--project`, accepts relative or ISO `--since` values with explicit errors for invalid input, and no longer advertises or silently ignores the unsupported `--kind` flag. +- `burn overhead deltas` now honors `--project`, accepts relative or ISO `--since` values with explicit errors for invalid input, and rejects the unsupported `--kind` flag.🤖 Prompt for 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. In `@CHANGELOG.md` at line 8, Update the changelog entry for “burn overhead deltas” to state directly that the unsupported --kind flag is rejected with an error, replacing wording about no longer advertising or silently ignoring it while preserving the other documented behavior.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@CHANGELOG.md`:
- Line 8: Update the changelog entry for “burn overhead deltas” to state
directly that the unsupported --kind flag is rejected with an error, replacing
wording about no longer advertising or silently ignoring it while preserving the
other documented behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: bcaf7a2a-0858-4d00-8315-2ac0850d2c98
📒 Files selected for processing (10)
CHANGELOG.mdcrates/relayburn-cli/src/cli.rscrates/relayburn-cli/src/commands/overhead.rscrates/relayburn-cli/tests/smoke.rscrates/relayburn-sdk/src/analyze.rscrates/relayburn-sdk/src/analyze/context_delta.rscrates/relayburn-sdk/src/analyze/context_delta_tests.rscrates/relayburn-sdk/src/query_verbs/flow.rscrates/relayburn-sdk/src/query_verbs/mod.rscrates/relayburn-sdk/src/query_verbs/tests.rs
There was a problem hiding this comment.
All reported issues were addressed across 10 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Addressed both automated review findings in f98b5a9: context-delta project paths now expand to the Git-derived project key in the SDK (covered by a nested-repository/different-checkout regression), and the changelog now states directly that unsupported |
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Summary
burn overhead deltashonor project filtering and relative or ISO--sincecutoffs in both all-session and session-specific modesContextDeltaOpts::sincefromOption<Duration>toOption<String>; the release train should account for this Rust SDK source breakValidation
cargo fmt --all -- --checkcargo test --workspacecargo clippy --workspace --all-targetsFixes #454
🤖 Generated with Claude Code.