Skip to content

[BUG] auto-recall timeout causes Discord INTERACTION_CREATE to fail (120s timeout) #604

@jlin53882

Description

@jlin53882

Environment

  • OpenClaw: 2026.4.12
  • memory-lancedb-pro: 1.1.0-beta.10
  • Platform: Windows (win32)

Problem Description

The autoRecall feature causes severe blocking issues, leading to Discord INTERACTION_CREATE listener timeouts.

Error Log

memory-lancedb-pro: auto-recall timed out after 15000ms; skipping memory injection to avoid stalling agent startup
{"scope":"event-queue","level":"error","type":"listener-timeout","listener":"InteractionEventListener","eventType":"INTERACTION_CREATE","lane":"critical","timeoutMs":120000}

Impact

  • Discord interaction events timeout after 120 seconds
  • Agent startup is blocked by auto-recall queries
  • Gateway becomes unresponsive

Suggested Fix

Consider implementing one of the following:

  1. Make autoRecall non-blocking (fire-and-forget with timeout)
  2. Add a circuit breaker that disables auto-recall after N consecutive failures
  3. Lower default autoRecallTimeoutMs to avoid blocking gateway event queue

Additional Note

Also found a potential bug in index.ts line 441 where path.join() is used but path is not imported — only join is imported from node:path. This causes ReferenceError: path is not defined at runtime on Windows.

// Line 8: imports join, dirname, basename from "node:path"
// Line 441: uses path.join() — path is undefined
const winPath = path.join(appdata, "npm", "node_modules", "openclaw", "dist", "extensionAPI.js");

Should be join(appdata, ...) instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions