Stray DECRPM response printed on tmux window focus after resuming conversation
Resolved 💬 2 comments Opened Mar 31, 2026 by undont Closed May 6, 2026
Description
When resuming a specific conversation with claude --resume, switching away from the tmux window containing Claude Code and switching back (via an fzf-based tmux picker) prints a stray terminal escape sequence to the visible output:
[?997;1n
This is a DECRPM (DEC Private Mode Report) response for mode 997 (modifyOtherKeys/extended keyboard protocol).
Reproduction
- Have a Claude Code session running inside tmux
- End the session
- Resume the conversation with
claude --resume - Switch to a different tmux window using an fzf-based tmux picker
- Switch back to the Claude Code window
[?997;1nis printed in the terminal
Key observations
- Only affects the resumed conversation — other Claude Code sessions in the same tmux server are unaffected
- Starting a fresh
claudesession does not exhibit the issue - Persists across restarts: closing and resuming the same conversation brings the issue back
- Other conversations resumed with
--resumedo not have this issue — it appears to be specific to certain conversation states
Environment
- Claude Code CLI
- tmux 3.6a with
extended-keys alwaysandextkeysterminal feature - Ghostty terminal
- macOS 26.3.1 (Darwin 25.3.0)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗