"codex resume" command hints print invalid <session-guid>

Resolved 💬 2 comments Opened Apr 15, 2026 by mirekjany Closed Apr 16, 2026

What version of Codex CLI is running?

codex-cli 0.121.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.3-codex, gpt-5.4-codex

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

wsl2

What issue are you seeing?

First observed when i upgraded from codex-cli 0.118.0 to 0.120.0 and now to 0.121.0 hoping this would already be fixed, codex-cli simply started errorneously issuing "To continue this session, run codex resume session-guid" command hints with invalid session-guids: 1) hitting ctrl+d on a new session without starting any conversation yet - this hint is issued 1x upon exiting. 2) resuming existing session, hitting ctrl+d -> two (!!) of these hints are appended to the session history with different (!!) guids. reverting to 0.118.0 doesn't do any of this.

What steps can reproduce the bug?

Empty session:
1) start codex-cli (either 0.120.0 or 0.121.0) on a new project, accept/trust the folder
2) hit ctrl+d -> a "To continue this session, run codex resume session-guid" hint is printed before exiting codex-cli
3) try to run "codex resume" from CLI with that session guid and you're greeted with "ERROR: No saved session found with ..."

Existing session:
1) start codex-cli (either 0.120 or 0.121.0) on an existing project
2) type /resume and choose an existing session
3) wait for session to resume
4) a "To continue this session, run codex resume session-guid" hint is leaked to the session history
5) hit ctrl+d -> another "To continue this session, run codex resume session-guid" is printed before fully exiting codex-cli
6) 1st session guid is invalid (the same error as with empty session), however the second session guid is the valid one.

What is the expected behavior?

Expected behaviour is not to print "codex resume" command hint with invalid session guid which can't be resumed (on both empty + existing session).

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗