The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 08:00 UTC
perf(web): provider setup section compile with the React Compiler (#20505)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 18:53 UTC
43acbcd1e5d056e908607aee1e0e887e75238274
2 files changed
+15
-14
apps/web/reactCompiledFiles.ts
+1
@@ -80,4 +80,5 @@ export const REACT_COMPILED_FILES = [
80
"apps/web/src/components/settings/useProjectScriptSettings.ts",
81
"apps/web/src/components/settings/SnapShotSetupDialog.tsx",
82
"apps/web/src/components/settings/NotificationSettings.tsx",
83
+ "apps/web/src/components/settings/ProviderSetupSection.tsx",
84
] as const;
apps/web/src/components/settings/ProviderSetupSection.tsx
+14
-14
@@ -1,5 +1,6 @@
1
import {
2
isAtomCommandInterrupted,
3
+ settlePromise,
4
squashAtomCommandFailure,
5
type AtomCommandResult,
6
} from "@t3tools/client-runtime/state/runtime";
@@ -155,23 +156,22 @@ function ProviderSetupActions({
156
pendingRef.current = true;
157
setPendingLabel(label);
158
setError(null);
158
- try {
159
- const result = await request();
160
- if (result._tag === "Failure") {
161
- if (!isAtomCommandInterrupted(result)) {
162
- const failure = squashAtomCommandFailure(result);
163
- setError(failure instanceof Error ? failure.message : "Provider setup failed.");
164
- }
165
- return false;
166
- }
167
- return true;
168
- } catch {
159
+ const settled = await settlePromise(request);
160
+ pendingRef.current = false;
161
+ setPendingLabel(null);
162
+ if (settled._tag === "Failure") {
163
setError("Provider setup failed. Try again.");
164
return false;
171
- } finally {
172
- pendingRef.current = false;
173
- setPendingLabel(null);
165
}
166
+ const result = settled.value;
167
+ if (result._tag === "Failure") {
168
+ if (!isAtomCommandInterrupted(result)) {
169
+ const failure = squashAtomCommandFailure(result);
170
+ setError(failure instanceof Error ? failure.message : "Provider setup failed.");
171
+ }
172
+ return false;
173
+ }
174
+ return true;
175
}
176
177
async function removeRuntime() {