openclaw - ✅(Solved) Fix Active Memory (Dreaming) embedded runs frequently timeout with Opus model [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#71934Fetched 2026-04-27 05:37:11
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
commented ×2cross-referenced ×2closed ×1

Active Memory plugin's embedded runs (Light/REM dreaming phases) consistently timeout when using Claude Opus 4.6 via Amazon Bedrock. The gateway logs show repeated surface_error failover decisions with reason=timeout.

Error Message

One instance also showed a credential loading error: [agent/embedded] embedded run agent end: runId=f94b865b-... isError=true error=Could not load credentials from any providers

Root Cause

Active Memory plugin's embedded runs (Light/REM dreaming phases) consistently timeout when using Claude Opus 4.6 via Amazon Bedrock. The gateway logs show repeated surface_error failover decisions with reason=timeout.

Fix Action

Workaround

None currently. The dreaming phases simply fail silently. Deep dreaming phase has never completed, resulting in MEMORY.md never being generated.

PR fix notes

PR #71965: fix(active-memory): raise timeout ceiling

Description (problem / solution / changelog)

Fixes #71934

Summary:

  • Raise the Active Memory runtime timeout clamp from 60s to 120s so slower Bedrock/Opus runs can complete.
  • Add regression tests for pass-through and clamping behavior.
  • Update the plugin manifest hint and docs to reflect the ceiling.

Testing:

  • pnpm vitest run extensions/active-memory/index.test.ts extensions/active-memory/config.test.ts

Changed files

  • docs/concepts/active-memory.md (modified, +5/-1)
  • extensions/active-memory/index.test.ts (modified, +44/-0)
  • extensions/active-memory/index.ts (modified, +2/-1)
  • extensions/active-memory/openclaw.plugin.json (modified, +2/-1)

Code Example

[agent/embedded] embedded run failover decision: runId=active-memory-modqufpt-9760cd06 stage=assistant decision=surface_error reason=timeout from=amazon-bedrock/global.anthropic.claude-opus-4-6-v1 profile=-

---

[agent/embedded] embedded run agent end: runId=f94b865b-... isError=true error=Could not load credentials from any providers
RAW_BUFFERClick to expand / collapse

Description

Active Memory plugin's embedded runs (Light/REM dreaming phases) consistently timeout when using Claude Opus 4.6 via Amazon Bedrock. The gateway logs show repeated surface_error failover decisions with reason=timeout.

Environment

  • OpenClaw: 2026.4.21 (f788c88)
  • Node: v22.22.2
  • OS: Ubuntu 24.04 (aarch64, AWS Graviton 3)
  • Provider: Amazon Bedrock (us-west-2, cross-region inference)
  • Model: global.anthropic.claude-opus-4-6-v1
  • Plugin: active-memory (bundled)

Reproduction

  1. Enable Active Memory plugin with default config
  2. Use Claude Opus 4.6 as the default model
  3. Wait for dreaming phases to trigger (Light/REM cycles)
  4. Observe gateway logs

Observed Behavior

Embedded runs for active-memory consistently fail with timeout:

[agent/embedded] embedded run failover decision: runId=active-memory-modqufpt-9760cd06 stage=assistant decision=surface_error reason=timeout from=amazon-bedrock/global.anthropic.claude-opus-4-6-v1 profile=-

This occurs multiple times per day (10+ times in a 48-hour period). The dreaming phases never complete successfully.

One instance also showed a credential loading error:

[agent/embedded] embedded run agent end: runId=f94b865b-... isError=true error=Could not load credentials from any providers

Expected Behavior

  • Embedded runs should either use a lighter/faster model for dreaming phases, or
  • The timeout for embedded runs should be configurable and set appropriately for slower models, or
  • Active Memory should gracefully fall back to a faster model when the primary model times out

Suggested Improvements

  1. Allow configuring a separate model for Active Memory embedded runs (e.g., Sonnet for dreaming, Opus for main conversations)
  2. Increase or make configurable the timeout for embedded dreaming runs
  3. Add retry with model fallback before giving up

Workaround

None currently. The dreaming phases simply fail silently. Deep dreaming phase has never completed, resulting in MEMORY.md never being generated.

extent analysis

TL;DR

Configure a separate, faster model for Active Memory embedded runs or increase the timeout to prevent consistent timeouts with Claude Opus 4.6.

Guidance

  • Investigate configuring a lighter model like Sonnet for dreaming phases to reduce timeouts.
  • Consider increasing the timeout for embedded runs to accommodate slower models like Claude Opus 4.6.
  • Review credential loading to ensure it's not contributing to the issue, as indicated by the credential loading error.
  • Explore adding a retry mechanism with model fallback to handle timeouts more robustly.

Example

No specific code example is provided due to the lack of direct code references in the issue.

Notes

The solution may require adjustments based on the specific requirements of the Active Memory plugin and the performance characteristics of the models used.

Recommendation

Apply a workaround by configuring a separate model for Active Memory embedded runs, as this directly addresses the timeout issue with Claude Opus 4.6 and allows for more flexibility in model selection for different phases of the process.

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