claude-code - 💡(How to fix) Fix [DOCS] Environment variables docs missing `CLAUDE_CODE_FORCE_SYNC_OUTPUT` terminal override [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#56489Fetched 2026-05-06 06:26:41
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Fix Action

Fix / Workaround

As a result, users on affected terminals can hit garbled startup or redraw issues without a documented workaround.

PageLine(s)Context
https://code.claude.com/docs/en/env-vars101-102, 116Alphabetical env-var list skips from CLAUDE_CODE_FORK_SUBAGENT to CLAUDE_CODE_GIT_BASH_PATH; nearby rendering entry documents only CLAUDE_CODE_NO_FLICKER
https://code.claude.com/docs/en/fullscreen25-31, 137Documents CLAUDE_CODE_NO_FLICKER and mentions synchronized output only as a tmux limitation
https://code.claude.com/docs/en/terminal-config267-281Recommends CLAUDE_CODE_NO_FLICKER as the environment-variable workaround for display flicker

Code Example

CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 claude
RAW_BUFFERClick to expand / collapse

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/env-vars

Section/Topic

Environment variables reference for terminal rendering and terminal-capability overrides

Current Documentation

The environment variables reference currently jumps from:

| CLAUDE_CODE_FORK_SUBAGENT | Set to 1 to enable forked subagents. A forked subagent inherits the full conversation context from the main session instead of starting fresh. | | CLAUDE_CODE_GIT_BASH_PATH | Windows only: path to the Git Bash executable (bash.exe). Use when Git Bash is installed but not in your PATH. |

Related terminal docs currently document fullscreen rendering with a different variable:

You can also set the CLAUDE_CODE_NO_FLICKER environment variable before starting Claude Code:

CLAUDE_CODE_NO_FLICKER=1 claude

And the fullscreen page currently mentions synchronized output only in the tmux caveat:

tmux does not support synchronized output, so you may see more flicker during redraws than when running Claude Code directly in your terminal.

What's Wrong or Missing?

v2.1.129 added CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 to force-enable synchronized output when terminal capability auto-detection misses a compatible terminal, including cases like Emacs eat.

That override is not documented on the environment variables page, and the terminal/fullscreen docs do not explain when to use it, how it relates to synchronized output support, or how it differs from CLAUDE_CODE_NO_FLICKER.

As a result, users on affected terminals can hit garbled startup or redraw issues without a documented workaround.

Suggested Improvement

Add a new CLAUDE_CODE_FORCE_SYNC_OUTPUT entry to the environment variables reference that explains:

  • it force-enables synchronized output even when auto-detection says the terminal is unsupported
  • it is intended for compatible terminals that detection misses (for example Emacs eat)
  • it is different from CLAUDE_CODE_NO_FLICKER, which enables fullscreen rendering rather than overriding synchronized-output detection

Include a launch example such as:

CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 claude

Add a short troubleshooting cross-reference from the fullscreen or terminal-config docs for users who still see startup garbling outside tmux.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageLine(s)Context
https://code.claude.com/docs/en/env-vars101-102, 116Alphabetical env-var list skips from CLAUDE_CODE_FORK_SUBAGENT to CLAUDE_CODE_GIT_BASH_PATH; nearby rendering entry documents only CLAUDE_CODE_NO_FLICKER
https://code.claude.com/docs/en/fullscreen25-31, 137Documents CLAUDE_CODE_NO_FLICKER and mentions synchronized output only as a tmux limitation
https://code.claude.com/docs/en/terminal-config267-281Recommends CLAUDE_CODE_NO_FLICKER as the environment-variable workaround for display flicker

Total scope: 3 pages affected

Version context: v2.1.129 added CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 as a new override for terminals whose synchronized-output capability is not auto-detected correctly.

extent analysis

TL;DR

Add documentation for the CLAUDE_CODE_FORCE_SYNC_OUTPUT environment variable to the environment variables reference page.

Guidance

  • Add a new entry to the environment variables reference page explaining the purpose and usage of CLAUDE_CODE_FORCE_SYNC_OUTPUT.
  • Include a launch example, such as CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 claude, to demonstrate how to use the variable.
  • Add a troubleshooting cross-reference from the fullscreen or terminal-config docs to help users who experience startup garbling issues.
  • Review the documentation for CLAUDE_CODE_NO_FLICKER to ensure it is clear that it enables fullscreen rendering, not synchronized output.

Example

CLAUDE_CODE_FORCE_SYNC_OUTPUT=1 claude

Notes

The addition of CLAUDE_CODE_FORCE_SYNC_OUTPUT in v2.1.129 introduced a new override for terminals with undetected synchronized-output capability, but its usage and relationship to CLAUDE_CODE_NO_FLICKER are not clearly documented.

Recommendation

Apply workaround: Add the missing documentation for CLAUDE_CODE_FORCE_SYNC_OUTPUT to ensure users can effectively use the feature and troubleshoot related issues.

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 [DOCS] Environment variables docs missing `CLAUDE_CODE_FORCE_SYNC_OUTPUT` terminal override [1 participants]