[BUG] Response auto-interrupts after Bash tool completion, stays stuck in "Interrupted" state
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?
Claude Code intermittently enters an "Interrupted" status on its own after a Bash tool call completes successfully. The user does not press Escape or Ctrl+C.
The tool output is displayed correctly, but the response never continues — it just shows "Interrupted · What should Claude do instead?"
Typing a follow-up message also gets stuck in the same "Interrupted" state. The only way to recover is to exit the session and resume.
Expected behavior: Response should continue generating after the tool call returns output.
Actual behavior: Response enters "Interrupted" state automatically. Follow-up messages also get stuck. Must exit and resume session to recover.
Environment:
- OS: Linux (Ubuntu, kernel 6.8.0-90-generic)
- Shell: bash
- Claude Code model: Opus
- The Bash commands involved are SSH sessions to remote servers, often running Python heredocs over SSH
Notes:
- Happens intermittently, not every time
- Tool output is fully received and displayed before the interruption
- May be related to long-running or multi-line Bash tool calls over SSH
- No user keypress triggers the interrupt
What Should Happen?
The session should continue as normal.
Error Messages/Logs
Example output:
● Bash(ssh user@host 'python3 << "PYEOF" import winrm…')
⎿ Status: 0
stdout: sdfs\svc-gam
⎿ Interrupted · What should Claude do instead?
✻ Cogitated for 46s
❯ what is the status?
⎿ Interrupted · What should Claude do instead?
Steps to Reproduce
Steps to reproduce:
- Run a Bash tool call with an SSH command (e.g., ssh user@host "python3 << 'EOF' ... EOF")
- Wait for the command to complete (output is returned successfully)
- Response stream stops and shows "Interrupted" status without user input
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.79 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗