Skip to content

Speed up TUI Markdown layout - #34216

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24a6fd6fdace6ca948e613d67c130a3a7f8d1a4e
Jul 19, 2026
Merged

Speed up TUI Markdown layout#34216
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/24a6fd6fdace6ca948e613d67c130a3a7f8d1a4e

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 19, 2026

Copy link
Copy Markdown

Speed up TUI Markdown layout

What changed

  • Allocate Markdown table widths in bulk while preserving the existing column
    shrink priorities and balancing behavior.
  • Reuse flattened styled-line data during adaptive wrapping and detect URLs
    across span boundaries.
  • Remap wrapped terminal hyperlinks with a single forward scan.

Testing

  • Verify bulk table shrinking matches the previous one-cell-at-a-time results,
    including a token-heavy column with a million-character width.
  • Cover URLs split across styled spans and multiple links on indented Unicode
    lines.

## What changed

- Allocate Markdown table widths in bulk while preserving the existing column
  shrink priorities and balancing behavior.
- Reuse flattened styled-line data during adaptive wrapping and detect URLs
  across span boundaries.
- Remap wrapped terminal hyperlinks with a single forward scan.

## Testing

- Verify bulk table shrinking matches the previous one-cell-at-a-time results,
  including a token-heavy column with a million-character width.
- Cover URLs split across styled spans and multiple links on indented Unicode
  lines.

GitOrigin-RevId: 24a6fd6fdace6ca948e613d67c130a3a7f8d1a4e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/24a6fd6fdace6ca948e613d67c130a3a7f8d1a4e branch from 03e80a5 to aa98231 Compare July 19, 2026 19:34
@copyberry
copyberry Bot merged commit aa98231 into main Jul 19, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/24a6fd6fdace6ca948e613d67c130a3a7f8d1a4e branch July 19, 2026 19:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 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