Skip to content

Render TUI composer tabs as single-column spaces - #33239

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/06d8489621d2f8b0823c7a004079d152dd0cab66
Jul 15, 2026
Merged

Render TUI composer tabs as single-column spaces#33239
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/06d8489621d2f8b0823c7a004079d152dd0cab66

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 15, 2026

Copy link
Copy Markdown

Render TUI composer tabs as single-column spaces

Why

Tabs in composer text could render at a different width from the cursor and
wrapping calculations, causing misaligned cursors and unexpected line breaks.

What changed

  • Replace tabs with single-column spaces for wrapping and rendering while
    preserving the original editable text and byte ranges.
  • Apply the same display representation to base text, styled elements, and
    highlighted ranges.

Testing

Add coverage for cursor alignment, rendered output, and wrapping of text that
contains tabs.

## Why

Tabs in composer text could render at a different width from the cursor and
wrapping calculations, causing misaligned cursors and unexpected line breaks.

## What changed

- Replace tabs with single-column spaces for wrapping and rendering while
  preserving the original editable text and byte ranges.
- Apply the same display representation to base text, styled elements, and
  highlighted ranges.

## Testing

Add coverage for cursor alignment, rendered output, and wrapping of text that
contains tabs.

GitOrigin-RevId: 06d8489621d2f8b0823c7a004079d152dd0cab66
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/06d8489621d2f8b0823c7a004079d152dd0cab66 branch from ae168aa to fca51f6 Compare July 15, 2026 04:18
@copyberry
copyberry Bot merged commit fca51f6 into main Jul 15, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/06d8489621d2f8b0823c7a004079d152dd0cab66 branch July 15, 2026 04:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 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.

4 participants