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): the SSH password prompt compiles with the React Compiler (#20490)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 18:53 UTC
079a349708dd6a257fd25576378fa1de105e327c
2 files changed
+12
-11
apps/web/reactCompiledFiles.ts
+1
@@ -65,4 +65,5 @@ export const REACT_COMPILED_FILES = [
65
"apps/web/src/components/media/MediaActions.tsx",
66
"apps/web/src/components/device/DeviceSetup.tsx",
67
"apps/web/src/components/device/DevicePanel.tsx",
68
+ "apps/web/src/components/desktop/SshPasswordPromptDialog.tsx",
69
] as const;
apps/web/src/components/desktop/SshPasswordPromptDialog.tsx
+11
-11
@@ -1,4 +1,7 @@
1
+import { settlePromise } from "@t3tools/client-runtime/state/runtime";
2
import type { DesktopSshPasswordPromptRequest } from "@t3tools/contracts";
3
+import * as AsyncResult from "effect/reactivity/AsyncResult";
4
+import * as Cause from "effect/Cause";
5
import { useEffect, useId, useRef, useState } from "react";
6
7
import { Button } from "../ui/button";
@@ -118,19 +121,16 @@ function ActiveSshPasswordPrompt({
121
isRespondingRef.current = true;
122
setIsResponding(true);
123
setResponseError(null);
121
- try {
122
- await window.desktopBridge?.resolveSshPasswordPrompt(requestId, nextPassword);
124
+ const result = await settlePromise(async () =>
125
+ window.desktopBridge?.resolveSshPasswordPrompt(requestId, nextPassword),
126
+ );
127
+ if (AsyncResult.isSuccess(result) || nextPassword === null) {
128
onRemove(requestId);
124
- } catch (error) {
125
- if (nextPassword === null) {
126
- onRemove(requestId);
127
- } else {
128
- setResponseError(getPromptErrorMessage(error));
129
- }
130
- } finally {
131
- isRespondingRef.current = false;
132
- setIsResponding(false);
129
+ } else {
130
+ setResponseError(getPromptErrorMessage(Cause.squash(result.cause)));
131
}
132
+ isRespondingRef.current = false;
133
+ setIsResponding(false);
134
};
135
136
const dismissExpiredPrompt = () => {