agent-orchestrator/packages
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
..
ao feat(release): weekly release train — channels, onboarding, dashboard banner, cron (#1781) 2026-05-12 23:11:09 +05:30
cli fix(cli): first-run startup creates global config with project registered (#1766) (#1819) 2026-05-13 03:28:50 +05:30
core feat(release): weekly release train — channels, onboarding, dashboard banner, cron (#1781) 2026-05-12 23:11:09 +05:30
integration-tests fix(workspace-worktree): restore re-attaches existing branch instead of recreating with -b (#1742) 2026-05-09 22:07:32 +05:30
plugins feat(release): weekly release train — channels, onboarding, dashboard banner, cron (#1781) 2026-05-12 23:11:09 +05:30
web feat(release): weekly release train — channels, onboarding, dashboard banner, cron (#1781) 2026-05-12 23:11:09 +05:30