Repository navigation
refactor(cli): split read-view execution by owner (#2177) - #2206
Conversation
|
Warning Review limit reached
More reviews will be available in 14 minutes and 33 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. 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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (18)
✨ Finishing Touches🧪 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 |
Summary
Refactors CLI read-view execution so the registry is no longer the view implementation dump: read-view option ownership is grouped by view family, concrete handlers live under
polylogue/cli/read_views/, andread_view_handlers.pyis reduced to profile/handler registry glue plus validation.Problem
#2177 tracks cleanup where existing contracts should own behavior instead of being shadowed by parallel dispatch. The read-view surface had drifted in that direction: one
ReadViewInvocationcarried unrelated options for messages, raw, context, context-pack, recovery, neighbors, and correlation, while one largeread_view_handlers.pymodule mixed registry validation, shared delivery helpers, query passthrough, and every concrete view implementation. That made each new view more likely to add another field or branch to the shared dispatcher.Solution
polylogue/cli/read_views/base.py.polylogue/cli/read_views/{standard,messages,context,recovery,neighbors,correlation,bulk}.py.polylogue/cli/read_view_handlers.pyas the small executable registry that validates profile/handler drift and dispatches by view id.Verification
devtools test tests/unit/cli/test_query_verbs_runtime.py tests/unit/cli/test_continue_absorption.py tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_neighbors_command.py -q->52 passeddevtools test tests/unit/cli/test_plain_cli_snapshots.py::test_json_status_snapshot -q->1 passeddevtools verify --quick-> exit_code 0devtools verify --seed-testmon --skip-slow->11615 passed, exit_code 0; first run caught one status snapshot drift from fix(assertions): finish candidate judgment catalogs (#2182) #2205, fixed here and rerun green.Ref #2177