feat(input): 输入框内添加文件(@file/@directory 结构化引用)#507
Closed
KevinYoung-Kw wants to merge 2 commits intoop7418:mainfrom
Hidden character warning
The head ref may contain hidden characters: "\u8f93\u5165\u6846\u5185\u6dfb\u52a0\u6587\u4ef6"
Closed
feat(input): 输入框内添加文件(@file/@directory 结构化引用)#507KevinYoung-Kw wants to merge 2 commits intoop7418:mainfrom
KevinYoung-Kw wants to merge 2 commits intoop7418:mainfrom
Conversation
|
@KevinYoung-Kw is attempting to deploy a commit to the op7418's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
已改为 ASCII 分支重发,避免 hidden character warning,并包含 lint 修复(setState-in-effect)。请优先 review #508。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
这个 PR 聚焦输入框内 @ 文件引用能力,不和 feat/global-search 混在一起。
主要改动:
GET /api/files/suggest,支持 session 范围内文件/目录候选(相对路径 + type)@file/@directory走结构化 mentions,发送链路支持:@file->files[]附件@directory-> 目录摘要(不递归注入全文)@filetokenTests
npm run -s typechecknpx playwright test src/__tests__/e2e/mention-ui.spec.tssrc/__tests__/unit/files-suggest-route.test.tssrc/__tests__/unit/message-input-interactions.test.tssrc/__tests__/e2e/mention-ui.spec.tsNotes
输入框内添加文件feat/global-search分支保持分离,便于评审与回滚