Auto-scroll hides context when permission dialog appears

Resolved 💬 4 comments Opened Mar 14, 2026 by mh0lt Closed Apr 11, 2026

Problem

When Claude Code is streaming output and a permission dialog appears (e.g., asking to approve a Bash command), the output continues to auto-scroll. By the time the user sees the permission prompt, the commentary explaining why the tool is being called has scrolled off screen.

This makes it impossible to review the reasoning before approving or denying the action — which is exactly when you most need that context.

Steps to Reproduce

  1. Give Claude Code a multi-step task that requires tool approvals
  2. Let it stream output (explanations, code analysis, etc.)
  3. When a permission dialog appears, try to read the preceding commentary

Expected Behavior

When a permission dialog appears, the UI should either:

  • Pin/anchor the view so the user can see the commentary immediately preceding the permission prompt
  • Stop auto-scrolling when a permission prompt is waiting for input
  • Or at minimum, provide a way to scroll back while the dialog is active

Current Behavior

The output stream pushes the context off screen. The user sees the permission dialog but has no easy way to review what led to it, making informed approval/denial difficult.

Environment

  • Claude Code VSCode extension
  • Also affects the CLI terminal

Workaround

Pre-approve commonly used tools via allowedTools in settings to reduce the frequency of permission dialogs. But this defeats the purpose of having permission controls for review.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗