Repository navigation
feat(chat): 在 AI 回复下方展示本轮文件改动与差异 - #401
Merged
Merged
Conversation
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.
AI 回复下方新增“本轮改动”卡片,展示已编辑文件数、净增删行数和前三个文件;可展开全部,点击文件或“查看变更”打开逐文件差异。沿用现有字体和主题,并适配窄屏与中英文界面。
摘要通过只读接口绑定到准确的对话、运行和回复事件,汇总该回复前已应用的文件编辑记录。重复编辑按起始与最终内容计算,支持新增、删除、重命名;净撤销不显示。敏感内容、记录不连续或差异预算不足时明确显示缺失状态。命令直接写入文件不纳入此统计。
验证:
+15 / -4、展开、逐文件切换、Esc 关闭及焦点恢复;检查深浅主题和 390px 窄屏布局。同步主分支后,修正流式显示测试中的两处按钮语言预期,使其符合组件独立测试的默认英文环境。