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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user