Repository navigation
fix(codex): honor dynamic tool timeoutSeconds - #99003
qingminglong wants to merge 2 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 4, 2026, 11:18 AM ET / 15:18 UTC. Summary PR surface: Source +19, Tests +143. Total +162 across 4 files. Reproducibility: yes. at source level: current main reads only timeoutMs in both Codex dynamic-tool timeout readers, while sessions_send exposes timeoutSeconds and upstream Codex forwards raw dynamic-tool arguments. I did not run a live current-main Codex timeout turn in this read-only review. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land one canonical timeoutSeconds fix that validates seconds-form budgets consistently with the owning tool contract, covers both primary and side-question readers, and includes redacted runtime proof or logs from a real Codex dynamic-tool setup. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main reads only timeoutMs in both Codex dynamic-tool timeout readers, while sessions_send exposes timeoutSeconds and upstream Codex forwards raw dynamic-tool arguments. I did not run a live current-main Codex timeout turn in this read-only review. Is this the best way to solve the issue? No: this is the right owner area and now covers both readers, but the PR uses a seconds parser that treats fractional timeoutSeconds as a shortened watchdog even though sessions_send treats fractional values as invalid. The safer fix is to share the validated seconds conversion behavior and cover that contract in both tests. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c79c38035873. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +19, Tests +143. Total +162 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
Current-head proof refresh for #99003:
@clawsweeper re-review |
|
@clawsweeper re-review |
|
Thanks @qingminglong for working on this. The canonical repair has landed via #100722 as It covers the same |
Closes #98864
What Problem This Solves
Fixes an issue where Codex dynamic tool calls that provided only timeoutSeconds could miss the intended seconds-form hard-call bound and fall back to the default dynamic tool watchdog.
Why This Change Was Made
The Codex app-server dynamic tool timeout resolvers now preserve timeoutMs precedence and treat numeric timeoutSeconds as the seconds-form fallback when timeoutMs is absent. The fallback adds a small wrapper grace window so tools that already own timeoutSeconds, such as sessions_send, can return their structured timeout result before the outer app-server watchdog aborts the bridge.
User Impact
Long-running or bounded Codex dynamic tools can use seconds-form timeout values without silently falling back to the default watchdog, including both the primary Codex dynamic-tool path and the side-question dynamic-tool path.
Evidence