test(FN-4152): complete Step 2 — add chat command coverage

Fusion-Task-Id: FN-4152
Fusion-Task-Lineage: cd26df5e-92f2-431a-950e-84a0fd81bd1f
This commit is contained in:
Fusion
2026-05-13 19:54:01 -07:00
committed by gsxdsm
parent 6284eb6b3f
commit 553a217173
2 changed files with 265 additions and 1 deletions

View File

@@ -178,7 +178,12 @@ export async function runChatInteractive(agentId: string, options: ChatInteracti
rl.on("close", () => abortController.abort());
while (true) {
const line = (await rl.question("> ")).trim();
let line: string;
try {
line = (await rl.question("> ")).trim();
} catch {
break;
}
if (!line) continue;
if (line === "/exit" || line === "/quit") break;
if (line === "/help") {