Skip to content

feat(desktop): 支持回查本对话原话和交付项 / add recall of chat messages and deliverables - #82

Draft
fatedawn wants to merge 1 commit into
sqfcyily:mainfrom
fatedawn:feat/chat-recall
Draft

fatedawn wants to merge 1 commit into
sqfcyily:mainfrom
fatedawn:feat/chat-recall

Conversation

@fatedawn

Copy link
Copy Markdown

背景

压缩会保留本地历史,但模型后续看到的是摘要和近期消息。摘要漏掉原始约束、中途插话或交付路径时,模型缺少回查入口。

改动

  • 新增只读工具 recall_chat。会话范围由运行时决定,模型只能查询当前会话。
  • 用户原话检索同时识别普通消息和随工具结果记录的中途插话,过滤摘要、工具输出和注入的列表。每次最多返回 5 条片段。
  • 交付文件检索复用 present_files 的现有记录,返回文件名、路径及当前是否可访问。历史与文件保持原来的存储方式。
  • 在主对话提示词中说明何时回查。现有压缩策略照常运行。

#73 讨论新会话引用历史。本 PR 处理原会话在压缩后的回查。

验证

  • npm run typecheck 与 npm run build(apps/desktop)均通过。
  • 用本地构造的会话和压缩 JSONL 验证普通原话、执行中插话、会话隔离、交付路径及文件状态。

This branch has not been deployed

No deployments
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.

1 participant