diff --git a/.changeset/five-eyes-rescue.md b/.changeset/five-eyes-rescue.md new file mode 100644 index 0000000000..7f5e3289c5 --- /dev/null +++ b/.changeset/five-eyes-rescue.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Increasing file size that can be read by cline diff --git a/src/integrations/misc/extract-text.ts b/src/integrations/misc/extract-text.ts index 9148efda3a..af8b6075e4 100644 --- a/src/integrations/misc/extract-text.ts +++ b/src/integrations/misc/extract-text.ts @@ -40,7 +40,8 @@ export async function extractTextFromFile(filePath: string): Promise { return extractTextFromIPYNB(filePath) default: const fileBuffer = await fs.readFile(filePath) - if (fileBuffer.byteLength > 300 * 1024) { + if (fileBuffer.byteLength > 20 * 1000 * 1024) { + // 20MB limit (20 * 1000 * 1024 bytes, decimal MB) throw new Error(`File is too large to read into context.`) } const encoding = await detectEncoding(fileBuffer, fileExtension)