Skip to content

Bug: Incorrect Offsets #22

Description

@samot-gc

I've been noticing a bug in the use of the Read tool.

Image

It seems to get confused between initial line number and offsets. Sometimes it goes completely crazy.

Image Image

It sometimes fixes itself, but not so often.

Image

I haven't come up with a specific scenario to reliably replicate this - but it happens often. I haven't dug into the code to see why this might be happen (yet) either. I may do that in the future, but just recording here for now.

As a small workaround, I often just tell it to use cat file | head -22 | tail -10, for example, to read 10 lines starting from line 12. But, it like the Read tool - naturally, since it's an essential, in-built tool - so doesn't always follow this.

This is using GPT-5.5 (with/without 'fast' mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions