mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
fix: increase URI overhead buffer to fix failing tests
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 <noreply@anthropic.com>
This commit is contained in:
parent
5b8d1721cc
commit
ed73805f31
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue