@devries-cameron20 / t3code-1 / commits / 45d29b45fe
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): a refused review shows GitHub's reason (#22382)

tiliakoos committed Oct 31, 2026 at 04:31 UTC 45d29b45fe9ee7303fcdff86fc150b4a021ed823
1 file changed +10 -1
apps/web/src/components/pullRequest/PullRequestReviewForm.tsx
+10 -1
@@ -5,11 +5,13 @@ import { CheckIcon, MessageSquareIcon, XCircleIcon } from "lucide-react";
5 import { useState, type ReactNode, type RefObject } from "react";
6
7 import { pullRequestEnvironment } from "~/state/pullRequests";
8 +import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
9
10 import { Button } from "../ui/button";
11 import { Select, SelectItem, SelectPopup, SelectTrigger } from "../ui/select";
12 import { Textarea } from "../ui/textarea";
13 import { toastManager } from "../ui/toast";
14 +import { readableFailure } from "./pullRequestDetail.logic";
15 import {
16 pullRequestReviewKey,
17 usePendingReviewComments,
@@ -95,7 +97,14 @@ export function PullRequestReviewForm({
97 });
98 onPendingChange(false);
99 if (result._tag === "Failure") {
98 - toastManager.add({ type: "error", title: "The review could not be submitted" });
100 + toastManager.add({
101 + type: "error",
102 + title: "The review could not be submitted",
103 + description: readableFailure(
104 + squashAtomCommandFailure(result),
105 + "The host refused the review. Your draft is still here to try again.",
106 + ),
107 + });
108 return;
109 }
110 // Preserve comments and summary edits made during submission.