From 0ead0e111917ad8c2878465a184242cb8ce1ddef Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 26 Oct 2026 01:59:25 +0000 Subject: [PATCH] fix(context-bill): exactSendFiles does not swallow a realpath error Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- lib/context-bill.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/context-bill.ts b/lib/context-bill.ts index c801247b7..360f64118 100644 --- a/lib/context-bill.ts +++ b/lib/context-bill.ts @@ -799,9 +799,7 @@ export function exactSendFiles(root: string): string[] { const priced = new Set(); buildBill(resolved, { tokensOf: (key) => { - try { - priced.add(fs.realpathSync(key.endsWith(fmSuffix) ? key.slice(0, -fmSuffix.length) : key)); - } catch {} + priced.add(fs.realpathSync(key.endsWith(fmSuffix) ? key.slice(0, -fmSuffix.length) : key)); return 0; }, });