@devries-cameron20 / t3code-1 / commits / ba3e228d96
Fork 0

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

perf(web): pull request thread links compile with the React Compiler (#20494)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 16, 2026 at 18:53 UTC ba3e228d96384976ef4abbaf4855864cb923dcbd
2 files changed +8 -5
apps/web/reactCompiledFiles.ts
+1
@@ -69,4 +69,5 @@ export const REACT_COMPILED_FILES = [
69 "apps/web/src/components/cloud/CloudEnvironmentConnectList.tsx",
70 "apps/web/src/components/pullRequest/usePullRequestActions.ts",
71 "apps/web/src/components/pullRequest/PullRequestReviewAnnotation.tsx",
72 + "apps/web/src/components/pullRequest/PullRequestThreadLinks.tsx",
73 ] as const;
apps/web/src/components/pullRequest/PullRequestThreadLinks.tsx
+7 -5
@@ -1,5 +1,6 @@
1 import { Tooltip, TooltipTrigger, TooltipPopup } from "../ui/tooltip";
2 import { scopeThreadRef } from "@t3tools/client-runtime/environment";
3 +import { settlePromise, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
4 import type { EnvironmentId, PullRequestRef, ScopedThreadRef, ThreadId } from "@t3tools/contracts";
5 import { CheckIcon, MessageSquareIcon } from "lucide-react";
6 import { useState } from "react";
@@ -75,17 +76,18 @@ function EnabledPullRequestThreadLinks({
76 const changeLink = async (threadId: ThreadId, remove: boolean) => {
77 if (parsed === null || pending) return;
78 setPending(true);
78 - try {
79 - await linking.changeLink(scopeThreadRef(environmentId, threadId), url, !remove);
80 - } catch (error) {
79 + const result = await settlePromise(() =>
80 + linking.changeLink(scopeThreadRef(environmentId, threadId), url, !remove),
81 + );
82 + setPending(false);
83 + if (result._tag === "Failure") {
84 + const error = squashAtomCommandFailure(result);
85 toastManager.add({
86 type: "error",
87 title: remove ? "Could not unlink the pull request" : "Could not link the pull request",
88 description: error instanceof Error ? error.message : String(error),
89 });
90 return;
87 - } finally {
88 - setPending(false);
91 }
92 if (linking.mode === "multiple") {
93 appAtomRegistry.refresh(