Repository navigation
feat(site): stop workflow runs from the Workflows panel - #260
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da8cdf7f4b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…l): keep focus after a workflow run stops
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f83d9f435
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b7ed1b53e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Merged head
Follow-up candidates (edge paths): close the confirm dialog when polling shows the run has ended, block Escape while a stop is pending, keep logs and reused flags when live detail replaces the tool result, keep stale cached detail from overriding a resumed run, and retry a failed first live lookup. |
The Workflows panel can now stop a running workflow run, and workflow tool cards follow a run that was still running when the tool returned. This is the third UI PR for the
fork-workflowsexperiment, after the tool cards (#246) and the Workflows panel (#256).The run detail of a running run has a Stop button. It opens a confirm dialog, and confirming calls
POST /api/v2/chats/fork/{chat}/workflow-runs/{run}/stopfrom #258. A 200 writes the returned run into the run's cache entry. Success or failure, the chat's run list and details refetch, because a 409 means the run already ended or was interrupted. A failed stop shows the server's message in a toast. The Stop button shows only while the run is running; the dialog stays mounted, so a run that ends while it is open does not drop focus.A
run_workfloworawait_workflowcard whose result saysrunningnow reads the run from the run API, using the panel's cache entry and polling. The card then shows the run's current status, steps and result, with new "Workflow stopped" and "Workflow interrupted" labels. If that request fails, for example a 403 for a viewer who cannot read runs, the card keeps the tool result, as before.The panel remembers the open run per chat for the browser session, so pressing back after opening a step's child chat returns to that run instead of the run list.
An interrupted run has no
finished_at, so its duration grew with every render. It now ends atupdated_at.New stories: stopped run in the list, detail and card; interrupted card; the stop confirm dialog and its pending state; a card that follows a started run to completed. All changes are in fork files.