[BUG] When terminal sends Focus In/Out events (DECSET 1004), [ I / [ O appear in input. Expected: handled/ignored.
Resolved 💬 9 comments Opened Nov 10, 2025 by pro-vi Closed Jan 6, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
<img width="167" height="102" alt="Image" src="https://github.com/user-attachments/assets/af04673a-ed6f-488e-86ce-bc0b9d6e43c6" />
When I blur the terminal pane (WezTerm), [O shows up in the input; when I focus the terminal pane (WezTerm), [I shows up in the input. These two reporting are activated when there are multiple terminal panes in the same tab on WezTerm.
What Should Happen?
These two events should be handled gracefully by Claude Code. It could also be explored as user behavioral metrics.
Error Messages/Logs
Steps to Reproduce
- Open WezTerm
- Run
claude - Split the tab window using Shift + Ctrl + Alt + %
- Use Shift + Ctrl + Arrow Keys to jump between the two windows, or simply click around with mouse
- See focus event characters pop up in Claude Code input box
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.36
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗