Repository navigation
fix(ui): load remote images in compact activity previews - #152045
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 maintainer review before merge. Reviewed September 18, 2026, 4:48 PM ET / 20:48 UTC (Revision 6). ClawSweeper reviewWhat this changesThe PR enables HTTPS image previews, suppresses gallery referrers, displays Activity thumbnails in a compact scrolling row, updates documentation and browser coverage, and removes duplicate declarations from three test fixtures. Merge readiness✅ Ready for maintainer review The prior documentation finding is resolved. The PR remains useful because current main still blocks arbitrary HTTPS images and uses the two-column Activity layout; no blocking introduced defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI receives transcript image metadata from the Gateway and renders previews through shared Chat image components. The Gateway’s browser security policy determines which image hosts those previews and document views can contact. flowchart TD
A[Transcript image metadata] --> B[Shared image renderer]
C[Document previews] --> D[Browser image policy]
B --> D
D --> E[Local or HTTPS image source]
E --> F[Compact Activity previews]
F --> G[Expanded image gallery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7, Tests +72, Docs +2. Total +81 across 12 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep image loading in the existing shared renderer and CSP owner, with compact Activity presentation and accurate disclosure of automatic remote-host contact. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure path: Activity passes remote transcript images to the shared renderer while current main’s CSP rejects their HTTPS hosts. No runtime reproduction was executed during this review. Is this the best way to solve the issue? Yes. The patch updates the existing policy and rendering owners, preserves gallery navigation, and now accurately documents the broader document-preview behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d2a5196a2f95. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
53fb762 to
8bbbf8b
Compare
d6333e3 to
74404d3
Compare
Allow HTTPS image previews without sending page referrers, and display Activity thumbnails in one compact horizontal row with mobile scrolling. Preserve image expansion and previews during refresh.
Apply the image referrer policy before the gallery decoder assigns its source. Exercise neighboring-image navigation and inspect complete request headers in the Activity regression.
Keep the first node:util import in each mock factory and remove the duplicate declaration introduced by overlapping upstream changes. Preserve the custom promisify descriptor and all assertions.
369e9ee to
6907d32
Compare
Distinguish click-to-open attachments and Skill Workshop previews from plugin README and agent-file previews that load remote images automatically. Document the gallery preloader's referrer policy.
|
Corrected the Markdown image-loading documentation in f795655. Attachments and Skill Workshop previews keep click-to-open links; plugin README and agent-file previews automatically load HTTPS images. The shared image policy now documents that broader behavior explicitly. The gallery preloader policy is also documented. Docs link audit: 13,891 links checked, zero broken; independent review and diff checks passed. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…49075-c1-control-repair * commit 'dc5b321b5f89f9cf0e704ee202ea3059fb1ce63d': (79 commits) fix: start background context maintenance after durable turns (#151936) fix(models): avoid ambient state reads during prepared selection (#152119) feat: recover abandoned Crabbox source staging (#152006) chore(ui): refresh control ui locales (#152098) fix(ui): keep cloud startup prompts and progress in chat (#152024) fix: report completed subprocess cleanup after cancellation (#152107) perf(reply): reuse normalized inbound text (#152110) fix(cron): paused future one-shots disappear after Run now (#152126) perf(sessions): reuse rows and skip discarded terminal labels (#152109) fix(ui): keep keyboard-focused automation controls clear of sticky actions (#152135) fix(ui): load remote images in compact activity previews (#152045) refactor(health): skip unused verbose account projection (#152108) fix: restore dashboard test limits and SQLite test compilation (#152089) test(qa-lab): stabilize timeout recovery delivery proof (#152100) fix: probe SQLite when Node denies worker threads (#152075) perf(gateway): keep GitHub co-author trailer scans linear (#152115) fix(media): report CLI models with missing command or args (#151969) refactor: remove retired runtime code and duplicate helpers (#151973) perf(plugins): combine runtime and tool call scopes (#152101) test(memory): seed restart fixtures with the Gateway stopped (#152038) ...
…n-20260918-v4 * origin/main: (81 commits) fix: retire failed setup plugins without replaying facade initialization (#152026) fix(test): select Node for built runtime recovery fixtures (#152162) refactor(auth): reuse privately assembled choice groups (#152166) fix: preserve chat media delivery and session boundaries (#152079) fix: keep stale Stop messages from canceling replacement sessions (#152116) improve(plugins): reduce mutable argument handling overhead (#152154) fix(scripts): prevent host tooling drift from blocking PR workflows (#152078) improve: reduce model capability preparation work (#152128) fix: stop marking delivered scheduled reports as failed (#152165) fix: start background context maintenance after durable turns (#151936) fix(models): avoid ambient state reads during prepared selection (#152119) feat: recover abandoned Crabbox source staging (#152006) chore(ui): refresh control ui locales (#152098) fix(ui): keep cloud startup prompts and progress in chat (#152024) fix: report completed subprocess cleanup after cancellation (#152107) perf(reply): reuse normalized inbound text (#152110) fix(cron): paused future one-shots disappear after Run now (#152126) perf(sessions): reuse rows and skip discarded terminal labels (#152109) fix(ui): keep keyboard-focused automation controls clear of sticky actions (#152135) fix(ui): load remote images in compact activity previews (#152045) ...
…2045) * fix(ui): load remote images in compact activity previews Allow HTTPS image previews without sending page referrers, and display Activity thumbnails in one compact horizontal row with mobile scrolling. Preserve image expansion and previews during refresh. * fix(ui): suppress referrers when preloading gallery images Apply the image referrer policy before the gallery decoder assigns its source. Exercise neighboring-image navigation and inspect complete request headers in the Activity regression. * test: remove duplicate promisify declarations from SQLite mocks Keep the first node:util import in each mock factory and remove the duplicate declaration introduced by overlapping upstream changes. Preserve the custom promisify descriptor and all assertions. * docs: clarify automatic HTTPS image loading in document previews Distinguish click-to-open attachments and Skill Workshop previews from plugin README and agent-file previews that load remote images automatically. Document the gallery preloader's referrer policy.
What Problem This Solves
Fixes broken Activity previews for external HTTPS images and the oversized two-row gallery that wastes vertical space.
User Impact
Activity shows up to four compact 128×80 previews in one horizontal row, with sideways scrolling on narrow screens and full-size image expansion. HTTPS screenshots and SVG badges load correctly. The same policy also allows automatic remote-image loading in plugin READMEs and agent-file previews; Markdown attachments and Skill Workshop previews remain click-to-open. The browser contacts remote image hosts directly; thumbnails, the viewer, and neighboring-image preloads send no page referrer.
Why This Change Was Made
Activity already discovers remote transcript images, but the shared image policy rejected their hosts. The repair aligns that policy with the existing image renderer and keeps previews compact and uncropped. It preserves the new gallery navigation from #152027 and applies the same referrer policy to its preloader.
Evidence
openclaw/ci-gate, native prepare/merge gates, changed-code checks, and independent review passed. Inspected synthetic before/after screenshots render in both the originating task and this PR. No live Gateway deployment was performed.CI recovery context
The first CI run exposed a stale quota-status expectation already repaired in #152010. A rebase incorporated that fix. The next run exposed server-schema imports in seven browser test suites; the independently verified import repair is now on main via #152099 and was dropped from this PR as already applied.
After integrating #152027, Linux CI caught a referrer sent by the new gallery preloader. The fix and stronger navigation/header proof are included. A later CI run encountered duplicate
promisifydeclarations introduced by #152064 and #151366; this PR removes only the duplicate declaration in each of the three affected test fixtures.Before
After