Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 30, 2026, 9:17 PM ET / 01:17 UTC. Summary PR surface: Source +11, Tests +39. Total +50 across 3 files. Reproducibility: yes. from source: current main and v2026.5.28 route non-loopback probe targets through Math.min(1500, overallMs), so a configured remote probe cannot receive a larger --timeout budget. I did not run a live remote gateway repro 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 detailsBest possible solution: Merge the focused budget split after live remote proof or an explicit maintainer proof override confirms active remote probes succeed with the caller budget while inactive stale remotes and SSH tunnels stay bounded. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main and v2026.5.28 route non-loopback probe targets through Math.min(1500, overallMs), so a configured remote probe cannot receive a larger --timeout budget. I did not run a live remote gateway repro in this read-only review. Is this the best way to solve the issue? Yes on code shape: the PR narrows the full-budget behavior to active configured remote and explicit targets while preserving short caps for inactive configured remotes, inactive local loopback, and SSH tunnels. The missing piece is live proof, not an obvious code repair. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 5c5711f061cd. Label changesLabel justifications:
Evidence reviewedPR surface: Source +11, Tests +39. Total +50 across 3 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
|
d3e614c to
6f4d61d
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Active configured remote targets (gateway.mode === remote) need the full caller budget for a healthy remote RPC. An inactive configured remote — local mode with a stale leftover gateway.remote.url — must retain the short remote cap (1500ms) so a dead remote host cannot consume the entire caller timeout before the active local probe runs. Adds a regression test for local mode with a stale remote URL. Co-Authored-By: Claude Opus 4.8 <[email protected]>
6f4d61d to
f86be96
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Status note for maintainers on proof. The code side is now complete: active configured-remote and explicit-remote probes honor the caller Could a maintainer advise the preferred path — apply |
|
Closing to keep the contribution queue focused on PRs with mergeable proof. The code path is covered by source/unit checks, but this still needs a live remote gateway probe capture or maintainer-side proof override, which I cannot provide from my environment. Happy to reopen or rework if maintainers want this path pursued. |
Summary
gateway.remote.url— so a dead remote host cannot consume the entire caller timeout before the active local probe runsgateway probecommand path with regression tests, including local mode with a stale remote URLFixes #65355.
Real behavior proof
Behavior addressed:
openclaw gateway probe --timeout <n>previously cappedconfigRemoteprobes at1500ms, so a healthy remote gateway could false-negative even when the caller supplied a larger budget. The fix now honors the full caller budget for active configured remote targets, while inactive configured remote targets (local mode with a stalegateway.remote.url) keep the short1500mscap so an unreachable remote host does not burn the whole caller timeout ahead of the active local probe.Real environment tested: Linux x86_64, Node.js v22.22.0, PR HEAD
f86be96c9769dbee94bc7772d862468a789a952frebased onto upstream maine9d01320d7f3cca9debe814bb909b3ffe9f9560d.Exact steps or command run after this patch:
Evidence after fix:
The new helper test
keeps inactive configured remote probes (local mode with a stale remote URL) on the short capassertsresolveProbeBudgetMs(15_000, { kind: "configRemote", active: false, url: "wss://stale-remote.example/ws" }) === 1500, whilelets active configured and explicit remote probes use the full caller budgetasserts the active path still receives the full15_000ms.Observed result after fix:
gateway probe --timeout 15000passes the full15000msbudget to activeconfigRemoteand toexplicitprobe targets. An inactiveconfigRemotetarget (local mode + stalegateway.remote.url) stays capped at1500ms. SSH tunnel probes remain capped at2000ms.What was not tested: End-to-end
gateway probeagainst a live remote gateway. The budget routing — including the inactive-target short cap — is covered by unit tests for both the helper and the command path. (Note: the 4 failingdaemon-install-helpers.test.tsexec-SecretRef plugin-provider tests seen in the broadercommands-lightsuite are pre-existing on upstream main and are not touched by this PR, which only changessrc/commands/gateway-status/helpers.tsand its tests.)