Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

fix(init): keep Ink task progress in sync - #1259

Merged
betegon merged 1 commit into
mainfrom
fix/init-ink-task-progress
Jul 16, 2026
Merged

betegon merged 1 commit into
mainfrom
fix/init-ink-task-progress

Conversation

@betegon

@betegon betegon commented Jul 16, 2026

Copy link
Copy Markdown
Member

Summary

The Ink sidebar was only updating tasks when a workflow step suspended. Steps that completed entirely inside start/resume, such as Analyze project when its inputs were already cached, were therefore shown as skipped or left incomplete even though Mastra had finished them.

This reconciles the checklist from the step statuses Mastra already returns on every response. Tasks that never suspend now become green, failures are reflected even before a client-tool round trip, and the final synchronous steps can reach the completed count.

The separate Installing dependencies row was also stale: cli-init-api#140 merged installation into apply-codemods. The checklist now mirrors the real eight-step user-facing workflow and labels that phase Applying changes + deps instead of keeping a task that can never receive a server transition.

Tasks now render above the rotating tips, so different tip heights no longer move the progress list around.

Test plan

  • pnpm run lint — 920 files pass
  • pnpm run typecheck — passes
  • pnpm vitest run test/lib/init/ui/ink-app.snapshot.test.tsx test/lib/init/ui/wizard-store.test.ts test/lib/init/wizard-runner.test.ts — 123 tests pass
  • pnpm vitest run test/lib/init test/lib/telemetry.test.ts — 538 tests pass
  • TZ=UTC pnpm vitest run test/lib/time-range.test.ts — 51 tests pass
  • pnpm run test:unit — 8,479 pass, 14 skipped, with eight pre-existing local-environment failures: six timezone-sensitive time-range assertions under Europe/Madrid and two bash completion shell simulations. The time-range failures pass under TZ=UTC; none of the eight touch init.
  • git diff --check — passes
  • Local patch coverage for executable lines — 100%

Use Mastra's step results to complete tasks that finish without suspending. Remove the obsolete install-deps row now that dependency installation runs inside apply-codemods.
@github-actions

github-actions Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-16 10:35 UTC

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 5468 uncovered lines.
✅ Project coverage is 81.65%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.63%    81.65%    +0.02%
==========================================
  Files          425       425         —
  Lines        29788     29795        +7
  Branches     19333     19339        +6
==========================================
+ Hits         24314     24327       +13
- Misses        5474      5468        -6
- Partials      2025      2023        -2

Generated by Codecov Action

@betegon
betegon marked this pull request as ready for review July 16, 2026 10:30
@betegon
betegon merged commit 7b6a33c into main Jul 16, 2026
31 checks passed
@betegon
betegon deleted the fix/init-ink-task-progress branch July 16, 2026 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant