claude-code - 💡(How to fix) Fix Claude Code inside tmux: scroll hits input not scrollback, no rich mode ("waiting for output"), transcript not saved

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Observed

Running Claude Code inside tmux produces three broken behaviors:

  1. Scroll goes to the input field, not the conversation. Mouse wheel scrolls within the prompt/input box instead of scrolling back through the conversation history. There's no way to scroll up through prior output.
  2. Transcript is not saved. No session transcript is persisted for the run.
  3. Rich render mode never engages. The UI stays on "waiting for output" and never switches to the normal rich TUI.

Expected

  • Mouse wheel should scroll the conversation/scrollback.
  • The session transcript should be saved.
  • The rich TUI should render normally.

Environment

  • Claude Code: 2.1.156
  • OS: macOS 15.0.1 (24A348)
  • Terminal: tmux 3.6b (TERM=tmux-256color, TERM_PROGRAM=tmux)
  • Shell: zsh
  • Notably: the claude process was launched detached inside a tmux pane (tmux new-session -d) by a wrapper, with tmux mouse off, then attached to. Symptoms appear specifically in that tmux-hosted context.

Reproduction

  1. From a wrapper, create a detached tmux session: tmux new-session -d -s demo, with default mouse off.
  2. Launch claude inside that pane and attach.
  3. Observe: wheel scroll lands on the input field (not scrollback), no rich mode (stuck on "waiting for output"), and no transcript file is written.

Notes

With tmux mouse off, wheel events pass through to the foreground app rather than entering tmux copy-mode, which seems to explain symptom #1. Symptoms #2 and #3 may be tied to claude being spawned in a detached/non-interactive PTY under TERM=tmux-256color rather than a normal interactive foreground. Filing in case Claude Code can detect the tmux context and either degrade gracefully or document the required tmux setup (set -g mouse on, interactive launch).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude Code inside tmux: scroll hits input not scrollback, no rich mode ("waiting for output"), transcript not saved