Skip to content

feat(platform): keep a document web_fetch reads as a conversation file #5266

Closed

Description

@tale-code-bot

Part 2 of #5139.

Part 1 is TALE-337, branch feat/web-fetch-documents, on its way to feature-train. It lets web_fetch read a linked PDF, DOCX, XLSX, PPTX or ODT as text.

This part makes the fetched document itself usable, so a person who links to a document can have it changed or converted, as they can a file they attach.

What is asked

When web_fetch reads a document, it also keeps the bytes it fetched as a file of the conversation and returns that file's ref. Then:

  • run_code can take the ref and copy the file to /agent/inputs/, as it does for "Refs of files from this conversation (uploads, or files created earlier)" (services/platform/lib/agent/work-tools.ts). The built-in document skills (configs/platform/custom/skills/pdf, docx, xlsx, pptx) can then change it.
  • If the file is indexed as an upload is, rag_fetch reads it as well (services/platform/lib/chat/document-appendix.ts).

What the repository has (feature-train at 18705fe643c9c73665de7b3e9f016d5283a09d5b, plus part 1)

  • web_fetch (services/platform/backend/core/chat/assistant_tools.ts) returns text only, under a 4 MiB cap.
  • With part 1, a document's result carries document and a note. The note says the result is the text, not the file, and tells the model to ask the person to attach the file to have it changed.
  • The tool's description and the en/de/fr chat docs (docs/*/platform/chat/basics.md, files-and-skills.md) say the same.

Open points for the design

  • Storage. Where the file lives and how long: as an upload of the conversation, under the same storage, quota and retention as an attachment.
  • Indexing. Whether it is indexed like an upload, so rag_fetch reads it, or only kept for run_code.
  • Access. The ref stays scoped to the conversation, like an upload's.
  • Trust. The file came from the web, not from the person. Wherever its text reaches the model, it stays wrapped as untrusted, as web_fetch wraps it now.
  • Repeats. The same URL fetched twice in one conversation: one file, or one per fetch.

Done means

  • A linked document that web_fetch read comes back with a ref that run_code accepts. A change made to it comes back as a new file, as one made to an attachment does.
  • Part 1's note asking for an attachment goes, and the tool description and the en/de/fr chat docs say that a linked document can be changed.
  • Tests cover the stored file, its scope and the ref.

Activity

  1. added
    feat
    agent-ready
    on Nov 1, 2026
  2. added a commit that references this issue on Nov 2, 2026
    321217d
  3. added 2 commits that reference this issue on Nov 2, 2026
    cde1018
    8d5ca6b
  4. tale-code-bot commented on Nov 2, 2026

    @tale-code-bot
    CollaboratorAuthor

    Landed on release/0.6, the 0.6 feature line, with feature train #5329 as 8d5ca6b (feat(platform): keep a document web_fetch reads as a conversation file); it ships with Tale 0.6.0. GitHub closes issues only for commits on main, so the feature-train role closes this one. Board task: TALE-359.

  5. added 12 commits that reference this issue on Nov 3, 2026
    abf1129
    9d30736
    0e716d8
    63cbf2c
    52be107
    6573693
    d93c8c2
    97392ed
    899250c
    a4796a2
    07951e5
    4299449
  6. added a commit that references this issue on Nov 15, 2026
    8280002
  7. added a commit that references this issue on Nov 23, 2026
    92ece2d
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

    agent-readyfeat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions