FN-5808: skip onboarding auto-launch for non-interactive and existing setups
Prevent onboarding autolaunch when invocation is non-interactive or an existing central+project setup is detected. - Add a project initialization probe in onboard autolaunch flow and skip when both central DB and project DB already exist. - Preserve skip behavior for serve/daemon and all non-TTY invocations so agent/headless runs never block. - Expand CLI autolaunch coverage with backward-compat and seam tests, and add a changeset for the published package. Files changed: .changeset/fn-5808-onboard-backcompat-guard.md | 5 + .../onboard-autolaunch-backcompat.test.ts | 135 +++++++++++++++++++++ .../commands/__tests__/onboard-autolaunch.test.ts | 9 ++ packages/cli/src/commands/onboard-autolaunch.ts | 16 ++- 4 files changed, 164 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-5808 Fusion-Task-Lineage: b859aa93-44d5-4d93-bc07-8149b95b4042
This commit is contained in:
5
.changeset/fn-5808-onboard-backcompat-guard.md
Normal file
5
.changeset/fn-5808-onboard-backcompat-guard.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Harden CLI onboarding auto-launch backward compatibility by adding an explicit skip when both the central DB and local project DB already exist. This preserves established agent/headless behavior by ensuring non-TTY, `serve`, and `daemon` invocations continue without onboarding prompts or blocking.
|
||||
Reference in New Issue
Block a user