fix(v0.4.1): route all workspace commands through SearchRoots
Every resolver, lister, and most-recent caller now passes config.SearchRoots() so CTASK_PROJECT_ROOT is searched alongside CTASK_ROOT. Commands use ws.Root when rendering relative paths or session env vars so displays and CTASK_ROOT exports are correct for workspaces living under CTASK_PROJECT_ROOT. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ func runDoctor(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
// Check 5: Workspace root has workspaces
|
||||
results, err := workspace.ListWorkspaces(root, workspace.ListOpts{
|
||||
results, err := workspace.ListWorkspaces(config.SearchRoots(), workspace.ListOpts{
|
||||
IncludeArchived: true,
|
||||
Limit: 0, // no limit
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user