Repository navigation
fix(ui): navigate image attachments in message galleries - #153198
Conversation
Project raster attachments into their message image gallery before rendering. Preserve image order, repeated uploads, and bounded SVG previews while excluding persisted mirrors. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d5224f8b-1a08-4aec-9e36-f9c9d0476e15
|
🦞👀 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. |
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: dec9cdff-6a66-4fb1-a54e-38f696e04504
|
Codex review: needs maintainer review before merge. Reviewed September 20, 2026, 12:50 AM ET / 04:50 UTC (Revision 12). ClawSweeper reviewWhat this changesThe PR includes raster image attachments in each message’s existing image gallery while preserving image order, repeated uploads, and separate SVG previews. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. The reviewed patch has no actionable correctness findings, and the inspected before/after screenshots support the gallery behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI converts chat content and saved attachment metadata into message tiles. Those tiles supply the image viewer with the originating message’s gallery for keyboard, button, and swipe navigation. flowchart TD
A[Chat content] --> C[Message media projection]
B[Saved attachment metadata] --> C
C --> D[Raster image gallery]
C --> E[SVG and file previews]
D --> F[Message image tiles]
F --> G[Image viewer navigation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +23, Tests +305. Total +328 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep media classification in the existing projection owner so visible raster tiles and gallery navigation share one ordered image list. Do we have a high-confidence way to reproduce the issue? Yes: current-main source explains why multiple MEDIA images open without gallery membership, and the supplied browser evidence demonstrates that scenario. This review did not execute a reproduction. Is this the best way to solve the issue? Yes: projecting attachments before rendering repairs the existing gallery contract and removes the competing late conversion without introducing another viewer or configuration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 891f26dc52ac. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Join the existing terminal cleanup boundary before checking process-group death, and measure footer handoff over the full native gesture sequence so successful early chaining cannot exhaust the comparison range. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 60672b30-f369-4bcd-b3b2-be2da9f529a5
Keep hovered virtual rows uncontained through native mouse focus, preserving keyboard focus rings and offscreen layout skipping. The unchanged desktop Copy/right-click E2E fails on main and passes with this repair. Co-authored-by: steipete <[email protected]>
Consume the canonical repair in #153281; retain append-only publication history. Land the prerequisite before this image-gallery PR. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: cbae2874-a8c7-4c20-9b2d-89810cd95075
Limit mouse uncontainment to hovered message bubbles so metadata retains its top-layer containment contract. Keep focus-within as a separate selector for touch keyboard focus through the existing hover guard. All 25 unchanged related E2E cases, seven end-follow browser tests, and the metadata context test pass. Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Route the transport-mocked cleanup fixture through the existing audited isolated lane so it cannot inherit a real shared-state owner from preceding files. Preserve all schema assertions and broker guards. Co-authored-by: vyctorbrzezowski <[email protected]>
Consume the canonical reviewed repair in #153281; its own landing remains a prerequisite. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2b4bb607-7cfd-491b-96e8-350dcbf48992
Adopt the authoritative fix landed in #153260 instead of restoring the superseded focus/hover containment rules from the earlier CI prerequisite. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e85c8770-b690-419e-b5ed-d5ef128175a5
Adopt #153336, which replaces the exact failing startup polls with producer completion signals while preserving the duplicate-ID and stale-owner assertions. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: bb22d663-12e4-46cf-bc8f-a8fa3b01d6b5
Keep the cleanup fixture routing now supplied by main exactly once. Settle the worker ACK fixture through its real claim, then verify explicit null/undefined still differ from omitted ownership on a missing row. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: a379f540-9ec3-47ac-92f7-fa42c521ec16
Keep main’s ACK owner-presence assertions and stronger footer hit-target check; remove the overlapping local fixture deltas rather than restore older copies. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 656c73f6-d633-465c-86fb-2dc47fbec8e8
The functional assertion ordering and safety check already match main. Drop only the two conflicting local explanatory comments; no runtime or test behavior changes. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 36336d8f-dec6-4d44-a022-f37e89270a40
…ssions Retain the upstream loading suite and existing message-renderer tests unchanged. Keep all eight attachment/gallery regression cases in their own focused fixture, preserving the projection fix and avoiding overlapping test insertion points. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f96b2955-db9a-4106-a45c-69fe98ebe31e
|
Merged via squash.
|
…3198) * fix(ui): navigate image attachments in message galleries Project raster attachments into their message image gallery before rendering. Preserve image order, repeated uploads, and bounded SVG previews while excluding persisted mirrors. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d5224f8b-1a08-4aec-9e36-f9c9d0476e15 * test(ui): make gallery fixture fields explicit Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: dec9cdff-6a66-4fb1-a54e-38f696e04504 * test: observe complete cleanup and scroll handoff Join the existing terminal cleanup boundary before checking process-group death, and measure footer handoff over the full native gesture sequence so successful early chaining cannot exhaust the comparison range. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 60672b30-f369-4bcd-b3b2-be2da9f529a5 * fix(ui): prevent chat crashes after copying a message Keep hovered virtual rows uncontained through native mouse focus, preserving keyboard focus rings and offscreen layout skipping. The unchanged desktop Copy/right-click E2E fails on main and passes with this repair. Co-authored-by: steipete <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: cbae2874-a8c7-4c20-9b2d-89810cd95075 * fix(ui): preserve contained metadata alongside copy context menus Limit mouse uncontainment to hovered message bubbles so metadata retains its top-layer containment contract. Keep focus-within as a separate selector for touch keyboard focus through the existing hover guard. All 25 unchanged related E2E cases, seven end-follow browser tests, and the metadata context test pass. Co-authored-by: steipete <[email protected]> * test: isolate mocked agent cleanup owner Route the transport-mocked cleanup fixture through the existing audited isolated lane so it cannot inherit a real shared-state owner from preceding files. Preserve all schema assertions and broker guards. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 2b4bb607-7cfd-491b-96e8-350dcbf48992 * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: e85c8770-b690-419e-b5ed-d5ef128175a5 * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: bb22d663-12e4-46cf-bc8f-a8fa3b01d6b5 * test: reconcile upstream isolation and ACK ownership contracts Keep the cleanup fixture routing now supplied by main exactly once. Settle the worker ACK fixture through its real claim, then verify explicit null/undefined still differ from omitted ownership on a missing row. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: a379f540-9ec3-47ac-92f7-fa42c521ec16 * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 656c73f6-d633-465c-86fb-2dc47fbec8e8 * test: align upstreamed cleanup fixture comments The functional assertion ordering and safety check already match main. Drop only the two conflicting local explanatory comments; no runtime or test behavior changes. Co-authored-by: vyctorbrzezowski <[email protected]> * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 36336d8f-dec6-4d44-a022-f37e89270a40 * fix(ui): navigate image attachments in message galleries Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: f96b2955-db9a-4106-a45c-69fe98ebe31e --------- Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: steipete <[email protected]>
What Problem This Solves
Fixes: left/right arrow keys do nothing when opening multiple images attached through
MEDIA:directives in one chat reply.Related: #152027 (message image gallery navigation).
User Impact
Users can navigate all raster image attachments in a message with the existing arrow keys, buttons, and swipe controls, including after reloading history. Mixed image blocks and image-file attachments share the same gallery; SVG previews keep their existing bounded renderer.
Why This Change Was Made
Classify and project image attachments once, before rendering, so each visible tile belongs to its message gallery. Remove the late per-attachment image conversion, preserve explicit duplicate uploads, and avoid adding persisted mirrors as phantom neighbors.
Reported and requested by @vyctorbrzezowski.
Evidence
MEDIA:images open without a gallery; a real Chromium mock-Gateway test confirms ArrowRight stays onbefore.pnginstead of openingafter.png.CI verification
5d682d7f8204e3744d94a2307748c892c1f9127d; the native watcher finished with a successful rollup and no pending checks.Before
The first image opens without gallery controls, and ArrowRight leaves it unchanged.
After
ArrowRight opens the second image; navigation controls and the 2 / 3 counter are visible.
Image-fix production change: +56/-33 lines (net +23); the added owner-level projection and shared classification replace downstream image conversion. No schema, protocol, runtime configuration, or dependency changes.
Worked on by
Work sessions
View the OpenClaw team session