Skip to content

fix(desktop): restore AutoCreatedTasksStep deleted by dead-module cleanup (#12891) - #12892

Merged
kodjima33 merged 2 commits into
mainfrom
watchdog/issue-12891-restore-autocreatedtasksstep
Sep 6, 2026
Merged

kodjima33 merged 2 commits into
mainfrom
watchdog/issue-12891-restore-autocreatedtasksstep

Conversation

@kodjima33

@kodjima33 kodjima33 commented Sep 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

desktop/windows/src/renderer/src/pages/Onboarding.tsx (line 266) still imports and renders AutoCreatedTasksStep as onboarding step 14 (wired in #12229), but commit 5701283697 ("chore(desktop): remove retired agent-runtime residue and dead-module clusters") deleted the component and its test, misclassifying it as dead code — its reachability check missed this reference.

Since 5701283697 landed on main, desktop/windows's pnpm typecheck fails with TS2307: Cannot find module '../components/onboarding/AutoCreatedTasksStep', and because npm run build runs typecheck first, every build variant (build:win/build:linux/build:unpack) is broken too — confirmed live when PR #12878 touched that tree (see #12891).

Fix

Restore AutoCreatedTasksStep.tsx and AutoCreatedTasksStep.test.tsx verbatim from 5701283697^ (the last commit where both existed and matched Onboarding.tsx's usage). No other changes.

Tested

  • pnpm typecheck (node@22): clean — the TS2307 error is gone.
  • pnpm test (node@22, vitest): full suite green, 555 files / 5532 tests passed (29 skipped, pre-existing), including the restored AutoCreatedTasksStep.test.tsx (1/1).
  • pnpm lint: 0 errors (710 pre-existing prettier warnings, unrelated to this diff).

Closes #12891.

Also registers .github/failure-classes/FC-reachability-cleanup-deletes-live-reference.json — no existing class covered "a dead-code cleanup's reachability scan missed a live import," and this is that class's first instance (evidence_prs: [] per the protocol's own guidance: the fixing PR is the evidence, since its number doesn't exist yet when the file is written).

Failure class (fixes)

Failure-Class: new

🤖 automated by hourly watchdog — tested and merged

Review in cubic

…anup (#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).
…ference

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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@kodjima33
kodjima33 merged commit 83765ff into main Sep 6, 2026
33 checks passed
@kodjima33
kodjima33 deleted the watchdog/issue-12891-restore-autocreatedtasksstep branch September 6, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

desktop-windows: Onboarding.tsx imports AutoCreatedTasksStep, which no longer exists on main

1 participant