Repository navigation
Closed
Labels
agent-readyMaintainer-approved for the Tale agent fleetbugBugpriority: highHigh priorityservice: platformPlatform service
Description
Summary
A chat reply says it attached a file, but no file card appears under the reply and nothing can be opened or downloaded. It happens some of the time, not on every request. This was reported from a pilot deployment and has been seen again since.
Evidence
- A request for a photorealistic image. The step list shows one step, Writing superheld-dunkle-gasse.svg (
create_file), and the reply ends with "The image is attached as SVG". No card appears under the reply. - Other occurrences were reported without a trace: "sometimes attachments are not attached in the chat even though the agent reports it has them".
What main does
Observed at main a71d0d92e9.
create_fileanswers "Attached to the conversation." only afterscope.artifacts.store(...)succeeded (services/platform/backend/domains/agent_tools/create-file.ts:56-61). Every earlier exit returns a failure result.run_codeattaches only new or changed files in/agent/output/(backend/domains/agent_tools/run-code.ts:699-788). When there are none, it tells the model "No file was attached…" (run-code.ts:896).- The only guard against a false claim is the prompt: "never claim a file you did not make" (
services/platform/lib/agent/ladder.ts:79). Nothing compares the reply with the files the turn actually stored.
Where it can break (to confirm with a reproduction)
- A work-tool call failed (invalid arguments, size cap, store error, sandbox error), and the model wrote "attached" anyway.
- The model claimed an attachment without calling a tool.
- The file was stored, but its card did not render: a media type such as
image/svg+xml, a stream that ended early, a retried or branched reply, or a reload. run_codewrote outside/agent/output/, and the model ignored the "No file was attached" note.
Done when
- The problem is reproduced at least once, with the step list, the tool results and the turn's
app.file_metadatarows, and the cause is named. - A reply never says a file is attached unless the turn stored one. For example, the turn compares the reply with its artifacts and shows a notice under the reply ("No file was attached to this reply") when they disagree.
- Every stored artifact renders as a card after streaming, after a reload, and on a retried reply.
- Regression tests cover a failed
create_filefollowed by a reply that claims a file, and an SVG artifact card.
Scope for parallel work
This touches the chat turn (backend/core/chat/turn_action.ts), the work tools (backend/domains/agent_tools/) and the message parts UI. It is independent of the composer, skills settings and governance issues from the same pilot.
Metadata
Metadata
Assignees
Labels
agent-readyMaintainer-approved for the Tale agent fleetbugBugpriority: highHigh priorityservice: platformPlatform service
Activity
tale-code-bot commentedon Oct 30, 2026
TALE-211 splits this issue in two.
fix/svg-artifact-cardand lands throughtrain.image/*file as a picture, and an SVG takes its size from its own markup.Closes #5028, so this issue closes when that commit reachesmain.fix(platform): show an SVG a reply made as a file card