Skip to content

fix(ui): keep the conversation start visible as rows measure - #199746

Merged
steipete merged 1 commit into
mainfrom
ci/437467-lightbox
Nov 15, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/437467-lightbox

Conversation

@steipete

@steipete steipete commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes chat jumping away from the beginning when an offscreen predecessor receives its first measured size after an upward scroll.

User Impact

Readers stay at the start of a conversation while image rows finish measuring. No migration or configuration change is required.

Why This Change Was Made

The native wheel reaches zero, but the transcript reader anchor subsequently compensates for a prepared predecessor and scrolls down 57 px. First measurements now respect an unowned native zero, matching the existing resize handling. Explicit restoration, prepend and interaction anchors retain ownership.

This is the root cause of the image navigation failure in scheduled CI 43746768156. The existing lightbox feature PR #198825 leaves this case and scroll owner unchanged.

Evidence

  • Unchanged chat-image-lightbox.e2e.test.ts case “navigates inline, user, and assistant images across turns in transcript order”: reproduces 57 versus 0 on main; passes with the fix (2.3 s).
  • New native Chromium regression fails at 80 versus 0 on the original owner and passes with the fix; all eight reader-anchor browser cases pass.
  • Default pnpm tsgo:ui (tsrs), scoped lint, formatting and diff checks pass.
  • Isolated local autoreview, P0–P2, covers the final local change against bdbf30094ec879e410523f95294ff7ff4a9baa4c with full owner and caller context: no actionable findings. Local ClawSweeper's built entrypoints were unavailable; hosted review follows the repository route.

The change adds four production lines and one focused native regression, using the existing reader-anchor owner. E2E assertions, tolerances and timeouts are unchanged.

Before: the first image is clipped after the late 57 px scroll.

Before: first transcript image clipped after scroll compensation

After: the native start remains visible as image measurements land.

After: native conversation start remains visible

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review November 15, 2026 20:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T20:05:35.371645Z 8629776 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 15, 2026 20:06
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@steipete
steipete merged commit 113d624 into main Nov 15, 2026
151 of 156 checks passed
@steipete
steipete deleted the ci/437467-lightbox branch November 15, 2026 20:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

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

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant