I've been noticing a bug in the use of the Read tool.
It seems to get confused between initial line number and offsets. Sometimes it goes completely crazy.
It sometimes fixes itself, but not so often.
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)
I've been noticing a bug in the use of the
Readtool.It seems to get confused between initial line number and offsets. Sometimes it goes completely crazy.
It sometimes fixes itself, but not so often.
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 theReadtool - 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)