Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(preview): retain crashed tabs for explicit recovery #21980

ClosedNicoM701(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/21980/headopened View on GitHub

Showing 4 changed files with 15 additions and 4 deletions (loading 2).

x
0 of 4 viewed, 4 left
4 additions and 1 deletionapps/mobile/src/features/browser/BrowserPreviewRouteScreen.tsxModified
View file
@@ -175,7 +175,7 @@
environmentId={environmentId}
tab={tab}
streaming={streaming}
- ready={streaming && canControl}
+ ready={canControl && (streaming || tab.navStatus._tag === "LoadFailed")}
onCommand={(input) => streamRef.current?.command(input)}
onPaste={() => streamRef.current?.paste()}
@@ -186,6 +186,9 @@
threadId={threadId}
tabId={tab.tabId}
pdfUri={pdfUri}
+ pageFailure={
+ tab.navStatus._tag === "LoadFailed" ? tab.navStatus.description : undefined
+ }
ref={streamRef}
interactive
background={themeVariables["--color-sheet-solid"]}
11 additions and 3 deletionsapps/mobile/src/features/browser/PreviewStreamWebView.tsxModified
View file
@@ -59,6 +59,7 @@
readonly onStreamingChange?: (streaming: boolean) => void;
readonly compact?: boolean;
readonly pdfUri?: string | null;
+ readonly pageFailure?: string;
};