codex - 💡(How to fix) Fix Support mouse click to move cursor in TUI input box

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…

Add mouse event handling to the Codex CLI's TUI input box so users can click directly to move the cursor, instead of relying on keyboard navigation only.

Root Cause

This was previously requested in #14315, which was closed due to insufficient upvotes. Reopening / re-requesting because the need still stands and modern terminals increasingly support this interaction (Ghostty 1.3.0+, Kitty, WezTerm, etc.).

RAW_BUFFERClick to expand / collapse

Summary

Add mouse event handling to the Codex CLI's TUI input box so users can click directly to move the cursor, instead of relying on keyboard navigation only.

Background

This was previously requested in #14315, which was closed due to insufficient upvotes. Reopening / re-requesting because the need still stands and modern terminals increasingly support this interaction (Ghostty 1.3.0+, Kitty, WezTerm, etc.).

Use case

When editing a long prompt in the Codex CLI input box, repositioning the cursor with arrow keys / Ctrl+A / Ctrl+E is slow. Clicking the desired position with the mouse — like in any GUI text field or shells such as Fish 4.1+ / Nushell 0.111+ inside Ghostty — would be significantly faster.

Proposal

Enable mouse capture in the TUI and translate click coordinates to cursor positions inside the multiline input widget. Compatible with terminals that support OSC 133 click-events / cl=line or Kitty's click_events.

References

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Support mouse click to move cursor in TUI input box