Repository navigation
Conversation
|
Warning Review limit reached
Next review available in: 7 seconds 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: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
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 |
|
Closing: superseded by the sentinel-index gating in |
Description
OrcaRuntimeService.onPtyDatamaintains a retained terminal tail (up to 2,000 lines / 256 KB) soterminal.waitcan recognize Codex trust, migration, hook-review, and other blocked prompts. The prior memoization removed one of two scans, but every raw PTY chunk still rebuilt the full tail with map/trim/filter/join, lowercased it, and searched every prompt pattern.This change gives anchor-free tails a compact state:
The fallback detection logic itself is unchanged. The focused tests enumerate all six blocked reasons and cover split prompts, ready-after-blocked ordering, redraws, transcript pruning, and eviction beyond the 2,000-line cap.
Performance evidence
Isolated steady-state Vitest benchmark through the real exported wait-state functions on arm64 macOS 26.3.1, Node 24.18.0:
progress N%chunks.Before used
computeTerminalTailWaitStateper chunk, matching the oldonPtyDatapath. After usedadvanceTerminalTailWaitStateper chunk, matching the new path.That is a 99.76% reduction / 411.7x speedup for ordinary chunks with a long retained tail. The cached anchor-free state also shrinks from a 236,889-character duplicate wait string in this workload to a suffix capped at 1,024 characters.
This is an isolated main-process helper benchmark, not an end-to-end typing-latency claim. Its hot-path relevance is direct: these functions run synchronously inside
onPtyData, potentially hundreds of times per second under terminal output load.Verification:
ELI5
Orca watches terminal history for a handful of “the agent needs you” messages. It used to reread a whole book every time one new progress line arrived. Once Orca has proved the book contains none of those messages, it now checks only the last page plus the new line. If the new text starts looking like a real prompt—or rewrites old terminal text—Orca rereads the authoritative history.
End-user trade-offs / regressions