[Bug] Incorrect "Reading file" message displayed when executing Python scripts
Resolved 💬 4 comments Opened Feb 19, 2026 by zfogg Closed Feb 23, 2026
Bug Description
when claude runs python3 scripts it says "Reading file". you all are trying to show when claude is reading files and searching files with custom ui by examining commands, but running a python script is not reading a file. he was running the python script and examining the stdout output.
Environment Info
- Platform: linux
- Terminal: kitty
- Version: 2.1.47
- Feedback ID: 9c556ce4-e50e-45a8-89fd-57a1defb5f56
Errors
[{"error":"Error: NON-FATAL: Lock acquisition failed for /home/zfogg/.local/share/claude/versions/2.1.47 (expected in multi-process scenarios)\n at SN$ (/$bunfs/root/claude:3480:2098)\n at fvA (/$bunfs/root/claude:3480:1209)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:05:28.413Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n at start (/$bunfs/root/claude:2378:22313)\n at async f (/$bunfs/root/claude:2378:24761)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:05:28.887Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/claude:2378:20843)\n at f (/$bunfs/root/claude:2378:24761)\n at L (/$bunfs/root/claude:2378:32537)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:05:28.887Z"},{"error":"Error: Failed to start LSP server plugin:pyright-lsp:pyright: Executable not found in $PATH: \"pyright-langserver\"\n at <anonymous> (/$bunfs/root/claude:2378:32559)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:05:28.887Z"},{"error":"Error: File does not exist.\n at call (/$bunfs/root/claude:1334:6219)\n at async <anonymous> (/$bunfs/root/claude:5806:2090)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:06:52.523Z"},{"error":"Error: File does not exist.\n at call (/$bunfs/root/claude:1334:6219)\n at async <anonymous> (/$bunfs/root/claude:5806:2090)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:06:52.525Z"},{"error":"Error: Request was aborted.\n at MF$ (/$bunfs/root/claude:960:49635)\n at next (native:1:11)\n at AoD (/$bunfs/root/claude:5550:5172)\n at next (native:1:11)\n at DoD (/$bunfs/root/claude:5555:9185)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:07:23.688Z"},{"error":"MaxFileReadTokenExceededError: File content (34708 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 XZI (/$bunfs/root/claude:1325:7716)\n at async JZI (/$bunfs/root/claude:1329:2464)\n at async call (/$bunfs/root/claude:1334:5924)\n at async <anonymous> (/$bunfs/root/claude:5806:2090)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:08:10.303Z"},{"error":"Error: Request was aborted.\n at MF$ (/$bunfs/root/claude:960:49635)\n at next (native:1:11)\n at AoD (/$bunfs/root/claude:5550:5172)\n at next (native:1:11)\n at DoD (/$bunfs/root/claude:5555:9185)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:09:20.212Z"},{"error":"FileTooLargeError: File content (566.2KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at pf9 (/$bunfs/root/claude:1160:348)\n at emit (node:events:95:22)\n at addChunk (internal:streams/readable:264:47)\n at readableAddChunkPushByteMode (internal:streams/readable:242:18)\n at <anonymous> (internal:fs/streams:147:16)\n at <anonymous> (node:fs:194:82)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:11:52.601Z"},{"error":"FileTooLargeError: File content (278.1KB) exceeds maximum allowed size (256KB). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at D2I (/$bunfs/root/claude:1158:402)\n at async JZI (/$bunfs/root/claude:1329:2402)\n at async call (/$bunfs/root/claude:1334:5924)\n at async <anonymous> (/$bunfs/root/claude:5806:2090)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-02-19T18:11:55.316Z"},{"error":"MaxFileReadTokenExceededError: File content (34708 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 XZI (/$bunfs/root/claude:1325…
Note: Content was truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗