Skip to content

Fix resume transcript preview line selection - #38605

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/576afe37d034b32db363691bd4f401815fffaea7
Aug 14, 2026
Merged

Fix resume transcript preview line selection#38605
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/576afe37d034b32db363691bd4f401815fffaea7

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 14, 2026

Copy link
Copy Markdown

Fix resume transcript preview line selection

What changed

  • Scan legacy and paginated transcript items newest-first and stop after collecting the six newest nonblank preview lines.
  • Keep paging through bounded paginated history when newer items do not produce visible preview text, while preserving chronological display order and assistant markdown rewrites.
  • Move transcript preview loading into a focused module and add coverage for reverse scanning, legacy/paginated parity, and paging past invisible items.

## What changed

- Scan legacy and paginated transcript items newest-first and stop after collecting the six newest nonblank preview lines.
- Keep paging through bounded paginated history when newer items do not produce visible preview text, while preserving chronological display order and assistant markdown rewrites.
- Move transcript preview loading into a focused module and add coverage for reverse scanning, legacy/paginated parity, and paging past invisible items.

GitOrigin-RevId: 576afe37d034b32db363691bd4f401815fffaea7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/576afe37d034b32db363691bd4f401815fffaea7 branch from b8f6f2e to 3b3a91c Compare August 14, 2026 16:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b8f6f2e1e4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +197 to +200
assert_eq!(legacy, paginated);
assert_eq!(
paginated,
vec![

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add snapshot coverage for the corrected preview

When a legacy or paginated history contains more than six visible lines, this test verifies only the loader’s internal vector, so it does not provide the required snapshot coverage for the changed lines users see in the expanded resume picker. The existing expanded_session_snapshot manually injects a prebuilt two-line vector and cannot catch regressions in the corrected selection or ordering; add or extend an insta snapshot that renders the loaded preview.

AGENTS.md reference: AGENTS.md:L184-L187

Useful? React with 👍 / 👎.

@copyberry
copyberry Bot merged commit 3b3a91c into main Aug 14, 2026
13 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/576afe37d034b32db363691bd4f401815fffaea7 branch August 14, 2026 16:40
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 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