This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
fix(init): keep Ink task progress in sync - #1259
Merged
Merged
Conversation
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.
Contributor
|
Contributor
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 5468 uncovered lines. 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 -2Generated by Codecov Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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