claude-code - 💡(How to fix) Fix Mouse-tracking escape sequences leak into prompt input from new agent view [1 participants]

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…
GitHub stats
anthropics/claude-code#58653Fetched 2026-05-14 03:42:46
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×4cross-referenced ×1

In the "new agent" / agent transcript view, scrolling with the mouse wheel inserts raw SGR mouse-tracking escape sequences into the prompt input box as literal characters. The agent panel also renders in a dim/low-contrast style that looks like an inactive-pane state even while in use.

Root Cause

In the "new agent" / agent transcript view, scrolling with the mouse wheel inserts raw SGR mouse-tracking escape sequences into the prompt input box as literal characters. The agent panel also renders in a dim/low-contrast style that looks like an inactive-pane state even while in use.

Fix Action

Workaround

Avoid scrolling inside the agent view with the mouse wheel; click into the pane first and use keyboard scrolling.

Code Example

<64;56;56M<64;55;55M<64;55;55M<64;52;59M
RAW_BUFFERClick to expand / collapse

Summary

In the "new agent" / agent transcript view, scrolling with the mouse wheel inserts raw SGR mouse-tracking escape sequences into the prompt input box as literal characters. The agent panel also renders in a dim/low-contrast style that looks like an inactive-pane state even while in use.

Environment

  • Claude Code: 2.1.140
  • Terminal: Apple_Terminal 452 (macOS Terminal.app)
  • TERM: xterm-256color
  • OS: macOS (Darwin 23.2.0)

Repro

  1. Open Claude Code, switch to the new agent view (tab showing a running/recent agent transcript).
  2. Move/scroll the mouse wheel over the agent transcript pane.
  3. Look at the prompt input box at the bottom.

Expected

Mouse scroll events scroll the transcript (or are ignored). Nothing is typed into the prompt.

Actual

The prompt input fills with raw SGR mouse-event escape codes, e.g.:

<64;56;56M<64;55;55M<64;55;55M<64;52;59M

These are CSI < button ; col ; row M sequences — button 64/65 = scroll wheel up/down. They're being passed through to the input field instead of being consumed by the agent-view UI.

Additional observation

The agent transcript itself renders very faded / low-contrast in this view (looks like a "dimmed inactive pane" treatment) even when the pane has focus. Unclear if it's the same bug or a separate rendering issue, but worth flagging together since both showed up in the same view.

Screenshot

User reported via screenshot showing the escape sequences in the input box and the dimmed transcript above.

Workaround

Avoid scrolling inside the agent view with the mouse wheel; click into the pane first and use keyboard scrolling.

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