修复: 文本对比改用 java-diff-utils(Myers算法)避免插入行后整段误报,修正本地与 latest 对比方向

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 11:00:35 +08:00
co-authored by Cursor
parent 7fa739f711
commit 1a8682511c
3 changed files with 28 additions and 15 deletions
@@ -258,7 +258,7 @@ export function DiffDialog({
<DialogContent className="flex h-[92svh] max-h-[92svh] flex-col sm:max-w-[94vw]">
<DialogHeader>
<DialogTitle>
{request.mode === "localLatest" ? "本地 vs 服务器 latest" : "历史版本对比"}
{request.mode === "localLatest" ? "服务器 latest vs 本地" : "历史版本对比"}
</DialogTitle>
<DialogDescription className="font-mono text-xs">
{request.serverPath}