Control sequence again#530
Conversation
Add CSI handlers for 'I' (focus in) and 'O' (focus out) sequences that are sent when focus reporting mode (1004) is enabled by programs like vim/neovim. These should be suppressed, not displayed as text. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add parser hooks to prevent query responses from displaying as text: - CSI 'I'/'O' - Focus in/out reports (mode 1004) - OSC 4 - Indexed color palette queries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Warning Rate limit exceeded@Kitenite has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 44 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, 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 the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughRefined terminal query response suppression logic in a single renderer file. Removed broad suppression of CSI "c" (Device Attributes) and OSC color queries; replaced with targeted handlers for cursor position, focus events, and mode reports. Updated handler registration style to use arrow functions and expanded documentation distinguishing safe vs. unsafe suppression patterns. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
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 |
Remove handlers that could break terminal functionality: - CSI 'c' removed (breaks DA queries) - CSI 't' removed (breaks window commands) - OSC 4/10-19 removed (breaks color setting) Keep only response-only sequences where query has different format: - CSI 'R' (CPR response, query ends in 'n') - CSI 'I'/'O' (focus reports, no query) - CSI '$y' (mode report, query ends in '$p') 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🚀 Preview Deployment🔗 Preview Links
Preview updates automatically with new commits |
Description
Related Issues
Type of Change
Testing
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.