multica-ai/multica · error

resolve CLI config path: %w

Error message

resolve CLI config path: %w

What it means

Error "resolve CLI config path: %w" thrown in multica-ai/multica.

Source

Thrown at server/internal/cli/config.go:217

type OpenClawOverride struct {
	BinaryPath string `json:"binary_path,omitempty"`
	StateDir   string `json:"state_dir,omitempty"`
}

// CLIConfigPath returns the default path for the CLI config file.
func CLIConfigPath() (string, error) {
	return CLIConfigPathForProfile("")
}

// CLIConfigPathForProfile returns the config file path for the given profile.
// An empty profile returns the default path (~/.multica/config.json).
// A named profile returns ~/.multica/profiles/<name>/config.json.
// When TaskConfigRootEnv is set by the daemon, the same profile layout is
// rooted directly below that private task directory instead of the user's home.
func CLIConfigPathForProfile(profile string) (string, error) {
	root, taskLocal, err := multicaConfigRoot()
	if err != nil {
		return "", fmt.Errorf("resolve CLI config path: %w", err)
	}
	if taskLocal {
		if err := validateTaskLocalProfile(profile); err != nil {
			return "", fmt.Errorf("resolve CLI config path: %w", err)
		}
	}
	if profile == "" {
		if taskLocal {
			return filepath.Join(root, "config.json"), nil
		}
		return filepath.Join(root, defaultCLIConfigPath), nil
	}
	if taskLocal {
		return filepath.Join(root, "profiles", profile, "config.json"), nil
	}
	return filepath.Join(root, ".multica", "profiles", profile, "config.json"), nil
}

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Check the config path environment (HOME or MULTICA_CONFIG_HOME) and permissions.

When it happens

Trigger: Thrown at server/internal/cli/config.go:217 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/369a15e20bc18da9. Report an issue: GitHub.