From bd55bf527837fbdea31449b98e9a85150e5c69ea Mon Sep 17 00:00:00 2001 From: Luke Milby Date: Fri, 13 Feb 2026 08:56:37 -0500 Subject: [PATCH] cleaned up logic for onboarding --- nanobot/cli/commands.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index d776871..e48865f 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -163,12 +163,11 @@ def onboard(): if config_path.exists(): console.print(f"[yellow]Config already exists at {config_path}[/yellow]") - if typer.confirm("Overwrite?"): - # Create default config - config = Config() - save_config(config) - console.print(f"[green]✓[/green] Created config at {config_path}") - else: + if not typer.confirm("Overwrite?"): + console.print("[dim]Skipping config creation[/dim]") + config_path = None # Sentinel to skip creation + + if config_path: # Create default config config = Config() save_config(config)