Skip to content

site, chatd: show workflow args, step outputs, live logs and older runs in the run detail #324

Closed

Description

@ibetitsmike

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:

  1. Arguments. WorkflowRunDetail (codersdk/fork_workflow_runs.go) has the script but no args. The detail cannot show what the run was called with.
  2. Step outputs. WorkflowRunStep.Value holds a step's reported value, but ForkWorkflowSteps.tsx shows 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.
  3. 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.
  4. Reused flag. The detail always reports reused: false (coderd/fork_workflow_runs.go:356), because journal rows carry no reuse flag. Only the await_workflow result has it. The panel can therefore not show which steps a resumed run reused.
  5. 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). getChatWorkflowRuns in site/src/api/forkWorkflows.ts never passes after, so the panel cannot show runs past the first page.

Scope

  • Backend: return args in 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_workflow result.
  • 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

  1. added
    enhancement
    followup
    on Nov 14, 2026
  2. ibetitsmike commented on Nov 15, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    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) and mike/issue-324-run-detail-b (UI: args, step values, live logs, Reused badge, Load older runs), stacked on the backend branch.

  3. ibetitsmike commented on Nov 16, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    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.

  4. ibetitsmike commented on Nov 18, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    The site half, PR #372, is now owned by the Coder Agents lead. It is being brought up to main and gated again.

  5. ibetitsmike commented on Nov 19, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    Closed by PR #372, merged as 49f454e (workflow run detail view, with exact large integers from #374). Deploy pending.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfollowup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions