Skip to content

Agents: multiline approval row grows to thousands of pixels during sticky scrolling #338189

Description

Bug

An expanded session with a multiline pending approval can grow from 98px to 3,218px when its row becomes sticky while scrolling through child chats. The title is displaced into a mostly empty row, and the approval preview moves below the viewport.

Reproduce automatically

Standalone PowerShell script — tested end to end with a fresh local Chrome profile.

Requirements: Windows, PowerShell 7, global dbgjs on PATH, Chrome or Edge, and internet access. No checkout, sign-in, agent host, or actual tool execution is required.

Invoke-WebRequest 'https://gist.githubusercontent.com/hediet/a3c33b5506f287e75dd4e567b6179e2f/raw/304a130800925d71bb00be9a20ec6cf52778276c/repro-vscode-338189.ps1' -OutFile .\repro-vscode-338189.ps1
pwsh -File .\repro-vscode-338189.ps1

The script:

  • Launches a visible Chrome/Edge window through dbgjs, using an isolated profile.
  • Opens https://vscode.dev/agents?vscode-quality=insider and injects fake sessions into the real list/model: one three-line pending approval and 30 expanded child chats.
  • Scrolls the list and compares original CSS, a temporary fix, and original CSS again. It asserts the results and saves bug.png and results.json in the printed output directory.
  • Leaves the browser open with the bug visible. Close it when finished; reloading removes the in-memory fixture. The sign-in overlay is hidden only for this synthetic demo.

The capture is pinned to Insiders commit 4a6a3612a562c50f54c2bd5211f0ea42915b974e; the script explicitly stops if the deployed build changes rather than using incorrect debugger offsets.

Reproduce manually

  1. Use the compact Agents sessions list with sticky scroll enabled.
  2. Expand a session with enough child chats to scroll through them.
  3. Have that session's main chat awaiting approval of a command spanning at least three preview lines. Leave it pending.
  4. Scroll down through its children so the parent becomes sticky, then back up. Repeat if necessary.

Expected: The row remains bounded at the normal title-plus-preview height.

Actual: The row height grows dramatically. A flat list without expanded child chats did not reproduce this; sticky parent rendering is the important prerequisite.

Diagnosis and verified fix

StickyScrollWidget.probeDynamicHeights clears the sticky row's height and measures the approval preview before asynchronous code-block rendering completes. Its three placeholder blocks inherit the list row's line-height (the whole row height). The widget writes the inflated measurement back as height/line-height and propagates it to the main list, creating a feedback loop.

Measured progression: 98 -> 338 -> 1,058 -> 3,218px. The tokenized preview later shrinks to about 57px, but the inflated row height remains.

Resetting line-height on the shared approval container prevents the feedback:

.session-approval-row {
    line-height: 18px;
}
Configuration Final row heights across three scroll cycles
Original CSS 3,218 / 3,218 / 3,218px
Explicit approval line-height 98 / 98 / 98px
Override removed 3,218 / 3,218 / 3,218px

No artificial tokenization delay or renderer modification was needed. Regression coverage should exercise an expanded sticky session with a multiline approval, not just flat-list recycling.

Relevant code: sessionsList.css, renderApprovalRowContent, and StickyScrollWidget.

Environment

  • Windows; web Insiders 1.140.0-insider, commit 4a6a3612a562c50f54c2bd5211f0ea42915b974e
  • Fresh Chrome 153.0.8010.53; dbgjs 0.1.0 (285cd647d9e8c7e0cca2f52cc30278fb7a3a4412)
  • Also reproduced in desktop Insiders commit a3b0c130bdeeb42c8de4817bd4f5b00b051e8393

Screenshot

Synthetic web repro, scrolled to show the title displaced within the oversized selected row:

Synthetic session row expanded to 3218 pixels during sticky scrolling

Activity

  1. added
    bug
    on Sep 27, 2026
  2. changed the title [-]Agents: pending-approval session row grows to thousands of pixels when scrolling[/-] [+]Agents: multiline approval row grows to thousands of pixels during sticky scrolling[/+] on Sep 27, 2026
  3. added 2 commits that reference this issue on Oct 18, 2026
    a6936c3
    2de8dcf
  4. added this to the 1.143.0 milestone on Oct 18, 2026
  5. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-windowbuginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions