From b958f6b726b48461b747b522cf3524e4e321866d Mon Sep 17 00:00:00 2001 From: Mohammed Alkindi Date: Fri, 18 Sep 2026 08:59:08 -0700 Subject: [PATCH] fix(interactive): skip comment lines when reading requests from a file The Python port filters lines starting with '# ' before dispatching; the TypeScript one did not, so the header comments in the shipped healthData input.txt were sent to the translator as requests. --- typescript/src/interactive/interactive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/src/interactive/interactive.ts b/typescript/src/interactive/interactive.ts index 16f1c541..e233773d 100644 --- a/typescript/src/interactive/interactive.ts +++ b/typescript/src/interactive/interactive.ts @@ -13,7 +13,7 @@ export async function processRequests(interactivePrompt: string, inputFileName: if (inputFileName) { const lines = fs.readFileSync(inputFileName).toString().split(/\r?\n/); for (const line of lines) { - if (line.length) { + if (line.length && !line.startsWith("# ")) { console.log(interactivePrompt + line); await processRequest(line); }