Skip to content

file_read can't read past the cut of a saved long result, and reading a download should mark the chat as outside content #336

Closed

Description

@itsskofficial

Found in the real test for #331.

  1. Range reads. A long tool result is cut, and the rest is saved under files/outputs/ with a note telling the model to read it. But file_read of that file is cut at the same length, so anything past the limit can never be read (Sonnet followed two nested saved copies). Give file_read an offset and limit (characters or lines) and say in the cut note how to read the next part.
  2. Downloads count as outside content. Reading a file under files/downloads/ (and files/outputs/) in a chat that hasn't read outside content yet should set the chat's outside-content mark (ADR 0018), just as the web or email tool that produced it would have. Then later sends ask first.

Done when: a model can read a long saved result to its end in parts, and reading a download in a fresh chat makes a later send ask, both checked in a real run.

Activity

  1. added
    bug
    area: engine
    priority: P1
    size: S
    on Oct 13, 2026
  2. added a commit that references this issue on Oct 14, 2026
    0b4f017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: enginebugpriority: P1size: S

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions