Skip to content

fix(media): bound stalled response headers by default - #103209

Merged
steipete merged 5 commits into
openclaw:mainfrom
wangmiao0668000666:fix/agent-tools-media-fetch-timeout
Jul 21, 2026
Merged

steipete merged 5 commits into
openclaw:mainfrom
wangmiao0668000666:fix/agent-tools-media-fetch-timeout

Conversation

@wangmiao0668000666

@wangmiao0668000666 wangmiao0668000666 commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Remote media fetches had body-idle protection but no default deadline for the pre-header phase. An endpoint could accept a connection and never return response headers, leaving image, PDF, and other media consumers waiting indefinitely.

Why This Change Was Made

The original branch threaded a new timeout option through loadWebMedia and several agent tools. Maintainer review rejected that extra surface. The reworked fix now lives at the canonical owner instead:

  • src/media/fetch.ts gives the existing response-header deadline primitive a generous 15-minute default.
  • Explicit internal overrides still work for callers that need a shorter deadline.
  • The deadline is cleared as soon as headers arrive, so slow-but-progressing response bodies are not capped; their existing byte and idle-gap limits remain authoritative.
  • No config, environment variable, tool parameter, Plugin SDK export, or WebMediaOptions field is added.

The 15-minute default matches the existing large node-camera media download ceiling while applying only to header arrival here.

User Impact

Stalled remote media endpoints now fail with the existing MediaFetchError / timeout cause instead of hanging indefinitely. Healthy large downloads continue after headers arrive.

Evidence

  • node scripts/run-vitest.mjs src/media/fetch.test.ts — 50 tests passed on the rebased head.
  • node scripts/check-changed.mjs -- src/media/fetch.ts src/media/fetch.test.ts — full delegated changed gate passed on Blacksmith Testbox tbx_01ky1sn9tf18k13m7hyz27pe7n (typechecks, formatting, lint, guards).
  • Fresh AutoReview against origin/main — no accepted/actionable findings.
  • Regression coverage drives a stalled pre-header fetch with fake time, omits any timeout override, advances past 15 minutes, and verifies the surfaced MediaFetchError with TimeoutError cause.
  • Existing coverage still proves explicit shorter overrides win and the header timer is cleared while a healthy body keeps streaming.

Compatibility

This intentionally bounds previously unbounded response-header waits at 15 minutes. Peter approved the fixed default and rejected a new configurable surface.

Credit

Reworked from @wangmiao0668000666's original stalled-media fix; contributor commits and co-author credit are preserved.

@openclaw-barnacle openclaw-barnacle Bot added channel: tlon Channel integration: tlon agents Agent runtime and tooling size: XS labels Jul 10, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 10, 2026
@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 2:00 AM ET / 06:00 UTC.

Summary
The PR forwards the existing response-header timeout through the internal web-media loader and applies a shared 15-minute deadline to remote image, image-generation, and PDF tool fetches.

PR surface: Source +33. Total +33 across 5 files.

Reproducibility: yes. from source with high confidence: every reachable remote path currently sets only a body-idle guard, leaving response-header arrival unbounded. The contributor also supplied a real stalled-server run through the production web-media path.

Review metrics: 1 noteworthy metric.

  • Header-timeout rollout: 1 internal option added, 3 reachable remote callers changed. One shared contract now imposes a hard response-header deadline across three user-facing agent tools.

Root-cause cluster
Relationship: same_root_cause
Canonical: #103020
Summary: The merged Telegram PR established the generic response-header deadline; this PR applies that primitive to distinct agent-tool callers.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] Existing remote media endpoints that legitimately take more than 15 minutes to return response headers will newly fail instead of remaining open indefinitely.

Maintainer options:

  1. Accept the bounded header wait (recommended)
    Merge the 15-minute header-only deadline and intentionally own failures for upstreams exceeding that wait.
  2. Recalibrate the ceiling
    Change the shared agent-tool constant before merge if the media owner wants another duration.

Next step before merge

  • [P2] A shared-media owner should accept or recalibrate the fixed 15-minute compatibility tradeoff; no automated code repair is currently needed.

Maintainer decision needed

  • Question: Should image, image-generation, and PDF remote media loads fail after 15 minutes without response headers?
  • Rationale: The implementation is technically correct and preserves healthy streaming bodies, but selecting a fixed deadline intentionally changes behavior for exceptionally slow existing upstreams.
  • Likely owner: steipete — He is the dominant current owner of the affected paths and merged the canonical shared timeout implementation.
  • Options:
    • Accept 15-minute ceiling (recommended): Merge the header-only deadline so indefinite pre-header stalls terminate while body streaming retains its separate idle-gap timeout.
    • Choose another ceiling: Pause until shared-media owners select a different fixed response-header limit for agent tools.

Security
Cleared: The timeout-only source patch adds no dependency, permission, secret, executable-artifact, or supply-chain surface and preserves existing SSRF enforcement.

Review details

Best possible solution:

Keep this PR open until a linked canonical PR proves it covers this PR's unique work, or a maintainer confirms closure.

Do we have a high-confidence way to reproduce the issue?

Yes, from source with high confidence: every reachable remote path currently sets only a body-idle guard, leaving response-header arrival unbounded. The contributor also supplied a real stalled-server run through the production web-media path.

Is this the best way to solve the issue?

Yes. Reusing the canonical header-only primitive at the web-media owner covers all affected callers, avoids a competing timeout implementation, and does not cap healthy response bodies.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b8502e1c0afa.

Label changes

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a limited-blast-radius reliability fix for three agent media workflows.
  • merge-risk: 🚨 compatibility: Remote endpoints taking more than 15 minutes to return headers will newly fail after merge.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body contains an after-fix terminal run through loadWebMedia against a real stalled HTTP server, showing the configured deadline and surfaced production timeout error; future posted proof should continue redacting private endpoints and identifiers.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body contains an after-fix terminal run through loadWebMedia against a real stalled HTTP server, showing the configured deadline and surfaced production timeout error; future posted proof should continue redacting private endpoints and identifiers.
Evidence reviewed

PR surface:

Source +33. Total +33 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 5 36 3 +33
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 36 3 +33

What I checked:

  • PR close coverage proof: PR close coverage proof kept this PR open against fix(telegram): recover when media downloads stall #103020: PR B is the merged shared primitive and a Telegram-specific rollout, not coverage of PR A's distinct agent-tool rollout. Current main still lacks PR A's concrete caller changes and the associated 15-minute product-policy decision, so PR A requires independent review.
  • linked superseding PR: fix(telegram): recover when media downloads stall #103020 (fix(telegram): recover when media downloads stall) is merged at 2026-07-10T13:31:17Z.
  • cluster evidence: the durable review links that PR in the work cluster or recommended risk path.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • steipete: He dominates the relevant current-main file history, authored the current shared deadline lines, and posted land-ready proof before merging the canonical timeout PR. (role: current shared-media owner and likely decision owner; confidence: high; commits: 2a12c9916a98, 26aef8c48bc4, 541c9f0bf017; files: src/media/fetch.ts, src/media/web-media.ts, src/agents/tools/image-tool.ts)
  • Alix-007: Authored the merged Telegram recovery PR that established the shared response-header deadline contract used here. (role: introduced canonical header-timeout behavior; confidence: high; commits: 26aef8c48bc4; files: src/media/fetch.ts, src/media/fetch.test.ts, extensions/telegram/src/bot/delivery.resolve-media-retry.ts)
  • mikasa0818: Authored the merged node-camera change using the related 15-minute bounded-media ceiling, although that path intentionally bounds total request lifetime. (role: introduced adjacent duration precedent; confidence: medium; commits: 541c9f0bf017; files: src/cli/nodes-camera.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (8 earlier review cycles)
  • reviewed 2026-07-10T09:21:23.687Z sha e7ae631cbee4f6292adbf588870b58f1d72e2fc2 :: needs real behavior proof before merge. :: [P1] Justify or align the two-minute total cutoff | [P2] Update the exact Tlon download contract | [P2] Update the exact Tlon upload contract
  • reviewed 2026-07-10T13:23:10.570Z sha a5e4cd392304c74a3b875b26b62500ed6cfeebc5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-10T15:10:33.218Z sha 87fcb61875de748f79d5b6e2624f48cdc5497488 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-10T15:49:53.306Z sha beb67e85572da4332f1ea1c6f79ebefffa606156 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-10T16:38:44.926Z sha 8a0eace94cc8de8c124b18d5a829b2b9e4e58e29 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-11T03:39:39.741Z sha 097d1ed689a1fefd8c74486e91f31826116d99ea :: needs real behavior proof before merge. :: [P1] Cover the video-generation remote media path
  • reviewed 2026-07-11T05:29:39.378Z sha 6c915de5941346a4b85a70499a8337a254c276da :: needs real behavior proof before merge. :: [P2] Remove the ineffective video timeout path
  • reviewed 2026-07-11T05:51:54.211Z sha 7936a09b25d0e0ddb463c62ae84f7441707f97fd :: needs maintainer review before merge. :: none

@wangmiao0668000666
wangmiao0668000666 force-pushed the fix/agent-tools-media-fetch-timeout branch from e7ae631 to a5e4cd3 Compare July 10, 2026 12:48
@openclaw-barnacle openclaw-barnacle Bot removed the channel: tlon Channel integration: tlon label Jul 10, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased this branch to agent-tools-only-plus-seam: aligned REMOTE_MEDIA_TIMEOUT_MS to 15 min (canonical bounded-media ceiling, PR #103266), dropped the Tlon changes (owned by canonical #103206), and added timeoutMs forwarding assertions for all three agent tools (image / image-generate / pdf). The shared seam is included only so this fork PR typechecks standalone; it reduces to agent-tool-only once #103206 lands. Redacted proof transcript is in the PR body.

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 10, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 10, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@wangmiao0668000666
wangmiao0668000666 force-pushed the fix/agent-tools-media-fetch-timeout branch from 8a0eace to 097d1ed Compare July 11, 2026 03:18
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Refactored to adopt the canonical responseHeaderTimeoutMs seam from main. Both review concerns addressed:

P1 — Real affected-tool runtime proof. Live proof (proof-103209-image-tool-layer.mts) now exercises loadWebMedia — the entrypoint image-tool.ts:1033, image-generate-tool.ts:675, and pdf-tool.ts:486 actually invoke — against a real stalled HTTP server (real http.createServer + real globalThis.fetch + real AbortSignal). Surfaced MediaFetchError { code: "fetch_failed", cause: TimeoutError("request timed out") } at 1160ms vs 1000ms header deadline. Production code path uses 15 * 60_000; demo uses 1s for fast completion. Code path is identical end-to-end: loadWebMedia → readRemoteMediaBuffer → fetchGuardedMediaResponse → fetchWithSsrFGuard → buildTimeoutAbortSignal → globalThis.fetch.

P2 — Use the canonical seam, no parallel surface. Replaced REMOTE_MEDIA_TIMEOUT_MS = 15 * 60_000 with REMOTE_MEDIA_RESPONSE_HEADER_TIMEOUT_MS = 15 * 60_000 in src/agents/tools/media-tool-shared.ts. The three agent-tool callers (image-tool.ts:1042, image-generate-tool.ts:675, pdf-tool.ts:487) now forward responseHeaderTimeoutMs: on the isHttpUrl branch. The prior WebMediaOptions.timeoutMs seam is removed; this PR exposes the canonical WebMediaOptions.responseHeaderTimeoutMs instead. The header deadline is cleared on success (src/media/fetch.ts:272), so a healthy body keeps progressing past the deadline — readIdleTimeoutMs (120s for agent-tools) separately bounds chunk gaps.

Maintainer decision — which PR owns the shared seam? Resolved by landing order independence. With the canonical seam on origin/main@bb26753705 (introduced by PR #103020, merge 26aef8c48bc40d2ea456c2cfc3eca126dca33888), both this PR and #103206 independently use it. Either can land first; no cross-repo stacking required.

Verification:

Canonical precedents:

New head: 097d1ed689.

@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 11, 2026
@steipete steipete self-assigned this Jul 21, 2026
@steipete
steipete force-pushed the fix/agent-tools-media-fetch-timeout branch from 7936a09 to 332a21c Compare July 21, 2026 05:35
@wangmiao0668000666
wangmiao0668000666 force-pushed the fix/agent-tools-media-fetch-timeout branch from 332a21c to afe9776 Compare July 21, 2026 05:49
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Rebased onto latest origin/main (was 5 commits behind) and fixed oxfmt --check failure on src/agents/tools/image-generate-tool.test.ts.

  • Rebase: 0f61091fed clean, 0 conflicts
  • oxfmt: npx oxfmt src/agents/tools/image-generate-tool.test.ts → 3 ins / 3 del
  • Tests: image-generate-tool.test.ts 57/57 pass, media-tool-shared.test.ts 12/12 pass

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

wangmiao0668000666 and others added 5 commits July 21, 2026 00:41
Apply the shared bounded-media ceiling (15 min, matching the canonical precedent
in PR openclaw#103266) to the three agent-tool remote-media callers (image, image-generate,
pdf) via the new REMOTE_MEDIA_TIMEOUT_MS constant, forwarded through loadWebMedia /
loadWebMediaRaw's timeoutMs seam. Bounds endpoints that never respond while
REMOTE_MEDIA_READ_IDLE_TIMEOUT_MS keeps protecting slow-but-progressing transfers.

This branch includes the WebMediaOptions.timeoutMs seam so it typechecks and stays
green as a standalone fork PR; it reduces to agent-tool-only once the canonical
seam+Tlon PR openclaw#103206 lands. The Tlon caller changes live in openclaw#103206 (the earlier
openclaw#103199 is closed as a subset).

- src/agents/tools/media-tool-shared.ts: export REMOTE_MEDIA_TIMEOUT_MS = 15*60_000.
- image-tool / image-generate-tool / pdf-tool: pass timeoutMs on remote (http) loads.
- src/media/web-media.ts: forward timeoutMs (shared seam; see openclaw#103206).
- tests: assert timeoutMs forwarding for all three agent tools.

Co-Authored-By: Claude <[email protected]>
Lock the existing image, image-generation, and PDF remote-media call sites to the proposed header-only deadline and remove the PR-only proof script.\n\nCo-authored-by: wangmiao0668000666 <[email protected]>
@steipete
steipete force-pushed the fix/agent-tools-media-fetch-timeout branch from afe9776 to 2f98ed4 Compare July 21, 2026 07:43
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Jul 21, 2026
@steipete steipete changed the title fix(agent-tools): add request timeout to remote media fetches fix(media): bound stalled response headers by default Jul 21, 2026
@steipete
steipete merged commit e8842dd into openclaw:main Jul 21, 2026
122 of 126 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 22, 2026
* fix(agent-tools): bound remote media fetches with a 15-min total timeout

Apply the shared bounded-media ceiling (15 min, matching the canonical precedent
in PR openclaw#103266) to the three agent-tool remote-media callers (image, image-generate,
pdf) via the new REMOTE_MEDIA_TIMEOUT_MS constant, forwarded through loadWebMedia /
loadWebMediaRaw's timeoutMs seam. Bounds endpoints that never respond while
REMOTE_MEDIA_READ_IDLE_TIMEOUT_MS keeps protecting slow-but-progressing transfers.

This branch includes the WebMediaOptions.timeoutMs seam so it typechecks and stays
green as a standalone fork PR; it reduces to agent-tool-only once the canonical
seam+Tlon PR openclaw#103206 lands. The Tlon caller changes live in openclaw#103206 (the earlier
openclaw#103199 is closed as a subset).

- src/agents/tools/media-tool-shared.ts: export REMOTE_MEDIA_TIMEOUT_MS = 15*60_000.
- image-tool / image-generate-tool / pdf-tool: pass timeoutMs on remote (http) loads.
- src/media/web-media.ts: forward timeoutMs (shared seam; see openclaw#103206).
- tests: assert timeoutMs forwarding for all three agent tools.

Co-Authored-By: Claude <[email protected]>

* fix(agent-tools): adopt canonical responseHeaderTimeoutMs seam from main

* test(agent-tools): cover media header deadlines

Lock the existing image, image-generation, and PDF remote-media call sites to the proposed header-only deadline and remove the PR-only proof script.\n\nCo-authored-by: wangmiao0668000666 <[email protected]>

* style: oxfmt

* fix(media): default stalled header deadline

Co-authored-by: wangmiao0668000666 <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
@wangmiao0668000666
wangmiao0668000666 deleted the fix/agent-tools-media-fetch-timeout branch October 28, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants