Skip to content

bug: pasting in API key includes stray 'v' character on mac #6048

@rgodha24

Description

@rgodha24

What version of Codex is running?

codex-cli 0.53.0

What subscription do you have?

n/a

Which model were you using?

n/a

What platform is your computer?

Darwin 24.6.0 arm64 arm with ghostty

What issue are you seeing?

Command+V to paste in the API key into the Provide your own API key prompt sometimes includes a stray v character at the end of the key.

Image

This also happens when sshed into a Linux machine from my mac+ghostty setup.

What steps can reproduce the bug?

  1. run codex
  2. run /logout
  3. copy an api key like sk-something-super-secret
  4. run codex, and choose sign in with api key
  5. attempt to paste in the API key, and see the stray v character appear.
Screen.Recording.2025-10-31.at.1.55.26.PM.mov

This issue does NOT exist on Linux directly, where my paste keybinding is ctrl+shift+v.

What is the expected behavior?

pasting in API keys works as expected.

Additional information

Fixed by #4903

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions