From 4684376c788329d154881f21c8f94b3369c6377e Mon Sep 17 00:00:00 2001 From: Variet Worker Date: Wed, 15 Apr 2026 07:47:56 +0900 Subject: [PATCH] fix(http-bridge): remove incorrect extracted===rawDesc skip in enrichment (v0.5.44) #task-619 --- extension/src/http-bridge.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extension/src/http-bridge.ts b/extension/src/http-bridge.ts index db69e90..b0c7b61 100644 --- a/extension/src/http-bridge.ts +++ b/extension/src/http-bridge.ts @@ -272,10 +272,9 @@ function _handlePending(req: any, res: any, ctx: HttpBridgeContext) { extracted = promptMatch[1].trim(); } // v12: Validate extracted text is not just a prompt fragment - // Skip enrichment if extracted is the same as rawDesc (no > found) or looks like a bare prompt + // Skip enrichment only if it looks like a bare prompt (e.g. "\\gravity_control >") const PROMPT_ONLY_RE = /^[\s\\\/]*[\w_.-]+\s*[>»$#]\s*$/; - const isPromptOnly = PROMPT_ONLY_RE.test(extracted) || extracted === rawDesc; - if (!isPromptOnly && extracted.length > 3) { + if (!PROMPT_ONLY_RE.test(extracted) && extracted.length > 3) { enrichedCmd = extracted.substring(0, 200); enrichedDesc = `[${rawCmd}] ${rawDesc}`; ctx.logToFile(`[HTTP] command enriched: "${rawCmd}" → "${enrichedCmd.substring(0, 60)}"`);