diff --git a/server/__tests__/agenthub-cli.test.js b/server/__tests__/agenthub-cli.test.js index d171fb67..31d4d35f 100644 --- a/server/__tests__/agenthub-cli.test.js +++ b/server/__tests__/agenthub-cli.test.js @@ -369,7 +369,7 @@ describe("agenthub CLI — import & administration", () => { assert.match(err, /Usage: agenthub import/); }); - it("doctor reports API, hooks, database, remotes, and uptime lines", async () => { + it("doctor reports API, hooks, database, tmux, remotes, and uptime lines", async () => { const { code, out } = await agenthub("doctor"); // Exit 1 when hooks are missing (common in the test harness) — still prints a full report. assert.ok(code === 0 || code === 1, `unexpected exit ${code}`); @@ -377,6 +377,10 @@ describe("agenthub CLI — import & administration", () => { assert.match(out, /Claude Code hooks/); assert.match(out, /Database/); assert.match(out, /Server uptime/); + // Asked of the server (GET /api/run/tmux), not of this shell: a missing + // tmux is why Start Run fails, and the server's PATH is the one that + // decides. Reported either way, and never fatal. + assert.match(out, /tmux/); assert.match(out, /Remote sources/); });