-
Notifications
You must be signed in to change notification settings - Fork 36.9k
fix(runSubagent): collect computed attachments #283750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(runSubagent): collect computed attachments #283750
Conversation
|
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for collecting computed attachments (automatic instructions) in the runSubagent tool. Previously, the subagent was invoked with an empty variables array, which meant it didn't benefit from automatic instruction collection based on enabled tools and context. The fix ensures that automatic instructions are collected based on the enabled tools configuration before invoking the subagent, consistent with the pattern used in the main chat widget.
Key Changes:
- Added
collectVariablesprivate method that converts enabled tool IDs to full reference names and usesComputeAutomaticInstructionsto collect automatic instructions - Modified the
invokemethod to collect variables before creating the agent request - Added necessary service dependencies and imports
|
@przpl Nice, thanks! |
Fixes #282310
Example of a
[tool/runSubagent]request with instructions attached to the system prompt: