Skip to content

Anchor transcript scrolling to entries and bound viewport rendering - #46721

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/105cb66f93c742ee537152419060a87f55896b44
Sep 19, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/105cb66f93c742ee537152419060a87f55896b44

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Anchor transcript scrolling to entries and bound viewport rendering

Why

Transcript-wide row offsets depend on content that can change during pagination, streaming, and resizing. Computing an exact scroll percentage also requires laying out offscreen history.

What changed

  • Replace the transcript overlay's generic pager with TranscriptView, tracking entry identity and a display-row offset through history updates and stream consolidation. Clamp offsets within the entry on resize or replacement.
  • Render through bounded layout caches and show 100% only when following the latest output with no unloaded history.
  • Keep the reading position while Home loads older pages, then jump to the beginning when loading completes.
  • Refresh animations whenever live output is visible, including while scrolled up.
  • Reveal selected prompts when backtracking and highlight their text without reversing gutters or padding.

Testing

Add regression coverage for reading anchors across pagination and live-output completion, resize and consolidation, prompt visibility and highlighting, navigation before the first draw, and avoiding offscreen formatting for the percentage indicator.

…46721)

## Why

Transcript-wide row offsets depend on content that can change during pagination, streaming, and resizing. Computing an exact scroll percentage also requires laying out offscreen history.

## What changed

- Replace the transcript overlay's generic pager with `TranscriptView`, tracking entry identity and a display-row offset through history updates and stream consolidation. Clamp offsets within the entry on resize or replacement.
- Render through bounded layout caches and show `100%` only when following the latest output with no unloaded history.
- Keep the reading position while `Home` loads older pages, then jump to the beginning when loading completes.
- Refresh animations whenever live output is visible, including while scrolled up.
- Reveal selected prompts when backtracking and highlight their text without reversing gutters or padding.

## Testing

Add regression coverage for reading anchors across pagination and live-output completion, resize and consolidation, prompt visibility and highlighting, navigation before the first draw, and avoiding offscreen formatting for the percentage indicator.

GitOrigin-RevId: 105cb66f93c742ee537152419060a87f55896b44
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/105cb66f93c742ee537152419060a87f55896b44 branch from 2d7080f to a63ae00 Compare September 19, 2026 21:43
@copyberry
copyberry Bot merged commit a63ae00 into main Sep 19, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/105cb66f93c742ee537152419060a87f55896b44 branch September 19, 2026 21:43
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant