From 22e129b5145f5b18a20608dfaa14206346e98bf6 Mon Sep 17 00:00:00 2001 From: danfeiyang <1243702693@qq.com> Date: Wed, 25 Feb 2026 01:40:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AWorkspace=20path=20in=20onboard=20c?= =?UTF-8?q?ommand=20ignores=20config=20setting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nanobot/cli/commands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py index 1c20b50..acea9e2 100644 --- a/nanobot/cli/commands.py +++ b/nanobot/cli/commands.py @@ -178,8 +178,9 @@ def onboard(): save_config(Config()) console.print(f"[green]✓[/green] Created config at {config_path}") - # Create workspace - workspace = get_workspace_path() + # Create workspace , use config workspace path if exists, otherwise use ~/.nanobot/workspace; try './workspace' will create a workspace + # on the root dir of the project + workspace = get_workspace_path(config.workspace_path) if not workspace.exists(): workspace.mkdir(parents=True, exist_ok=True)