Skip to content

feat(site): stop workflow runs from the Workflows panel - #260

Merged
ibetitsmike merged 8 commits into
mainfrom
mike/workflows-ui-3-stop
Nov 12, 2026
Merged

ibetitsmike merged 8 commits into
mainfrom
mike/workflows-ui-3-stop

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Xum acted for @ibetitsmike: this PR was written and opened by an agent.

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-workflows experiment, 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}/stop from #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_workflow or await_workflow card whose result says running now 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 at updated_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.

@ibetitsmike
ibetitsmike marked this pull request as ready for review November 12, 2026 20:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T21:01:02.290460Z 1b7ed1b Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for @ibetitsmike.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for @ibetitsmike.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

@ibetitsmike
ibetitsmike merged commit 3358430 into main Nov 12, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/workflows-ui-3-stop branch November 12, 2026 21:14
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merged head 1b7ed1b53e as squash commit 3358430db6. Gates on that head:

  • fork-ci run 43304334617: all 7 jobs passed.
  • Codex review 5881941164: no P1s and 0 unresolved threads. Two round-1 P2s were fixed in 1f83d9f435 (focus after a successful stop, and an overstated test comment); the other P2s were declined as test style or edge paths.
  • Ops UAT on :3100 passed 6/6 with screenshots. It covered stopping a run from the panel, the tool card following the run, a stop race returning 409, the duration of an interrupted run, keeping the open run on browser back, and page health.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant