Skip to content

@文件时的列表会展示文件的来源(路径 工作区) - #2212

Open
daniel20060210 wants to merge 2 commits into
tutti-os:mainfrom
daniel20060210:codex/file-mention-source-context
Open

@文件时的列表会展示文件的来源(路径 工作区)#2212
daniel20060210 wants to merge 2 commits into
tutti-os:mainfrom
daniel20060210:codex/file-mention-source-context

Conversation

@daniel20060210

Copy link
Copy Markdown
Contributor

背景

AgentGUI 的 @ 文件搜索覆盖工作区根目录。同名文件或目录只显示名称时,用户无法判断候选项来自哪个相对位置和工作区;同时当前工作区候选没有明确的展示优先级。

变更

  • 在 Desktop 文件提及 Provider 中解析候选项所属工作区,并生成“相对父路径 · 工作区”上下文
  • 将当前会话 CWD 所属项目的候选稳定提升到其他工作区候选之前,同时保留各层级内 daemon 的相关度顺序
  • 将文件上下文沿 AgentGUI 搜索模型传递到共享 MentionRow,并显示在文件名后
  • 保持非 AgentGUI 的文件提及展示行为不变
  • 补充 Desktop、AgentGUI 与共享 UI 测试,并更新 Agent reference source 架构说明

验证

  • Desktop 文件提及相关测试:33 条通过
  • AgentGUI 文件选择器与搜索模型测试:20 条通过
  • UI rich-text 测试:115 条通过
  • Desktop、AgentGUI、UI rich-text 类型检查通过
  • Oxlint、i18n、renderer/UI/Electron/AgentGUI 等边界检查通过
  • pnpm check:changed -- --base upstream/main --push-ready:19 条 lane 中 18 条通过;唯一失败为现有 macOS openWithApplications 测试在当前环境未发现已安装 handler,与本次变更无关

Checklist

  • 变更只聚焦于文件提及来源展示与排序
  • 已更新用户交互相关架构文档
  • 已运行变更范围内最低有效验证
  • 提交包含 DCO sign-off

@tutti-pr-review-bot
tutti-pr-review-bot Bot requested a review from a team August 10, 2026 07:04
@daniel20060210 daniel20060210 changed the title Clarify file mention sources in AgentGUI @文件时的列表会展示文件的来源(路径 工作区) Aug 10, 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.

1 participant