Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[BUG] Incremental file reading is broken across multiple providers #10239

Description

@pwilkin

Problem (one or two sentences)

When introducing a context size limit to read_file, even very strong open models fail to read files correctly, instead often falling into a loop of calling read_file again and again.

Context (who is affected and when)

When there is a large file and there's a need to read it incrementally, models will often fail to properly use line ranges.

Reproduction steps

  1. Create a task that requires understanding a large file
  2. Set max size of file read to eg. 500 lines
  3. Run the task

Expected result

The model reads the file with line ranges incrementally

Actual result

The model re-reads the start of the file again and again

Variations tried (optional)

No response

App Version

3.36.16

API Provider (optional)

Not Applicable / Other

Model Used (optional)

GLM 4.6, Minimax M2, Kimi K2-Instruct

Roo Code Task Links (optional)

https://app.roocode.com/share/3bd34071-609f-48fb-87bc-f9a2a353c5c6

Relevant logs or errors (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions