codex icon indicating copy to clipboard operation
codex copied to clipboard

CodexCLI crashes after inserting symbols other than the English keyboard layout

Open otrub opened this issue 1 year ago • 4 comments

What version of Codex is running?

codex-cli 0.2.0

Which model were you using?

o3-2025-04-16

What platform is your computer?

Linux host, docker image ruby:3.3.1 with node 22.12.0

What steps can reproduce the bug?

  OLD_CLIP=$(xclip -selection clipboard -o 2>/dev/null || true)
  xclip -selection clipboard -i < "${TMP_TXT}.txt"
  [[ -x $(command -v xdotool) ]] && xdotool key --clearmodifiers ctrl+v
  sleep 0.1
  [[ -n $OLD_CLIP ]] && printf '%s' "$OLD_CLIP" | xclip -selection clipboard -i

What is the expected behavior?

Pastes the text as it does in previous versions.

What do you see instead?

CodexCLI crashes.

Additional information

Previously, there were no problems with the inserting text programmatically. Issue has come after either from 0.5 or 0.6 release version. It's not clear for me why --version returns 0.2 So many issues with this interface. It ruins my workflow from every new version of CodexCLI.

otrub avatar Jul 14 '25 05:07 otrub

It seems to have become clear that CodexCLI crashes when entering characters other than the English keyboard layout.

otrub avatar Jul 14 '25 06:07 otrub

Once I figured this out, it became clear that I could no longer use this tool for my work. Very sad.

otrub avatar Jul 14 '25 06:07 otrub

reverted to version 0.5.0.

otrub avatar Jul 14 '25 06:07 otrub

For node (but not brew), 0.6.0 was actually 0.2.0. Now fixed in npm 0.7.0: https://github.com/openai/codex/releases/tag/rust-v0.7.0

bolinfest avatar Jul 14 '25 17:07 bolinfest