Skip to content
Python

Preparing-sandbox row: do not gate on connected (stale true across a session switch)

Devika Vermaf305c86eec89
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsx
index 54958863..858b5055 100644
--- a/surfaces/gui/src/App.tsx
+++ b/surfaces/gui/src/App.tsx
@@ -2277,7 +2277,9 @@ export function App() {
)}
{/* OPE-206: the sandbox for this session is being built (a container, its
runner, its mounts). Not a turn, so `running` is false; the row says so. */}
- {preparingSandbox && !connected && (
+ {/* Not gated on `connected`: switching sessions keeps the previous socket's
+ connected=true until this one's `ready`, which also clears the flag. */}
+ {preparingSandbox && (
<WaitingForAgent label={t("app.preparing_sandbox", { provider: preparingSandbox })} />
)}
{/* Compaction runs between provider turns (nothing streams during it), so