{"record":{"id":"2c937723872481d1","repo":"multica-ai/multica","slug":"list-autopilots-w","errorCode":null,"errorMessage":"list autopilots: %w","messagePattern":"list autopilots: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_autopilot.go","lineNumber":199,"sourceCode":"\t}\n\tif _, err := requireWorkspaceID(cmd); err != nil {\n\t\treturn err\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tpath := \"/api/autopilots\"\n\tif status, _ := cmd.Flags().GetString(\"status\"); status != \"\" {\n\t\tpath += \"?\" + url.Values{\"status\": {status}}.Encode()\n\t}\n\n\tvar resp struct {\n\t\tAutopilots []map[string]any `json:\"autopilots\"`\n\t\tTotal      int              `json:\"total\"`\n\t}\n\tif err := client.GetJSON(ctx, path, &resp); err != nil {\n\t\treturn fmt.Errorf(\"list autopilots: %w\", err)\n\t}\n\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"json\" {\n\t\treturn cli.PrintJSON(os.Stdout, resp)\n\t}\n\n\tfullID, _ := cmd.Flags().GetBool(\"full-id\")\n\tactors := loadActorDisplayLookup(ctx, client)\n\theaders := []string{\"ID\", \"TITLE\", \"STATUS\", \"MODE\", \"ASSIGNEE\", \"LAST_RUN\"}\n\trows := make([][]string, 0, len(resp.Autopilots))\n\tfor _, a := range resp.Autopilots {\n\t\trows = append(rows, []string{\n\t\t\tdisplayID(strVal(a, \"id\"), fullID),\n\t\t\tstrVal(a, \"title\"),\n\t\t\tstrVal(a, \"status\"),\n\t\t\tstrVal(a, \"execution_mode\"),\n\t\t\tactors.agent(strVal(a, \"assignee_id\")),","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_autopilot.go#L181-L217","documentation":"Error \"list autopilots: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_autopilot.go:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check authentication and server connectivity, then retry listing autopilots."],"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"}