From e3c134e6495d2a6646da0b491019b51d244d54f8 Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Sat, 20 Dec 2025 12:35:25 +0100 Subject: [PATCH] chore: clarify comment --- packages/scout-agent/lib/compaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/scout-agent/lib/compaction.ts b/packages/scout-agent/lib/compaction.ts index 704b9e1..ad6e402 100644 --- a/packages/scout-agent/lib/compaction.ts +++ b/packages/scout-agent/lib/compaction.ts @@ -64,7 +64,7 @@ export function isOutOfContextError(error: unknown): boolean { textToTest = JSON.stringify(apiError); } catch { // note: util.inspect returns different values in Bun and Node.js - // in Node.js it includes the error message, in Bun it doesn't + // in Node.js it includes the error message, in Bun it ~sometimes~ doesn't. // that's why it's the final fallback textToTest = util.inspect(apiError, { depth: null }); }