Skip to content

Commit da1a372

Browse files
committed
fix(web): preview image deliverables
Render generated images inline and in an accessible viewer. Open them directly in the sandbox editor with signed, bounded downloads.
1 parent 76c5447 commit da1a372

8 files changed

Lines changed: 574 additions & 36 deletions

File tree

apps/web/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ partial or corrupt transcript is never rendered as a duplicate assistant message
1111

1212
Deliverable parts contain durable output identity and presentation metadata, never an expiring
1313
URL. A download click calls the authenticated gateway mint endpoint, validates its bounded response,
14-
and follows the resulting short-lived capability directly to the streaming response.
14+
and follows the resulting short-lived capability directly to the streaming response. Image
15+
deliverables lazily exchange that same capability for a bounded in-memory blob when they approach
16+
the viewport, render an inline thumbnail, and reuse the blob in an accessible full-size viewer.
17+
No image capability or object URL is persisted. Opening an image in Files switches to the project
18+
workspace and asks the trusted code-server bridge to reveal the exact generated asset; an already
19+
visible Files panel selects a newly generated image without waking a closed sandbox.
1520

1621
Composer uploads always land in a writable project. If none is selected, choosing the first
1722
valid file creates and selects a general project named from that file. Files upload sequentially

0 commit comments

Comments
 (0)