Repository navigation
fix(#761): produced images drawn like generated images; their copies served; links open copies - #771
Merged
Merged
Conversation
…; links open copies #761 was not fixed on chat.aeven.io. In Elizabeth's conversation every produced-image tile loaded from /api/attachment-file, which answered 404 ATTACHMENT_NOT_REFERENCED for an image copy (the tool result cites it as an image, not a file), so each tile fell back to a file row, and the reply's own embed was hidden for the tail. #762 shipped without a live check. - /api/attachment-file serves a copy the log cites as a file, as an image, or only by id in a tool result's produced files (her turn-14 preview). - The turn tail draws produced images through the conversation's image renderer in the generated-image frames, from the full reference of the copy any tool result of the Turn shared. - A reply leaves an embedded produced image to the tail only when the tail can draw that copy; path-based hiding is gone. - A file the closing message mentions opens like its row: the Files sidebar with its stored copy first, then the desktop, then a download. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- attachment-file route: serves an image-cited copy (it answered 404 before), names a nameless one by digest, refuses an uncited one. - produced-copies: a copy named only in produced files resolves to its file name and media type (moved out of commands into a pure module). - turn data: a produced image carries its full reference, from the producing result or a later result of the Turn, as a desktop records it. - ProducedFiles: draws through the conversation renderer, not a row; falls back to a row only when the stored copy fails to load. - replyImageVisible: a reply leaves a produced image to the tail only when the tail can draw its copy (extracted from AssistantNodeView). - A closing-message mention opens in the Files sidebar first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #761 (reopened).
Why #762 did not fix it
In Elizabeth's conversation on chat.aeven.io (
c/06b3b0de…):/api/attachment-file. That route served only copies the log cites as file blocks; a produced image's copy is cited as an image block, so it answered404 ATTACHMENT_NOT_REFERENCEDand each tile fell back to a "Created N files" row.Changes
/api/attachment-fileserves a copy cited as a file, as an image, or only by id in a tool result's produced files (her turn-14…_preview.jpg, recorded by her desktop without an image block);produced-copies.tsderives its name and media type from the produced path.renderImageson the turn-tail owner) in the generated-image frames, from the full reference of the copy any tool result of the Turn shared; the deliverables reducer collects those references.replyImageVisible); path-based hiding is gone.Tests
attachment-file-route.host.spec.ts: image-cited copy served (was 404), digest name, uncited refused; produced-copy name and media type.produced-files.client.spec.tsx: image reference from the producing result and from a later result of the Turn; drawn through the renderer, not a row; row only after the copy fails; mention opens in the sidebar.reply-image-visible.client.spec.ts: hidden only when drawable; kept while the Turn runs; generated images unchanged.Checks
AVN_GATE_FAIL_FAST=1 pnpm run check:cigreen;pnpm run test23,213 passed, 0 failed. Live check on chat.aeven.io follows the deploy.🤖 Generated with Claude Code