codex - 💡(How to fix) Fix Cursor jumps between UI regions in third-party terminals (Tabby, Wave) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17823Fetched 2026-04-15 06:27:33
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Timeline (top)
labeled ×4commented ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI are you using?

codex-cli 0.120.0

What subscription do you have?

free

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64 (Windows 11)

What terminal emulator and version are you using?

  • Tabby (latest)
  • Wave Terminal (latest)
  • Windows Terminal (for comparison)
  • Warp (for comparison)
  • System default cmd.exe and pwsh

What issue are you seeing?

When running Codex CLI in certain third-party terminals (Tabby, Wave), the cursor rapidly jumps between multiple UI regions:

  1. The Working (XXs · esc to interrupt) status line
  2. The > input command line
  3. The model info line (e.g., gpt-5.4 high · ~)

This makes it difficult to see where the actual input cursor is and is visually distracting.

What steps can reproduce the bug?

  1. Open Tabby or Wave terminal
  2. Run codex
  3. Send a prompt and wait for the model to process
  4. Observe the cursor jumping between the status line, input line, and bottom info bar

Expected behavior

The cursor should remain at the input field, as it does in stock Windows terminals, Windows Terminal, and Warp.

Additional information

TerminalShellBehavior
System default terminalcmd/pwsh✅ Normal
Windows Terminalcmd/pwsh✅ Normal
Warpcmd/pwsh✅ Normal
Tabbycmd❌ Cursor jumps
Tabbypwsh❌ Cursor jumps
Wavecmd❌ Cursor jumps
Wavepwsh❌ Cursor jumps

The issue occurs in Tabby and Wave regardless of shell (cmd or pwsh). System default terminal, Windows Terminal, and Warp all work correctly. This suggests the problem is related to how Codex's TUI handles ANSI escape sequences for cursor positioning in specific terminal emulators.

This appears related to #16687 but this report adds more terminal coverage, notably that Warp works correctly while Tabby and Wave do not.

extent analysis

TL;DR

The issue can likely be mitigated by adjusting how Codex CLI handles ANSI escape sequences for cursor positioning in specific terminal emulators like Tabby and Wave.

Guidance

  • Investigate the differences in how Tabby and Wave terminals handle ANSI escape sequences compared to Windows Terminal and Warp, which work correctly.
  • Review the Codex CLI code for any terminal-specific handling of cursor positioning to identify potential inconsistencies.
  • Consider testing with other terminals to further isolate the issue and determine if it's specific to certain terminal emulators or a broader issue with Codex CLI's handling of ANSI escape sequences.
  • Look into the possibility of using a library or utility that normalizes ANSI escape sequence handling across different terminals to simplify the Codex CLI codebase.

Example

No specific code example can be provided without access to the Codex CLI source code, but investigating the use of a terminal-agnostic library for handling ANSI escape sequences could be beneficial.

Notes

The issue seems to be related to how specific terminals (Tabby and Wave) handle ANSI escape sequences, which suggests that a solution might involve either adjusting Codex CLI to better handle these sequences in a terminal-agnostic way or working with the terminal emulators to correct their handling of these sequences.

Recommendation

Apply a workaround by potentially using a different terminal emulator that is known to work correctly with Codex CLI, such as Windows Terminal or Warp, until a more permanent fix can be implemented in Codex CLI to handle ANSI escape sequences more robustly across various terminals.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The cursor should remain at the input field, as it does in stock Windows terminals, Windows Terminal, and Warp.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING