Files
nanobot/tests/tools
FanouZeng-TT f57eba2b07 fix(tools): keep read_file progressing when a single line exceeds the output budget
ReadFileTool stops at the first numbered line that does not fit the
128 KiB budget. When that line is the first one, no line is appended and
the tool returns an empty page that reports lines 2-1 and repeats the
same offset, so the caller can never reach the rest of the file. A long
line further down has the same effect for everything after it.

Emit a bounded prefix of that line and advance the continuation offset
past it, so every read returns content and makes progress.
2026-09-24 16:24:06 +08:00
..