fix: suppress quota banner after successful stream#104
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe plugin introduces a ChangesQuota-exit diagnostic passthrough
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 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. 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.
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 `@tests/integration/opencode-loop.integration.test.ts`:
- Around line 220-223: In the mock for the "assistant-text-quota-exit" scenario,
replace the immediate process.exit(1) call with setting process.exitCode to 1
and then returning. This allows any buffered stderr output from the
process.stderr.write call to be properly flushed before the process terminates,
preventing nondeterministic test failures caused by incomplete stream writes.
🪄 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
Run ID: ad9d717e-4ef7-4977-bc0f-cfd41b7e256b
📒 Files selected for processing (2)
src/plugin.tstests/integration/opencode-loop.integration.test.ts
Use process.exitCode instead of process.exit so buffered mock output is flushed before the child process ends. Co-authored-by: Cursor <cursoragent@cursor.com>
Small fix for the false quota banner we saw with Composer 2.5 Fast.
What changed:
Test plan: