diff --git a/bin/nemoclaw.js b/bin/nemoclaw.js index f587e88d6..1d0400f5e 100755 --- a/bin/nemoclaw.js +++ b/bin/nemoclaw.js @@ -665,7 +665,7 @@ async function sandboxStatus(sandboxName) { function sandboxLogs(sandboxName, follow) { const args = ["logs", sandboxName]; - if (follow) args.push("--follow"); + if (follow) args.push("--tail"); runOpenshell(args); } diff --git a/test/cli.test.js b/test/cli.test.js index fc69ac155..aa287d805 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -104,7 +104,7 @@ describe("CLI dispatch", () => { expect(r.out.includes("nemoclaw debug")).toBeTruthy(); }); - it("passes --follow through to openshell logs", () => { + it("maps --follow to openshell --tail flag", () => { const home = fs.mkdtempSync(path.join(os.tmpdir(), "nemoclaw-cli-logs-follow-")); const localBin = path.join(home, "bin"); const registryDir = path.join(home, ".nemoclaw"); @@ -144,7 +144,7 @@ describe("CLI dispatch", () => { }); expect(r.code).toBe(0); - expect(fs.readFileSync(markerFile, "utf8")).toContain("logs alpha --follow"); + expect(fs.readFileSync(markerFile, "utf8")).toContain("logs alpha --tail"); }); it("connect does not pre-start a duplicate port forward", () => {