fix: complete unrestricted waits catalog and network flows

This commit is contained in:
Agent Workbench Dev
2026-11-06 06:21:59 +08:00
parent c93c434808
commit c9c77c7ee6
32 changed files with 295 additions and 84 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ try {
let current;
await until(async () => { current = await api('/sessions/' + session.id); return current.status === 'awaiting_approval'; });
assert.equal(current.approvals[0].command, 'node --version');
assert.equal(fs.existsSync(path.join(example.root, 'WORKBENCH-NOTES.md')), false);
assert.equal(fs.existsSync(path.join(example.root, 'WORKBENCH-NOTES.md')), bootstrap.config.executionMode === 'unrestricted');
await api('/sessions/' + session.id + '/approvals/' + current.approvals[0].id, { allow: true });
await until(async () => { current = await api('/sessions/' + session.id); return current.status === 'completed'; });
const command = current.events.find(event => event.tool === 'run_command');