{"record":{"id":"88ad01cd6852bd00","repo":"multica-ai/multica","slug":"resolve-workspaces-root-w-88ad01","errorCode":null,"errorMessage":"resolve workspaces root: %w","messagePattern":"resolve workspaces root: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_daemon.go","lineNumber":1793,"sourceCode":"\t\t}\n\t}\n\tif byWorkspace && byTask {\n\t\treturn fmt.Errorf(\"--by-workspace and --by-task are mutually exclusive\")\n\t}\n\tif top < 0 {\n\t\treturn fmt.Errorf(\"--top must be a non-negative integer\")\n\t}\n\tif allProfiles && rootOverride != \"\" {\n\t\treturn fmt.Errorf(\"--all-profiles and --workspaces-root are mutually exclusive\")\n\t}\n\n\tif allProfiles {\n\t\treturn runDaemonDiskUsageAggregate(cmd, byWorkspace, top, output)\n\t}\n\n\tworkspacesRoot, err := resolveDiskUsageRoot(taskContext, profile, rootOverride)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve workspaces root: %w\", err)\n\t}\n\n\treport, err := daemon.ScanDiskUsage(workspacesRoot, daemon.ArtifactPatternsFromEnv())\n\tif err != nil {\n\t\treturn err\n\t}\n\t// Resolve before --top trims the slice: the batch endpoint costs the same\n\t// either way, and the JSON consumer sees statuses for everything it gets.\n\t// Skipped in a task: the fetcher authenticates with the Owner profile's\n\t// stored token, which a task must not borrow, so the column stays blank.\n\tif !taskContext && diskUsageNeedsParentStatus(byWorkspace, output) {\n\t\tfillDiskUsageParentStatuses(cmd, profile, &report)\n\t}\n\n\tif top > 0 {\n\t\tif byWorkspace {\n\t\t\tif top < len(report.Workspaces) {\n\t\t\t\treport.Workspaces = report.Workspaces[:top]","sourceCodeStart":1775,"sourceCodeEnd":1811,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_daemon.go#L1775-L1811","documentation":"Error \"resolve workspaces root: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_daemon.go:1793 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the configured workspaces root path."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}