Repository navigation
Render standalone display math in the TUI - #45612
Merged
copyberry[bot] merged 1 commit intoSep 15, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why The TUI renders supported inline math as Unicode but leaves display equations to ordinary Markdown rendering. Display fractions need spatial layout, and streamed equations must remain mutable while their closing delimiter is pending. ## What changed - Render supported standalone `$$...$$` and `\[...\]` equations as Unicode, with stacked fractions and aligned baselines. - Fall back to source for unsupported expressions, nested fractions, and spatial layouts that exceed the available width or occur inside lists or block quotes. - Preview unfinished display math as wrapped source and hold it out of scrollback within the conversion budget, then render it when closed. - Preserve display delimiter boundaries across incremental rendering and bound lookahead for rejected openers so shell `echo $$` does not retain the entire response. ## Testing Add snapshots and regression tests for display layouts, narrow widths, literal fallback, streaming closure, resize reflow, raw source preservation, shell dollars, and bounded incremental rendering. GitOrigin-RevId: ab54675f2e27a243f5d7165c76d9d7355f9fabd1
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/ab54675f2e27a243f5d7165c76d9d7355f9fabd1
branch
from
September 15, 2026 05:44
b44b134 to
a8964cb
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/ab54675f2e27a243f5d7165c76d9d7355f9fabd1
branch
September 15, 2026 05:44
georgerodriguez2000
temporarily deployed
to
issue-triage
September 15, 2026 06:09 — with
GitHub Actions
Inactive
georgerodriguez2000
temporarily deployed
to
issue-triage
September 15, 2026 06:09 — with
GitHub Actions
Inactive
georgerodriguez2000
temporarily deployed
to
issue-triage
September 15, 2026 06:09 — with
GitHub Actions
Inactive
iulian-ghinea
temporarily deployed
to
issue-triage
September 15, 2026 06:16 — with
GitHub Actions
Inactive
iulian-ghinea
temporarily deployed
to
issue-triage
September 15, 2026 06:16 — with
GitHub Actions
Inactive
iulian-ghinea
temporarily deployed
to
issue-triage
September 15, 2026 06:16 — with
GitHub Actions
Inactive
iulian-ghinea
temporarily deployed
to
issue-triage
September 15, 2026 06:17 — with
GitHub Actions
Inactive
Hapatzchan
temporarily deployed
to
issue-triage
September 15, 2026 06:22 — with
GitHub Actions
Inactive
Hapatzchan
temporarily deployed
to
issue-triage
September 15, 2026 06:22 — with
GitHub Actions
Inactive
Hapatzchan
temporarily deployed
to
issue-triage
September 15, 2026 06:22 — with
GitHub Actions
Inactive
Mentat-Uran
temporarily deployed
to
issue-triage
September 15, 2026 06:30 — with
GitHub Actions
Inactive
Mentat-Uran
temporarily deployed
to
issue-triage
September 15, 2026 06:30 — with
GitHub Actions
Inactive
Mentat-Uran
temporarily deployed
to
issue-triage
September 15, 2026 06:30 — with
GitHub Actions
Inactive
yuantianyu177
temporarily deployed
to
issue-triage
September 15, 2026 06:31 — with
GitHub Actions
Inactive
yuantianyu177
temporarily deployed
to
issue-triage
September 15, 2026 06:31 — with
GitHub Actions
Inactive
yuantianyu177
temporarily deployed
to
issue-triage
September 15, 2026 06:31 — with
GitHub Actions
Inactive
yuantianyu177
temporarily deployed
to
issue-triage
September 15, 2026 06:32 — with
GitHub Actions
Inactive
kamleshsahu
temporarily deployed
to
issue-triage
September 15, 2026 06:36 — with
GitHub Actions
Inactive
kamleshsahu
temporarily deployed
to
issue-triage
September 15, 2026 06:36 — with
GitHub Actions
Inactive
kamleshsahu
temporarily deployed
to
issue-triage
September 15, 2026 06:36 — with
GitHub Actions
Inactive
kamleshsahu
temporarily deployed
to
issue-triage
September 15, 2026 06:37 — with
GitHub Actions
Inactive
sainte67
temporarily deployed
to
issue-triage
September 15, 2026 06:57 — with
GitHub Actions
Inactive
sainte67
temporarily deployed
to
issue-triage
September 15, 2026 06:57 — with
GitHub Actions
Inactive
sainte67
temporarily deployed
to
issue-triage
September 15, 2026 06:57 — with
GitHub Actions
Inactive
sainte67
temporarily deployed
to
issue-triage
September 15, 2026 06:58 — with
GitHub Actions
Inactive
seaworld008
temporarily deployed
to
issue-triage
September 15, 2026 07:08 — with
GitHub Actions
Inactive
seaworld008
temporarily deployed
to
issue-triage
September 15, 2026 07:08 — with
GitHub Actions
Inactive
seaworld008
temporarily deployed
to
issue-triage
September 15, 2026 07:08 — with
GitHub Actions
Inactive
seaworld008
temporarily deployed
to
issue-triage
September 15, 2026 07:09 — with
GitHub Actions
Inactive
shijialiqixing-hub
temporarily deployed
to
issue-triage
September 15, 2026 07:12 — with
GitHub Actions
Inactive
shijialiqixing-hub
temporarily deployed
to
issue-triage
September 15, 2026 07:12 — with
GitHub Actions
Inactive
shijialiqixing-hub
temporarily deployed
to
issue-triage
September 15, 2026 07:12 — with
GitHub Actions
Inactive
atamakawa01-lab
temporarily deployed
to
issue-triage
September 15, 2026 07:14 — with
GitHub Actions
Inactive
atamakawa01-lab
temporarily deployed
to
issue-triage
September 15, 2026 07:14 — with
GitHub Actions
Inactive
atamakawa01-lab
temporarily deployed
to
issue-triage
September 15, 2026 07:14 — with
GitHub Actions
Inactive
surajinacademia
temporarily deployed
to
issue-triage
September 15, 2026 07:17 — with
GitHub Actions
Inactive
surajinacademia
temporarily deployed
to
issue-triage
September 15, 2026 07:17 — with
GitHub Actions
Inactive
surajinacademia
temporarily deployed
to
issue-triage
September 15, 2026 07:17 — with
GitHub Actions
Inactive
surajinacademia
temporarily deployed
to
issue-triage
September 15, 2026 07:18 — with
GitHub Actions
Inactive
agrigoriev
temporarily deployed
to
issue-triage
September 15, 2026 07:21 — with
GitHub Actions
Inactive
agrigoriev
temporarily deployed
to
issue-triage
September 15, 2026 07:21 — with
GitHub Actions
Inactive
This branch was previously deployed
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 standalone display math in the TUI
Why
The TUI renders supported inline math as Unicode but leaves display equations to ordinary Markdown rendering. Display fractions need spatial layout, and streamed equations must remain mutable while their closing delimiter is pending.
What changed
$$...$$and\[...\]equations as Unicode, with stacked fractions and aligned baselines.echo $$does not retain the entire response.Testing
Add snapshots and regression tests for display layouts, narrow widths, literal fallback, streaming closure, resize reflow, raw source preservation, shell dollars, and bounded incremental rendering.