VS Code extension and CLI crash with SIGTRAP during repository review ("Custom tool call output is missing")
What version of the Codex App are you using (From “About Codex” dialog)?
Codex CLI 0.142.5 and 0.141.0 (both tested)
What subscription do you have?
Plus
What platform is your computer?
Darwin 25.3.0 x86_64 i386
What issue are you seeing?
Codex consistently crashes while performing repository review tasks that require tool calls. The crash occurs both in the VS Code extension and the Codex CLI.
What steps can reproduce the bug?
Open a Git repository.
Start a Codex session.
Ask Codex to review the current changes or Git diff.
Codex begins working.
Process exits with SIGTRAP.
What is the expected behavior?
Codex should analyze the Git diff and provide a code review.
Example prompt:
Can you review these files? Just review them don't make any changes yet.
or
Review the current git diff.
Actual Behavior
Codex begins processing and then crashes.
VS Code Extension
Codex process errored:
Codex app-server process exited unexpectedly
(code=unknown, signal=SIGTRAP)
Last CLI errors:
ERROR codex_core::util:
Custom tool call output is missing for call id: call_xxxxx
ERROR codex_core::util:
Custom tool call output is missing for call id: call_xxxxx
ERROR codex_core::util:
Custom tool call output is missing for call id: call_xxxxx
CLI
The CLI also terminates unexpectedly:
zsh: trace trap codex
Things Already Tried
Reinstalled Codex extension
Installed pre-release extension
Removed and recreated ~/.codex
Removed VS Code storage
Started a brand-new chat
Started in a clean workspace
Downgraded CLI from 0.142.5 to 0.141.0
Removed custom configuration
Reduced reasoning effort
Verified authentication
Verified CLI launches successfully
Simple prompts work.
The crash only appears once Codex starts performing repository/tool operations.
Additional information
Additional Information
The project itself builds and functions normally.
The failure appears related to tool execution because every crash is preceded by:
Custom tool call output is missing
followed immediately by a SIGTRAP.
It appears the app-server expects a tool response that never arrives, causing the process to terminate.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I encountered the same core error on Codex CLI 0.147.0, using Codex Desktop 26.803.41515 with WSL2 Ubuntu 24.04. In my case the failure did not recover and made Codex effectively unusable for about one day.
The local logs repeatedly reported:
The same period also contained:
The missing-tool-output error was persisted across turns. Changing between GPT-5.6 Terra and Sol, reducing reasoning effort, and restarting did not recover the environment. I then used Codex Desktop itself to diagnose and repair the broken WSL/CLI Codex environment, but Codex Desktop's self-repair attempt did not fix it. Codex on the web was also used to attempt the repair and did not fix it. Claude was tried separately and did not fix it either.
I also backed up and reset the local state databases/history. That preserved the incident data but did not provide a reliable final recovery. Reusing the old environment continued to reproduce the broken behavior.
The only effective recovery was:
After the clean-directory reinstall, Codex worked again.
This appears to need a supported self-healing path. A malformed/persisted tool-call chain should not poison later turns indefinitely, and Codex should not report or imply successful recovery while the same missing call ID continues to fail. Suggested behavior:
function_call/tool call without its matching output before sampling.Most importantly, please provide the user with a one-click safe reset/recovery action when this condition is detected. Before resetting, it should automatically create a dated backup and show exactly what will be preserved or cleared. It should clear the poisoned tool-call chain, derived indexes, locks, WAL/runtime state, and unhealthy caches while preserving authentication where safe, project files/configuration, plugin/MCP inventory, and exportable valid conversations. Afterward it should run a health check and offer a selective rollback/import path. A user should get this recovery opportunity before being forced to manually uninstall and rebuild the entire Codex environment.
I can retain the redacted local logs and state backup for further diagnostics if maintainers specify a safe subset or collection command.
@pittzhang20260507 Since you retained the old state as read-only incident data, this is a strong real-world recovery test without touching the now-working clean install.
Codex Rescue
0.1.0a3is specifically conservative around persisted missing tool outputs: it can diagnose an unfinished/orphaned call, but it will not invent a result or assume whether the tool actually ran. The original rollout stays untouched and any forked recovery remains fail-closed for unknown side effects.If you’re willing, could you run it only against the retained old state / affected rollout:
If the affected thread is not the latest one, don’t mutate anything to make it latest — just tell me and I can give a bounded selection command.
Sanitized status/findings only, please. No raw rollout, SQLite/WAL files, prompts, repository contents, local paths, call IDs, credentials, or secrets.
https://github.com/shleder/codex-rescue
Thanks for reaching out. My development environment contains sensitive private data, so I'm not comfortable running third-party diagnostic tools against the retained Codex state.
If the OpenAI/Codex team officially asks me to assist with reproducing or diagnosing the issue, I'd be willing to help within appropriate privacy and security boundaries. Otherwise, the potential privacy exposure isn't worth the risk for me.
Sorry, and thanks for understanding.