Skip to content

Move the TUI cursor before showing it - #40166

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2df277ba315bef4a7a56c11ecb78fcd52c354ac5
Aug 23, 2026
Merged

Move the TUI cursor before showing it#40166
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2df277ba315bef4a7a56c11ecb78fcd52c354ac5

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 23, 2026

Copy link
Copy Markdown

Move the TUI cursor before showing it

Why

Showing the cursor before moving it can briefly expose it at its previous
position during a draw.

What changed

Reorder terminal cursor updates so the cursor is positioned before it is made
visible.

Testing

Add a regression test that verifies the cursor move escape sequence is emitted
before the show-cursor sequence.

## Why

Showing the cursor before moving it can briefly expose it at its previous
position during a draw.

## What changed

Reorder terminal cursor updates so the cursor is positioned before it is made
visible.

## Testing

Add a regression test that verifies the cursor move escape sequence is emitted
before the show-cursor sequence.

GitOrigin-RevId: 2df277ba315bef4a7a56c11ecb78fcd52c354ac5
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2df277ba315bef4a7a56c11ecb78fcd52c354ac5 branch from 84f8969 to 1e6185e Compare August 23, 2026 00:55
@copyberry
copyberry Bot merged commit 1e6185e into main Aug 23, 2026
27 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2df277ba315bef4a7a56c11ecb78fcd52c354ac5 branch August 23, 2026 00:56
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 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.

3 participants