feat(tasks): bind diagnostics to original failures and explain delivery gaps
This commit is contained in:
@@ -82,6 +82,8 @@ test('diagnostic answers retain the unfinished task, limits and check result, an
|
||||
assert.equal(f.session.changes.length, 0); assert.ok(!fs.existsSync(path.join(f.projectRoot, 'unwanted.txt')));
|
||||
const denied = JSON.parse(f.session.providerMessages.find(message => message.tool_call_id === 'bad-diagnostic-write').content);
|
||||
assert.equal(denied.status, 'error'); assert.match(denied.message, /只读/);
|
||||
const inspected = JSON.parse(f.session.providerMessages.find(message => message.tool_call_id === 'inspect-error').content);
|
||||
assert.equal(inspected.diagnosticContext.evidenceVerified, true); assert.equal(inspected.diagnosticContext.taskId, taskId);
|
||||
f.runtime.start(f.session.id, '继续完成'); await f.wait();
|
||||
assert.equal(f.session.taskId, taskId); assert.equal(f.session.status, 'paused');
|
||||
assert.equal(f.store.core.run.get(f.session.runId).stopReason, 'verification_incomplete');
|
||||
|
||||
Reference in New Issue
Block a user