-
Notifications
You must be signed in to change notification settings - Fork 34.8k
allow agent to run compound tasks #261347
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
Conversation
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 enables agents to run compound tasks by adding support for handling task dependencies. The changes allow the task execution tools to resolve and track multiple terminals when running tasks that have dependencies.
Key changes:
- Added support for resolving task dependencies and handling multiple terminals
- Updated task execution tools to track output from all related terminals
- Modified the task service API to handle multiple tasks/terminals instead of single instances
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
runTaskTool.ts |
Updated to resolve dependency tasks and handle multiple terminals for compound task execution |
getTaskOutputTool.ts |
Modified to get output from all terminals associated with a task and its dependencies |
createAndRunTaskTool.ts |
Enhanced to track multiple terminals and aggregate results from compound tasks |
taskHelpers.ts |
Added resolveDependencyTasks function and updated getTaskForTool to support parent tasks |
taskSystem.ts |
Changed interface from single terminal to multiple terminals support |
taskService.ts |
Updated service interface to handle arrays of tasks/terminals |
terminalTaskSystem.ts |
Implemented logic to return multiple terminal resources for task arrays |
abstractTaskService.ts |
Updated to delegate to new multi-terminal API |
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.ts
Outdated
Show resolved
Hide resolved
.../workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
.../workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
demo.mov |
fix #258241
Screen.Recording.2025-08-12.at.6.17.19.PM.mov