{"record":{"id":"82a70d61f4294b76","repo":"multica-ai/multica","slug":"load-cli-config-w-82a70d","errorCode":null,"errorMessage":"load CLI config: %w","messagePattern":"load CLI config: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime_profile.go","lineNumber":306,"sourceCode":"\nfunc runRuntimeProfileSetPath(cmd *cobra.Command, args []string) error {\n\tif err := requireHumanLocalCommand(\"runtime profile set-path\"); err != nil {\n\t\treturn err\n\t}\n\tprofileID := args[0]\n\tpath, _ := cmd.Flags().GetString(\"path\")\n\tpath = strings.TrimSpace(path)\n\tif path == \"\" {\n\t\treturn fmt.Errorf(\"--path is required\")\n\t}\n\tif !filepath.IsAbs(path) {\n\t\treturn fmt.Errorf(\"--path must be an absolute path, got %q\", path)\n\t}\n\n\tprofile := resolveProfile(cmd)\n\tcfg, err := cli.LoadCLIConfigForProfile(profile)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"load CLI config: %w\", err)\n\t}\n\tif cfg.ProfileCommandOverrides == nil {\n\t\tcfg.ProfileCommandOverrides = map[string]string{}\n\t}\n\tcfg.ProfileCommandOverrides[profileID] = path\n\tif err := cli.SaveCLIConfigForProfile(cfg, profile); err != nil {\n\t\treturn fmt.Errorf(\"save CLI config: %w\", err)\n\t}\n\tfmt.Printf(\"Pinned runtime profile %s to %s on this machine.\\n\", profileID, path)\n\tfmt.Println(\"Restart the daemon for the change to take effect.\")\n\treturn nil\n}\n\nfunc runRuntimeProfileUnsetPath(cmd *cobra.Command, args []string) error {\n\tif err := requireHumanLocalCommand(\"runtime profile unset-path\"); err != nil {\n\t\treturn err\n\t}\n\tprofileID := args[0]","sourceCodeStart":288,"sourceCodeEnd":324,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime_profile.go#L288-L324","documentation":"Error \"load CLI config: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime_profile.go:306 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix or delete the corrupted CLI config file and retry."],"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"}