Skip to content

[ENHANCEMENT] Allow line-range reads when "Always read entire file" is enabled #8077

@hannesrudolph

Description

@hannesrudolph

Type

Enhancement

Problem / Value

When "Always read entire file" is enabled, you can’t request just specific lines. This slows down targeted work (and adds noise) when people are acting on outputs that reference line numbers. Allowing line-range reads would make focused edits and navigation faster and clearer.

Context

Affects users working from:

  • Diffs or patches that reference lines
  • Search results like git grep -n
  • Tool outputs (linters, compilers, blame, logs) that include line numbers

This commonly occurs during code review, bug fixing, and refactors. Modern models handle multiple targeted reads well, so enabling explicit line-range reads helps them stay precise without overloading context.

Constraints/Preferences (optional)

  • Keep default behavior unchanged when no range is provided
  • Allow explicit line-range reads even if "Always read entire file" is on
  • Minimize redundant re-reads and unnecessary context to stay efficient

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Issue [Unassigned]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions