-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description
When attempting to read specific lines from a file larger than the enforced maximum size (262144 bytes), the read tool fails. This occurs even when the requested range of lines is small, and the number of bytes in the requested lines is well under the maximum size limit.
Current Behavior
The read tool refuses to read any content if the file exceeds the maximum allowed size. It does not check if the requested range of lines stays within the allowed byte limit.
Expected Behavior
The read tool should allow reading a subset of lines from a file larger than the maximum limit as long as the total size of the requested content is under 262144 bytes.
Steps to Reproduce
- Create or use a file larger than 262144 bytes.
- Use the read tool with
start_lineandend_lineset to a small range (e.g., 4005–4010). - Ensure the selected lines are well under the max byte threshold.
- Observe that the read tool still fails to return the requested content.
Environment
- Forge Version: 0.120.1
- OS: WSL2
Screenshots/Logs
Additional Context
This issue prevents efficiently working with large files when only a small portion is required. It also limits usability in workflows where log files or datasets commonly exceed 262144 bytes.