Suggest saving a memory when a chat message holds something worth remembering

未关闭
#137 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@jbouder 已经在做这个了。

开始于 2026年12月4日。

  • #138 来自 @jbouder —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
停滞
技术栈
go, react, typescript

调研方向

Start with internal/ai/agentproxy/memory.go and ui/src/features/chat/MemoryNote.tsx, then trace how the chat saves memories and how the memory settings page displays them. The linked pull request #138 is already open, so check its coverage of the acceptance criteria before taking this on. Done means model-proposed suggestions can be edited, saved or dismissed, with tests for those flows and the specified exclusions.

由索引模型根据 Issue 内容生成。

描述

Summary

Let the model decide when a message holds something worth remembering, such as a preference, a fact about the person or their work, or a standing instruction. When the model flags one, the chat shows a block under the message that asks whether to save it as a memory. Today a memory is stored as written only when the message starts with remember: or please remember that. That is the rememberRE check in internal/ai/agentproxy/memory.go, mirrored in ui/src/features/chat/MemoryNote.tsx. This covers the gateway's memory handling, the chat UI, and the memory settings page where saved memories show.

Motivation
  • Few people know to start a message with remember:. Most things worth keeping get said in passing ("I'm the sales lead for the EMEA region", "always use metric units").
  • The model can judge what is worth keeping from context, which a fixed phrase or pattern cannot.
  • Asking before saving keeps the person in control of what is stored about them, instead of storing it silently.
  • One click to save is quicker than retyping the fact with a trigger phrase.
  • Today the chat can only report "Saving to memory" after the fact, by polling. A suggestion block gives a clear, immediate outcome.
Acceptance Criteria
  • The model decides whether a message is worth remembering and proposes the memory's text. Keyword or pattern matching is not used to decide.
  • When the model proposes a memory, the chat shows a block under it with the suggested memory text and Save and Dismiss actions.
  • The person can edit the suggested text before saving.
  • Save stores the memory and the block confirms it, with a link to the person's memories. Dismiss hides the block, and the same suggestion does not come back.
  • Questions, one-off requests, and messages already stored with remember: do not get a suggestion. Suggestions do not repeat a memory the person already has.
  • No suggestion shows when memory is off or pi runs on the person's own key, which matches when the Memory chip is hidden today.
  • Tests cover a message that should get a suggestion, one that should not, save, edit, and dismiss.
主要语言
Go
星标
5
派生
0
平均合并
21 小时 13 分钟
30 天内合并 PR
53

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nebari-dev/tapas 的其他 Issue

查看 nebari-dev/tapas 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。