[Bug] Monitor Events cause tmux session detachment
Resolved 💬 2 comments Opened Apr 10, 2026 by joshferrara Closed May 22, 2026
Bug Description
When I'm running claude code inside of a tmux session, I notice that it seems when a Monitor Event is triggered, it terminates my tmux sessions, or maybe detaches. The session is still there for me to reattach to, but it seems like it could be a bug with how monitor events are interacting within tmux.
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.1.98
- Feedback ID: e4c7308f-e176-494f-a19e-b6725d7b28a6
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 205308 tokens > 200000 maximum\"},\"request_id\":\"req_011CZu5Z7cDsiwsxt2nwDLKe\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T23:39:16.947Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 203619 tokens > 200000 maximum\"},\"request_id\":\"req_011CZu5d4ov3KLpaeu2h1oGb\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52401)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-09T23:40:10.398Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗