deerflow2/.planning/phases/07-phase-06-mention-upload/07-DISCUSSION-LOG.md

2.3 KiB
Raw Blame History

Phase 7: 发送时拼接附件与Skill优先提示词并在消息区过滤 - Discussion Log

Audit trail only. Do not use as input to planning, research, or execution agents. Decisions are captured in CONTEXT.md — this log preserves the alternatives considered.

Date: 2026-04-17T02:42:19Z Phase: 07-phase-06-mention-upload Areas discussed: 拼接文案规则, 拼接时机与作用域, 消息区过滤策略, 数据来源与去重口径


拼接文案规则

Option Description Selected
A 优先使用【附件1、附件2】和【Skill1、Skill2】;单类单出;去重;附件优先
B 自然语言长句,不固定括号模板
C 用户自定义格式

User's choice: A Notes: 用户要求固定格式,确保输出稳定可预测。


拼接时机与作用域

Option Description Selected
A 真正提交到后端前拼接;覆盖按钮/回车/建议词自动发送
B 仅覆盖手动发送(按钮/回车)
C 更细粒度范围

User's choice: A Notes: 目标是所有发送入口行为一致,不留分叉路径。


消息区过滤策略

Option Description Selected
A UI/消息区始终原文;仅 payload 为“原文+拼接文案”
B 存拼接后文本,再在渲染层过滤
C 自定义实现

User's choice: A Notes: 明确不要把拼接内容展示在消息区,避免渲染层补丁方案。


数据来源与去重口径

Option Description Selected
A 附件名取最终提交文件名Skill 名取选中 tag 的 title;大小写不敏感去重
B 附件优先引用名Skill 取 suggestion 名
C 自定义口径

User's choice: A Notes: 以“最终提交数据”作为一致源,减少多来源命名歧义。


the agent's Discretion

  • 长列表展示截断策略(是否 等N项)。
  • 名称标准化细节trim/空白折叠)。
  • helper 拆分与命名。

Deferred Ideas

  • 拼接模板国际化
  • 用户可视化开关(是否附加“优先使用”提示)
  • 按模型动态提示模板