{"record":{"id":"c4ce73b00ca538ec","repo":"multica-ai/multica","slug":"rerun-issue-w","errorCode":null,"errorMessage":"rerun issue: %w","messagePattern":"rerun issue: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_issue.go","lineNumber":2262,"sourceCode":"// ---------------------------------------------------------------------------\n\nfunc runIssueRerun(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()\n\n\tissueRef, err := resolveIssueRef(ctx, client, args[0])\n\tif err != nil {\n\t\treturn fmt.Errorf(\"resolve issue: %w\", err)\n\t}\n\n\tvar task map[string]any\n\tif err := client.PostJSON(ctx, \"/api/issues/\"+issueRef.ID+\"/rerun\", map[string]any{}, &task); err != nil {\n\t\treturn fmt.Errorf(\"rerun issue: %w\", err)\n\t}\n\n\toutput, _ := cmd.Flags().GetString(\"output\")\n\tif output == \"json\" {\n\t\treturn cli.PrintJSON(os.Stdout, task)\n\t}\n\tagent := loadActorDisplayLookup(ctx, client).agent(strVal(task, \"agent_id\"))\n\tfmt.Fprintf(os.Stdout, \"Re-enqueued task %s on agent %s\\n\", strVal(task, \"id\"), agent)\n\treturn nil\n}\n\n// runIssueCancelTask cancels a single task by ID. It accepts the short ID\n// prefix shown by `issue runs` (resolved through resolveTaskRunID), and uses\n// /api/tasks/{taskId}/cancel which both updates the DB row to status=cancelled\n// and triggers the daemon-side interrupt path (#2107) so an in-flight agent\n// stops emitting tool calls promptly instead of running until its own timeout.\nfunc runIssueCancelTask(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)","sourceCodeStart":2244,"sourceCodeEnd":2280,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_issue.go#L2244-L2280","documentation":"Error \"rerun issue: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_issue.go:2262 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the server response for details and retry the rerun."],"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"}