Skip to content

Preserve streamed output during capped history replay - #33093

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1c184ff561a50362daf11c1c629be59882f27a4a
Jul 14, 2026
Merged

Preserve streamed output during capped history replay#33093
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/1c184ff561a50362daf11c1c629be59882f27a4a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Preserve streamed output during capped history replay

Why

Stream consolidation can replace transcript cells while initial history replay is buffering capped display rows, leaving those rows stale and omitting the finalized output.

What changed

  • Discard buffered rows when required stream reflow occurs during capped initial replay and rebuild the capped tail from the canonical transcript after replay finishes.
  • Schedule the rebuild through the resize reflow path so it waits for an active transcript overlay to close.

Testing

Added coverage for consolidated Markdown output during capped initial replay, both with and without an active transcript overlay.

## Why

Stream consolidation can replace transcript cells while initial history replay is buffering capped display rows, leaving those rows stale and omitting the finalized output.

## What changed

- Discard buffered rows when required stream reflow occurs during capped initial replay and rebuild the capped tail from the canonical transcript after replay finishes.
- Schedule the rebuild through the resize reflow path so it waits for an active transcript overlay to close.

## Testing

Added coverage for consolidated Markdown output during capped initial replay, both with and without an active transcript overlay.

GitOrigin-RevId: 1c184ff561a50362daf11c1c629be59882f27a4a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/1c184ff561a50362daf11c1c629be59882f27a4a branch from 370f650 to effd58d Compare July 14, 2026 15:28
@copyberry
copyberry Bot merged commit effd58d into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/1c184ff561a50362daf11c1c629be59882f27a4a branch July 14, 2026 15:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet