Repository navigation
fix(#761): reply images show their stored copy before the session binding exists - #775
Merged
Merged
Conversation
…ding exists Desktop check of #772 in Elizabeth's conversation: four reply images showed "Image not shown". A reply resolves its image through the image cache's peek, which answered nothing until the Session binding existed; on the desktop a synced conversation's replies render before that, so they fell back to the authored path (/api/workspace-file -> 404) and nothing re-resolved them once the binding arrived. peek now names the durable URL from the reference alone. A copy named only in produced files is fetched from the account before it is sized and served. Tests: the cache names the durable URL with no binding (with a session on the web, without one on the desktop); it fails without the fix. 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. Desktop check of #772 in Elizabeth's conversation: four reply images showed "Image not shown", and the turn-14 preview did not load.
peek, which answered nothing until the Session binding existed. On the desktop a synced conversation's replies render before that, so they fell back to the authored path (/api/workspace-file→ 404), and nothing re-resolved them once the binding arrived.peeknow names the durable/api/attachment-imageURL from the reference alone (with the session on the web, without it on the desktop).…_preview.jpg) is fetched from the account before it is sized and served, as any cited attachment is; this Mac never held it.Tests:
historical-images.client.spec.ts— the cache names the durable URL with no binding; it fails without the fix.Checks:
AVN_GATE_FAIL_FAST=1 pnpm run check:cigreen;pnpm run test23,215 passed, 0 failed.🤖 Generated with Claude Code