Codex CLI TUI fails during account/read workspace requirements bootstrap (-32603)

Environment

  • Surface: CLI
  • Codex version: codex-cli 0.163.0
  • OS and IDE/browser, if relevant: macOS Terminal, Node.js v22.23.1 through NVM
  • Model and plan or API-key authentication: gpt-6.1-sol, ChatGPT Plus authentication

Bug

Running the interactive codex command fails during TUI startup with an account/read error.

I expected the interactive Codex TUI to open normally. Instead, it exits immediately before showing the interface.

Authentication appears valid, and headless execution works successfully.

Reproduction

  1. Install or update Codex:
npm install -g @openai/codex@latest
hash -r
  1. Confirm the version and login:
codex --version
codex login status

Output:

codex-cli 0.163.0
Logged in using ChatGPT
  1. Run the interactive TUI:
codex

The error occurs immediately.

I reproduced it from both my project directory and /tmp. Logging out and back in did not fix it. Upgrading from 0.162.1 to 0.163.0 also did not fix it.

However, this works:

codex exec "Reply only with READY"

It successfully starts Codex and returns READY, so the problem appears specific to interactive TUI bootstrap.

Diagnostics

Exact error:

Error: account/read failed during TUI bootstrap: account/read failed: failed to load workspace requirements (code -32603)

When it happened: October 17, 2026, around 12:20 a.m. EDT.

Frequency: Every interactive launch attempt. It occurs from multiple directories, including /tmp.

I can provide additional sanitized diagnostics if there is a recommended command for collecting them.

In my case, the shared app-server daemon had been started from a workspace that was later deleted. The daemon continued to use that deleted working directory, causing every new codex session to fail during account/read with:

failed to load workspace requirements (code -32603)

Updating and restarting the daemon fixed it:

codex app-server daemon update --from-cli
codex app-server daemon version
codex app-server daemon restart

After restarting the daemon, codex started normally again.

So if someone upgraded the CLI or deleted the directory where the daemon was originally started, restarting (or updating) the shared daemon may resolve the issue.