openclaw - 💡(How to fix) Fix Codex app-server terminal idle timeout is hardcoded and reports misleading config guidance

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

A scheduled agent turn using the Codex app-server runtime can fail at the internal terminal-idle watchdog even when the scheduled job already has a longer run-specific timeout configured. The surfaced error currently tells users to increase agents.defaults.timeoutSeconds, but that setting is not the actual limiting timeout in this failure mode.

Error Message

A scheduled agent turn using the Codex app-server runtime can fail at the internal terminal-idle watchdog even when the scheduled job already has a longer run-specific timeout configured. The surfaced error currently tells users to increase agents.defaults.timeoutSeconds, but that setting is not the actual limiting timeout in this failure mode.

  • The user-facing error was:

Root Cause

A scheduled agent turn using the Codex app-server runtime can fail at the internal terminal-idle watchdog even when the scheduled job already has a longer run-specific timeout configured. The surfaced error currently tells users to increase agents.defaults.timeoutSeconds, but that setting is not the actual limiting timeout in this failure mode.

Fix Action

Fix / Workaround

Local mitigation used

A local hotfix made the Codex terminal-idle timeout configurable via an environment variable and increased the affected scheduled job timeout so the outer job budget is higher than the internal idle watchdog.

This issue is for upstreaming the behavior cleanly rather than relying on local patched bundled files.

RAW_BUFFERClick to expand / collapse

Summary

A scheduled agent turn using the Codex app-server runtime can fail at the internal terminal-idle watchdog even when the scheduled job already has a longer run-specific timeout configured. The surfaced error currently tells users to increase agents.defaults.timeoutSeconds, but that setting is not the actual limiting timeout in this failure mode.

Observed

  • OpenClaw version: 2026.5.18.
  • A scheduled agentTurn using codex/gpt-5.5 had timeoutSeconds set above 30 minutes.
  • The run failed after roughly 30 minutes with the internal log message:
    • codex app-server turn idle timed out waiting for terminal event
    • timeoutMs=1800000
  • The user-facing error was:
    • Request timed out before a response was generated. Please try again, or increase agents.defaults.timeoutSeconds in your config.

Expected

  • The Codex app-server terminal-idle watchdog should be configurable or derived from the effective run timeout ceiling.
  • If this watchdog fires, diagnostics should name the actual limiting timeout instead of pointing only to agents.defaults.timeoutSeconds.
  • A run-specific timeout should not be silently superseded by a lower hardcoded internal Codex terminal-idle timeout.

Local mitigation used

A local hotfix made the Codex terminal-idle timeout configurable via an environment variable and increased the affected scheduled job timeout so the outer job budget is higher than the internal idle watchdog.

This issue is for upstreaming the behavior cleanly rather than relying on local patched bundled files.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Codex app-server terminal idle timeout is hardcoded and reports misleading config guidance