Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
Assigneesskunk-ape

Relationships

#5047 workflow run output: approval hints print twice and disagree, and a serve run is told to resume after approving

Opened by skunk-ape · 11/24/2026

What happens

When a workflow run reaches a manual approval gate, swamp workflow run prints two separate help blocks:

 approve │ start 13:26:43 UTC
 approve │ waiting approval required: "<prompt>"

 approve │ To approve:  swamp workflow approve <workflow> approve --run <id> --server https://<serve>
 approve │ To reject:   swamp workflow reject <workflow> approve --run <id> --server https://<serve>

  system │ Suspended workflow <workflow> — awaiting approval on step approve · 13:26:43 UTC

  system │ To approve:  swamp workflow approve <workflow> approve --run <id> --server https://<serve>
  system │ After approval:  swamp workflow resume <workflow> --run <id> --server https://<serve>
  • "To approve" appears twice.
  • The first block offers reject but not resume. The second offers resume but not reject.
  • On a run through serve (--server), the "After approval: swamp workflow resume" line is likely wrong. swamp workflow approve already handles resuming remotely: serve may resume the run itself (autoResumed), the run's owner may resume it (ownerResumes), or approve sends the resume when every gate is decided (remoteResumeDecision, src/cli/commands/workflow_approve.ts; "a second one is never sent"). Telling the user to run resume adds a step and could race serve's own resume.

The same run output also shows a step finishing twice, back to back: plan │ done plan in 3.1s · 13:26:43 UTC, then plan │ completed in 3.2s · 13:26:43 UTC.

Cause

Two renderer events each print their own hints (src/presentation/renderers/workflow_run.ts, main at e52c839ba or later):

  • the step's waiting-for-approval event (around line 546) prints "To approve" and "To reject" on the step's pipe;
  • the run's suspended event (around line 1003) prints "To approve" and "After approval: … resume" on the system pipe, with no check of whether resume is needed.

Expected

One approval block, printed once when the run suspends:

  • the prompt;
  • the approve command;
  • the reject command;
  • a resume line only where approving won't resume the run by itself (a local run). For a serve run, say approval resumes it, or leave the line out.

A step that finishes prints one line with its duration.

Done when

  • A run suspended at a gate prints approve and reject once each, locally and through --server.
  • The resume hint matches what swamp workflow approve will actually do for that run (verify against a local serve: approve, then check whether the run resumes without resume).
  • A step prints one completion line.
  • Renderer tests pin the new output for local and serve runs, with a fan-out gate and nested signal waits still shown.

Reported from a real run against an ops serve on swamp 2026-11-24.

02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED+ 1 MOREASSIGNED

Open

11/24/2026, 1:31:07 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
skunk-ape assigned skunk-ape11/24/2026, 2:17:31 PM
Editable. Press Enter to edit.

system commented 11/24/2026, 1:31:07 PM

Classified automatically when this issue was filed.

  • Type: Bug

If you feel this classification is incorrect, add a ripple to tell us so.

Sign in to post a ripple.