Repository navigation
Description
Out of scope
No implementation, conversion library selection, new visual design, quota/retention changes, automatic send or altered earlier provider history. Device checks and reserved visual review remain on #3155; detailed combined-display design belongs in its implementation follow-up.
Context
Part of #3150. The maintainer chose I1 B, I2 B and I3 B on #3155 (2026-11-11): bounded local SVG/BMP conversion into model-supported image previews; reconstruction of eligible previews from stored originals on explicit send of a restored held snapshot; and one sent-image attachment display combining preview, file details and authorized original access. Reload never sends automatically. Originals remain byte-identical and authoritative.
The binding record is docs/decisions/chat-attachments.md, with the detailed design in docs/plans/chat-attachments.md and kit D52/interaction records. Current source boundaries at main 3c44ac6fc56d27675dadaf38a16254db53c39f69: detectKind (packages/ui-server/src/attachments/detect.ts:69), isFramedImage (packages/ui-react/src/lib/image-frames.ts:34), advanceSnapshots (packages/ui-react/src/lib/draft-client.ts:354) and SentFiles (packages/ui-react/src/components/chat/message-bubble.tsx:75).
Scope
Record all three decisions and rejected alternatives in the relevant decision/design records, link their implementation issues, and distinguish approved policy from current implementation. Reconcile historical original-only/restoration/two-display statements without pretending a conversion or reviewed layout is already shipped. Do not add repository status fields or task checklists.
Acceptance criteria
- Record I1 B: bounded local conversion of SVG/BMP to eligible supported raster frames, byte-identical originals retained, content verification and no uploaded-code/external-resource execution, existing upload/frame/accounting budgets respected.
- Record I2 B: explicit send rebuilds eligible previews from authorized stored originals; reload alone never sends, and uncertain sends are not replayed. Snapshot identity/revision and later composer edits remain separate.
- Record I3 B: one sent-image attachment display combines preview, file details and authorized original access; exact state/layout design remains a separately reviewed deliverable.
- Preserve the known-content-limitation/sendable-original rule, true admission/storage refusals, ownership/integrity/quota/cleanup rules, coverage/read honesty and append-only provider prefixes.
- Link the maintainer's dated ui-react: offer a generic file picker with honest attachment lifecycle states #3155 ruling and implementation follow-ups; explain why original-only SVG/BMP, original-only restored previews and duplicate image/file presentation were not selected. No implementation or device qualification is claimed by the record.
Verification
Review against #3155's ruling, original design and named source boundaries. Run applicable documentation/link/leakage checks and required PR checks. Any new code citation must point at its named anchor. No browser/device/provider execution is needed for this documentation task.
Contract impact
No new machine surface in this decision-record task. Implementation issues own any necessary API/schema/contract updates. The documentation record does not block their implementation.
Implementation follow-ups: #3986 (image-conversion), #3987 (snapshot-previews), #3988 (combined-image-display).
Activity