feat(automations): add stop task run action#2870
Open
janburzinski wants to merge 6 commits into
Open
Conversation
janburzinski
marked this pull request as ready for review
July 14, 2026 17:36
Contributor
Greptile SummaryThis PR adds a stop action for automation task runs. The main changes are:
Confidence Score: 5/5This looks safe to merge.
|
| Filename | Overview |
|---|---|
| apps/emdash-desktop/src/main/core/automations/actions/taskCreate.ts | Adds manual-stop checks and cleanup around task launch, conversation creation, and ACP session startup. |
| apps/emdash-desktop/src/main/core/automations/automations-service.ts | Adds task run stopping for queued, in-progress, and active completed runs. |
| apps/emdash-desktop/src/main/core/automations/run-transitions.ts | Adds guarded status transitions for launch, conversation creation, completion, and manual stop. |
| apps/emdash-desktop/src/main/core/automations/runtime.ts | Uses a guarded completion transition and preserves manually stopped run state. |
| apps/emdash-desktop/src/renderer/features/automations/use-automation-run-actions.ts | Adds stop-run action state and stop eligibility checks for automation run rows. |
Reviews (5): Last reviewed commit: "fix(automations): clean up stopped task ..." | Re-trigger Greptile
Collaborator
Author
Collaborator
Author
Collaborator
Author
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a hover action to stop automation task runs from the run overview. The action replaces the run status while hovered, shows explicit
Stopping…andStoppedfeedback, and handles both runs that are still launching and already-created tasks with active PTY or ACP conversations.Stopping an in-progress launch now prevents later automation steps from overwriting the stopped state. Stopping an already-created task terminates its active conversation and resets the stale agent status to idle.
Related issues
ENG-1860
Screenshot/Recording (if applicable)
https://cap.link/3zxhrvk94f1ezfn
Checklist