Repository navigation
feat(chat): 为本轮文件改动添加撤销 - #402
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.
回复下方的文件改动卡片现在支持“撤销”:先检查当前文件,确认后恢复该回复之前的内容,并显示持久保存的“已撤销”状态。弹窗支持中英文、键盘操作及窄窗口;同时修正改动弹窗被窄屏侧栏遮挡的问题。
撤销范围来自该回复已应用的文件编辑记录,覆盖连续编辑、新增、删除和移动,保留其他路径及 Git 暂存区。后续文件修改、缺失原始记录、权限不足或任务仍在执行时会阻止恢复并说明原因。重复请求读取已有结果;中途失败分别报告已恢复与剩余路径,重启后核对实际文件并释放执行占用。
验证:
范围仍为改动卡片中可追溯的文件编辑记录;命令直接写入的文件不包含在本轮撤销中。