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
15 changes: 13 additions & 2 deletions src/nemoclaw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,19 @@ async function deploy(instanceName) {

async function start() {
const { startAll } = require("./lib/services");

// Recover gateway and port forwarding for the default sandbox before
// starting host-side services (cloudflared). After a system reboot the
// OpenClaw gateway inside the sandbox and the dashboard port forward are
// lost — checkAndRecoverSandboxProcesses re-establishes both.
const sandboxes = registry.listSandboxes();
const defaultSandbox = sandboxes.defaultSandbox;
if (defaultSandbox) {
checkAndRecoverSandboxProcesses(defaultSandbox);
}

await runStartCommand({
listSandboxes: () => registry.listSandboxes(),
listSandboxes: () => sandboxes,
startAll,
});
}
Expand Down Expand Up @@ -1486,7 +1497,7 @@ function help() {
nemoclaw deploy <instance> Deprecated Brev-specific bootstrap path

${G}Services:${R}
nemoclaw start Start auxiliary services ${D}(Telegram, tunnel)${R}
nemoclaw start Start services ${D}(gateway, port fwd, tunnel)${R}
nemoclaw stop Stop all services
nemoclaw status Show sandbox list and service status

Expand Down
6 changes: 6 additions & 0 deletions test/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ describe("CLI dispatch", () => {
expect(r.out.includes("Compatibility Commands")).toBeTruthy();
});

it("help mentions gateway in start description", () => {
const r = run("help");
expect(r.code).toBe(0);
expect(r.out.includes("gateway")).toBeTruthy();
});

it("--help exits 0", () => {
expect(run("--help").code).toBe(0);
});
Expand Down