You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codex:codex-rescue agent times out before Codex task completes on large diffs #122
When using codex:codex-rescue subagents to dispatch review tasks via the codex-companion.mjs task command, the agent's Bash call times out (300s) before Codex finishes its analysis on large diffs. The Codex task continues running in the background, but the agent returns empty-handed and the results are never delivered to the parent conversation.
Reproduction
Dispatch a review task via codex:codex-rescue on a diff with 30+ files / ~2000 lines
Codex starts a thorough multi-pass analysis (44+ file reads observed)
The codex-companion.mjs task command blocks waiting for Codex to finish
After 300 seconds, the Bash timeout in the Claude Code agent fires
The agent returns with "task dispatched, running in background" — no results
Codex eventually finishes, but the verdict sits in the job log with no way to surface it back
Observed behavior
The Codex task log shows active work throughout:
[codex] Assistant message captured: I'm separating "new bug introduced by the branch" from "pre-existing path...
[codex] Command completed: git show '...:lib/training/workout-lifecycle.ts' (exit 0)
[codex] Command completed: git grep -n "deleted_at" ... (exit 0)
... (44+ commands executed)
But the agent that dispatched it has already returned empty.
Expected behavior
One of:
Streaming partial results — the companion script could stream findings as they're discovered, so the agent can return intermediate results before timeout
Async result retrieval — the companion script could return a job ID immediately, and provide a codex-companion.mjs result <job-id> command that the agent can poll
Configurable timeout — allow the agent or companion script to set a longer timeout for large diffs
Automatic result callback — when the task completes, write results to a known location that the parent session can detect
Impact
For small diffs (1-5 files), Codex completes within the timeout and results are returned normally. For larger diffs (30+ files), Codex reviews are effectively lost — the analysis runs but nobody sees the output. This makes Codex unreliable as a review gate for substantial PRs, which are exactly the ones that benefit most from a second opinion.
The plugins/codex/agents/codex-rescue.md agent, or the plugins/codex/skills/codex-cli-runtime/SKILL.md skill may benefit from explicit guidance about running with longer timeout: parameters
Activity
ariccio commentedon Apr 3, 2026
Came here to the plugin repo to report this too.
The
plugins/codex/agents/codex-rescue.mdagent, or theplugins/codex/skills/codex-cli-runtime/SKILL.mdskill may benefit from explicit guidance about running with longertimeout:parametersdocs(rescue): formalize 600 s foreground ceiling + background+poll wo…
docs(v2.0.0): sync README + MIGRATION_v2.0.md + TROUBLESHOOTING.md wi…
fix: telemetry 계측 정합 + job 생명주기 + broker 소유권 (v2.4.0, #28 root cause) (…