Codex Desktop macOS: read_thread_terminal cannot see a working integrated terminal
Summary
In Codex Desktop on macOS, the integrated terminal is open and fully functional, but the agent-side read_thread_terminal tool cannot read it and always returns:
No app terminal session is attached to this thread yet.
The desktop logs show that the visible route uses the permanent thread ID while panel/session ownership continues to use a temporary client-new-thread:... ID. This appears to prevent the terminal snapshot lookup from finding the current thread's terminal.
Environment
- Codex Desktop:
26.623.141536(build4753) - Bundled Codex CLI:
0.142.5 - macOS:
26.5.1(25F80) - Architecture: Apple Silicon (
arm64) - Authentication: ChatGPT
- Thread type: local/projectless desktop thread
Actual behavior
- The integrated terminal opens inside the Codex app.
- Commands run normally.
codex doctor --allreports that stdin, stdout, and stderr are TTYs, withTERM=xterm-256color, and correctly identifies the current project. - Asking the agent to inspect the current terminal invokes
read_thread_terminal. - The tool responds that no app terminal session is attached.
- The same failure occurs with a second terminal tab.
Relevant sanitized desktop-log pattern:
conversationId=client-new-thread:<temporary-id>
ownerRoutePath=/local/<permanent-thread-id>
The IDs remain different after switching to another chat and returning.
Expected behavior
The terminal session visible in the current thread should be associated with the permanent thread ID, and read_thread_terminal should return the active integrated-terminal snapshot.
This is also the behavior described in the Codex app documentation: Codex can read the current integrated-terminal output.
Steps to reproduce
- Open Codex Desktop on macOS.
- Create a new local/projectless thread.
- Open the integrated terminal in that thread.
- Run:
``sh``
printf 'codex-terminal-check\n'
- Ask the agent to read/check the built-in terminal.
- Observe:
``text``
No app terminal session is attached to this thread yet.
Recovery attempts
- Closed and reopened the terminal panel.
- Created another terminal tab and selected it.
- Switched to another chat and returned.
- Quit and restarted Codex, then created a fresh terminal.
- Confirmed the Codex installation, databases, configuration, authentication, network, and thread inventory pass
codex doctor --all.
The issue persists.
Additional information
No raw logs or full thread identifiers are included here because they can contain private information. A sanitized log excerpt or an in-product /feedback session can be provided if needed.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗