fix(審查流程): 修復 AI 去重超量、clone 失敗誤持久化、留言行號漏 new_position

This commit is contained in:
Jeffery
2026-07-03 11:40:18 +08:00
parent fc5baf32db
commit 2c0ac71c08
3 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export function groupConversations(comments) {
for (const c of comments || []) {
const filePath = typeof c?.path === 'string' ? c.path : '';
if (!filePath) continue; // 無檔案路徑的留言無法定位,跳過以免併入共用群組
const lineNum = Number(c?.position) || Number(c?.original_position) || 0;
const lineNum = Number(c?.position) || Number(c?.new_position) || Number(c?.original_position) || 0;
const key = `${filePath}|${lineNum}`;
if (!groups.has(key)) {
groups.set(key, { key, path: filePath, line: lineNum, commentIds: [], bodies: [], resolved: false, botFinding: null });