openclaw - 💡(How to fix) Fix [Bug]: DREAMS.md not created after successful REM phase; Control UI Dreams tab empty [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#72284Fetched 2026-04-27 05:32:02
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Timeline (top)
commented ×1

Fix Action

Fix / Workaround

  • type: textarea id: impact attributes: label: Impact and severity placeholder: | Affected: Single-agent users with memory-core dreaming enabled Severity: Medium (Control UI feature gap — Dreams tab is non-functional) Frequency: Always — every dreaming run since feature was introduced in v2026.4.9 Consequence: Users cannot view the Dream Diary via Control UI; no workaround available to see dreaming output in the UI validations: required: true
RAW_BUFFERClick to expand / collapse

name: Bug report description: Report defects, including regressions, crashes, and behavior bugs. title: "[Bug]: DREAMS.md not created after successful REM phase; Control UI Dreams tab empty" labels:

  • bug body:

  • type: markdown attributes: value: | Thanks for filing this report. Keep every answer concise, reproducible, and grounded in observed evidence. Do not speculate or infer beyond the evidence. If a narrative section cannot be answered from the available evidence, respond with exactly NOT_ENOUGH_INFO.

  • type: dropdown id: bug_type attributes: label: Bug type options: - Behavior bug (incorrect output/state without crash) validations: required: true

  • type: dropdown id: beta_blocker attributes: label: Beta release blocker options: - "No" validations: required: true

  • type: textarea id: summary attributes: label: Summary placeholder: REM phase completes successfully and writes to memory/dreaming/rem/, but DREAMS.md is never created, leaving the Control UI Dreams tab empty. validations: required: true

  • type: textarea id: repro attributes: label: Steps to reproduce placeholder: | 1. Enable memory-core dreaming in openclaw.json (dreaming.enabled: true, frequency: "30 23 * * *", timezone: "Asia/Shanghai") 2. Wait for scheduled dreaming run at 23:30 Shanghai time 3. Observe that memory/dreaming/rem/YYYY-MM-DD.md is created with REM phase output 4. Check workspace root — DREAMS.md does not exist 5. Open Control UI — Dreams tab shows no content validations: required: true

  • type: textarea id: expected attributes: label: Expected behavior placeholder: | After a successful REM phase, DREAMS.md should be created/updated in the agent workspace root so the Control UI Dreams tab can display the Dream Diary content. Per docs: "Human-readable output in DREAMS.md" and "The Control UI exposes the same diary backfill/reset flow so you can inspect results in the Dreams scene." validations: required: true

  • type: textarea id: actual attributes: label: Actual behavior placeholder: | memory/dreaming/rem/2026-04-26.md exists (2384 bytes) with REM phase content: "# REM Sleep\n\n### Reflections\n- No strong patterns surfaced.\n\n### Possible Lasting Truths\n..."

    DREAMS.md does NOT exist in workspace root.
    Control UI Dreams tab is completely empty — no diary entries shown.
    
    Evidence:
    - memory/dreaming/rem/2026-04-26.md: EXISTS with REM output (confirmed via file system)
    - DREAMS.md: DOES NOT EXIST (confirmed via file system and Control UI)
    - Control UI Dreams tab: Empty

    validations: required: true

  • type: input id: version attributes: label: OpenClaw version placeholder: 2026.4.24 validations: required: true

  • type: input id: os attributes: label: Operating system placeholder: Windows 11 validations: required: true

  • type: input id: install_method attributes: label: Install method placeholder: npm global

  • type: input id: model attributes: label: Model placeholder: minimax/MiniMax-M2.7-highspeed

  • type: input id: provider_chain attributes: label: Provider / routing chain placeholder: openclaw gateway -> minimax API

  • type: textarea id: logs attributes: label: Logs, screenshots, and evidence placeholder: | REM phase artifacts present: - memory/dreaming/rem/2026-04-26.md: 2384 bytes, content confirmed - phase-signals.json in memory/.dreams/: lightHits/remHits recorded

    DREAMS.md: absent from workspace root
    
    Config (dreaming section):
    {
      "enabled": true,
      "frequency": "30 23 * * *",
      "timezone": "Asia/Shanghai"
    }
    
    Related issues: PR #70523 (fixes #70509) addresses raw candidate pollution during fallback, but DREAMS.md creation failure is a separate issue.

    validations: required: true

  • type: textarea id: impact attributes: label: Impact and severity placeholder: | Affected: Single-agent users with memory-core dreaming enabled Severity: Medium (Control UI feature gap — Dreams tab is non-functional) Frequency: Always — every dreaming run since feature was introduced in v2026.4.9 Consequence: Users cannot view the Dream Diary via Control UI; no workaround available to see dreaming output in the UI validations: required: true

  • type: textarea id: additional_information attributes: label: Additional information placeholder: | Related: PR #68505 introduced two output modes (inline daily-note blocks vs separate reports). PR #70523 fixes raw candidate pollution in daily memory during fallback but notes "The fallback narrative still lands in DREAMS.md" — suggesting DREAMS.md SHOULD be written even on fallback. This issue may be a different code path where the fallback narrative also fails to write DREAMS.md.

    Environment: Windows 11, OpenClaw 2026.4.24, npm global install, memory-core plugin (built-in, not separate extension).

    validations: required: true


extent analysis

TL;DR

The issue can be resolved by investigating the code path responsible for writing the DREAMS.md file after a successful REM phase and ensuring it correctly handles the output.

Guidance

  • Review the code changes introduced in PR #70523 to understand how the fallback narrative is handled and how it writes to DREAMS.md, as this might provide insight into the current issue.
  • Investigate the dreaming section configuration to ensure that the "enabled" and "frequency" settings are correctly triggering the REM phase and subsequent DREAMS.md creation.
  • Check the file system permissions and access rights to the workspace root directory to ensure that the process attempting to create DREAMS.md has the necessary permissions.
  • Compare the code paths for inline daily-note blocks and separate reports (introduced in PR #68505) to identify any differences in how DREAMS.md is generated and written.

Example

No specific code snippet can be provided without more information on the codebase, but reviewing the functions or methods responsible for writing DREAMS.md after the REM phase would be a good starting point.

Notes

The issue seems to be specific to the memory-core dreaming feature and the Control UI Dreams tab. The fact that memory/dreaming/rem/2026-04-26.md is created successfully suggests that the REM phase is working, but the subsequent step of creating DREAMS.md is failing.

Recommendation

Apply a workaround by manually creating a DREAMS.md file in the workspace root and populating it with the contents of memory/dreaming/rem/2026-04-26.md to verify if the Control UI Dreams tab displays the content correctly. This can help confirm if the issue is solely with the automatic generation of DREAMS.md or if there's an additional problem with the UI display.

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 [Bug]: DREAMS.md not created after successful REM phase; Control UI Dreams tab empty [1 comments, 2 participants]