openclaw - 💡(How to fix) Fix Feature Request: Add `dreaming.language` config option to memory-core plugin

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…

Fix Action

Fix / Workaround

  1. Post-processing script: Write a script to auto-translate dreaming files after generation. This is a workaround rather than a proper solution.

Code Example

{
  "plugins": {
    "entries": {
      "memory-core": {
        "config": {
          "dreaming": {
            "enabled": true,
            "language": "zh-CN"
          }
        }
      }
    }
  }
}

---

plugins.entries.memory-core.config.dreaming.language
  type: string
  default: "en"
  placeholder: "zh-CN"
  help: "ISO 639-1 locale code for Dream Diary narrative subagent output (headings, labels, and generated text). Affects light/deep/rem phase outputs."
RAW_BUFFERClick to expand / collapse

Feature Request: Add dreaming.language config option to memory-core plugin

Is your feature request related to a problem?

The memory-core plugin's Dreaming feature generates dream diary entries in memory/dreaming/{light,deep,rem}/ directories. However, the generated content uses English headings by default (e.g., "Light Sleep", "Deep Sleep", "REM Sleep", "Reflections", "No strong patterns surfaced"), even when the user's system language preference is Chinese.

Currently, there is no configuration option to specify the output language for dreaming. Each time the cron job runs, if English headings are generated, the user must manually translate them.

Describe the solution you'd like

Add a language option to the dreaming config section:

{
  "plugins": {
    "entries": {
      "memory-core": {
        "config": {
          "dreaming": {
            "enabled": true,
            "language": "zh-CN"
          }
        }
      }
    }
  }
}

This would make the subagent prompt generate all dreaming output (headings, labels, reflections) in the specified locale.

Expected behavior

When language: "zh-CN" is set:

Current (English)Expected (Chinese)
# Light Sleep# 浅睡
# Deep Sleep# 深睡
# REM Sleep# REM 睡眠
### Reflections### 反思
- No strong patterns surfaced.- 未发现强烈模式。
- Repaired recall artifacts...- 修复了回忆碎片...
- Ranked N candidate(s)...- 为 N 个候选项排序...
- Promoted N candidate(s)...- 晋升 N 个候选项到 MEMORY.md

Schema addition

plugins.entries.memory-core.config.dreaming.language
  type: string
  default: "en"
  placeholder: "zh-CN"
  help: "ISO 639-1 locale code for Dream Diary narrative subagent output (headings, labels, and generated text). Affects light/deep/rem phase outputs."

Describe alternatives you've considered

  1. Manual translation: After each dreaming cron run, manually edit the generated files to translate headings and content. This is tedious and doesn't scale.

  2. Post-processing script: Write a script to auto-translate dreaming files after generation. This is a workaround rather than a proper solution.

  3. MEMORY.md language preference: While MEMORY.md already contains "所有日记、日志、记录必须使用中文书写", the dreaming subagent doesn't read MEMORY.md during its isolated cron execution.

Additional context

  • OpenClaw version: 2026.5.7
  • Plugin: @openclaw/memory-core
  • Current config path: plugins.entries.memory-core.config.dreaming
  • Affected cron: "Memory Dreaming Promotion" (runs daily at 03:00 Asia/Shanghai)
  • User context: Chinese-speaking user with agents.defaults.userTimezone: "Asia/Shanghai"

This is a relatively small change: the dreaming subagent prompt just needs to receive the language preference and use it for all generated headings/labels/content.

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…

FAQ

Expected behavior

When language: "zh-CN" is set:

Current (English)Expected (Chinese)
# Light Sleep# 浅睡
# Deep Sleep# 深睡
# REM Sleep# REM 睡眠
### Reflections### 反思
- No strong patterns surfaced.- 未发现强烈模式。
- Repaired recall artifacts...- 修复了回忆碎片...
- Ranked N candidate(s)...- 为 N 个候选项排序...
- Promoted N candidate(s)...- 晋升 N 个候选项到 MEMORY.md

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: Add `dreaming.language` config option to memory-core plugin