Codex CLI Shows Image Previews and Pets Inside tmux on Ghostty and Kitty

CodexView original changelog

Codex CLI 0.168.0 makes fullscreen Codex display image previews and pets inside tmux on the Ghostty and Kitty terminals, when tmux is configured with allow-passthrough all. Previously those graphics did not survive the tmux layer.

Key Takeaways

  • Image previews and pets now render inside tmux when Codex runs fullscreen.
  • Supported terminals are currently Ghostty and Kitty.
  • tmux must be configured with allow-passthrough all for the graphics to get through.
  • It removes the old trade-off between using tmux and seeing image previews.
  • It pairs with the release's animated GIF generation, making graphics more useful in the terminal.
  • It shipped in pull requests #59579 and #59580 in Codex CLI 0.168.0.

Graphics that survive tmux

Codex CLI 0.168.0 makes fullscreen Codex display image previews and pets in tmux on the Ghostty and Kitty terminals, provided tmux is set to allow-passthrough all. Terminal graphics normally do not survive multiplexing, so running Codex inside tmux previously meant losing image previews entirely.

What it takes to get it

The behavior depends on two things: a terminal that supports the graphics protocol, currently Ghostty or Kitty, and the tmux allow-passthrough all setting, which lets the escape sequences reach the terminal instead of being filtered by tmux. The change shipped in pull requests #59579 and #59580.

Why it matters

Many developers run their editor and agent inside a persistent tmux session. Before this change they had to choose between tmux and seeing an image Codex generated or referenced. Now both work together, which matters more as Codex gains image generation features such as the animated GIF support in the same release.