Repository navigation
fix(desktop-windows): wire AutoCreatedTasksStep as step 14 of onboarding - #12229
Conversation
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks @formed2forge — the diagnosis here is spot-on, and the fix itself is small, correct, and well covered. The only blocker is branch hygiene, not your code.
The fix (verified against desktop/windows/src/renderer/src/pages/Onboarding.tsx at head):
TOTAL_STEPS14 → 15 andnext()now clamps to step 14, so the previously unreachable step actually renders. I confirmed currentmainstill hasTOTAL_STEPS = 14withhandleGoalcallingfinishToChat()— the bug is real and not yet fixed upstream. Nice catch.handleGoalandGoalStep onSkipnow go throughnext()instead of short-circuiting tofinishToChat(), and the deadfinishToChatis cleaned up in the follow-up commit.renderStepgains the explicitstep === 13case forGoalStep, with the fall-through rendering<AutoCreatedTasksStep onFinish={finishToTasks} />, which routes to/tasksviasetPendingRoute+completeOnboarding()— matchingAutoCreatedTasksStep's own "Take me to my tasks" CTA.Onboarding.test.tsxcovers all three transitions (continue → 14, skip → 14, finish →/tasks+ completion) with the step components mocked — a genuinely useful regression suite for the wizard's state machine.- The changelog fragment
2026-08-onboarding-autocreated-tasks-step.jsonmatches the behavior change.
What needs to change — the branch, not the code:
This PR shows 205 changed files (+6905/−3378), but only 3 of them are yours. I compared every file at the PR head against current main: 157 are byte-identical to main today, and 40 more match older snapshots from main's own history (e.g. backend/AGENTS.md, backend/charts/monitoring/README.md, .github/workflows/gcp_backend.yml — the branch carries earlier versions of files main has since moved forward). Your branch merges an upstream snapshot that is now 152 commits behind, and GitHub reports the PR as conflicting, so it cannot merge as-is.
Could you rebase onto current main — or open a fresh branch from main containing just your two fix commits — so the PR shows only your 3 files? One detail to leave behind while rebasing: the added 2026-08-17 line in .github/guardrail-pulse-history.jsonl also rides along with the stale history rather than belonging to this fix; please drop it so the PR stays scoped to the onboarding change.
Once the diff is just the onboarding fix, this should be a quick maintainer pass to land — the change itself needs no product decision, only the rebase.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
f15d0ca to
421ab31
Compare
|
Rebased onto current main — PR now shows 4 files (the 3 onboarding fix files + changelog fragment). The guardrail-pulse-history line is gone. Mergeable. |
Dismissing my earlier changes-requested review — it was solely about branch hygiene (the branch carried a stale upstream snapshot showing 205 changed files and GitHub reported conflicts). The branch has since been rebased onto current main: verified mergeable at head 421ab31, with only the onboarding fix files remaining.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
|
Rebase verified — thanks @formed2forge, this is exactly what was needed. Confirmed at the current head:
From my side this is ready — the change itself needs no product decision, so leaving it for a maintainer to merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Rebased and verified correct — 4 files (3 onboarding + changelog). Ready for maintainer merge sign-off. |
|
All CI checks pass and the rebase is clean. Pinging for maintainer review/sign-off. |
421ab31 to
52c382c
Compare
|
Rebased onto upstream/main — branch is now 3 changed files (was 205 stale). The dead |
|
Verified at the current head (
One behavior change worth a maintainer's eyes: first-run completion now lands on Thanks @formed2forge — the diagnosis (the goal step short-circuiting past an unreachable final step) was exactly right, and having the test suite document the bugs it caught is a nice touch. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
52c382c to
91fd6a8
Compare
|
Verified the 09-02 rebase at Nothing further needed from you, @formed2forge — thanks for keeping the rebases tidy through the churn on main. From the automation side this is done; it just needs a maintainer's merge sign-off. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
TOTAL_STEPS was 14 but step 14 was unreachable: handleGoal and GoalStep onSkip both called finishToChat() directly, bypassing next(), and AutoCreatedTasksStep was imported in dead code (never rendered by renderStep). Fix: bump TOTAL_STEPS to 15, change handleGoal + GoalStep onSkip to call next(), add explicit step===13 case for GoalStep in renderStep, add step===14 default case rendering AutoCreatedTasksStep, and add finishToTasks() for the tasks-route completion path. Verified: pnpm test -- Onboarding.test.tsx passes (3 new regression tests covering onContinue→step-14, onSkip→step-14, finishToTasks route). Failure-Class: none Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01KADKRuaPJdho9CDE7nLXQP
…14 wire Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01KADKRuaPJdho9CDE7nLXQP
91fd6a8 to
0712d83
Compare
|
Verified at the new head For the maintainer sign-off, the product context that hasn't been surfaced in this thread yet:
So the decision to confirm at merge: the parity audit's direction (restore the tasks closing step) supersedes the July simplification. Everything technical is verified — the wiring, resume clamping ( Thanks @formed2forge — solid diagnosis, tight fix, and the dead-code cleanup commit on top was good hygiene. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Small, well-tested desktop bug fix (wires AutoCreatedTasksStep as onboarding step 14/15, fixes the TOTAL_STEPS=14 unreachable-step bug) — diff is clean and CI is green. Capped at approve (not merged) per the standing formed2forge account-trust hold; would otherwise qualify for owner-override merge at 4/5 confidence.
|
This PR is approved (kodjima33) and CI is green — no further changes needed. Could a maintainer please merge when you get a chance? Thanks. |
…anup (#12891) (#12892) * fix(desktop): restore AutoCreatedTasksStep deleted by dead-module cleanup (#12891) desktop/windows/src/renderer/src/pages/Onboarding.tsx still imports and renders AutoCreatedTasksStep (step 14, wired in #12229), but 5701283 ("remove retired agent-runtime residue and dead-module clusters") deleted the component and its test, misclassifying it as dead. Any build or typecheck of desktop/windows on main has been broken since (`npm run build` runs `typecheck` first, so `build`/`build:win`/`build:linux`/`build:unpack` all fail before bundling), confirmed by PR #12878 hitting TS2307 when it touched that tree. Restore both files verbatim from 5701283^ (the last commit where they existed and matched Onboarding.tsx's usage). * docs(failure-class): register FC-reachability-cleanup-deletes-live-reference Companion to the fix in this branch: 5701283 deleted AutoCreatedTasksStep.tsx as "dead" while Onboarding.tsx still imported and rendered it, breaking desktop/windows typecheck and every build variant. No existing failure-class definition covers a cleanup's reachability scan missing a live reference, so this registers a new one per pr-preflight's failure-class-protocol.
Summary
TOTAL_STEPSwas 14 but step 14 was unreachable:handleGoalandGoalStep.onSkipboth calledfinishToChat()directly, bypassingnext(), andAutoCreatedTasksStepwas imported but never referenced byrenderStep.TOTAL_STEPSto 15, routehandleGoal+ GoalSteponSkipthroughnext(), add explicitstep===13case for GoalStep andstep===14default case renderingAutoCreatedTasksStep, addfinishToTasks()for the tasks-route completion path.Verification
Cannot exercise the live UI path (no app build in this environment); tests cover the full onboarding state machine through the wizard's public handler surface.
Failure-Class: none
🤖 Generated with Claude Code
https://claude.ai/code/session_01KADKRuaPJdho9CDE7nLXQP