claude-code - 💡(How to fix) Fix [BUG] claude-code 2.1.126 doesn't send DEC 2026 messages on terminals that support it [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#55613Fetched 2026-05-03 04:48:54
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code has supported the DEC 2026 synchronized output terminal extension for some time, which can help to reduce screen tearing and other artifacts when Claude redraws the scrollback buffer.

Since Claude Code 2.1.110, I've noticed Claude is no longer sending DEC 2026 enable/disable commands on my terminal which supports it. My previous issue was closed with the issue reported fixed, but it was never actually fixed. I re-tested with the latest 2.1.126 and confirmed the issue is still present.I use a modified version of the Emacs eat terminal emulator, which uses a TERM value of eat-truecolor. Its terminfo advertises the Sync capability, and it responds to DECRQM queries to test for the availability of the feature. I also tested setting my TERM value to xterm-256color to match iTerm, and Claude also does not send the sync messages.

Meanwhile, if I set my TERM to xterm-ghostty or xterm-kitty, Claude continues to send DEC 2026 instructions.

What Should Happen?

I assume Claude Code is now relying on a hardcoded list of terminal which support this feature, but this penalizes us users who run more obscure terminal emulators. Claude should support checking for DEC 2026 support using the DECRQM instruction, or a hardcoded list plus looking for the Sync feature in the terminfo (ghostty includes this feature in its custom terminfo, but other emulators such as iTerm that rely on a standard terminfo such as xterm-256color do not).

Ideally, Anthropic should document the terminal standards/behaviors Claude Code supports so terminal emulator developers can produce compatible software.

Error Messages/Logs

Steps to Reproduce

Launch claude in an affected terminal. When Claude produces a large amount of output, screen tearing will occur.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.109

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

Claude Code may need to update its logic for detecting terminal support of DEC 2026 to include checking for the Sync capability in terminfo, rather than relying on a hardcoded list of terminals.

Guidance

  • Investigate the terminal detection logic in Claude Code to see if it can be modified to check for the Sync capability in terminfo, in addition to any existing hardcoded lists.
  • Consider adding documentation for terminal emulator developers on the standards and behaviors supported by Claude Code.
  • Test Claude Code with different terminal emulators and TERM values to identify any patterns or inconsistencies in DEC 2026 support.
  • Review the changes made in version 2.1.110 to see if they introduced the regression.

Example

No code snippet is provided as the issue does not include specific code details.

Notes

The issue may be specific to certain terminal emulators or configurations, and further testing may be needed to fully understand the problem.

Recommendation

Apply workaround: Modify the terminal detection logic in Claude Code to check for the Sync capability in terminfo, as this may resolve the issue for users with non-standard terminal emulators.

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