fix(engines): preserve verified review pauses and always close native sessions

This commit is contained in:
Agent Workbench Dev
2026-11-03 12:20:20 +08:00
parent ecdc939c29
commit 983af1416e
8 changed files with 107 additions and 9 deletions
+1
View File
@@ -556,6 +556,7 @@ export class Runtime {
}
signal.throwIfAborted();
if (!ready) continue;
run.record.review = { kind: 'change_set', changeSetId: id, fingerprint: this.store.core.change_set.get(id).fingerprint, status: 'pending' };
session.status = 'needs_review'; run.stopReason = 'change_set_review';
this.store.message(session, 'system', '当前任务的完整变更批次已封存,同轮工具结果已保存。请审查并应用或撤销批次;等待审查期间不继续请求模型。应用后可显式续接原任务进行检查。');
this.store.save(session, { type: 'change_set.awaiting_review', detail: { changeSetId: id } });