openclaw - 💡(How to fix) Fix [Bug]: Active-memory on multi-agent Telegram gateway is inconsistent (ok / empty / timeout) and not safe to enable globally [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#75176Fetched 2026-05-01 05:37:18
View on GitHub
Comments
1
Participants
2
Timeline
10
Reactions
3
Author
Timeline (top)
mentioned ×3subscribed ×3closed ×1commented ×1

Summary

On a multi-agent OpenClaw gateway using Telegram direct chats, the active-memory plugin appears partially functional but unreliable when enabled: across real agent sessions it produces a mix of status=ok, status=empty, and status=timeout, making it difficult to trust for production use.

Root Cause

Summary

On a multi-agent OpenClaw gateway using Telegram direct chats, the active-memory plugin appears partially functional but unreliable when enabled: across real agent sessions it produces a mix of status=ok, status=empty, and status=timeout, making it difficult to trust for production use.

Code Example

Representative log patterns:
[plugins] active-memory: agent=agent-a session=agent:agent-a:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=ok elapsedMs=14078 summaryChars=217

[plugins] active-memory: agent=agent-a session=agent:agent-a:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=8431 summaryChars=0

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=11685 summaryChars=0

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=ok elapsedMs=12255 summaryChars=218

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=timeout elapsedMs=15024 summaryChars=0

[plugins] active-memory: agent=agent-c session=agent:agent-c:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=10525 summaryChars=0



Additional observations:

This does not appear to be a file corruption problem.
 Manual memory/search functionality appears healthier than active-memory.
 The gateway itself remains otherwise healthy when active-memory is disabled.
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Summary

On a multi-agent OpenClaw gateway using Telegram direct chats, the active-memory plugin appears partially functional but unreliable when enabled: across real agent sessions it produces a mix of status=ok, status=empty, and status=timeout, making it difficult to trust for production use.

Steps to reproduce

Steps to reproduce

  1. Run OpenClaw 2026.4.26 on a multi-agent gateway.
  2. Load the official active-memory plugin.
  3. Configure it for multiple agents and direct chats.
  4. Use direct Telegram conversations with those agents.
  5. Observe gateway logs for active-memory activity across several sessions/agents.

Expected behavior

Expected behavior

When active-memory is enabled for eligible sessions, it should behave consistently:

• either reliably return useful summaries when enough context exists • or fail in a predictable and clearly explained way

It should not frequently alternate between:

• successful summaries • empty summaries • timeouts

under the same deployment.

Actual behavior

Actual behavior

Observed results across multiple agents/sessions include:

• status=ok with non-zero summaryChars • status=empty with summaryChars=0 • status=timeout

This makes it unclear whether active-memory is healthy enough to enable across all agents in production.

OpenClaw version

2026.4.26 (be8c246)

Operating system

macOS arm64

Install method

npm global

Model

anthropic/claude-sonnet-4-6

Provider / routing chain

openclaw -> anthropic

Additional provider/model setup details

{ "plugins": { "entries": { "active-memory": { "enabled": true, "config": { "enabled": false, "agents": [ "agent-a", "agent-b", "agent-c", "agent-d" ], "allowedChatTypes": ["direct"], "logging": true, "maxSummaryChars": 220, "modelFallback": "anthropic/claude-haiku-4-5", "persistTranscripts": false, "promptStyle": "balanced", "queryMode": "recent", "timeoutMs": 15000 } } } } }

Notes:

• The plugin is loaded at gateway level. • The current config appears to be in a mixed state (enabled: true at plugin entry level, config.enabled: false inside plugin config). • It is unclear whether this state is expected/supported or whether it contributes to inconsistent active-memory behavior. • Models were intentionally left unchanged during testing to avoid confounding variab

Logs, screenshots, and evidence

Representative log patterns:
[plugins] active-memory: agent=agent-a session=agent:agent-a:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=ok elapsedMs=14078 summaryChars=217

[plugins] active-memory: agent=agent-a session=agent:agent-a:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=8431 summaryChars=0

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=11685 summaryChars=0

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=ok elapsedMs=12255 summaryChars=218

[plugins] active-memory: agent=agent-b session=agent:agent-b:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=timeout elapsedMs=15024 summaryChars=0

[plugins] active-memory: agent=agent-c session=agent:agent-c:main activeProvider=anthropic activeModel=claude-sonnet-4-6 done status=empty elapsedMs=10525 summaryChars=0



Additional observations:

• This does not appear to be a file corruption problem.
• Manual memory/search functionality appears healthier than active-memory.
• The gateway itself remains otherwise healthy when active-memory is disabled.

Impact and severity

Impact and severity

Affected: operators using multi-agent gateways with Telegram/direct-chat flows Severity: Medium to High Frequency: Intermittent but repeatedly observed across multiple agents/sessions Consequence:

• unreliable memory enrichment • extra latency before replies • difficulty trusting active-memory in production • operational uncertainty around whether the feature is actually usable at scale

Additional information

Additional information

This seems related to, but not necessarily fully covered by, the following existing issues:

• #72015 — Reliability: active-memory blocks replies and QMD boot initialization can overload multi-agent gateways • #73306 — Active Memory plugin times out on every run • #74586 — AM embedded run aborts memory_search tool calls; classifies as timeout despite model completion • #65309 — Active Memory blocks direct-chat turns and times out • #70061 — Telegram DM session classification edge case (possibly adjacent, but likely not the main cause here)

Questions for maintainers:

  1. Is the mixed state below expected/supported? • plugin entry: enabled: true • plugin config: config.enabled: false
  2. Are mixed outcomes (ok, empty, timeout) currently expected for active-memory on multi-agent gateways, or does this indicate a known bug?
  3. Do any of the in-flight fixes/PRs already address this exact mixed-behavior case?
  4. What is the recommended safe validation path before enabling active-memory across all agents in production?

extent analysis

TL;DR

The active-memory plugin's inconsistent behavior may be due to its mixed configuration state, and resolving this state could improve its reliability.

Guidance

  • Verify the plugin's configuration state by checking if the enabled property is consistently set to true or false across the plugin entry and its internal configuration.
  • Review the logs to identify any patterns or correlations between the plugin's behavior and specific agents, sessions, or models.
  • Consider temporarily disabling the plugin or setting config.enabled to false to assess the gateway's behavior without active-memory.
  • Check if any of the mentioned existing issues (#72015, #73306, #74586, #65309, #70061) provide relevant insights or fixes for the observed behavior.

Example

No code snippet is provided as the issue seems to be related to configuration and plugin behavior rather than code-level issues.

Notes

The mixed configuration state of the active-memory plugin, with enabled set to true at the plugin entry level but config.enabled set to false inside the plugin config, may be contributing to its inconsistent behavior. Resolving this state and ensuring consistent configuration could potentially improve the plugin's reliability.

Recommendation

Apply a workaround by setting config.enabled to true to ensure a consistent configuration state, and monitor the plugin's behavior to assess its reliability. This change may help resolve the inconsistent behavior, but further investigation and potential fixes from the mentioned existing issues may still be necessary.

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

Expected behavior

When active-memory is enabled for eligible sessions, it should behave consistently:

• either reliably return useful summaries when enough context exists • or fail in a predictable and clearly explained way

It should not frequently alternate between:

• successful summaries • empty summaries • timeouts

under the same deployment.

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 [Bug]: Active-memory on multi-agent Telegram gateway is inconsistent (ok / empty / timeout) and not safe to enable globally [1 comments, 2 participants]