agent-orchestrator/packages/cli/__tests__/lib
i-trytoohard d95c9def10
fix(cli): first-run startup creates global config with project registered (#1766) (#1819)
* fix(cli): first-run startup creates global config with project registered

Regression from #1781: persistUpdateChannel() created an empty global config
({ projects: {} }) before autoCreateConfig() registered the project. Dashboard
loaded this empty config - zero projects - session not found.

Two-part fix:
1. autoCreateConfig() now calls registerProjectInGlobalConfig() after creating
   the local yaml, so the global config is bootstrapped with the project
   before maybePromptForUpdateChannel() or startDashboard() run.
2. persistUpdateChannel() and maybePromptForUpdateChannel() early-return when
   no global config exists, preventing empty-husk creation.

Fixes #1766

* fix(cli): fix type error in persistUpdateChannel and update JSDoc

---------

Co-authored-by: AO Bot <ao-bot@composio.dev>
2026-05-13 03:28:50 +05:30
..
bun-tmp-janitor.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
daemon.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
dashboard-rebuild.test.ts fix: clear stale Next.js cache on version upgrade (#1022) 2026-05-01 12:23:51 +05:30
detect-env.test.ts refactor(cli): extract shared repo helpers and support GitLab subgroups 2026-04-15 12:30:32 +05:30
format.test.ts feat: implement CLI with all commands (init, status, spawn, session, send, review-check, dashboard, open) (#6) 2026-02-14 16:14:27 +05:30
lifecycle-service.test.ts fix(cli): supervise lifecycle workers for active projects (#1600) 2026-05-01 15:45:06 +05:30
openclaw-probe.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
path-equality.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
plugins.test.ts feat(plugin): implement kimicode agent plugin (#1390) 2026-05-01 14:11:30 +05:30
preflight.test.ts refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
prevent-sleep.test.ts fix(power): address PR review feedback for sleep prevention 2026-04-11 21:06:32 +05:30
project-resolution.test.ts fix: detect nested project directories in CLI auto-resolution 2026-04-01 18:28:57 +05:30
project-supervisor.test.ts fix(cli): supervise lifecycle workers for active projects (#1600) 2026-05-01 15:45:06 +05:30
repo-validation.test.ts refactor(cli): extract shared repo helpers and support GitLab subgroups 2026-04-15 12:30:32 +05:30
running-state.test.ts fix: tighten startup lock cleanup 2026-04-20 13:30:07 +05:30
script-runner.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
session-utils.test.ts Add multi-project storage, resolution, and project settings support (#1343) 2026-04-21 17:45:55 +05:30
shell.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
startup-preflight.test.ts feat(windows): complete Windows support (#1025) 2026-05-09 00:10:53 +05:30
update-channel-onboarding.test.ts fix(cli): first-run startup creates global config with project registered (#1766) (#1819) 2026-05-13 03:28:50 +05:30
update-check.test.ts feat(release): weekly release train — channels, onboarding, dashboard banner, cron (#1781) 2026-05-12 23:11:09 +05:30