gsxdsm
4ea5dd6739
fix: CLI shouldSuperviseDashboard mock + getCliPackageVersion/isUnresolvedCliPackageVersion + executeRequeueLoopCount + i18n buttonShort (round 9) (#2034)
## Summary
Fixes shard 3 (CLI) + shard 4 (i18n) failures from full-suite run
29223788088.
## Fixes
### CLI (shard 3) — 5 files, ~140 tests
- **`bin.test.ts`** — `bin.ts:851` now imports
`shouldSuperviseDashboard` and `bin.ts:865` imports
`runDashboardSupervised` from `./commands/dashboard.js`. Test mock only
exported `runDashboard`. Missing `shouldSuperviseDashboard` → TypeError
→ caught → `process.exit:1`. Added `shouldSuperviseDashboard: vi.fn(()
=> false)` + `runDashboardSupervised` to mock + `commandMocks`.
- **`daemon/serve/dashboard.test.ts`** — `@fusion/dashboard` barrel
(index.ts:115) re-exports `getCliPackageVersion`,
`isUnresolvedCliPackageVersion`, `resolveCliPackageVersionInfo`. Added
all 3 to each file's `@fusion/dashboard` mock.
- **`task.test.ts`** — `executeRequeueLoopCount: 0` added to
TaskResetField set by recent commit; retry test assertions needed the
new field in both `mockUpdateTask` expectations.
### i18n (shard 4) — 4 locale files
- **`settings.reset.buttonShort`** missing from zh-TW, fr, es, ko (zh-CN
already had it).
### Engine (shards 1+2) — already fixed in PR #2025 (merged on main)
- Run 29223788088 was at commit `b85a6b866` (pre-PR-2025-merge), so
engine + i18n `storageMigrationNotice` failures visible in that run are
already resolved on main.
## Verification
- daemon: 21/21 ✅ | serve: 58/58 ✅ | dashboard: 91/91 ✅ | task retry:
5/5 ✅
- i18n parity + gate-coverage: 7/7 ✅
- Gate (`pnpm test:gate`): exit 0 ✅
- `bin.test.ts`: cannot verify locally (`@agentclientprotocol/sdk` not
installed locally; CI resolves from lockfile). Mock exports verified
against `dashboard.ts` source.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved task retry recovery by correctly resetting execution
counters.
* **Localization**
* Added support for shorter reset-button labels in Spanish, French,
Korean, and Traditional Chinese.
* **Tests**
* Updated command and startup checks to reflect current dashboard and
version-handling behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-07-12 21:58:12 -07:00
..
2026-07-12 21:58:12 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 21:57:29 -07:00
2026-07-12 21:39:23 -07:00
2026-07-12 14:42:09 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 21:39:23 -07:00
2026-07-12 21:58:12 -07:00
2026-07-11 23:50:00 -07:00
2026-07-11 23:50:00 -07:00
2026-06-08 15:19:27 -07:00
2026-07-11 23:50:00 -07:00