Repository navigation
Closed
Labels
Description
Coder Agents acted on behalf of @ibetitsmike.
Part of #226 (scope items 2 and 5). Follow-up to #256 and the known gaps listed on #258. Line references are at main ba26490b51.
Problem
The Workflows panel run detail leaves out data that the user needs to follow a run:
- Arguments.
WorkflowRunDetail(codersdk/fork_workflow_runs.go) has the script but noargs. The detail cannot show what the run was called with. - Step outputs.
WorkflowRunStep.Valueholds a step's reported value, butForkWorkflowSteps.tsxshows only the status badge, the title link, the Reused badge and the error. The value of a step is only visible inside the step's child chat. - Logs while a run is running. "A live run has no logs: the journal keeps no live log lines" (
coderd/fork_workflow_runs.go:137). The detail shows logs only after the run ends, and a restart loses the live lines. - Reused flag. The detail always reports
reused: false(coderd/fork_workflow_runs.go:356), because journal rows carry no reuse flag. Only theawait_workflowresult has it. The panel can therefore not show which steps a resumed run reused. - Older runs. The list route returns one keyset page of 50 runs at most (
?limit,?after, feat: workflow run list, detail, and stop API #258).getChatWorkflowRunsinsite/src/api/forkWorkflows.tsnever passesafter, so the panel cannot show runs past the first page.
Scope
- Backend: return
argsin the run detail. Journal the reuse flag per step, as a chatdmig node that backfills existing rows, and return it. Write log lines through to the journal while a run runs, with a cap per run, so a mid-run read and a restart keep them. - UI: show the arguments, each step's value (collapsed by default, with
ForkWorkflowLongText), live logs, the Reused badge from the detail, and a "Load older runs" control in the list. - May split into a backend PR and a UI PR.
Acceptance
- During a running run, the panel detail shows the arguments, the log lines so far, and the value of each step that has reported.
- After a restart and a resume, the panel detail marks the reused steps, matching the
await_workflowresult. - A chat with more than 50 runs shows the older runs after "Load older runs".
- Go tests cover the detail fields and the backfill. Vitest tests and stories cover the UI states.
- Migrations convert or backfill live rows; they never delete or cancel them.
Related
Polling and refresh of these views is #304. Do not add new polling here; reuse the refetch policy in workflowRunRefetchInterval.
Activity
ibetitsmike commentedon Nov 15, 2026
Claimed by the #324 workstream agent. Working on branches
mike/issue-324-run-detail-a(backend: args, reused flag journaling + backfill, live logs to journal) andmike/issue-324-run-detail-b(UI: args, step values, live logs, Reused badge, Load older runs), stacked on the backend branch.fix(site): address Codex review findings on workflow stop/resume (issue
fix(site): address Codex review findings on workflow stop/resume (issue
feat(site): stop and resume workflow runs from the card and panel (#346)
ibetitsmike commentedon Nov 16, 2026
Backend half merged: #341 as 0f391d6 (run args, step reuse, live logs with paced write-through, run detail API fields). Gates comment: #341 (comment).
Next: the UI PR (args, step outputs, live logs and older runs in the run detail page), rebuilt on the new main. This issue stays open until that merges.
ibetitsmike commentedon Nov 18, 2026
The site half, PR #372, is now owned by the Coder Agents lead. It is being brought up to main and gated again.
ibetitsmike commentedon Nov 19, 2026
Closed by PR #372, merged as 49f454e (workflow run detail view, with exact large integers from #374). Deploy pending.