{"record":{"id":"a58d5531882fc3f3","repo":"multica-ai/multica","slug":"rename-runtime-w","errorCode":null,"errorMessage":"rename runtime: %w","messagePattern":"rename runtime: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime.go","lineNumber":275,"sourceCode":"\nfunc runRuntimeRename(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tmachine, _ := cmd.Flags().GetBool(\"machine\")\n\tbody := map[string]any{\"custom_name\": args[1]}\n\tif machine {\n\t\tbody[\"apply_to_machine\"] = true\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tvar rt map[string]any\n\tif err := client.PatchJSON(ctx, \"/api/runtimes/\"+args[0], body, &rt); err != nil {\n\t\treturn fmt.Errorf(\"rename runtime: %w\", err)\n\t}\n\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"json\" {\n\t\treturn cli.PrintJSON(os.Stdout, rt)\n\t}\n\n\tif strings.TrimSpace(args[1]) == \"\" {\n\t\tfmt.Fprintf(os.Stderr, \"Custom name cleared; runtime is now %q.\\n\", strVal(rt, \"name\"))\n\t} else {\n\t\tfmt.Fprintf(os.Stderr, \"Runtime renamed to %q.\\n\", strVal(rt, \"custom_name\"))\n\t}\n\treturn nil\n}\n\nfunc runRuntimeUpdate(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {","sourceCodeStart":257,"sourceCodeEnd":293,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime.go#L257-L293","documentation":"Error \"rename runtime: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime.go:275 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server response for details and retry the rename."],"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-15T22:17:37.221Z"}