Codex Sometimes Breaks Fish Key Bindings

Resolved 💬 1 comment Opened Sep 24, 2025 by thetinygoat Closed Jan 17, 2026

What version of Codex is running?

codex-cli 0.40.0

Which model were you using?

gpt-5-codex-high

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

  1. Open codex on a terminal running fish shell and interact with it for a while
  2. Exit the cli by pressing ctrl+c
  3. Try any of the normal shell keys up/down arrows for history, ctrl+v for pasting text in the terminal

What is the expected behavior?

Fish shell keybindings should return to normal after exiting codex.

What do you see instead?

<img width="697" height="258" alt="Image" src="https://github.com/user-attachments/assets/be5a956e-644a-4f07-949d-665babc3cf6c" />

Closing the terminal or starting a new tab/window works fine which suggests that keybindings are loaded correctly once fish restarts.

Additional information

fish, version 4.0.8

Ghostty 1.2.0

Version

  • version: 1.2.0
  • channel: stable

Build Config

  • Zig version : 0.14.1
  • build mode : builtin.OptimizeMode.ReleaseFast
  • app runtime : apprt.Runtime.none
  • font engine : font.main.Backend.coretext
  • renderer : renderer.generic.Renderer(renderer.Metal)
  • libxev : kqueue

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗