fix(context-bill): exactSendFiles does not swallow a realpath error

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-26 01:59:25 +00:00
1 parent 21f9c1c245
commit 0ead0e1119
1 file changed
+1 -3
+1 -3
View File
@@ -799,9 +799,7 @@ export function exactSendFiles(root: string): string[] {
const priced = new Set<string>();
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;
},
});