#dreaming sessions

1 messages · Page 1 of 1 (latest)

tropic acorn
#

So my openclaw is up to date (OpenClaw 2026.4.26) and yesterday I manually deleted all old dreaming sessions, but today now I check and I have new 25 or so dreaming sessions there again. I thought they were supposed to be automatically cleaned up afterwards? They are showing as 4h old.

stark hareBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> âś… Mark Solution

umbral briarBOT
#

I checked current docs/source: 2026.4.26 is the latest published npm version, so you’re not behind.

Two cases:

  1. Keys look like ...:cron:memory-dreaming:run:...
    Those are isolated cron run sessions. They’re not deleted immediately — default retention is 24h via cron.sessionRetention, so 4h old is expected.

  2. Keys look like dreaming-narrative-*
    Those are Dream Diary subagent sessions and should be cleaned after the run. If 25 of those remain 4h later, that sounds like cleanup failed / a bug.

Useful checks:

openclaw sessions --all-agents --json
openclaw logs --since 6h | grep -Ei "dreaming|narrative session cleanup|cron-reaper"
tropic acorn
#

yes they are all dreaming-narrative-* such as agent:librarian:dreaming-narrative-deep-03fc358922c6-1777446020430. , maybe an issue because my default agents name is not main?

Here is condensed log:
03:00:25 info plugins memory-core: dreaming promotion complete (workspaces=7, candidates=65, applied=2, failed=0).
03:05:39 info plugins memory-core: dreaming cleanup scrubbed 0 stale entries, archived 5 orphan transcripts.
03:05:39 info plugins memory-core: dreaming cleanup scrubbed 14 stale entries, archived 7 orphan transcripts.
03:05:40 info plugins memory-core: dreaming cleanup scrubbed 1 stale entry, archived 0 orphan transcripts.
03:05:44 info plugins memory-core: dreaming cleanup scrubbed 3 stale entries, archived 0 orphan transcripts.
03:06:29 info plugins memory-core: dreaming cleanup scrubbed 3 stale entries, archived 0 orphan transcripts.
03:06:29 info plugins memory-core: dreaming cleanup scrubbed 1 stale entry, archived 0 orphan transcripts.
03:07:26 info plugins memory-core: dreaming cleanup scrubbed 8 stale entries, archived 0 orphan transcripts.
03:11:29 → 03:14:03 warn diagnostic stuck session: librarian / dreaming-narrative-rem-e96e54f5c8a3-1777446008257 processing 146s→300s
03:13:20 info plugins memory-core: dreaming cleanup scrubbed 4 stale entries, archived 5 orphan transcripts.
03:16:39 → 03:22:32 warn diagnostic stuck session: 265958a4... / dreaming-narrative-deep-03fc358922c6-1777446020430 processing 150s→503s
03:17:49 warn diagnostic stuck session: librarian / dreaming-narrative-rem-68bed0fa5277-1777446023361 processing 146s
05:00:39 warn plugins memory-core: managed dreaming cron could not be reconciled (cron service unavailable).

umbral briarBOT
#

Yeah, that pattern is the important bit. agent:librarian:dreaming-narrative-* should still be recognized — non-main default agent should not by itself cause this.

Those logs look more like the Dream Diary subagent runs are getting stuck/timeout-delayed, so the normal deleteSession() cleanup isn’t reliably finishing. The scrubber is clearly running and cleaning some old/orphaned artifacts, but the later:

diagnostic stuck session: librarian / dreaming-narrative-...

means the session lane stayed active for minutes. That’s bug-shaped.

The 05:00 managed dreaming cron could not be reconciled (cron service unavailable) is worth including too, but I don’t think it explains the 03:00 leftovers by itself.

I’d file this with:

  • OpenClaw 2026.4.26
  • default agent id: librarian
  • example key: agent:librarian:dreaming-narrative-deep-...
#
  • the condensed log block you pasted
  • whether these entries have pluginOwnerId: "memory-core" in sessions.json, if you’re comfortable checking

Issue link: https://github.com/openclaw/openclaw/issues

For now, cleanup is safe via UI/manual session deletion. openclaw sessions cleanup --all-agents --enforce --fix-missing only helps if the transcript files are already missing; it won’t necessarily prune live-looking 4h-old dreaming-narrative-* rows.

tropic acorn
#

Would it help to use a faster model for processing dreaming?

umbral briarBOT
#

Yes — as a workaround, probably.

dreaming.model only affects the Dream Diary narrative subagent runs — the dreaming-narrative-* sessions you’re seeing. If those are getting stuck because your default model is slow/queued/local, a faster/lower-latency model should reduce leftovers.

Config shape:

{
  plugins: {
    entries: {
      "memory-core": {
        subagent: {
          allowModelOverride: true,
          allowedModels: ["provider/model-here"],
        },
        config: {