Skip to content

Commit 489a051

Browse files
Increasing file sizes for files that can be read by cline (RooCodeInc#3396)
* Increasing file sizes for files that can be read by cline * Update src/integrations/misc/extract-text.ts Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> * Increasing file sizes for files that can be read by cline --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent e572ee4 commit 489a051

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/five-eyes-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"claude-dev": patch
3+
---
4+
5+
Increasing file size that can be read by cline

src/integrations/misc/extract-text.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export async function extractTextFromFile(filePath: string): Promise<string> {
4040
return extractTextFromIPYNB(filePath)
4141
default:
4242
const fileBuffer = await fs.readFile(filePath)
43-
if (fileBuffer.byteLength > 300 * 1024) {
43+
if (fileBuffer.byteLength > 20 * 1000 * 1024) {
44+
// 20MB limit (20 * 1000 * 1024 bytes, decimal MB)
4445
throw new Error(`File is too large to read into context.`)
4546
}
4647
const encoding = await detectEncoding(fileBuffer, fileExtension)

0 commit comments

Comments
 (0)