Repository navigation
fix #98864: dynamic tool hard timeout should honor timeoutSeconds when timeoutMs is absent - #100848
jincheng-xydt wants to merge 1 commit into
Conversation
…tool hard timeout (openclaw#98864) Dynamic tool calls can carry a timeoutSeconds field while omitting timeoutMs. The hard-call timeout reader only checked timeoutMs, so a tool configured with timeoutSeconds fell through to the default hard-call guard. Update readDynamicToolCallTimeoutMs to treat timeoutSeconds as the seconds-form fallback when timeoutMs is absent, reusing the existing readTimeoutSecondsAsMs helper for consistency with media image config. Acceptance: - timeoutMs keeps existing behavior (takes precedence) - timeoutSeconds used as hard timeout when timeoutMs absent - Invalid/non-positive timeoutSeconds ignored (falls to default) - Values exceeding CODEX_DYNAMIC_TOOL_MAX_TIMEOUT_MS are capped Co-Authored-By: Claude <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 7:47 AM ET / 11:47 UTC. Summary PR surface: Source +3, Tests +115. Total +118 across 2 files. Reproducibility: yes. at source level: current main reads only Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 consolidated Codex app-server fix that shares validated Do we have a high-confidence way to reproduce the issue? Yes at source level: current main reads only Is this the best way to solve the issue? No. The patch addresses the primary reader but misses the side-question sibling path and should not map tool-owned Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 90e1ef176820. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +3, Tests +115. Total +118 across 2 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
|
|
Thanks @jincheng-xydt for working on this. The canonical repair has landed via #100722 as It covers the same |
Summary
timeoutSecondsfield while omittingtimeoutMs. The hard-call timeout reader (readDynamicToolCallTimeoutMs) only checkedtimeoutMs, so a tool configured withtimeoutSecondsfell through to the default hard-call guard (90s). This affects long-running tools such as session send helpers.readDynamicToolCallTimeoutMsto treattimeoutSecondsas the seconds-form fallback whentimeoutMsis absent, reusing the existingreadTimeoutSecondsAsMshelper for consistency.dynamic-tool-execution.ts— 3-line change inreadDynamicToolCallTimeoutMs.dynamic-tool-execution.test.ts— 7 new tests covering timeoutSeconds fallback, precedence, invalid values, and max-capping.readTimeoutSecondsAsMsandreadPositiveFiniteTimeoutMshelpers unchanged.Maintainer checklist
Real behavior proof
Behavior or issue addressed:
Dynamic tool calls with
timeoutSecondsbut notimeoutMssilently fall through to the default 90s hard-call guard instead of honoring the caller-specified timeout.Real environment tested:
Exact steps or command run after the patch:
After-fix evidence:
All 20 tests pass including 7 new timeoutSeconds fallback tests:
Acceptance criteria satisfied:
timeoutMskeeps existing behavior ✓timeoutSecondsuses that value as the hard timeout ✓timeoutSecondsvalues are ignored ✓What was not tested:
sessions_sendwithtimeoutSeconds🤖 Generated with Claude Code