# Reported issues for Mneme Memory

Pod holds 6 of 6 GitHub reports that passed its relevance review. This can include external user reports, maintainer-confirmed bugs, and concrete feature gaps. Treat them as evidence to inspect, not a count of distinct defects.

Back to [Mneme Memory](/mcp/mneme-memory).

## Most discussed

### [Bug] autoDream 在记忆量较大且路由为思考型模型时 100% 失败：no json array in llm output

## 环境
- dsh-mneme 0.1.x ~ 0.4.2 均存在（dream.js 的 streamText 逻辑全版本一致）
- DeepSeek Harness 0.1.0-rc.7，dsh web profile
- dream 路由：基元律动 / deepseek-v4-flash-0731（思考型模型）
- dreamMaxTokens: 32768（已确认传入请求）

## 现象
- dream_runs 140+ 次运行全部失败（applied=0），错误均为 "no json array in llm output"
- 记忆从不自动合并/去重，重复条目持续累积，库越大越严重
- 记忆较少时（约 50 条内）dream 可正常输出 JSON

## 根因（代码级）
- lib/dream.js 的 streamText() 只收集 text-delta chunk：

  if (chunk.type === "text-delta" && typeof chunk.text === "string") text += chunk.text;

-…

[Read the thread](https://github.com/slow-stack/mneme/issues/9) · 2026-08-18 · closed · outside contributor · 11 comments

### 你的记忆插件很好，请问下一个版本是否可以支持desktop桌面端？

<head></head><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;">作者你好，感谢开发 dsh-mneme。autoDream 巩固、Markdown 镜像和语义检索这几块我一直用得很好，记忆库本身也很健康（90 条记忆、47 次 dream、1300+…

[Read the thread](https://github.com/slow-stack/mneme/issues/57) · 2026-09-05 · closed · external user · 7 comments

### memory_delete 传截断 id 时静默空转，容易误以为删除成功（体验反馈）

## 现象

清理记忆库时，我用 `memory_delete` 批量删除重复条目，id 直接取自列表输出里的短 id（8 位前缀形式，例如 `666518b1`）。一批 42 条调用全部返回 `{ deleted: false }`（界面显示 "Memory not found."），但当时没细看返回值，以为删完了；复查数据库才发现**一条都没删掉**，真正生效的反而是同期 autoDream 自己归档的条目。

## 问题点：静默空转

复盘下来，问题不在"传了短 id"（列表视图本来就常显示截断 id，顺手复制很自然），而在**失败被静默吞掉**：

1. 传 `666518b1` 与传一个根本不存在的 id，返回结果完全一样——工具不区分"格式不对"与"确实不存在"；
2. 全程没有任何 warning 日志，服务日志里查不到线索；
3. 返回值只是布尔 `deleted`，对 LLM agent 调用方来说极易被忽略（本次就是活例），对用户也不够友好。

且这不是 `memory_delete` 单点问题：`memory_archive`、`memory_update`…

[Read the thread](https://github.com/slow-stack/mneme/issues/48) · 2026-09-02 · closed · external user · 5 comments

### [Bug] Local/Ollama 模式下 scheduleEmbed 是静默 no-op：向量更新后不会重建（embedder.schedule 未实现）

**#3 的跟进问题**
## 环境

- dsh-mneme **0.3.3**（0.2.x ~ 0.3.x 均存在）
- 配置：`embedProvider: local`（ONNX / transformers.js，离线本地语义）
- 平台：Windows 11，dsh web profile

## 现象

Local 模式下，记忆内容被更新（工具写入 / 人工编辑合并 / 冲突三路合并）后，
该记忆的 **embedding 向量被清空，但不会重新生成**。后果：

- 语义检索对该条记忆静默失效，只能靠 keyword 兜底；
- 旧向量未保留，也无法恢复，只能手动 reindex（`/api/dsh-mneme/vector-reindex`）。

## 根因（代码级）

`lib/service.js` 的 `scheduleEmbed()` 依赖 `embedder.schedule(memory)`：

```js
function scheduleEmbed(memory) {
  if (txDepth > 0) return; // deferred to…

[Read the thread](https://github.com/slow-stack/mneme/issues/6) · 2026-08-16 · closed · 4 comments

### autoSummarize never runs on DSH 0.1.2-rc.1: session.events does not exist (Session exposes snapshotEvents())

## 问题描述

在 DSH 0.1.2-rc.1 环境下，dsh-mneme 0.7.7 的 `autoSummarize`（会话结束自动提炼记忆）从未真正执行过——从安装到现在从未写过任何一条 summary 类型的记忆，`llm_audit_logs` 表也完全为空（说明它从未发起过 LLM 调用）。

## 根因

`src/summarize.js` 的 `collectMessages()` 遍历的是 `session.events`：

```js
function collectMessages(session) {
  const messages = [];
  for (const event of session.events ?? []) {   // <-- session.events 不存在
    ...
  }
  return messages.slice(-20);
}
```

但当前 DSH 0.1.2-rc.1 的 `Session` 对象**没有 `events` 属性**，事件只能通过…

[Read the thread](https://github.com/slow-stack/mneme/issues/59) · 2026-09-05 · closed · external user · 3 comments

### # [Bug] 记忆内容含 `{{hl|}}` 等模板语法时整轮失败：`malformed prompt variable reference "{{hl|}}" in context "memory"`

## 环境

- DSH: `0.1.0-rc.7`（Web GUI，Windows）
- 插件: `@modusensus/dsh-mneme` `0.7.2`（npm 最新 `0.7.3` 同样存在，代码未变）
- 相关核心包: `@deepseek-ai/dsh-system-prompt` `0.1.0-rc.8`

## 问题描述

当注入的记忆（context `memory` / `user-settings`）内容中包含任何 `{{...}}` 形式的文本时，**整轮对话直接失败**，而不是正常降级。

实际报错（来自记忆库 `llm_audit_logs` / 运行日志）：

```
本轮运行失败 malformed prompt variable reference "{{hl|}}" in context "memory" (variable names match /^[a-z][a-z0-9_]*$/)
```

触发场景：用户消息/记忆里包含 MediaWiki 模板语法（如灰机 wiki 的…

[Read the thread](https://github.com/slow-stack/mneme/issues/40) · 2026-08-30 · closed · external user · 3 comments

## Most recent

The remaining reports are on [the project's issue tracker](https://github.com/slow-stack/mneme/issues).
