{"record":{"id":"f04b0dd42f633e5e","repo":"multica-ai/multica","slug":"cascade-delete-runtime-w","errorCode":null,"errorMessage":"cascade delete runtime: %w","messagePattern":"cascade delete runtime: %w","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_runtime.go","lineNumber":251,"sourceCode":"\tconflict, ok := runtimeDeleteConflict(err)\n\tif !ok {\n\t\treturn fmt.Errorf(\"delete runtime: %w\", err)\n\t}\n\n\tcascade, _ := cmd.Flags().GetBool(\"cascade\")\n\tif !cascade {\n\t\treturn fmt.Errorf(\n\t\t\t\"delete runtime: runtime has active agents bound to it (%s); rebind them to another runtime first, or rerun with --cascade to unbind them and delete the runtime (the agents and their history are kept)\",\n\t\t\tstrings.Join(conflict.AgentDisplays(), \", \"),\n\t\t)\n\t}\n\n\tbody := map[string]any{\n\t\t\"expected_active_agent_ids\": conflict.AgentIDs(),\n\t}\n\tvar result map[string]any\n\tif err := client.PostJSON(ctx, \"/api/runtimes/\"+runtimeID+\"/unbind-agents-and-delete\", body, &result); err != nil {\n\t\treturn fmt.Errorf(\"cascade delete runtime: %w\", err)\n\t}\n\tresult[\"id\"] = runtimeID\n\tresult[\"deleted\"] = true\n\treturn printRuntimeDeleteResult(cmd, result)\n}\n\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","sourceCodeStart":233,"sourceCodeEnd":269,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_runtime.go#L233-L269","documentation":"Error \"cascade delete runtime: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_runtime.go:251 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server response for details and retry the cascade delete."],"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"}