Doesn't timeout when trying to execute git remote, not possible to cancel using ctrl + c
What version of Codex is running?
codex-cli 0.20.0
Which model were you using?
GTP-5
What platform is your computer?
Microsoft Windows NT 10.0.26120.0 x64 -> WSL 2.6.1.0 - Ubuntu Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
- On Windows 11 + WSL2 (Ubuntu), set up Git with SSH key authentication for GitHub:
``bash``
ssh-keygen -t ed25519 -C "your_email@example.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Add the public key to GitHub and verify normal SSH Git access works:
``bash``
git clone git@github.com:<user>/<repo>.git
cd <repo>
git status
This works fine, even with a passphrase-protected key.
- In the same terminal session (where Git SSH works), run a Codex task that triggers Git remote commands — for example, let Codex add a remote and check access:
``bash``
git remote add origin https://github.com/<user>/<repo>.git
git ls-remote -h origin
git push --dry-run origin HEAD:refs/heads/codex-access-test
- Even if the SSH key has already been unlocked this session (e.g., via
git status), Codex cannot use the existing SSH authentication. I understand Codex might just properly work with HTTPS configured git, I don't know, and it is not the crucial part of this bug. (Although it would be nice if Codex supports git SSH key setup)
- Critical: When the hang occurs, there is no timeout and Ctrl+C does not cancel the operation. The only way to exit is to close the terminal or kill the process manually.
The last line of such Codex CLI session: " • Workingse1961s • Ctrl C to interrupt) running command"
What is the expected behavior?
Cancel the running command after some timeout (ideally customizable), and provide user information.
Or - at least - let user interrupt the command using ctrl + c.
What do you see instead?
● Workingse2224s • Ctrl C to interrupt) running command
Additional information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗