Skip to content

Commit 28cae76

Browse files
committed
fix(agents): wrap session-http-fallback path with empty-tools guard
Greptile review finding: when shouldUseWebSocketTransport=true but wsApiKey is absent, currentStreamFn was returned unwrapped, bypassing the empty-tools interceptor. Wrap it consistently.
1 parent 5517195 commit 28cae76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/agents/pi-embedded-runner/stream-resolution.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function resolveEmbeddedAgentStreamFn(params: {
9797
request: getModelProviderRequestTransport(params.model),
9898
},
9999
})
100-
: currentStreamFn;
100+
: wrapStreamFnStripEmptyTools(currentStreamFn);
101101
}
102102

103103
if (params.model.provider === "anthropic-vertex") {

0 commit comments

Comments
 (0)