openclaw - 💡(How to fix) Fix Lane timeout hardcoded at 630s — not aligned with timeoutSeconds config [1 comments, 2 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#77740Fetched 2026-05-06 06:22:09
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
2
Timeline (top)
closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

The session lane subsystem has a hardcoded timeout of 630 seconds that is independent of the configurable timeoutSeconds field. This creates a mismatch where:

  • timeoutSeconds can be set to 120s (as a recovery measure)
  • But the lane still uses a 630s hardcoded timeout
  • The session appears stuck for 10+ minutes before the lane clears

Impact: When a session gets stuck in processing state (e.g. after compaction), the lane timeout is 5x longer than it should be. All incoming messages queue indefinitely behind the dead lane.

Environment:

  • OpenClaw 2026.5.3

Affected code path: src/process/command-queue.ts — lane timeout appears to be hardcoded rather than reading from the agent's timeoutSeconds config.

Expected behavior: Lane timeout should be derived from or aligned with timeoutSeconds, or at minimum be configurable.

Related: Issue #70334 (session stuck after compaction) and #48488 (lane queue has no task-level timeout) — this hardcoded value compounds both of those problems.

extent analysis

TL;DR

Update the src/process/command-queue.ts file to derive the lane timeout from the configurable timeoutSeconds field.

Guidance

  • Review the src/process/command-queue.ts file to locate the hardcoded 630-second timeout and consider replacing it with a variable that reads from the timeoutSeconds configuration.
  • Verify that the timeoutSeconds field is correctly set to the desired value (e.g., 120s) and that this change does not introduce any other issues.
  • Test the updated code to ensure that the lane timeout now aligns with the configured timeoutSeconds value.
  • Consider adding a configuration option to make the lane timeout independently configurable, if needed.

Example

// Before
const laneTimeout = 630000; // 630 seconds

// After
const laneTimeout = agentConfig.timeoutSeconds * 1000; // derive from config

Notes

This fix assumes that the agentConfig.timeoutSeconds value is correctly set and accessible within the src/process/command-queue.ts file. Additional testing may be required to ensure that this change does not introduce any other issues.

Recommendation

Apply workaround: update the src/process/command-queue.ts file to use the configurable timeoutSeconds field, as this will help alleviate the issue of stuck sessions and indefinite queuing.

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

openclaw - 💡(How to fix) Fix Lane timeout hardcoded at 630s — not aligned with timeoutSeconds config [1 comments, 2 participants]