[Bug] PDF file size limit prevents processing of large documents (>12MB)

Resolved 💬 3 comments Opened Dec 22, 2025 by terryrankine Closed Dec 26, 2025

Bug Description

read the pdf - see if you can follow it too

● Read(C:/Users/terryr/Downloads/WHC-5352-extracted/WHC-5352/WHC-5352.pdf)
⎿  Read PDF (12.9MB)

● PDF too large. Please double press esc to edit your message and try again.

do a page by page extraction

● PDF too large. Please double press esc to edit your message and try again.

break it up with python

● PDF too large. Please double press esc to edit your message and try again.

umm what? write something to decompose it - in python - im not an idiot

● PDF too large. Please double press esc to edit your message and try again.

excuse me? your saying python cant break the pdf up?

● PDF too large. Please double press esc to edit your message and try again.

no. write python code to break the pdf into pieces, extract the text, then summarise

● PDF too large. Please double press esc to edit your message and try again.

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.0.75
  • Feedback ID:

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:12:500)\n    at tX (B:/~BUN/root/claude.exe:11:8463)\n    at readFileSync (B:/~BUN/root/claude.exe:12:465)\n    at lqD (B:/~BUN/root/claude.exe:4694:22550)\n    at call (B:/~BUN/root/claude.exe:963:945)\n    at call (B:/~BUN/root/claude.exe:959:6251)\n    at <anonymous> (B:/~BUN/root/claude.exe:3437:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T03:24:35.578Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:12:500)\n    at tX (B:/~BUN/root/claude.exe:11:8463)\n    at readFileSync (B:/~BUN/root/claude.exe:12:465)\n    at lqD (B:/~BUN/root/claude.exe:4694:22550)\n    at call (B:/~BUN/root/claude.exe:963:945)\n    at call (B:/~BUN/root/claude.exe:959:6251)\n    at <anonymous> (B:/~BUN/root/claude.exe:3437:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T03:25:18.733Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:798:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T07:52:04.828Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:798:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T07:57:04.635Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:798:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T07:57:51.391Z"},{"error":"Error: Request was aborted.\n    at makeRequest (B:/~BUN/root/claude.exe:798:3940)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T08:00:31.659Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readFileSync (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:12:500)\n    at tX (B:/~BUN/root/claude.exe:11:8463)\n    at readFileSync (B:/~BUN/root/claude.exe:12:465)\n    at lqD (B:/~BUN/root/claude.exe:4694:22550)\n    at call (B:/~BUN/root/claude.exe:963:945)\n    at call (B:/~BUN/root/claude.exe:959:6251)\n    at <anonymous> (B:/~BUN/root/claude.exe:3437:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T08:03:24.114Z"},{"error":"MaxFileReadTokenExceededError: File content (32488 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at cqD (B:/~BUN/root/claude.exe:954:12204)\n    at async call (B:/~BUN/root/claude.exe:963:1005)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3437:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T08:05:08.923Z"},{"error":"MaxFileReadTokenExceededError: File content (32204 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at cqD (B:/~BUN/root/claude.exe:954:12204)\n    at async call (B:/~BUN/root/claude.exe:963:1005)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3437:1507)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-22T08:05:09.344Z"},{"error":"MaxFileReadTokenExceededError: File content (30002 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at cqD (B:/~BUN/root/claude.exe:954:12204)\n    at async call (B:/~BUN/root/claude.exe:963:1005)\n    at async <anonymous> (B:/~BUN/root/claude.exe:3437

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗