From 0f92d2c98d753bd34da25db63810aa41ec91a9c2 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 17 May 2026 17:17:20 +0900 Subject: [PATCH] test(prompt-gate): narrow audit binding detection Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/shared/prompt-async-route-audit.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/prompt-async-route-audit.test.ts b/src/shared/prompt-async-route-audit.test.ts index a90e9cb73..933f29197 100644 --- a/src/shared/prompt-async-route-audit.test.ts +++ b/src/shared/prompt-async-route-audit.test.ts @@ -148,7 +148,7 @@ function isPromptBindingPattern(node: ts.Node): boolean { return node.name.elements.some((element) => { const keyName = element.propertyName ? getPropertyName(element.propertyName) - : getPropertyName(element.name) + : ts.isIdentifier(element.name) ? getPropertyName(element.name) : null return keyName === "prompt" || keyName === "promptAsync" }) }