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.

We should not error out when agent produces range that's beyond file length #154

Description

@xingyaoww

Instead of throwing error like this:

ERROR: Invalid view_range parameter: [386, 700]. Its second element 700 should be smaller than the number of lines in the file: 600.

We should treat it as [386, max number of lines in file] and then throw a warning like "We only show up to 600 since there's only 600 lines in this file".

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions