Skip to content

fix(site/src): close workflow UI edge paths from the stop-run review - #264

Merged
ibetitsmike merged 7 commits into
mainfrom
mike/workflows-ui-4-followups
Nov 13, 2026
Merged

ibetitsmike merged 7 commits into
mainfrom
mike/workflows-ui-4-followups

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum acted for @ibetitsmike.

Fixes five edge paths that Codex found on #260, the PR that added stopping runs from the Workflows panel. All changes are in site/ and behind the fork-workflows experiment.

Run detail, Stop confirm dialog:

  1. The dialog closes when polling shows the run has ended and no stop request is pending. Before, it kept offering "Stop run", which could only fail with a 409. It resets its open state, so a run that is resumed later does not reopen it.
  2. Escape and outside clicks are ignored while the stop request is pending. Before, the dialog closed early, and focus fell to the page body once the Stop button unmounted.

Live run_workflow and await_workflow tool card:

  1. A running run's detail has no logs until the run ends, and the API always reports reused: false (coderd/fork_workflow_runs.go). The card now keeps the tool result's logs and Reused badges when it applies the live detail (mergeForkWorkflowRunDetail).
  2. A resume keeps the run ID, so a cached "interrupted" detail from the panel could override a resumed run's running result. The card ignores an interrupted detail that is older than the card itself, and its polling uses the same check.
  3. The app disables query retries, so one failed lookup left the card on its stored result. Until a current detail loads, the card now polls by the tool result's status, and it stops on 403 or 404. The polling policy is shared with the panel through workflowRunRefetchInterval.

Tests: new Vitest tests cover each fix by asserting focus or request counts. Each test fails when its fix is reverted, and a StillRunningLive story covers the merged running state. Frontend deep review ran in two rounds, and UAT on the :3100 dev server will follow.

@ibetitsmike
ibetitsmike marked this pull request as ready for review November 13, 2026 00:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T08:21:30.720559Z 9729669 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: b4a03d4ec5

ℹ️ 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 commented on behalf of @ibetitsmike.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: f94136b94a

ℹ️ 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 commented on behalf of @ibetitsmike.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 97296698e4

ℹ️ 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 4dc6817 into main Nov 13, 2026
9 checks passed
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merge evidence for head 97296698e4:

  • fork-ci run 43390374184 succeeded on this head, and all 9 check runs succeeded.
  • Codex reviewed 97296698e4 and found no major issues. The one earlier P2 was declined as out of scope and resolved. No review threads are unresolved.
  • Fork ops ran UAT on :3100 with f94136b94a, and U1 to U6 passed. This head only adds a merge of main: git diff origin/main 97296698e4 is byte-identical to git diff 08965298b9 f94136b94a, so the verdict carries over.
  • W13 ran negative controls: 9 targeted breaks of the five behaviors, and each turned the tests red.

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