openclaw - 💡(How to fix) Fix Hardcoded 120s timeout in channel layer overrides configurable timeoutSeconds [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59966Fetched 2026-04-08 02:38:15
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Agent response timeout (120s)")), 12e4)); Manually patch dist/channel-D5chgcOT.js changing 12e4 to the desired timeout in milliseconds (e.g. 6e5 for 600s) and updating the error message string.

Fix Action

Workaround

Manually patch dist/channel-D5chgcOT.js changing 12e4 to the desired timeout in milliseconds (e.g. 6e5 for 600s) and updating the error message string.

Code Example

const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Agent response timeout (120s)")), 12e4));
RAW_BUFFERClick to expand / collapse

Bug Description

The agents.defaults.timeoutSeconds setting in openclaw.json is overridden by a hardcoded 120-second timeout in the compiled channel code at dist/channel-D5chgcOT.js.

The relevant line:

const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error("Agent response timeout (120s)")), 12e4));

This means any task taking longer than 2 minutes will fail with "Agent response timeout (120s)" regardless of what timeoutSeconds is set to in the config.

Expected Behavior

The channel layer should respect the configured timeoutSeconds value from openclaw.json (e.g. 600 seconds) rather than using a hardcoded value.

Steps to Reproduce

  1. Set agents.defaults.timeoutSeconds to 600 in openclaw.json
  2. Run any agent task that takes longer than 120 seconds
  3. Task fails with "Agent response timeout (120s)"

Workaround

Manually patch dist/channel-D5chgcOT.js changing 12e4 to the desired timeout in milliseconds (e.g. 6e5 for 600s) and updating the error message string.

Environment

  • OpenClaw version: latest npm global install
  • OS: Ubuntu (Linux)
  • Node: v20+

extent analysis

TL;DR

Update the hardcoded timeout in dist/channel-D5chgcOT.js to respect the configured timeoutSeconds value from openclaw.json.

Guidance

  • Identify the line of code overriding the agents.defaults.timeoutSeconds setting and consider modifying it to use the configured value instead of a hardcoded timeout.
  • Verify the fix by setting agents.defaults.timeoutSeconds to a high value (e.g., 600) in openclaw.json and running a task that takes longer than the original hardcoded timeout (120 seconds).
  • To mitigate the issue without modifying the compiled code, manually patch dist/channel-D5chgcOT.js as described in the provided workaround.
  • Consider reaching out to the OpenClaw maintainers to report the issue and request a fix that respects the configured timeout value.

Example

const timeoutSeconds = agents.defaults.timeoutSeconds;
const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(new Error(`Agent response timeout (${timeoutSeconds}s)`)), timeoutSeconds * 1000));

Notes

The provided workaround requires manual modification of compiled code, which may not be ideal for production environments. A more permanent fix would involve updating the OpenClaw code to respect the configured timeout value.

Recommendation

Apply workaround: Manually patch dist/channel-D5chgcOT.js to use the desired timeout value, as this provides a temporary solution until a more permanent fix can be implemented.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING