openclaw - 💡(How to fix) Fix Active memory crashes on Telegram forum topic sessions (dirName validation) [1 pull requests]

Official PRs (…)
ON THIS PAGE

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…

Error Message

active-memory: agent=main session=agent:main:telegram:group:-1003803644436:topic:35526 start lane task error: "Bundled plugin dirName must be a single directory: -1003803644436:topic:35526" active-memory: agent=main session=... failed error=Bundled plugin dirName must be a single directory

Root Cause

The active-memory sub-agent session key includes the Telegram forum session key which contains colons (-1003803644436:topic:35526). The plugin's directory name validation rejects this because colons are path separators.

Fix Action

Fixed

Code Example

active-memory: agent=main session=agent:main:telegram:group:-1003803644436:topic:35526 start
lane task error: "Bundled plugin dirName must be a single directory: -1003803644436:topic:35526"
active-memory: agent=main session=... failed error=Bundled plugin dirName must be a single directory
RAW_BUFFERClick to expand / collapse

Bug

Active memory plugin fails on Telegram forum (topic-based) group sessions with:

active-memory: agent=main session=agent:main:telegram:group:-1003803644436:topic:35526 start
lane task error: "Bundled plugin dirName must be a single directory: -1003803644436:topic:35526"
active-memory: agent=main session=... failed error=Bundled plugin dirName must be a single directory

Cause

The active-memory sub-agent session key includes the Telegram forum session key which contains colons (-1003803644436:topic:35526). The plugin's directory name validation rejects this because colons are path separators.

Repro

  1. Enable active memory for group chats: allowedChatTypes: ["direct", "group"]
  2. Send a message in a Telegram forum topic (supergroup with topics enabled)
  3. Active memory starts but crashes immediately

Impact

Active memory works in DMs and non-forum Telegram groups but fails on ALL Telegram forum topic messages. This blocks active memory for any agent using Telegram forum supergroups.

Environment

  • OpenClaw 2026.5.2 (8b2a6e5)
  • macOS arm64
  • Telegram channel with forum/topics enabled
  • persistTranscripts: false (uses temp dir, still crashes — the error is in sub-agent session key → dirName conversion, not transcript path)

Expected

Session keys with colons should be sanitized before being used as filesystem directory names in the plugin runtime.

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 Active memory crashes on Telegram forum topic sessions (dirName validation) [1 pull requests]