Repository navigation
Conversation
The API had POST /team-runs/{id}/cancel, POST /worker-launches/{id}/archive
and DELETE /worker-launches/{id}, but the web app never called them, so a
looping workflow run could only be stopped through the API.
- Team run page: **Stop run** while the run is running and the caller has
executions:cancel. A confirmation says the run ends as cancelled with its
running step executions; the response replaces the cached run, so the run
and its steps show cancelled without a reload, and the run and execution
lists are refreshed.
- Workers → Launches: ended (stopped/failed) launches get **Archive** and
**Delete** (confirmed) for callers with settings:write; the switch gains
"Archived", and History now hides archived launches.
- lib/run-controls.ts holds the rules (run status + permission, ended launch +
permission, history/archived split) with unit tests.
- Guides (executions, worker profiles) and the UI test plan describe the
controls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #440.
Summary
The API had POST /team-runs/{id}/cancel, POST /worker-launches/{id}/archive
and DELETE /worker-launches/{id}, but the web app never called them, so a
looping workflow run could only be stopped through the API.
executions:cancel. A confirmation says the run ends as cancelled with its
running step executions; the response replaces the cached run, so the run
and its steps show cancelled without a reload, and the run and execution
lists are refreshed.
Delete (confirmed) for callers with settings:write; the switch gains
"Archived", and History now hides archived launches.
permission, history/archived split) with unit tests.
controls.
Testing
pnpm --filter @orbit/web typecheck: passed;test: 97 passed (3 new inlib/run-controls.test.ts)pnpm docs:check: passedNot checked in a browser. No Stop action in the run list's rows (the list has no row menu; the run page covers it). Team runs have no archive endpoint, so none is added.
🤖 Generated with Claude Code