Repository navigation
feat(ui): add generated image actions - #77017
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 11:16 AM ET / 15:16 UTC. ClawSweeper reviewWhat this changesThe branch adds bounded generated-image thumbnails and Open, Download, and Copy actions in Control UI chat, using attachment-specific media tickets for browser fetches. Merge readinessThis PR remains useful and its exact-head proof is strong, but it is currently dirty against Priority: P2 Review scores
Verification
How this fits togetherControl UI renders managed image references from chat history and asks the Gateway for a short-lived artifact URL. The browser then fetches preview or full image bytes for display, lightbox, download, and clipboard actions. flowchart LR
A[Generated assistant image] --> B[Managed transcript attachment]
B --> C[Gateway artifact download]
C --> D[Short-lived attachment ticket]
D --> E[Control UI thumbnail]
E --> F[Open Download Copy actions]
F --> G[Full image or clipboard]
Decision needed
Why: Tests can establish attachment binding and replay rejection, but only owners can choose whether possession of this URL capability is the intended lasting authorization contract for these additional browser actions. Before merge
Findings
Agent review detailsSecurityNeeds attention: No concrete exploit was found, but the proposed extension of a bearerless attachment capability needs explicit owner acceptance before merge. PR surfaceSource +627, Tests +438, Docs 0. Total +1065 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Mantis proof suggestionA redacted Control UI chat interaction capture would independently demonstrate the visible thumbnail and Open, Download, and Copy behavior after rebase. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Rebase the focused feature onto current main, preserve the authenticated fallback, then land it only after Gateway and Control UI owners explicitly accept the scoped ticket contract and refreshed exact-head browser and Gateway proof confirms the merged behavior. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect report. The contributor supplied exact-head browser and isolated Gateway evidence, but a rebased head needs equivalent proof because the current branch is dirty against main. Is this the best way to solve the issue? Unclear. Bounded previews and direct actions are a coherent Control UI solution, but explicit owner approval is needed before extending the capability-ticket authorization model to these browser actions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 807506381a03. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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 (24 earlier review cycles; latest 8 shown)
|
cd67e7f to
d76f02d
Compare
|
Addressed Clawsweeper feedback by adding the required Verification run on the updated branch:
|
d76f02d to
c210906
Compare
ef0d8f4 to
f61af23
Compare
cf76daf to
04b9846
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Reconciled this PR as one focused commit on current On exact head @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Reworked on current main and current artifact-ticket transport. Exact head: The prior Blob-URL finding is now covered directly: full and thumbnail variants have distinct bounded cache entries, the full entry is retained while the lightbox owns it, cache pressure cannot revoke it while retained, and a regression test proves it becomes evictable after release. Exact-head CI evidence:
One generic compact mega-shard independently hit three unrelated @clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head proof has been refreshed for @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing due to inactivity. |
Co-authored-by: Ittiz <[email protected]>
|
Landed via squash onto
|

What Problem This Solves
Generated images in Control UI chat had no direct Download or Copy controls, and their previews fetched full-resolution image bytes even when rendered as small frames.
Why This Change Was Made
This branch is rebuilt as one focused change on current
mainand the current artifact-ticket transport. It adds:The old transcript rewrite, credential-candidate retry, Codex callback, release tooling, and stacked #75727 changes are absent.
User Impact
Managed generated images load as smaller previews and expose full-image Open, Download, and Copy actions without configuration or migration.
Exact-head evidence
Head:
fa79301c6cefcf2ee0955a28576dc457db78d458Local verification:
git diff --check: passedpnpm tsgo:coreandpnpm tsgo:ui: passedRedacted behavior verdict:
{ "head": "fa79301c6cefcf2ee0955a28576dc457db78d458", "redacted": true, "controlUiBrowser": { "result": "passed", "assertions": [ "thumbnail requested before interaction", "Download produced Ticketed generated image.png", "Copy produced an image/png ClipboardItem", "Open displayed the full image", "all actions shared one full-image fetch" ] }, "realGateway": { "result": "passed", "assertions": [ "artifacts.download issued a transcript-backed ticket", "bearerless full response matched the source bytes", "bearerless thumbnail response was a 300x84 PNG", "bearer-authenticated canonical fallback matched the source bytes" ] } }The browser scenario uses the repository's routed mock Gateway for deterministic interaction. The second scenario starts the real Gateway, writes temporary SQLite/session-transcript state, calls the real
artifacts.downloadRPC, and fetches the production HTTP media route. No endpoint, credential, production state, or identifying data appears above.Maintainer ticket-scope decision
Approved: managed-media tickets are attachment-scoped, not URI-exact. As the maintainer owner of this media-ticket integration, @obviyus explicitly accepts the existing full-image ticket authorizing a lower-fidelity thumbnail of the same transcript-bound attachment. The ticket already authorizes the original bytes; the derivative grants no additional information and cannot select another attachment. A separate thumbnail ticket is not required.
Security Impact
This is the intentional security contract for this PR. Existing attachment ownership and transcript-link checks remain in force. Cross-attachment reuse remains denied.
Change size
Production: +458/-100 (net +358). Tests: +428/-54 (net +374). Docs: neutral. Production growth is the new thumbnail owner boundary plus the three user-visible actions; the original custom queue and duplicate per-action fetch paths were removed.
Compatibility
No configuration, schema, protocol, or migration change.