Skip to content

Commit 4593445

Browse files
committed
fix(code-mode): consume replaced no-start facts
1 parent 4228d5e commit 4593445

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/agents/embedded-agent-subscribe.tool-lifecycle.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ export function createEmbeddedToolLifecycleRunner(
4747
try {
4848
completedResult = await toolParams.execute(onImplementationStart);
4949
} catch (error) {
50+
const trustedNoStart = consumeTrustedToolNoStartError(error);
5051
const result = buildToolLifecycleErrorResult(error);
5152
const terminal = await finishToolLifecycle(ctx, toolParams, {
5253
executionStarted,
5354
isError: true,
5455
result,
5556
});
56-
const effectReceipt = consumeTrustedToolNoStartError(error)
57+
const effectReceipt = trustedNoStart
5758
? ({ state: "not_started" } as const)
5859
: terminal.effectReceipt;
5960
await notifyTerminal(toolParams.onTerminal, { ...terminal, effectReceipt });

0 commit comments

Comments
 (0)