You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eight CI runs have been failing since early April 2026 due to two root causes. The fix is fully implemented in branch fix/ci-typescript-and-stats-dates, but a structural branching issue blocks the normal PR-to-main workflow.
Root cause 1: TypeScript unused imports (TS6133 / TS6196)
tools/claudeup-core/tsconfig.json has "noUnusedLocals": true. Four imports were left behind after refactors, causing tsc --noEmit to fail on both Node 20 and Node 22:
Root cause 2: Stale hardcoded test dates in plugins/stats
plugins/stats/tests/db.test.ts and integration.test.ts used the hardcoded date "2026-03-26". This date has drifted outside the 7-day and 14-day rolling query windows used by getSessionSummary, getTopTools, and getDurationTrend, causing those tests to return zero results and fail assertions.
The fix
A single clean commit (2b684b7) in branch fix/ci-typescript-and-stats-dates addresses both issues:
Removes the 4 unused imports
Replaces "2026-03-26" with dynamic TODAY / YESTERDAY / TWO_DAYS_AGO constants
The fix is minimal (6 files, 31 insertions, 27 deletions) and built directly on top of the last failing main commit (4b44218).
Structural blocker: main is now a dist-only orphan
As of 2026-04-07, main was converted to a dist-only orphan branch (4070f70 — dist: publish magus v7.3.0). This branch has no shared git history with the source branches (fix/*, tools/*, etc.).
Consequences:
GitHub refuses PRs from source branches to main with: "The branch has no history in common with main"
CI no longer runs on pushes to main (no .github/workflows/ in the orphan)
Decide on the source branch workflow: if fix/ci-typescript-and-stats-dates (or a rebase of it onto the current source HEAD) is the right base, open a PR from it to whatever branch now serves as the integration target
Update .github/workflows/test-plugins.yml and test-stats.yml to trigger on the new source branch instead of main (since main is now dist-only and will never have .github/)
Alternatively: cherry-pick 2b684b7 into the source development branch directly
Summary
Eight CI runs have been failing since early April 2026 due to two root causes. The fix is fully implemented in branch
fix/ci-typescript-and-stats-dates, but a structural branching issue blocks the normal PR-to-main workflow.Failing CI runs
Root cause 1: TypeScript unused imports (TS6133 / TS6196)
tools/claudeup-core/tsconfig.jsonhas"noUnusedLocals": true. Four imports were left behind after refactors, causingtsc --noEmitto fail on both Node 20 and Node 22:tools/claudeup-core/src/__tests__/integration/conventions-integration.test.tsremoveGitignoreEntriestools/claudeup-core/src/__tests__/unit/doctor.test.tsvitools/claudeup-core/src/services/conventions-manager.tsexistsSynctools/claudeup-core/src/services/doctor.tsInstalledPluginEntryRoot cause 2: Stale hardcoded test dates in
plugins/statsplugins/stats/tests/db.test.tsandintegration.test.tsused the hardcoded date"2026-03-26". This date has drifted outside the 7-day and 14-day rolling query windows used bygetSessionSummary,getTopTools, andgetDurationTrend, causing those tests to return zero results and fail assertions.The fix
A single clean commit (
2b684b7) in branchfix/ci-typescript-and-stats-datesaddresses both issues:"2026-03-26"with dynamicTODAY/YESTERDAY/TWO_DAYS_AGOconstantsThe fix is minimal (6 files, 31 insertions, 27 deletions) and built directly on top of the last failing main commit (
4b44218).Structural blocker:
mainis now a dist-only orphanAs of 2026-04-07,
mainwas converted to a dist-only orphan branch (4070f70 — dist: publish magus v7.3.0). This branch has no shared git history with the source branches (fix/*,tools/*, etc.).Consequences:
mainwith: "The branch has no history in common with main"main(no.github/workflows/in the orphan)fix/ci-type-errors-and-stale-test-date(notmain), so CI has never run to verify themfix/ci-ts-errors-and-stale-dates-main-pr) was pushed but the PR creation tomainalso failed for the same reasonRecommended actions
fix/ci-typescript-and-stats-dates(or a rebase of it onto the current source HEAD) is the right base, open a PR from it to whatever branch now serves as the integration target.github/workflows/test-plugins.ymlandtest-stats.ymlto trigger on the new source branch instead ofmain(sincemainis now dist-only and will never have.github/)2b684b7into the source development branch directlyBranches available
fix/ci-typescript-and-stats-dates4b44218fix/ci-typescript-and-stats-dates-resolvedfix/ci-24065489776-ts-and-datesfix/ci-240654897764b44218https://claude.ai/code/session_01AKeDLHMWZBCdJ3f3GRtNTJ