Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/lib/actions/sandbox/stop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

Expand Down
7 changes: 6 additions & 1 deletion src/lib/actions/sandbox/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}
Loading