Skip to content

修复扫描记忆标题与详情页用户内容显示 - #659

Closed
Orsted290 wants to merge 98 commits into
MemTensor:mainfrom
Orsted290:fix-agent-source-memory-titles
Closed

Orsted290 wants to merge 98 commits into
MemTensor:mainfrom
Orsted290:fix-agent-source-memory-titles

Conversation

@Orsted290

Copy link
Copy Markdown
Contributor

问题定位

Agent 来源记录在扫描导入及摘要索引期间,用户消息开头的时间戳、浏览器上下文等来源封装可能被误当成记忆标题;摘要失败或没有有效摘要时,列表回退到原始正文也会再次泄漏这些标签。部分记忆详情页的“用户”区域无法显示带来源封装的用户原文。

修改内容

  • 统一导入标题和列表预览的语义文本提取:清理消息开头已知的来源封装,提取真实用户请求;覆盖技能块、附件、时间戳、链接上下文、BOM、system-reminder 等形式。
  • 只识别来源协议封装;普通 HTML、引用和代码保持原样。没有有效用户文本时回退到记忆 ID,不使用助手回复作为标题。
  • 摘要失败及 ready 空摘要状态优先使用读模型的 sourceText;详情页显示用户原文。字面 HTML 转纯文本的行为仅在记忆详情和任务对话中启用。
  • 补充导入、列表读模型、前端渲染及 Codex source-turn 回归测试。

测试与验收

  • 已合入最新 v1.2.4 基线 439ec88;与目标分支比较为本任务的 18 个文件差异。
  • Node 22.23.3(重建 better-sqlite3 后):Memory 定向测试 3 个文件、83 项通过;桌面前端 4 个文件、72 项通过;AgentSourceCore Codex source-turn 22 项通过。
  • 合并基线后 npm run lint、npm run typecheck、git diff --check 均通过。
  • macOS 安装版完成六条匿名合成样例的列表、详情和重启验收,覆盖技能/附件前置、BOM、浏览器上下文、失败/空摘要、仅上下文及普通 HTML。验收期间原有 1111 条记录无缺失,六条临时样例已软删除。

范围说明

界面验收使用受控合成样例,不是原截图会话原生文件的完整重放。历史已入库的 Codex 自动审查记录未做批量清理;导入阶段按已有来源元数据过滤,并补充了回归测试。

xuzhiqin1990 and others added 30 commits September 19, 2026 19:52
The OpenAI-compatible provider defaulted to a 120s request timeout,
which caused frequent timeouts during evaluation runs where model
responses legitimately take longer. Raise the default to 300s.

The MEMMY_AGENT_OPENAI_COMPAT_TIMEOUT_S env override is unchanged;
only the fallback default changes. Update the two default-timeout
assertions accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…eout-300s

fix(providers): raise default model call timeout to 300s
…l-reply-copy-v1.2.2

fix(chat): 修复多轮对话中历史助手回复缺少复制按钮 MemTensor#666
…-install-v123

修复 Agent Hook 卸载后自动注入及 Codex trust 失败残留
…rt-conflict

修复:复用占用 18960 端口的兼容 Memory 服务
Synchronize the main branch code to the v1.2.3 branch
ZongYue99 and others added 24 commits October 15, 2026 20:22
feat: build all Memory runtime platforms with one command
fix: wake exec waits on completion and buffered output (MEMMY-675)
…display

fix(desktop): render skill Markdown and restore slash command suggestions
统一已保存凭据的复用条件,绑定角色表单与 endpoint 来源,覆盖返回配置页、复用切换和凭据变更。

纳入 516ba15、43ead001 的 endpoint 去重依赖思路,并使用后端返回的 endpointAliases 替代掩码匹配;补齐相同模型去重和完整保存回归。
…all-dedup-v124

修复跨账号会话记忆重复写入与 L1 召回
…g-guard-v124

fix: guard embedding inputs and isolate rejected batches (MEMMY-488)
…ey-test

修复 BYOK 配置返回后的连接测试失败
…delete

fix: 删除任务时级联删除关联的 L1 和 span
@syzsunshine219
syzsunshine219 changed the base branch from v1.2.4 to main October 22, 2026 13:54
@Orsted290 Orsted290 closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants