Skip to content

Commit d03acf6

Browse files
authored
Fix subagent request marked as user-initiated (#1875)
Fix #276305
1 parent 9ff1a35 commit d03acf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/intents/node/toolCallingLoop.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ export abstract class ToolCallingLoop<TOptions extends IToolCallingLoopOptions =
462462
type: 'function',
463463
})),
464464
},
465-
userInitiatedRequest: iterationNumber === 0 && !isContinuation
465+
userInitiatedRequest: iterationNumber === 0 && !isContinuation && !this.options.request.isSubagent
466466
}, token);
467467

468468
fetchStreamSource?.resolve();

0 commit comments

Comments
 (0)