Skip to content

[BUG] VSCode extension: input/permission prompts force-scroll the chat to the bottom while reading #72117

Description

@Kleywalker

What happens

In the VSCode extension chat panel, the view is force-scrolled to the bottom
whenever the extension asks me for input — for example a permission/approval
prompt or a follow-up question. If I had scrolled up to re-read an earlier
part of a long response, the appearance of that prompt yanks me straight back
to the bottom, interrupting my reading. When prompts come in succession this
makes it effectively impossible to read earlier content.

Image

Expected behavior

When an input prompt appears and I have scrolled up, the chat should not jump
to the bottom. Instead, keep my scroll position and show a non-intrusive
indicator (e.g. "input required" badge / jump-to-bottom button), so I can
finish reading and scroll down when I'm ready.

At minimum this should be configurable. The general "stick-to-bottom" pattern
(claude.ai / ChatGPT / VS Code's terminal) applies:

  • Auto-scroll follows output by default.
  • A single upward scroll gesture pauses auto-scroll ("I'm reading").
  • Auto-scroll resumes only once I scroll back to the very bottom myself.

Why this likely happens

The main trigger is the input prompt itself: when it appears, the panel seems
to force-scroll to the bottom to reveal the prompt, without honoring my
current scroll position. This happens with a regular mouse (Logitech MX
Master 3S for Mac), not just a trackpad, so it is not about small scroll
deltas.

The robust fix is a persistent "stick to bottom" flag: set it to false as
soon as the user scrolls up (away from the bottom), and set it back to true
only when the user returns to the very bottom. Auto-scroll — including the
scroll triggered by a new input prompt — should run only while that flag is
true.

Environment

  • Claude Code VSCode extension (graphical panel): anthropic.claude-code 2.1.195
  • Claude Code agent: 2.1.126, model Claude Opus 4.8 (claude-opus-4-8)
  • VS Code: 1.125.1 (commit fcf604774b9f2674b473065736ee75077e256353, x64)
  • macOS: 26.5.1 (build 25F80)
  • Input device: Logitech MX Master 3S for Mac (mouse)

Related (all closed, recurring problem)

Reopening/tracking this would be appreciated.


Note: English is my second language, not my native one, so I wrote this
report together with Claude Code (agent version 2.1.126, Claude Opus 4.8) to
make it clear and precise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions