Bug: Input becomes unresponsive after tab switching during response generation
Resolved 💬 3 comments Opened Feb 3, 2026 by cafe24-mcpark Closed Feb 6, 2026
Environment
- OS: macOS (Darwin 24.6.0)
- Terminal: iTerm2
- Claude Code Version: 2.1.29
Steps to Reproduce
- Run
claudein an iTerm2 tab - Send a prompt and wait for response (spinner visible)
- Switch to another iTerm2 tab while Claude is generating response
- Switch back to the Claude tab
- Try to type input
Expected Behavior
Input should work normally after returning to the tab.
Actual Behavior
- Initially: No characters appear when typing
- After
stty sane: Characters appear but Claude doesn't respond to Enter/input - Process appears healthy (S+ state, stdin connected to tty)
- Only fix is to kill the process
Additional Context
- Happens repeatedly (not a one-time issue)
- Process shows no network connections when stuck
kill -SIGWINCHandstty sanedon't restore functionality- Suspect stdin polling stops when tab loses focus during response generation
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗