Skip to content

Commit 92a04c1

Browse files
mchwangclaude
andcommitted
Make assertVendorNetwork async so a bad deadline rejects
Fixes the real-docker CI failure on #70 (agent-network "rejects a copied network capability"): assertVendorNetwork returned a promise but was not declared async, so an invalid timeout threw synchronously from deadline() instead of rejecting. Every other async D entry point already rejects. 198 of 200 real-Docker tests passed in that run; this was the only failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ca0a722 commit 92a04c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎agents/network/network.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ const validateVendorNetwork = async (network: VendorNetwork, invocation: Invocat
168168
remaining();
169169
};
170170

171-
export function assertVendorNetwork(network: VendorNetwork, invocation?: InvocationInput, agentName?: string,
171+
// Async, so an invalid deadline rejects like every other failure instead of throwing synchronously.
172+
export async function assertVendorNetwork(network: VendorNetwork, invocation?: InvocationInput, agentName?: string,
172173
timeoutMs = 30_000, signal?: AbortSignal): Promise<void> {
173174
return validateVendorNetwork(network, invocation, agentName, deadline(timeoutMs), signal);
174175
}

0 commit comments

Comments
 (0)