Skip to content

fix(#761): produced images drawn like generated images; their copies served; links open copies - #771

Merged
olibaron merged 2 commits into
mainfrom
fix/produced-image-copies-served
Nov 23, 2026
Merged

olibaron merged 2 commits into
mainfrom
fix/produced-image-copies-served

Conversation

@olibaron

Copy link
Copy Markdown
Contributor

Refs #761 (reopened).

Why #762 did not fix it

In Elizabeth's conversation on chat.aeven.io (c/06b3b0de…):

  • Every produced-image tile loaded from /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 answered 404 ATTACHMENT_NOT_REFERENCED and each tile fell back to a "Created N files" row.
  • The reply's own embed of the same image was hidden for the tail, so on a closed Turn the image showed nowhere.
  • A closing-message mention downloaded the copy instead of showing it, through the same failing route.
  • fix: keep chat files in the synced Aeven folder and show produced images #762 was verified with typecheck, build, and gates only — never in a real conversation on chat.aeven.io.

Changes

  • /api/attachment-file serves 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.ts derives its name and media type from the produced path.
  • The turn tail draws produced images through the conversation's image renderer (renderImages on 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.
  • A reply leaves an embedded produced image to the tail only when the tail can draw that copy (replyImageVisible); path-based hiding is gone.
  • A mention in the closing message opens like its row: the Files sidebar with the stored copy first.

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:ci green; pnpm run test 23,213 passed, 0 failed. Live check on chat.aeven.io follows the deploy.

🤖 Generated with Claude Code

olibaron and others added 2 commits November 23, 2026 17:49
…; 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>
@olibaron olibaron added kind/bug-fix Corrects incorrect behavior area/web Browser and Electron graphical interfaces skip-ci Merge without starting the CI lanes area/session Session lifecycle, session log, persistence, projections, and the session working directory labels Nov 23, 2026
@olibaron
olibaron merged commit b395f27 into main Nov 23, 2026
5 checks passed
@olibaron
olibaron deleted the fix/produced-image-copies-served branch November 23, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/session Session lifecycle, session log, persistence, projections, and the session working directory area/web Browser and Electron graphical interfaces kind/bug-fix Corrects incorrect behavior skip-ci Merge without starting the CI lanes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant