Skip to content

Thread context card moves the transcript 132 px when its first row's data arrives #8531

Backlog

Description

@smsunarto

Summary

On a slow connection, opening a thread in a wide pane paints the transcript centred, then about 25 s later moves the whole 760 px column and the composer 132 px left without input. This happens when the pinned thread context card's first row (for example the Git plugin's Changes row) gets its data. The column moves while you are reading it.

Versions and environment

  • bb from source at main (e0c49e2e5d; the code below is unchanged at 4d7a9af609), pnpm start:worktree, Linux, Chrome 157.
  • Built-in plugins only. threadContextCard.pinned at its default (true).
  • Chrome DevTools throttling: Slow 4G (562.5 ms RTT, 1.44 Mbps down), cache disabled, 4× CPU. Viewport 1440×900, sidebar open.

Steps to reproduce

  1. Create a project on a git repo with an uncommitted change, and a thread in its project checkout with a reply long enough to fill the pane.
  2. In Chrome DevTools, set Slow 4G, disable the cache and set 4× CPU slowdown. Observe layout-shift entries (a buffered PerformanceObserver).
  3. Open the thread at 1440×900.

Expected vs actual

Expected: the transcript keeps the position it first painted at; the card fills in place.

Actual: when the Changes row renders, the transcript's scroll content gets padding-inline-end and the column re-centres 132 px to the left (x 500 → 368, w 760). Measured CLS over two cold loads each:

Thread CLS Card-driven shift
long reply 0.0645 / 0.0645 0.0644 at ~25–26 s
short reply 0.0538 / 0.0538 0.0538 at ~25.5 s
14 KB reply 0.0675 / 0.0913 0.0674 at ~27–28 s
GenUI reply 0.0544 / 0.0538 0.0538 at ~25.3 s
localStorage cleared 0.0644 / 0.0645 0.0645 at ~25 s

Evidence

Where it comes from:

What you ruled out

  • Not Thread context card and transcript inset lag one frame behind a width change #7496 (closed): that was a one-frame lag on a width change. This happens at a fixed width, when data arrives.
  • Not a font swap: Inter finishes loading at about 5 s, before the transcript paints.
  • A thread whose card is already filled by core's Child threads section before the transcript paints does not shift. The shift needs a row whose data arrives after first paint.

Suggested priority and effort

Hits every wide thread pane on a slow connection with the card pinned (the default). No data loss. Small fix: base the reservation on state known before first paint (the pin preference, pane width and registered items), not on row content.

AGENT GENERATED

Activity

  1. added theissue type on Dec 2, 2026
  2. added
    ui
    confirmed-repro
    on Dec 2, 2026
  3. bb-slop-cop commented on Dec 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Bug · Priority: Medium · Effort: Low · Labels: ui, confirmed-repro

    Reproduction report — REPRODUCED, high confidence. In two clean checkouts, the first context row added 274 px of end padding and moved the transcript and composer 137 px left without a pane resize. The focused test confirmed that the reservation changes only after a DOM observer detects row content.

    No new PR: #8532 is already open and linked to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions