Skip to content

Panic when using Option + <- to navigate (related to en-dash?) #3588

Closed

Description

@smehmood

What version of Codex is running?

codex-cli 0.34.0

Which model were you using?

gpt-5 high

What platform is your computer?

Darwin 24.5.0 arm64 arm

What steps can reproduce the bug?

Using ghostty on macOS, run

COLORBT_SHOW_HIDDEN=1 RUST_BACKTRACE=full codex

Type:

Look at 'Screenshot 2025-09-14 at 1.37.16 PM.png

Then hit Option + <–

Ghostty version:

ghostty --version
Ghostty 1.1.3

Version

  • version: 1.1.3
  • channel: stable
    Build Config
  • Zig version: 0.13.0
  • build mode : builtin.OptimizeMode.ReleaseFast
  • app runtime: apprt.Runtime.none
  • font engine: font.main.Backend.coretext
  • renderer : renderer.Metal
  • libxev : main.Backend.kqueue

What is the expected behavior?

Cursor moves to the single-quote ' character.

What do you see instead?

Observe a panic

▌Look at 'Screenshot 2025-09-14 at 1.37.16 PM.pngThe application panicked (crashed).
Message: byte index 42 is not a char boundary; it is inside '\u{202f}' (bytes 41..44) of Look at 'Screenshot 2025-09-14 at 1.37.16 PM.png
Location: tui/src/bottom_pane/textarea.rs:144

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: __mh_execute_header
at :
2: __mh_execute_header
at :
3: __mh_execute_header
at :
4: __mh_execute_header
at :
5: __mh_execute_header
at :
6: __mh_execute_header
at :
7: __mh_execute_header
at :
8: __mh_execute_header
at :
9: __mh_execute_header
at :
10: __mh_execute_header
at :
11: __mh_execute_header
at :
12: __mh_execute_header
at :
13: __mh_execute_header
at :
14: __mh_execute_header
at :
15: __mh_execute_header
at :
16: __mh_execute_header
at :
17: __mh_execute_header
at :
18: __mh_execute_header
at :
19: __mh_execute_header
at :

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.

Additional information

There's a secondary strangeness here where when I added RUST_BACKTRACE=full to the codex command, the message telling me to add it disappeared (as I'd expect), but it's not clear adding COLORBT_SHOW_HIDDEN=1 did anything, since the output looks unchanged and still asks me to include the env var.

Activity

  1. added
    bug
    on Sep 14, 2025
  2. changed the title [-]Panic when using Option + <- to navigate (specific input)[/-] [+]Panic when using Option + <- to navigate (related to en-dash?)[/+] on Sep 14, 2025
  3. smehmood commented on Sep 16, 2025

    @smehmood
    Author

    Confirmed this still panics for 0.36

  4. added
    TUI
    on Nov 9, 2025
  5. etraut-openai commented on Nov 26, 2025

    @etraut-openai
    Contributor

    Are you still seeing this with the latest version of the CLI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions