Python
Preparing-sandbox row: show it on a brand-new session, and add no transcript item on sandbox_ready
Devika Vermae21a6b61b231
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsxindex 814bcc88..54958863 100644--- a/surfaces/gui/src/App.tsx+++ b/surfaces/gui/src/App.tsx@@ -874,12 +874,9 @@ export function App() {setPreparingSandbox(d.provider || "sandbox");break;case "sandbox_ready":+ // No transcript item here: one would make a fresh session non-idle and hide its+ // intro screen. Which wall the session runs behind belongs in the header (OPE-207).setPreparingSandbox(null);- // One quiet line in the transcript: which wall this session's commands are behind.- setItems((p) => [- ...p,- { kind: "notice", tone: "info", text: t("app.notice.sandbox_ready", { detail: d.reason || d.provider || "" }) },- ]);break;case "ready":setPreparingSandbox(null);@@ -1809,7 +1806,9 @@ export function App() {// `running` too: a mid-turn reconnect may land before any item is rebuilt — a live// session must show the transcript (waiting row, Stop), never the intro hero.- const idle = items.length === 0 && !streaming && !running;+ // Not idle while this session's sandbox is being built: the waiting row lives in the+ // transcript branch, and a brand-new session has no items yet (OPE-206).+ const idle = items.length === 0 && !streaming && !running && !preparingSandbox;const pendingApproval = [...items].reverse().find((i) => i.kind === "approval" && !i.resolved);const pendingDirReq = [...items].reverse().find((i) => i.kind === "dirreq" && !i.resolved);const pendingToolReq = [...items].reverse().find((i) => i.kind === "toolreq" && !i.resolved);diff --git a/surfaces/gui/src/locales/en.json b/surfaces/gui/src/locales/en.jsonindex e1e8fdb8..68029c3a 100644--- a/surfaces/gui/src/locales/en.json+++ b/surfaces/gui/src/locales/en.json@@ -456,7 +456,6 @@"interrupted": "Interrupted.","error": "Error: ","context_compacted": "Context compacted",- "sandbox_ready": "Sandbox ready: {{detail}}","continuation": "Reply cut off at the output-token limit; asking the model to continue.","truncated": "Stopped: reply cut off at the output-token limit with no action.","input_rejected": "That message was rejected.",diff --git a/surfaces/gui/src/locales/zh.json b/surfaces/gui/src/locales/zh.jsonindex 4fe83576..68198d27 100644--- a/surfaces/gui/src/locales/zh.json+++ b/surfaces/gui/src/locales/zh.json@@ -448,7 +448,6 @@"interrupted": "已中断。","error": "错误:","context_compacted": "上下文已压缩",- "sandbox_ready": "沙箱已就绪:{{detail}}","continuation": "回复在输出上限处被截断,正在让模型继续。","truncated": "已停止:回复在输出上限处被截断且未执行任何操作。","input_rejected": "该消息已被拒绝。",