openclaw - 💡(How to fix) Fix Feature request: configurable Dream Diary language / prompt [1 pull requests]

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…

Root Cause

The Dream Diary (DREAMS.md) output is always in English because the diary-generation prompt is hardcoded inside the memory-core plugin. Users whose workspace language is non-English (e.g., Chinese) end up with a mixed-language workspace — all other files are in Chinese but Dream Diary entries are in English.

Fix Action

Fixed

Code Example

{
  "plugins": {
    "entries": {
      "memory-core": {
        "config": {
          "dreaming": {
            "enabled": true,
            "language": "zh-CN"
            // or:
            // "diaryPrompt": "用中文写一段简短的梦境日记,风格简洁,不超过三段。"
          }
        }
      }
    }
  }
}
RAW_BUFFERClick to expand / collapse

Problem

The Dream Diary (DREAMS.md) output is always in English because the diary-generation prompt is hardcoded inside the memory-core plugin. Users whose workspace language is non-English (e.g., Chinese) end up with a mixed-language workspace — all other files are in Chinese but Dream Diary entries are in English.

This is not just a cosmetic issue: it breaks workspace language consistency and requires manual post-editing after every dreaming sweep.

Proposal

Add one of these config options under plugins.entries.memory-core.config.dreaming:

  1. dreaming.language — simple locale/language hint (e.g., "zh-CN", "ja") that the diary prompt uses to steer output language.
  2. dreaming.diaryPrompt — full custom prompt override for maximum flexibility (language, style, format, length).

Option 1 is the common case; option 2 is the power-user escape hatch. Both could coexist — if diaryPrompt is set, it takes precedence over language.

Example

{
  "plugins": {
    "entries": {
      "memory-core": {
        "config": {
          "dreaming": {
            "enabled": true,
            "language": "zh-CN"
            // or:
            // "diaryPrompt": "用中文写一段简短的梦境日记,风格简洁,不超过三段。"
          }
        }
      }
    }
  }
}

Environment

  • OpenClaw version: latest
  • OS: WSL2 (Linux)

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 Feature request: configurable Dream Diary language / prompt [1 pull requests]