diff --git a/src/lib/actions/sandbox/stop.test.ts b/src/lib/actions/sandbox/stop.test.ts index d2ebcb2a209..b3986c60678 100644 --- a/src/lib/actions/sandbox/stop.test.ts +++ b/src/lib/actions/sandbox/stop.test.ts @@ -92,7 +92,8 @@ describe("stopSandbox", () => { expect(result.exitCode).toBe(0); const output = h.log.mock.calls.map(([line]) => line).join("\n"); - expect(output).toContain("Workspace state is preserved"); + expect(output).toContain("The sandbox stays registered for restart"); + expect(output).not.toContain("Workspace state is preserved"); expect(output).toContain("nemoclaw my-sandbox start"); }); diff --git a/src/lib/actions/sandbox/stop.ts b/src/lib/actions/sandbox/stop.ts index 1fc5e20376d..77de22339e8 100644 --- a/src/lib/actions/sandbox/stop.ts +++ b/src/lib/actions/sandbox/stop.ts @@ -181,7 +181,12 @@ export function stopSandbox( }; } - log(` Sandbox '${sandboxName}' stopped. Workspace state is preserved.`); + // Do not promise workspace-data durability here: `start` is a direct + // `docker start` of the same container, and the sandbox's /sandbox workspace + // lives on an OpenShell-owned PVC whose re-attachment on restart NemoClaw does + // not control (#7199). State only what stop guarantees — the sandbox stays + // registered so a later `start` can bring it back. + log(` Sandbox '${sandboxName}' stopped. The sandbox stays registered for restart.`); log(` Start it again with '${CLI_NAME} ${sandboxName} start'.`); return { exitCode: 0 }; }