Repository navigation
feat(web): 将选中的工作区源码行引用到聊天草稿 - #472
Merged
Merged
Conversation
4 tasks done
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.
工作区预览原来只能引用整份文件或附加证据。用户只想讨论几行代码时,需要复制内容、回到聊天,再手工补路径和位置。现在可在现有源码视图中用浏览器原生选区选择代码,点击“引用选中行”,将完整的预览行与来源加入当前聊天草稿;可连续引用,再返回草稿确认发送。
引用保留实际 workspace/Run、路径、预览行号、显示快照 SHA-256 及脱敏/截断说明。源码来自已显示的快照;草稿追加复用 #471 的冲突和保存失败处理,不会自动发送消息。系统复制操作继续使用浏览器原生行为。
与待审 PR 的关系
Stacked on #471,base 为
Qiyuanqiii/diff-inline-feedback,起点2ce3c077。#471 合并后再按最终 main 复核并调整 base。#442/#448/#463 的搜索定位、Markdown 预览与重试,#465 的整文件路径补全,#471 的 Diff 意见均未覆盖此流程。此次仅新增可选 UI 回调,没有新 Go/OpenAPI/DTO/草稿协议。
发布前刷新并对 41 个待审 PR 分别试合并,全部无文本冲突;与 main 检查通过。另将 #442、#448、#463、#437、#454、#458、#465、#440、#461、#467、#469、#470 组合验证,包括切换 Markdown 预览后旧源码选区失效。此结论不表示所有待审 PR 彼此无冲突。
验证
npm run build、npm run check:api、go test -count=1 -tags desktop ./web ./internal/webui通过。OCR delegate
提交 PR 前使用 open-code-review delegate 的 preview/rule 和 Astra 独立审阅。默认范围 5/5,手工补审默认排除的两份测试、README、三张截图 6/6,合计 11/11,无跳过、无可报告发现。审阅冻结范围为
2ce3c077..ae3ea2ac;发布提交6a9a4c6edd31f9a7d23205532c5a0562eb603d2c的 parent、tree、完整 binary diff、OCR 文件选择和规则均与审阅版本核对一致。