claude-code - 💡(How to fix) Fix [BUG] Permission preview flickers / scroll snaps back when reviewing long Write or Edit tool-call content

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…

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Impact

  • The user cannot verify what Claude is about to write before approving.
  • The only current workaround is to ask Claude to paste the full content into the chat as a code block first (where scrolling works normally), then approve the actual tool call. This forces an extra round-trip per write and incurs unnecessary token cost to work around a UI limitation.
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?

Actual behavior

  1. The preview pane flickers and the scroll position snaps back down.
  2. The effect is worst when trying to reach the top of long content — the user cannot stabilize the view to read the beginning of the file.

Impact

  • The user cannot verify what Claude is about to write before approving.
  • The only current workaround is to ask Claude to paste the full content into the chat as a code block first (where scrolling works normally), then approve the actual tool call. This forces an extra round-trip per write and incurs unnecessary token cost to work around a UI limitation.

What Should Happen?

The preview pane should support smooth, persistent scrolling in both directions so the entire content can be reviewed before clicking Yes/No.

Error Messages/Logs

Steps to Reproduce

  1. Ask Claude to perform a Write or Edit that produces a large block of content (e.g. a new file or edit with 100+ lines).
  2. When the permission prompt appears, try to scroll the preview pane upward to read the top of the proposed content.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.145 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Sample :

https://github.com/user-attachments/assets/99f059a8-237e-4806-be20-a1688efcef49

Suggested Fix:

  1. Make the preview pane fully scrollable without focus stealing or layout reflow.
  2. Optionally add an "Expand / View in editor" button for very long diffs so the user can review in a stable view.

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