{failure.message}
+ {/* Provider codes and HTTP statuses stay in the run's diagnostics, not in front of people. */} {failure.phase === "startup" ? "Failed before work started" : "Failed during work"} - {failure.httpStatus ? ` · HTTP ${failure.httpStatus}` : ""} - {failure.providerCode ? ` · ${failure.providerCode}` : ""}
{failure.requestId &&Request: {failure.requestId}
} {children} diff --git a/ui/src/components/TaskChatThread.test.tsx b/ui/src/components/TaskChatThread.test.tsx index ef337fa382e..00c934b8be6 100644 --- a/ui/src/components/TaskChatThread.test.tsx +++ b/ui/src/components/TaskChatThread.test.tsx @@ -2850,6 +2850,28 @@ describe("TaskChatThread runtime transcript selection", () => { }, ); + it("shows a refused /swarm in its own plain words, without its code or a Retry", () => { + const plain = "Swarm is not available with Gemini 4 Neon (Low) yet, so nothing was changed: choose another model for this agent, such as Gemini 4 Argon, and send /swarm again."; + renderThread({ + comments: [], + onAdd: async () => {}, + issueStatus: "blocked", + onRetryFailedRun: vi.fn(), + linkedRuns: [{ + runId: "swarm-refused", runtimeMode: "native", status: "failed", errorCode: "antigravity_swarm_unavailable", error: plain, + agentId: "agent-1", agentName: "Runner", adapterType: "paperclip_runner", + createdAt: "2026-11-24T18:00:00.000Z", startedAt: "2026-11-24T18:00:00.000Z", finishedAt: "2026-11-24T18:00:08.000Z", + }], + } as Parameters