From ed73805f3179910b2505fd4229a36fe71f588ea1 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Wed, 11 Jun 2025 21:42:41 -0600 Subject: [PATCH] fix: increase URI overhead buffer to fix failing tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Increase overhead calculation from 50 to 100 bytes to account for VS Code's URI encoding overhead. This ensures truncated URIs stay within the safe length limit during platform unit tests. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/utils/uri.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/uri.ts b/src/utils/uri.ts index 149e3ec5f0..9f3ef7ccc0 100644 --- a/src/utils/uri.ts +++ b/src/utils/uri.ts @@ -24,7 +24,7 @@ export function createSafeContentUri(scheme: string, path: string, content: stri } // Calculate available space for content after accounting for URI overhead - const overhead = baseUri.length + 50 // Extra buffer for URI encoding + const overhead = baseUri.length + 100 // Extra buffer for URI encoding and VS Code overhead const maxBase64Length = Math.max(0, MAX_SAFE_URI_LENGTH - overhead) // Truncate content to fit within safe URI length