Skip to content

fix(cli): render skipped steps as skipped, not complete - #876

Merged
Eliezir merged 1 commit into
unicef:developfrom
edubraqd:fix/cli-skipped-step-progress
Oct 2, 2026
Merged

Eliezir merged 1 commit into
unicef:developfrom
edubraqd:fix/cli-skipped-step-progress

Conversation

@edubraqd

Copy link
Copy Markdown
Contributor

What this does

The CLI handled step-complete and step-skip in the same branch and filled the bar to its total for both, so a stage skipped after an upstream failure showed a full bar reading 100/100. The event schema already tells the two apart and the studio UI maps step-skip to its own skipped state; only the CLI threw that away.

step-skip now leaves the bar empty and replaces the value/total column with skipped. The per-step format becomes a format function so it can read that flag from the bar payload; nothing changes for step-complete or step-progress.

   Extract        [██████████████████████████████] 1/1
   Speech         [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] skipped
   Progressed     [████████████░░░░░░░░░░░░░░░░░░] 4/10

Emitters are untouched, as the issue asks. The "Failed stages" footer question raised there is left open; this only fixes the misleading bar.

Fixes #811

Testing

  • pnpm typecheck clean.
  • vitest run packages/pipeline: 67 files, 1257 tests, all passing. cli.ts has no tests of its own and createCliProgress is not exported, so no new test; the render above is from driving the same format function through cli-progress 3.12 with a captured stream.

Written with help from Claude Code; I reviewed and ran everything myself.

🤖 Generated with Claude Code

The CLI handled step-complete and step-skip in the same branch and
filled the bar to its total for both, so a stage that never ran after
an upstream failure showed a full green bar reading 100/100. The
progress schema already distinguishes the two events and the studio UI
maps step-skip to its own "skipped" state; only the CLI threw the
information away.

step-skip now leaves the bar empty and replaces the value/total column
with "skipped". Per-step formats become format functions so the bar can
read that flag from the payload.

Fixes unicef#811

Co-Authored-By: Claude Opus 5 <[email protected]>
@Eliezir

Eliezir commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Hey! It looks like this PR is targeting main instead of develop. develop is the repository's default branch, and targeting main is pulling a large number of unrelated changes into the diff.

Could you update the base branch to develop?

@edubraqd
edubraqd changed the base branch from main to develop September 18, 2026 00:18
@edubraqd

Copy link
Copy Markdown
Contributor Author

Done, base is now develop. The branch was already on top of develop (43814f2), so the diff is just the one change in packages/pipeline/src/cli.ts. Sorry for the noise.

@Eliezir
Eliezir merged commit b532517 into unicef:develop Oct 2, 2026
3 checks passed
@Eliezir Eliezir mentioned this pull request Oct 5, 2026
8 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): skipped steps render as complete (100% progress bar) on a failed run

3 participants