Repository navigation
fix: show retained computer screenshots in chat - #153249
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 20, 2026, 1:36 AM ET / 05:36 UTC (Revision 9). ClawSweeper reviewWhat this changesThe PR restores retained screenshot previews through authenticated transcript artifact downloads, updates image cache and live-event handling, and repairs a QA acknowledgement race. Merge readiness⛔ Needs changes before merge - 2 items remain Keep open. The work remains useful, but the previously reported duplicate-image defect is still present in the reviewed head. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway projects saved conversation messages into chat history and live events without embedding screenshot pixels. The Control UI retrieves those pixels through the artifact API and displays them as previews and lightbox images. flowchart TD
A[Saved conversation images] --> B[Gateway display projection]
B --> C[Image references in chat]
C --> D[Artifact download request]
D --> E[Current session access check]
E --> F[Saved image bytes]
F --> G[Chat preview and image viewer]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +349, Tests +746, Docs +6, Other +10. Total +1111 across 20 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Preserve the canonical attachment slot when recovering an image so its saved pixels and matching media metadata produce one preview. Do we have a high-confidence way to reproduce the issue? Yes, from source: an artifact-only image with matching persisted media and a valid inline layout produces two image entries because the recovered entry loses factIndex. This review did not execute repository code. Is this the best way to solve the issue? The approach is appropriate: it reuses artifact access and existing transcript storage without migration or new configuration. The artifact-only projection must preserve the same attachment identity as the URL-backed branch. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9343ea4099ba. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
0756bc5 to
ada1154
Compare
ada1154 to
822670f
Compare
96bd019 to
7dd31bb
Compare
7dd31bb to
8474607
Compare
|
Merged via squash.
|
* fix: show retained computer screenshots in chat * test: verify image auth rebinding through observable behavior * fix(ui): defer context menu focus until input completes * test(ui): wait for model slider and use upstream menu repair * test(ui): verify retained screenshots through the real Gateway * test(ui): open retained screenshot proof with keyboard * test(qa): wait for parent acknowledgement before terminal assertions
What Problem This Solves
Computer screenshots appeared as “Omitted from history” even when their pixels were still saved, and active chats ignored the persisted tool result needed to restore the preview.
User Impact
Retained screenshots display inline during a run and after reloading the conversation, with the existing image viewer, copy, download, and retry controls. Images with only omission metadata retain the honest placeholder. No migration or configuration change is required.
Why This Change Was Made
History now carries a reference to the exact persisted image instead of its base64 payload. The existing artifact API retrieves that image and rechecks current session access immediately before responding. Preview caches follow the session and connection, and durable tool-result images replace temporary omission cards in either event order. Computer observations remain separate from outgoing attachment delivery.
Evidence