fix: preserve task intent across diagnostics and review continuation

This commit is contained in:
Agent Workbench Dev
2026-11-01 13:03:20 +08:00
parent 16f89838dd
commit 0736eca4cd
11 changed files with 213 additions and 17 deletions
+2
View File
@@ -8,6 +8,7 @@ import { assertWorkspacesResolved } from '../../shared/contracts/workspaces.mjs'
import { verifyWorkspaceProject } from './git-workspaces.mjs';
import { assertMcpResolved } from '../tools/mcp-contract.mjs';
import { assertWorkersResolved, assertWorkerWriteScope } from '../../shared/contracts/workers.mjs';
import { settleAppliedTask } from '../../shared/contracts/task-control.mjs';
const at = () => new Date().toISOString();
const conflict = message => Object.assign(new Error(message), { status: 409 });
@@ -258,6 +259,7 @@ export class ChangeSetManager {
}
if (!set.requiresVerification) {
session.status = session.changes.some(change => ['pending', 'conflict'].includes(change.status)) ? 'needs_review' : 'completed';
if (complete) settleAppliedTask(this.store, session);
session.recoveryNotice = null;
} else { session.status = 'paused'; session.recoveryNotice = set.summary; }
session.events.push({ id: randomUUID(), kind: 'change_set', label: '多文件变更集 · ' + set.files.length + ' 个文件',