FN-5847: honor onboarding completion marker in auto-launch
CLI onboarding auto-launch now skips once the persisted completion marker is present. - Load `cliOnboardingCompletedAt` from global settings before launching onboarding when the central DB is missing. - Preserve existing skip precedence for non-TTY, command, flag, environment, and central DB guards. - Add unit and backcompat coverage for completion-marker and skipped-central-DB scenarios. - Document the updated auto-launch behavior and add a patch changeset. Files changed: .changeset/fn-5847-onboard-autolaunch-marker.md | 5 ++ docs/cli-reference.md | 12 +-- .../onboard-autolaunch-backcompat-e2e.test.ts | 7 ++ .../onboard-autolaunch-backcompat.test.ts | 8 ++ .../__tests__/onboard-autolaunch-bypass.test.ts | 7 ++ .../commands/__tests__/onboard-autolaunch.test.ts | 93 ++++++++++++++++++++++ packages/cli/src/commands/onboard-autolaunch.ts | 46 ++++++++++- 7 files changed, 171 insertions(+), 7 deletions(-) Fusion-Task-Id: FN-5847 Fusion-Task-Lineage: db3e474e-e4b8-4299-8087-07b6cd1f4518
This commit is contained in:
@@ -72,13 +72,15 @@ On successful completion, Fusion records `cliOnboardingCompletedAt` in global
|
||||
settings.
|
||||
|
||||
Auto-launch behavior: before interactive commands, Fusion auto-launches onboarding
|
||||
only when the central DB at `getDefaultCentralDbPath()` is missing. Auto-launch
|
||||
is skipped for `serve`, `daemon`, non-TTY runs, `--skip-onboarding`, and
|
||||
`FUSION_SKIP_ONBOARDING`.
|
||||
only when the central DB at `getDefaultCentralDbPath()` is missing and CLI
|
||||
onboarding has not already completed. Auto-launch is skipped for `serve`,
|
||||
`daemon`, non-TTY runs, `--skip-onboarding`, `FUSION_SKIP_ONBOARDING`, and once
|
||||
`cliOnboardingCompletedAt` is set.
|
||||
|
||||
Backward-compatibility guard: existing setups are never blocked — when central DB
|
||||
already exists (including the central-DB + registered-project case), onboarding
|
||||
does not auto-launch.
|
||||
already exists (including the central-DB + registered-project case), or when the
|
||||
CLI onboarding completion marker exists even if the central DB step was skipped,
|
||||
onboarding does not auto-launch.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user