claude-code - 💡(How to fix) Fix Setting to hide code change diffs in terminal output [1 comments, 2 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#45205Fetched 2026-04-09 08:10:49
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
labeled ×2commented ×1

Code Example

{
  "hideDiffs": true
}

---

{
  "outputStyle": "minimal"
}
RAW_BUFFERClick to expand / collapse

Feature Request

Add a setting to hide/collapse file edit diffs (line-by-line code changes) in the terminal output by default.

Desired behavior

Only show in the terminal:

  • Bash command output
  • Errors
  • Status messages (e.g. "deployed and live", "file updated")
  • Claude's reasoning/logic text

File edit diffs (the line-by-line red/green diff output from Edit/Write tools) should be hidden or collapsed by default, with an option to expand if needed.

Why

When working on larger tasks, the code diffs create significant visual noise in the terminal. Users who trust the edits and review via git diff or their editor don't need to see every line change inline. The current defaultView: "chat" setting helps but doesn't give granular control over specifically hiding diffs while keeping bash output visible.

Proposed setting

Something like:

{
  "hideDiffs": true
}

or

{
  "outputStyle": "minimal"
}

That suppresses the inline diff rendering for Edit/Write tool results while preserving all other output.

extent analysis

TL;DR

Implement a new setting, such as "hideDiffs" or "outputStyle: minimal", to control the visibility of file edit diffs in the terminal output.

Guidance

  • Introduce a new configuration option to toggle the display of file edit diffs, allowing users to choose between showing or hiding them by default.
  • Consider adding a toggle or expand/collapse button in the terminal output to allow users to easily switch between showing and hiding diffs.
  • When implementing the new setting, ensure that it only affects the display of file edit diffs and does not impact the visibility of other important output, such as bash command output, errors, and status messages.
  • Test the new setting with different use cases, including larger tasks with significant code changes, to ensure it provides the desired behavior and reduces visual noise in the terminal.

Example

{
  "hideDiffs": true
}

or

{
  "outputStyle": "minimal"
}

These examples illustrate the proposed setting to suppress inline diff rendering for Edit/Write tool results.

Notes

The implementation details of the new setting will depend on the specific requirements and constraints of the project, and may require additional design and testing to ensure a seamless user experience.

Recommendation

Apply workaround: Implement the proposed "hideDiffs" or "outputStyle: minimal" setting to provide users with control over the visibility of file edit diffs in the terminal output. This will allow users to reduce visual noise and focus on the most important information.

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