Repository navigation
fix(codex): report hosted search timeouts accurately - #115837
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
pull Bot
pushed a commit
to yann0001/openclaw
that referenced
this pull request
Jul 29, 2026
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 30, 2026
* origin/main: fix(codex): restore connected apps for token-authenticated runs (openclaw#115075) fix(codex): classify hosted search timeouts (openclaw#115837) fix(msteams): keep attachment replies in channel threads (openclaw#94348) fix(telegram): linkPreview:false is ignored on streamed replies (openclaw#114125) fix(protocol): make Swift model checks non-mutating (openclaw#115793) fix(searxng): avoid duplicating search endpoint (openclaw#113661) fix(agents): preserve tool-result middleware identity (openclaw#115821) refactor(meetings): consolidate runtime facades (openclaw#115819)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #115439
What Problem This Solves
Fixes an issue where Codex hosted
web_searchrequests that reached their configured/default bound were reported as generic caller aborts. Slow-but-valid searches therefore looked unsupported instead of timing out at the operator-visible limit.Why This Change Was Made
The bounded Codex turn now has one absolute-deadline timer instead of a second competing collector timer. That timer owns one per-turn
TimeoutError, names the effective bound, and is the only reason identity allowed to classify the turn as timed out; caller cancellations retain the established generic aborted-turn error contract.The upstream Codex contract was checked at
openai/codexcommitd06c7ac055920c7cb140c25ebda3f3db20197b45, includingcodex-rs/app-server/README.md,codex-rs/app-server-protocol/src/protocol/common.rs, andcodex-rs/app-server-protocol/src/protocol/v2/turn.rs:turn/interruptcancels the active turn and completion is observed through the terminal turn event.User Impact
Hosted searches now report errors such as
codex app-server hosted search turn timed out after 30s, withname: "TimeoutError", while explicit caller cancellation remains distinguishable asturn aborted. Operators can raisetools.web.search.timeoutSecondsfor slow searches without diagnosing a false unsupported-query failure.AI-assisted: implemented and reviewed with Codex; the full owner path and upstream interrupt contract were inspected before landing.
Evidence
codex app-server hosted search turn aborted; 5 adjacent controls passed.ASX latest market newssucceeded with a 90s bound in 35.254s ongpt-5.6-sol, returning 4 search records; the same query with a 5s bound returnedTimeoutError: codex app-server hosted search turn timed out after 5s.tbx_01kypnbd4nat781txkv890t0b6, Actions run https://github.com/openclaw/openclaw/actions/runs/30442258069 — exit 0. Portal cleanup sync timed out after the successful command; the one-shot lease had already stopped.