multica-ai/multica · error

resolve workspaces root: %w

Error message

resolve workspaces root: %w

What it means

Error "resolve workspaces root: %w" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_daemon.go:1793

		}
	}
	if byWorkspace && byTask {
		return fmt.Errorf("--by-workspace and --by-task are mutually exclusive")
	}
	if top < 0 {
		return fmt.Errorf("--top must be a non-negative integer")
	}
	if allProfiles && rootOverride != "" {
		return fmt.Errorf("--all-profiles and --workspaces-root are mutually exclusive")
	}

	if allProfiles {
		return runDaemonDiskUsageAggregate(cmd, byWorkspace, top, output)
	}

	workspacesRoot, err := resolveDiskUsageRoot(taskContext, profile, rootOverride)
	if err != nil {
		return fmt.Errorf("resolve workspaces root: %w", err)
	}

	report, err := daemon.ScanDiskUsage(workspacesRoot, daemon.ArtifactPatternsFromEnv())
	if err != nil {
		return err
	}
	// Resolve before --top trims the slice: the batch endpoint costs the same
	// either way, and the JSON consumer sees statuses for everything it gets.
	// Skipped in a task: the fetcher authenticates with the Owner profile's
	// stored token, which a task must not borrow, so the column stays blank.
	if !taskContext && diskUsageNeedsParentStatus(byWorkspace, output) {
		fillDiskUsageParentStatuses(cmd, profile, &report)
	}

	if top > 0 {
		if byWorkspace {
			if top < len(report.Workspaces) {
				report.Workspaces = report.Workspaces[:top]

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check the configured workspaces root path.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_daemon.go:1793 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15). Data as JSON: /api/errors/88ad01cd6852bd00. Report an issue: GitHub.