维护者确认:#4519 文件树右键「添加到对话」
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 401
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
本讨论用于维护者确认 PR #4519(https://github.com/makecindy/cindy/pull/4519)。
## 这次改了什么
在 Desktop 右侧文件树的文件右键菜单增加「添加到对话 / Add to chat」。点击后把该文件作为现有 mention 标签插入当前任务输入框,保留草稿并聚焦输入框,由用户自行发送。不包含文件夹/批量添加、筛选结果菜单,也不改上传或解析链路。
## 为什么需要维护者确认
当前确认门的 currentBlocker 是 **product**:
- 这是 feat,且改到 ChatInput、FileTreeView、FileBrowserBody 等用户可见 UI。
- 用户看得见的变化:文件右键菜单新增入口、输入框出现文件引用标签、输入框未挂载或锁定时提示稍后重试。
- 这不是内部逻辑/零像素差异,不能按纯技术改动豁免。
同时命中 **rules** 路径 `docs/design-rules/design-inventory.md`。对照完整 diff,该文件只是 `pnpm design:inventory` 刷新的生成台账(快照日期与 `desktop.chat.files` 计数),没有改审查规则正文或判据含义。本次仍按 product 门请求确认。
## 请维护者做什么
请直接在 PR 上 **Approve** 放行讨论门;若交互范围、失败提示或独立侧栏行为需要改,请 **Request Changes**。不要只在评论里表态。
---
关联 PR:#4519(作者 @lxd930808);本 issue 由 review-pr 流程自动创建,用于先讨论该 PR 涉及的产品 / UI 变更,维护者确认后 PR 会恢复推进。
Contributor guide
Research direction
Review PR #4519 and the mentioned Desktop files: ChatInput, FileTreeView, and FileBrowserBody. Check the described file-tree context-menu and input behavior, then confirm whether the product scope and failure handling are acceptable. Done means approving the PR or requesting changes on it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100