Render streamed Markdown incrementally - #34045
Merged
copyberry[bot] merged 1 commit intoJul 18, 2026
Merged
Conversation
## Why Streaming TUI responses repeatedly rendered the entire accumulated Markdown source for each committed delta, including blocks whose output could no longer change. ## What changed - Retain rendered output for completed top-level Markdown blocks and rerender only the final mutable block as new source arrives. - Track block boundaries during the existing Markdown parser pass and map them through table-fence normalization. - Preserve canonical full rendering when source-wide state may affect earlier output, including reference link definitions and inline visualizations, and when the width or render mode changes. - Append raw-mode lines directly while preserving blank lines. ## Testing Added coverage that compares incremental output with full rendering across paragraphs, headings, lists, block quotes, code fences, tables, HTML blocks, links, visualizations, render-mode changes, and normalized table fences. GitOrigin-RevId: 748171c4ed58923329b59c48ea3c2afa4819ec88
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/748171c4ed58923329b59c48ea3c2afa4819ec88
branch
from
July 18, 2026 18:02
aaa55d7 to
537e69a
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/748171c4ed58923329b59c48ea3c2afa4819ec88
branch
July 18, 2026 18:03
Michael-IT001
temporarily deployed
to
issue-triage
July 18, 2026 18:05 — with
GitHub Actions
Inactive
Michael-IT001
temporarily deployed
to
issue-triage
July 18, 2026 18:05 — with
GitHub Actions
Inactive
Michael-IT001
temporarily deployed
to
issue-triage
July 18, 2026 18:05 — with
GitHub Actions
Inactive
Michael-IT001
temporarily deployed
to
issue-triage
July 18, 2026 18:06 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Render streamed Markdown incrementally
Why
Streaming TUI responses repeatedly rendered the entire accumulated Markdown source for each committed delta, including blocks whose output could no longer change.
What changed
Testing
Added coverage that compares incremental output with full rendering across paragraphs, headings, lists, block quotes, code fences, tables, HTML blocks, links, visualizations, render-mode changes, and normalized table fences.