Skip to content

Your lightweight open-source personal agent.

fix:Workspace path in onboard command ignores config setting

danfeiyang22e129b5145f
diff --git a/nanobot/cli/commands.py b/nanobot/cli/commands.py
index 1c20b50fd..acea9e22b 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)