Skip to content

Commit 9c778a1

Browse files
authored
Fix subagent request marked as user-initiated (#1876)
Fix #276305
1 parent 9a3bd74 commit 9c778a1

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)