Skip to content

Avoid querying terminal size on every TUI redraw - #36482

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9d83dbab50d7a038bd59b4c66c13abcac69ddc79
Aug 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9d83dbab50d7a038bd59b4c66c13abcac69ddc79

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

Avoid querying terminal size on every TUI redraw

What changed

  • Carry dimensions on resize events and reuse the cached screen size for ordinary draws.
  • Refresh terminal geometry after resize settling, process resume, and external program execution.
  • Pass the resolved size through transcript reflow, viewport updates, and standalone TUI screens so each frame uses consistent dimensions.

Testing

  • Cover cached draws, resize-driven rendering, settled-size rechecks, resume refreshes, and alternate-screen size updates.

## What changed

- Carry dimensions on resize events and reuse the cached screen size for ordinary draws.
- Refresh terminal geometry after resize settling, process resume, and external program execution.
- Pass the resolved size through transcript reflow, viewport updates, and standalone TUI screens so each frame uses consistent dimensions.

## Testing

- Cover cached draws, resize-driven rendering, settled-size rechecks, resume refreshes, and alternate-screen size updates.

GitOrigin-RevId: 9d83dbab50d7a038bd59b4c66c13abcac69ddc79
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9d83dbab50d7a038bd59b4c66c13abcac69ddc79 branch from c7beb85 to 7dc1856 Compare August 1, 2026 14:33
@copyberry
copyberry Bot merged commit 7dc1856 into main Aug 1, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9d83dbab50d7a038bd59b4c66c13abcac69ddc79 branch August 1, 2026 14:34
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 1, 2026

This branch was previously deployed

1 inactive deployment
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.

3 participants