From fb3da4dfc7e5875c608ed59b4af7a2c4ff77c0a1 Mon Sep 17 00:00:00 2001 From: oliver Date: Sun, 2 Aug 2026 19:14:30 +0800 Subject: [PATCH] Fix WebCRT terminal not mounting when only sessionId is set. Reconnect and tab restore clear wsUrl; the pane still gated on wsUrl so Telnet stayed on authenticating with an empty terminal. Mount/render from sessionId instead. Co-authored-by: Cursor --- web/src/pages/WebcrtPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/pages/WebcrtPage.tsx b/web/src/pages/WebcrtPage.tsx index 89dda07..611033b 100644 --- a/web/src/pages/WebcrtPage.tsx +++ b/web/src/pages/WebcrtPage.tsx @@ -2282,13 +2282,13 @@ export function WebcrtPage() { className="webcrt-main__pane" hidden={!isActive} > - {tab.status === "connecting" && !tab.wsUrl ? ( + {tab.status === "connecting" && !tab.sessionId ? (
{connectPhaseLabel(tab.connectPhase, t)}…

{t("webcrt.phase.hint")}

) : null} - {tab.status === "error" && !tab.wsUrl ? ( + {tab.status === "error" && !tab.sessionId ? (
{t("webcrt.status.error")}
{tab.errorMessage ?
{tab.errorMessage}
: null} @@ -2297,7 +2297,7 @@ export function WebcrtPage() {
) : null} - {tab.wsUrl ? ( + {tab.sessionId ? ( <> {tab.status === "connecting" ? (