fix(codex): release quiet app-server turns

This commit is contained in:
Peter Steinberger
2026-04-29 19:41:51 +01:00
parent fbae2a6441
commit 072e73d7c3
4 changed files with 261 additions and 66 deletions

View File

@@ -575,6 +575,13 @@ an OpenClaw response within 30 seconds. On timeout, OpenClaw aborts the tool
signal where supported and returns a failed dynamic-tool response to Codex so
the turn can continue instead of leaving the session in `processing`.
After OpenClaw responds to a Codex turn-scoped app-server request, the harness
also expects Codex to finish the native turn with `turn/completed`. If the
app-server goes quiet for 60 seconds after that response, OpenClaw best-effort
interrupts the Codex turn, records a diagnostic timeout, and releases the
OpenClaw session lane so follow-up chat messages are not queued behind a stale
native turn.
Environment overrides remain available for local testing:
- `OPENCLAW_CODEX_APP_SERVER_BIN`