openclaw - 💡(How to fix) Fix Dreaming narrative sessions leak into agent session list / UI switcher [1 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#69918Fetched 2026-04-22 07:46:43
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
1
Author
Participants
Timeline (top)
subscribed ×1

Fix Action

Workaround

Manually remove dreaming session entries from agents/<id>/sessions/sessions.json.

RAW_BUFFERClick to expand / collapse

Bug Description

The memory-core dreaming plugin creates temporary sessions for dream diary entries (e.g. agent:main:dreaming-narrative-light-xxx, agent:main:dreaming-narrative-rem-xxx, agent:main:dreaming-narrative-deep-xxx).

These sessions are written to agents/<id>/sessions/sessions.json and persist after the dreaming process completes. They appear in the Control UI agent switcher dropdown, cluttering the interface.

Steps to Reproduce

  1. Enable memory-core plugin with dreaming.enabled: true
  2. Wait for dreaming promotion cron to run (default: daily at 3:00 AM)
  3. Open Control UI → click agent switcher (top-left)
  4. Observe: 7 dreaming-narrative sessions listed under the agent

Expected Behavior

Dreaming narrative sessions should be cleaned up after completion and not appear in the UI agent switcher.

Actual Behavior

7 dreaming sessions persist in sessions.json and show up in the UI:

  • agent:main:dreaming-narrative-light-*
  • agent:main:dreaming-narrative-rem-*
  • agent:main:dreaming-narrative-deep-*

Workaround

Manually remove dreaming session entries from agents/<id>/sessions/sessions.json.

Environment

  • OpenClaw: 2026.4.15
  • OS: macOS 25.4.0 (arm64)
  • Node: v22.22.0

extent analysis

TL;DR

Remove unnecessary dreaming session entries from sessions.json to prevent clutter in the Control UI agent switcher.

Guidance

  • Identify and remove the temporary sessions created by the memory-core dreaming plugin from agents/<id>/sessions/sessions.json to clean up the UI.
  • Verify that the dreaming process has completed before checking the UI agent switcher to ensure the sessions are not still in use.
  • Consider automating the removal of these sessions through a script or modifying the plugin to handle session cleanup after completion.
  • Check the dreaming.enabled configuration to ensure it is set correctly and the dreaming promotion cron is running as expected.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a configuration or cleanup task.

Notes

The provided workaround of manually removing dreaming session entries may not be scalable for large-scale deployments. A more permanent solution, such as modifying the memory-core plugin or implementing an automated cleanup script, may be necessary.

Recommendation

Apply workaround: Manually remove dreaming session entries from sessions.json until a more permanent solution can be implemented, as this will immediately address the UI clutter issue.

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 Dreaming narrative sessions leak into agent session list / UI switcher [1 participants]