openclaw - ✅(Solved) Fix [Bug]: Active Memory plugin consistently times out on WSL2 — hook handler cuts off before sub-agent completes [1 pull requests, 2 comments, 3 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#81366Fetched 2026-05-14 03:32:57
View on GitHub
Comments
2
Participants
3
Timeline
4
Reactions
1
Timeline (top)
commented ×2closed ×1cross-referenced ×1

Fix Action

Fix / Workaround

Workaround tried

PR fix notes

PR #74163: WORKING: All Microsoft Issues and PRs (refresh)

Description (problem / solution / changelog)

Microsoft Ecosystem Issues & PRs Tracker

Purpose: Living checklist for maintainers to track all open Microsoft-related issues and PRs (Teams, Windows, WSL, Azure, M365/SharePoint).

How to use:

  • Mark items resolved by editing this PR body and changing [ ] to [x]
  • Claim items by adding your GitHub handle to the Assignee column
  • Priority guide: P0 = crash/blocker/security, P1 = significant bug/regression, P2 = minor bug/enhancement, P3 = nice-to-have/stale
  • Items marked (stale) have been flagged by the stale bot due to inactivity

Last updated: 2026-05-13 (closed #81106 and #38846; merged #74383 and verified #74350 closure; Microsoft-scope scrub retained)


Summary

CategoryIssuesPRsTotalClosedRemaining
MS Teams (channel plugin)51823023
Windows platform602989089
WSL11415015
Azure42606
SharePoint / M36500000
Total80531330133

1. MS Teams Channel Plugin — Issues

Bugs / Crashes

Resolved?Priority#TitleLabelsAssignee
[ ]P1#67177[msteams] Inbound file attachments silently fail in DMs — file.download.info downloadUrl not rewritten to Graph shares endpoint
[ ]P1#65329bug(msteams): DM inline images and file attachments silently dropped
[ ]P1#62765msteams dmPolicy=pairing silently drops unpaired senders with HTTP 200, no log line, no auto-reply
[ ]P2#42099fix(plugins): false-positive duplicate plugin ID warning on gateway start (msteams)

Feature Requests

Resolved?Priority#TitleLabelsAssignee
[ ]P2#81084[Feature]: MSTeams channel-bound agents need opt-out from per-thread sessions

2. MS Teams Channel Plugin — PRs

Resolved?Priority#TitleSizeAssignee
[ ]P0#63827fix(security): preserve dmPolicy settings during wizard runsXL
[ ]P1#77784Add Teams delegated auth for plugin toolsXL
[ ]P2#78839[codex] Add Teams member-info action gateS
[ ]P2#76262fix(msteams): rebase TeamsSDK patterns to simplify Teams IntegrationXL@BradGroux
[ ]P2#70287fix(msteams): drop unsupported $search on msteams:search (AI-assisted)M
[ ]P2#69428fix(msteams): paginate thread replies and keep recent contextS
[ ]P2#67761fix: remove truncated preview from inbound system eventsXS
[ ]P2#67174Teams: support separate graphTenantId for cross-tenant Graph API accessM
[ ]P2#66327feat(msteams): implement sendPayload for interactive approval cardsM
[ ]P2#64503fix(msteams): forward messageBack card actions (Action.Submit) to agent (#60952)S
[ ]P2#63347feat(msteams): support webhook host bindingS
[ ]P2#59314fix(msteams): preserve channel thread isolation during proactive fallbackM
[ ]P2#59294fix(msteams): isolate thread sessions, outbound targeting, and attachment resolutionL
[ ]P2#57511feat(msteams): Teams live voice support with .NET media workerXL
[ ]P2#57366fix(msteams): extract emoji unicode from Teams CDN img tags instead of treating as image attachmentsS
[ ]P2#57364fix(msteams): delete FileConsentCard after user accepts, declines, or upload expiresS
[ ]P2#55828feat(msteams): add native plugin interactivity parityXL
[ ]P2#43190MS Teams: add channel archive persistence and deleted-channel cleanupXL

3. Windows Platform — Issues

Bugs / Crashes

Resolved?Priority#TitleLabelsAssignee
[ ]P1#80344[Bug]: Discord voice /vc join fails on Windows with AggregateError + gateway heartbeat timeout / event loop starvationbug bug:crash
[ ]P1#79437Prebuilt node-llama-cpp Windows binaries crash (0xC0000005) on Intel Alder Lake-N (N95) — qmd LLM half unusable
[ ]P1#77734Gateway crashes every 3 minutes on Windows - CIAO PROBING CANCELLED (bonjour plugin)bug bug:crash
[ ]P1#77443[Bug]: WhatsApp event loop blocked (eventLoopDelayMaxMs=12088ms) on first inbound message — 2026.5.3-1 Windowsbug regression
[ ]P1#766992026.5.x: Telegram media download broken - event loop saturation on Windows
[ ]P1#74378[Bug]: OpenClaw CLI commands remain alive as node.exe processes after execution on Windowsbug regression
[ ]P1#71865Auth login blocked by size-drop guard when openclaw.json was created by PowerShell (verbose/BOM format)
[ ]P1#71699[Bug]: Gateway hard-crashes with 0xC0000409 (STATUS_STACK_BUFFER_OVERRUN) on Windows during Mattermost streaming reply; auto-respawn frequently wedges
[ ]P1#70788fix(windows): suppress startup-folder cmd window flash via wscript silent launcher
[ ]P1#68493[Bug]: Editing openclaw.json while gateway is running triggers hot-reload crash loop on Windows (stale lock file + EADDRINUSE)@vincentkoc
[ ]P1#67035[Bug]: 2026.4.14 Windows chat UI regression: input text swallowed, streamed replies often invisible until refresh, typing indicator flashes then blanks
[ ]P1#63257Windows Gateway Feishu API timeout 30s at startup
[ ]P1#62099EPERM on auth-profiles.json causes full gateway failure cascade (Windows)
[ ]P1#62055Windows: CLI crashes with stack overflow / heap OOM on v2026.4.5 (large ESM module graph exceeds V8 default stack)
[ ]P1#59362[Bug]: Windows: exec tool causes console window flash when spawning commandsbug regression
[ ]P1#54669[Field Report] Chrome 136+ binds CDP to [::1] (IPv6) on Windows — portproxy v4tov4 breaks silently
[ ]P1#46378[Bug]: 安装配置界面windows会卡死bug regression
[ ]P2#81254[Bug]: Windows node Scheduled Task opens persistent cmd window at loginbug bug:behavior
[ ]P2#81020[Windows] scheduled task watchdog: repetition Duration=P1D expires after 1 day, loses auto-restart
[ ]P2#80650[Bug]: [Bug] openclaw backup create 在Windows上失败(退出代码255)bug
[ ]P2#80416[Bug] core-plugin-tools ~3.5s overhead on every embedded run persists after #75520 fix — Windows + Node 24 + isolated cron jobs
[ ]P2#79899DefaultResourceLoader.reload() blocks event loop for 12-15s on Windows due to synchronous filesystem scanning
[ ]P2#79099Windows gateway probe still reports unreachable while gateway health is OK on 2026.5.6
[ ]P2#78640fix(memory): EPERM on Windows persists after 64187 retry — needs copyFile/unlink fallback (was in closed PR 71611)
[ ]P2#78435[Bug]: channels.slack.start-account phase blocks event loop 5+ minutes while a model_call is in flight (Windows, 2026.5.4)
[ ]P2#78352[Bug]: 16 Telegram bots on Windows cause event loop starvation up to 65s — 100% ELU, 90%+ CPU, control-plane RPC >100s
[ ]P2#77878[BUG] openclaw-weixin channel exits with ESM loader error on Windows + Node 24
[ ]P2#77805telegram bundled channel setup fails on Windows: plugin module path escapes plugin root or fails alias checks
[ ]P2#77745Bug: Feishu image/media download fails with EPERM on Windows due to @larksuiteoapi/node-sdk fsync and writeSavedMediaBuffer handle.sync()
[ ]P2#77730[Bug]: file-transfer plugin nodeHostCommands not advertised by Windows node host on live handshake (2026.5.3-1)
[ ]P2#77263Windows: native hook relay bridge directory permission check blocks Codex harness
[ ]P2#76884[Bug]: OpenClaw on native Windows getting notably slower and slower with each new version???bug
[ ]P2#76702Windows + Feishu DM becomes very slow after upgrade to 2026.5.2; latency appears in agent/session processing, likely amplified by large session context
[ ]P2#76553[Bug]: Windows: Claude Code not detected by OpenClaw, Gateway in restart loop after PATH workaroundbug bug:behavior
[ ]P2#73859[Bug]: Built-in plugins (minimax, google, talk-voice) fail with RangeError: Maximum call stack size exceeded on Windows
[ ]P2#73323[Bug]: Gateway runtime degradation: pricing fetch 60s timeouts, Telegram polling stalls, slow RPC — chronic across 4.23/4.25/4.26 on Windows 11 + Node 24bug
[ ]P2#73059[Bug]: Windows linked source install can skip Control UI auto-build through junction-launched scripts/ui.js
[ ]P2#72922[Bug]: Sluggish response time and unstable Web GUI and CLI on Windows Server 2022bug
[ ]P2#71717exec tool returns EPERM on Windows, all commands failbug
[ ]P2#70451[Bug]: CLI hooks enable times out / SIGKILL on Windows
[ ]P2#66746[Bug] Windows memory indexing falls back to FTS-only in 2026.4.14 even though direct node:sqlite + sqlite-vec works
[ ]P2#66479Windows: skill not discovered due to UTF-8 BOM injected by PowerShell WriteAllText
[ ]P2#64253Gateway becomes unresponsive under subagent load on Windows - completion announcements timeout
[ ]P2#63491[Bug]: Windows Scheduled Task gateway restart/health becomes inconsistent after ready
[ ]P2#59281[Bug]: Windows plugin TS source-loading via jiti is pathologically slow in real production call sitesbug bug:behavior
[ ]P2#58433[Bug]: [Windows] Path character loss bug - "system" becomes "ystem" in file pathsbug bug:behavior
[ ]P2#58139[Bug]: memory-lancedb plugin fails with Windows Docker bind mountbug bug:behavior
[ ]P2#56284Windows: gateway restart does not wait for active tasks and loses session state
[ ]P2#56106Transcript JSONL encoding corrupted on Windows (GBK/UTF-8 mix)
[ ]P2#48780[Bug]: [Windows] exec() and read() commands corrupted with </arg_value>> suffixbug bug:behavior
[ ]P2#44559[Bug]: Windows: Gateway 关闭 PowerShell 窗口后断连bug bug:behavior
[ ]P2#44296Show the actual PowerShell profile path during onboarding shell-completion setup
[ ]P2#44293Make pnpm check:docs work in native PowerShell
[ ]P2#44291Add native PowerShell smoke coverage for contributor commands
[ ]P2#40540[Bug]: openclaw update command fails with EBUSY error on Windowsbug bug:behavior

Feature Requests

Resolved?Priority#TitleLabelsAssignee
[ ]P2#72595[Feature]: Feishu channel needs per-channel proxy bypass for mixed Windows proxy setupsenhancement
[ ]P2#57775Windows headless node host supports exec approvals via CLI, but nodes describe / Control UI do not advertise system.execApprovals.get/set
[ ]P2#18985[Feature]: Supports Windows 11 MSYS environment and Fishshell.enhancement
[ ]P2#7057Flaky tests on Windows/WSL: timeouts and ENOENT in pi-tools workspace-paths & safe-binsenhancement
[ ]P2#75Linux/Windows Clawdbot Appsenhancement help wanted

4. Windows Platform — PRs

Resolved?Priority#TitleSizeAssignee
[ ]P2#81330fix(windows): suppress persistent cmd window from scheduled-task node launchXS
[ ]P2#81267fix(node): hide Windows node task launcherM
[ ]P2#80683fix(memory-lancedb): add retry mechanism for Windows Docker bind mount sync delaysS
[ ]P2#79694fix(update): hide post-core update and completion cache child windows on WindowsXS
[ ]P2#76245[codex] Fallback when Windows gateway task exits earlyS
[ ]P2#75649fix(windows): preserve staged update handoffXL
[ ]P2#74425fix: ensure CLI processes exit after command completion on WindowsS
[ ]P2#73889fix(cli): stabilize Windows scheduled-task restart health after readyS
[ ]P2#73751fix(exec): decode Windows command output with codepage-aware streamingM
[ ]P2#73674fix(memory): resolve QMD Windows cmd shimsL
[ ]P2#69059fix: retry sqlite-vec load without .dll suffix on WindowsS
[ ]P2#68819fix: resolve Windows .cmd shims to underlying .exe before spawnM
[ ]P2#68149feat(daemon): use PowerShell Register-ScheduledTask for Windows auto-startM
[ ]P2#67655fix(exec): fail closed on Windows shell wrappers in allowlist modeXS
[ ]P2#63651fix: remove duplicate restart message on Windows (schtasks)S
[ ]P2#60630fix(ci): Windows task tests and Telegram setup promotion surfaceL
[ ]P2#59705[codex] improve parallels windows smoke loggingM
[ ]P2#59013fix: tolerate EPERM in session write-lock on WindowsS
[ ]P2#51486fix(daemon): query Windows task runtime directlyS
[ ]P2#50136fix(windows): stabilize gateway restart and avoid false stale cleanup [AI-assisted]M
[ ]P2#50116fix: handle Windows-style session paths when running on POSIXXS
[ ]P2#48887Fix/docs format check windows cleanM
[ ]P2#48130fix: correct Windows Chrome executable path extraction regexXS
[ ]P2#45870fix: align windows path tests with runtime behaviorS
[ ]P2#45380Make env-prefixed npm scripts work on WindowsS
[ ]P2#44228fix(reply): normalize Windows media paths for dedupeXS
[ ]P2#44215fix(path): add Windows PATH bootstrap dirsS
[ ]P2#39644fix(windows): PowerShell completion install and time-format detectionS
[ ]P2#38932docs(gateway): add Windows no-Docker hardening fallback guideXS

5. WSL (Windows Subsystem for Linux) — Issues

Bugs / Crashes

Resolved?Priority#TitleLabelsAssignee
[ ]P1#80914[Bug]: Heartbeat functionality broken in 5.7. wsl2bug regression
[ ]P1#74251[Bug]: [Bug]: npm install -g openclaw@latest crashes with V8 Fatal error in WSL2 Ubuntu 24.04bug
[ ]P1#68966[Bug]: [WSL] openclaw browser command terminated by SIGKILL causing timeoutbug bug:crash
[ ]P1#59209Misleading CDP "Empty reply from server" in WSL2 caused by portproxy self-loop (svchost/iphlpsvc), not Chromebug regression
[ ]P1#44051[Bug]: [skills] Skipping skill path error triggered on officially installed skills via clawhub (WSL Environment)bug regression
[ ]P2#81366[Bug]: Active Memory plugin consistently times out on WSL2 — hook handler cuts off before sub-agent completes
[ ]P2#80336[Bug]: placeholder.openclaw.cloud unreachable on WSL2 with custom gateway portbug bug:behavior
[ ]P2#78222OpenClaw 2026.5.4 Gateway status/health inconsistency on WSL2: diagnostics report ok/listener, external checks show no listener and HTTP 000
[ ]P2#73602[Bug]: WhatsApp flaps and Telegram polling stalls on WSL2 in 2026.4.26
[ ]P2#73152Docs/doctor request: clarify gateway reachability for OrbStack/WSL/VM/Tailscale setups
[ ]P2#61616[Bug]: [WSL2] Global 30-min gateway stall (:29/:59) affects Telegram + Control UIbug

Feature Requests

No currently open items found.


6. WSL (Windows Subsystem for Linux) — PRs

Resolved?Priority#TitleSizeAssignee
[ ]P1#46698fix(auth): fix GitHub device flow polling and add --wait flag for WSL…S
[ ]P2#68400daemon/systemd: distinguish WSL user D-Bus socket missing from missing systemctlS
[ ]P2#59219fix[Bug]: [skills] Skipping skill path error triggered on officially installed skills via clawhub (WSL Environment)M
[ ]P2#58853feat(doctor): add WSL environment diagnostics check [AI-assisted]L

7. Azure (Provider / Infrastructure) — Issues

Bugs / Crashes

Resolved?Priority#TitleLabelsAssignee
[ ]P2#80926Azure OpenAI Responses stalls before first event when memory tools are exposedmaintainer
[ ]P2#79570openai-responses adapter is unusable against Azure OpenAI: every turn returns a synthetic 0-token refusal (openai-completions works)
[ ]P2#60546[Bug]: microsoft-foundry provider selects Claude deployments but routes them through OpenAI Foundry endpoints

Feature Requests

Resolved?Priority#TitleLabelsAssignee
[ ]P2#71058[Feature]: Support for multiple Azure/Teams bots on a single Openclaw Gatewayenhancement

8. Azure (Provider / Infrastructure) — PRs

Resolved?Priority#TitleSizeAssignee
[ ]P2#47285feat(memory-lancedb): native Azure OpenAI supportS
[ ]P2#47181feat: add Azure Claude (AI Foundry) onboarding pathL

9. Microsoft 365 / SharePoint — Issues

Bugs / Crashes

No currently open items found.

Feature Requests

No currently open items found.


10. Microsoft 365 / SharePoint — PRs

No currently open items found.


Appendix: P0 Blockers (Start Here)

CategoryTypePriority#Title
MS Teams (channel plugin)prP0#63827fix(security): preserve dmPolicy settings during wizard runs

Appendix: High-Priority Bugs / Regressions

CategoryTypePriority#Title
MS Teams (channel plugin)issueP1#67177[msteams] Inbound file attachments silently fail in DMs — file.download.info downloadUrl not rewritten to Graph shares endpoint
MS Teams (channel plugin)issueP1#65329bug(msteams): DM inline images and file attachments silently dropped
MS Teams (channel plugin)issueP1#62765msteams dmPolicy=pairing silently drops unpaired senders with HTTP 200, no log line, no auto-reply
MS Teams (channel plugin)prP1#77784Add Teams delegated auth for plugin tools
Windows platformissueP1#80344[Bug]: Discord voice /vc join fails on Windows with AggregateError + gateway heartbeat timeout / event loop starvation
Windows platformissueP1#79437Prebuilt node-llama-cpp Windows binaries crash (0xC0000005) on Intel Alder Lake-N (N95) — qmd LLM half unusable
Windows platformissueP1#77734Gateway crashes every 3 minutes on Windows - CIAO PROBING CANCELLED (bonjour plugin)
Windows platformissueP1#77443[Bug]: WhatsApp event loop blocked (eventLoopDelayMaxMs=12088ms) on first inbound message — 2026.5.3-1 Windows
Windows platformissueP1#766992026.5.x: Telegram media download broken - event loop saturation on Windows
Windows platformissueP1#74378[Bug]: OpenClaw CLI commands remain alive as node.exe processes after execution on Windows
Windows platformissueP1#71865Auth login blocked by size-drop guard when openclaw.json was created by PowerShell (verbose/BOM format)
Windows platformissueP1#71699[Bug]: Gateway hard-crashes with 0xC0000409 (STATUS_STACK_BUFFER_OVERRUN) on Windows during Mattermost streaming reply; auto-respawn frequently wedges
Windows platformissueP1#70788fix(windows): suppress startup-folder cmd window flash via wscript silent launcher
Windows platformissueP1#68493[Bug]: Editing openclaw.json while gateway is running triggers hot-reload crash loop on Windows (stale lock file + EADDRINUSE)
Windows platformissueP1#67035[Bug]: 2026.4.14 Windows chat UI regression: input text swallowed, streamed replies often invisible until refresh, typing indicator flashes then blanks
Windows platformissueP1#63257Windows Gateway Feishu API timeout 30s at startup
Windows platformissueP1#62099EPERM on auth-profiles.json causes full gateway failure cascade (Windows)
Windows platformissueP1#62055Windows: CLI crashes with stack overflow / heap OOM on v2026.4.5 (large ESM module graph exceeds V8 default stack)
Windows platformissueP1#59362[Bug]: Windows: exec tool causes console window flash when spawning commands
Windows platformissueP1#54669[Field Report] Chrome 136+ binds CDP to [::1] (IPv6) on Windows — portproxy v4tov4 breaks silently
Windows platformissueP1#46378[Bug]: 安装配置界面windows会卡死
WSLissueP1#80914[Bug]: Heartbeat functionality broken in 5.7. wsl2
WSLissueP1#74251[Bug]: [Bug]: npm install -g openclaw@latest crashes with V8 Fatal error in WSL2 Ubuntu 24.04
WSLissueP1#68966[Bug]: [WSL] openclaw browser command terminated by SIGKILL causing timeout
WSLissueP1#59209Misleading CDP "Empty reply from server" in WSL2 caused by portproxy self-loop (svchost/iphlpsvc), not Chrome
WSLissueP1#44051[Bug]: [skills] Skipping skill path error triggered on officially installed skills via clawhub (WSL Environment)
WSLprP1#46698fix(auth): fix GitHub device flow polling and add --wait flag for WSL…

Appendix: Stale Items (Consider Closing)

No matching items found.

Audit Notes

  • Rebuilt from the format of PR #49126 after the issue/PR purge.
  • Reapplied Microsoft-scope filtering on 2026-05-13 after the rebuild reintroduced generic false positives; SQLite/session runtime, generic plugin/runtime, non-Microsoft "window" noun matches, and generic Azure-section rows were removed.
  • Removed merged PR #63074 from the current-open tracker on 2026-05-13 after maintainer review and squash merge.
  • Removed closed PR #81106 from the current-open tracker on 2026-05-13 after maintainer review.
  • Removed merged PR #74383 and closed issue #74350 from the current-open tracker on 2026-05-13 after maintainer review, squash merge, and automatic issue closure.
  • Removed closed PR #38846 from the current-open tracker on 2026-05-13 after maintainer review found unresolved Windows command-execution correctness and secret-disclosure blockers.
  • Source set is currently open GitHub issues and PRs from openclaw/openclaw; closed counts are intentionally reset to 0 for this refreshed tracker.
  • Included title/label matches for msteams, Microsoft Teams, Windows, WSL, Azure, Entra/AAD, MSAL, managed identity, DefaultAzureCredential, Microsoft Graph, SharePoint, OneDrive, and Microsoft 365.
  • Kept broad multi-channel PRs when they carry channel: msteams, because those can still affect the Microsoft surface area.
  • Generated with node scripts/generate-microsoft-tracker.mjs so the tracker and PR body can be refreshed after future triage passes.

Changed files

  • CHANGELOG.md (modified, +1/-0)
  • MICROSOFT_TRACKER.md (added, +365/-0)
  • scripts/generate-microsoft-tracker.mjs (added, +428/-0)

Code Example

"active-memory": {
  "enabled": true,
  "config": {
    "agents": ["main"],
    "allowedChatTypes": ["direct", "group"],
    "queryMode": "recent",
    "promptStyle": "balanced",
    "maxSummaryChars": 800,
    "timeoutMs": 15000,        // also tried: 30000, 45000
    "logging": true,
    "cacheTtlMs": 60000
  }
}

---

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=deepseek activeModel=deepseek-v4-pro done status=timeout elapsedMs=79163 summaryChars=0
[agent/embedded] embedded run failover decision: runId=active-memory-... decision=surface_error reason=timeout from=deepseek/deepseek-v4-pro

---

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=deepseek activeModel=deepseek-v4-flash done status=timeout elapsedMs=72078 summaryChars=0
[diagnostic] liveness warning: eventLoopDelayP99Ms=70867 eventLoopUtilization=1

---

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=google activeModel=gemini-3-flash-preview done status=timeout elapsedMs=82566 summaryChars=0
[diagnostic] liveness warning: eventLoopDelayP99Ms=80195.1 eventLoopUtilization=1
RAW_BUFFERClick to expand / collapse

Environment

  • OpenClaw: 2026.4.27
  • OS: Linux 6.6.87.2-microsoft-standard-WSL2 (x64)
  • Host: Windows 11, LAPTOP-VU1R6HHG
  • Node: v24.15.0
  • Memory backend: builtin (SQLite + Gemini embeddings, hybrid search)

Configuration

"active-memory": {
  "enabled": true,
  "config": {
    "agents": ["main"],
    "allowedChatTypes": ["direct", "group"],
    "queryMode": "recent",
    "promptStyle": "balanced",
    "maxSummaryChars": 800,
    "timeoutMs": 15000,        // also tried: 30000, 45000
    "logging": true,
    "cacheTtlMs": 60000
  }
}

Models tried (all fail the same way):

  • deepseek/deepseek-v4-pro (inherited from session)
  • deepseek/deepseek-v4-flash (inherited from session)
  • google/gemini-3-flash-preview (explicitly set via config.model)

Problem

Active Memory never completes successfully — every attempt times out. The plugin-reported timeoutMs config doesn't help.

Log evidence (3 consecutive attempts)

Attempt 1 — DeepSeek Pro (session model)

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=deepseek activeModel=deepseek-v4-pro done status=timeout elapsedMs=79163 summaryChars=0
[agent/embedded] embedded run failover decision: runId=active-memory-... decision=surface_error reason=timeout from=deepseek/deepseek-v4-pro

Attempt 2 — DeepSeek Flash (session model)

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=deepseek activeModel=deepseek-v4-flash done status=timeout elapsedMs=72078 summaryChars=0
[diagnostic] liveness warning: eventLoopDelayP99Ms=70867 eventLoopUtilization=1

Attempt 3 — Gemini 3 Flash (explicit model)

[plugins] [hooks] before_prompt_build handler from active-memory failed: timed out after 15000ms
[plugins] active-memory: agent=main activeProvider=google activeModel=gemini-3-flash-preview done status=timeout elapsedMs=82566 summaryChars=0
[diagnostic] liveness warning: eventLoopDelayP99Ms=80195.1 eventLoopUtilization=1

Key observations

  1. Hook handler has hardcoded ~15s timeoutbefore_prompt_build handler from active-memory failed: timed out after 15000ms. This is NOT affected by config.timeoutMs (tried 15000, 30000, 45000).

  2. Sub-agent keeps running after hook gives up — elapsed times of 72-83s show the sub-agent continues long after the hook already failed. This wastes CPU and API calls for a task that will never contribute its result.

  3. Cross-provider consistent — DeepSeek Flash, DeepSeek Pro, and Gemini 3 Flash all show the same pattern. The problem is NOT per-provider latency, but the sub-agent spawn + initialization overhead in this environment.

  4. Liveness impact — the stalled sub-agent causes eventLoopDelayP99Ms=80s and CPU saturation warnings.

Expected behavior

Either:

  • Active Memory sub-agent completes in <5s and injects memory context (happy path)
  • OR configurable timeoutMs actually controls both the hook handler AND sub-agent, aborting cleanly when budget is exhausted
  • OR the documentation explicitly warns about sub-agent spawn overhead and minimum viable timeouts

Workaround tried

Configuring config.model to the fastest available model (google/gemini-3-flash) did NOT help — the sub-agent spawn time (~70s) dominates over actual model inference time.

Related

  • #77864 (Active Memory empty payload — possibly related, sub-agent may be failing silently before it can fetch results)

Happy to provide full gateway logs or run debug traces if needed. El Peter nos contestó rápido la última vez 😄

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…

FAQ

Expected behavior

Either:

  • Active Memory sub-agent completes in <5s and injects memory context (happy path)
  • OR configurable timeoutMs actually controls both the hook handler AND sub-agent, aborting cleanly when budget is exhausted
  • OR the documentation explicitly warns about sub-agent spawn overhead and minimum viable timeouts

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 - ✅(Solved) Fix [Bug]: Active Memory plugin consistently times out on WSL2 — hook handler cuts off before sub-agent completes [1 pull requests, 2 comments, 3 participants]