-
Notifications
You must be signed in to change notification settings - Fork 35.7k
Add command to re-run all running tasks #252212
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
Co-authored-by: anthonykim1 <62267334+anthonykim1@users.noreply.github.com>
Co-authored-by: anthonykim1 <62267334+anthonykim1@users.noreply.github.com>
|
Also, we should test with running more than one task - that compound task is really just 1 😄 |
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
You're absolutely right! The implementation handles multiple independent tasks correctly - |
|
@meganrogge Yeap for sure! I see from the UI that they are connected with the line before tool icon, but is there way to programmatically identify that some task is part of the single "compound" task? is the giveaway. Attaching updated testing gif here: Screen.Recording.2025-06-24.at.11.56.17.AM.movNote for copilot: Please do not try to add unnecessary notification dialog. |
Implements a new command that allows users to restart all currently running tasks with a single action, addressing the need for a generic way to re-run multiple tasks simultaneously.
Changes
New Command Implementation:
RerunAllRunningTasksCommandIdconstant intasks.ts_runRerunAllRunningTasksCommand()method inabstractTaskService.tsUser Interface Integration:
TASK_RUNNING_STATEis active (tasks are running)User Experience Features:
Promise.allSettled()to restart all tasks concurrently without failing if individual tasks encounter errors_restart()method for consistent task restart behaviorUsage
Users can now:
Or access it through Terminal → Rerun All Running Tasks... when tasks are active.
This provides a much more efficient workflow for development scenarios where multiple tasks need to be restarted simultaneously, such as when switching branches or updating configuration files.
Fixes #249956.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.