Skip to content

Avoid redundant TUI redraws while streaming#34049

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9016175f97ef2db2edc2fd5ba13a4d731dc2d98c
Jul 18, 2026
Merged

Avoid redundant TUI redraws while streaming#34049
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9016175f97ef2db2edc2fd5ba13a4d731dc2d98c

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 18, 2026

Copy link
Copy Markdown

Avoid redundant TUI redraws while streaming

What changed

  • Redraw assistant and plan stream tails only when a completed line changes the visible tail.
  • Cache the first reasoning header and update the status indicator only when its visible state changes, while restoring the cached header if the indicator is recreated.
  • Keep regular commit ticks able to clear stale stream tails.

Testing

  • Add coverage for unchanged partial deltas, changed newline-delimited tails, reasoning-header redraws, recreated status indicators, stale plan tails, and history-line draw scheduling.

## What changed

- Redraw assistant and plan stream tails only when a completed line changes the visible tail.
- Cache the first reasoning header and update the status indicator only when its visible state changes, while restoring the cached header if the indicator is recreated.
- Keep regular commit ticks able to clear stale stream tails.

## Testing

- Add coverage for unchanged partial deltas, changed newline-delimited tails, reasoning-header redraws, recreated status indicators, stale plan tails, and history-line draw scheduling.

GitOrigin-RevId: 9016175f97ef2db2edc2fd5ba13a4d731dc2d98c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9016175f97ef2db2edc2fd5ba13a4d731dc2d98c branch from 9bd6fe9 to 35eaf3f Compare July 18, 2026 18:20
@copyberry
copyberry Bot merged commit 35eaf3f into main Jul 18, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9016175f97ef2db2edc2fd5ba13a4d731dc2d98c branch July 18, 2026 18:21
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 18, 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.