multica-ai/multica · error
save CLI config: %w
Error message
save CLI config: %w
What it means
Error "save CLI config: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_runtime_profile.go:313
path = strings.TrimSpace(path)
if path == "" {
return fmt.Errorf("--path is required")
}
if !filepath.IsAbs(path) {
return fmt.Errorf("--path must be an absolute path, got %q", path)
}
profile := resolveProfile(cmd)
cfg, err := cli.LoadCLIConfigForProfile(profile)
if err != nil {
return fmt.Errorf("load CLI config: %w", err)
}
if cfg.ProfileCommandOverrides == nil {
cfg.ProfileCommandOverrides = map[string]string{}
}
cfg.ProfileCommandOverrides[profileID] = path
if err := cli.SaveCLIConfigForProfile(cfg, profile); err != nil {
return fmt.Errorf("save CLI config: %w", err)
}
fmt.Printf("Pinned runtime profile %s to %s on this machine.\n", profileID, path)
fmt.Println("Restart the daemon for the change to take effect.")
return nil
}
func runRuntimeProfileUnsetPath(cmd *cobra.Command, args []string) error {
if err := requireHumanLocalCommand("runtime profile unset-path"); err != nil {
return err
}
profileID := args[0]
profile := resolveProfile(cmd)
cfg, err := cli.LoadCLIConfigForProfile(profile)
if err != nil {
return fmt.Errorf("load CLI config: %w", err)
}
if _, ok := cfg.ProfileCommandOverrides[profileID]; !ok {View on GitHub (pinned to 2c0912b6ec)
Solutions
- Check filesystem permissions for the CLI config file.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_runtime_profile.go:313 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/2f08bca32703a145.
Report an issue: GitHub.