Skip to content

improve(ui): remove image galleries from Activity - #199157

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
review/activity-image-removal-20261114
Nov 14, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
review/activity-image-removal-20261114

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Activity maintains a second image gallery beside session recaps. The same images are already in Chat, where they appear in context. The gallery added per-row artifact discovery requests, its own cache and its own viewer to show copies of those images.

User Impact

Activity no longer shows transcript-image strips or their preview and pagination controls. Recaps, Git information, filters, and links to the original conversations remain. Images in Chat and the public artifact API are unchanged.

Why This Change Was Made

Remove the complete secondary gallery, including its discovery queue, connection cache, image ownership, viewer, styles, copy, and obsolete tests. Do not merely hide its button.

What stays available to plugins and integrations

  • artifacts.list and the artifact API are unchanged, so plugins and other clients can still discover session images.
  • Chat image rendering and the image viewer used by Chat are unchanged.
  • Removed code was UI-only (the gallery component and its loader). No protocol, SDK or published package changed.

Evidence

  • Actual Control UI with a synthetic Gateway: the same Activity row shows images before and no gallery afterward; artifact-discovery requests fall from one to zero, and its conversation link still opens Chat.
  • 29 focused Activity and recap checks passed. UI typecheck, focused lint, controller guard, i18n source verification, formatting, diff checks, and the UI production build passed. No live Gateway/provider or broad CI claim.
  • Simplification: 1,108 lines removed, including obsolete tests; no replacement abstraction or new state. Shared chat image behavior is preserved.
  • Independent local autoreview (Codex, GPT-6.1 Sol, P0–P2) found no actionable findings in the full local diff against 427ebcca678753162d7a0a68b90f2e899cf9fdb6. Unchanged surrounding source was not supplied and the reviewer did not rerun tests.

Actual application with synthetic content, dark theme, 1280×900.

Before

Activity before

After

Activity after

Requested by @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

Maintainer validation

Reviewed the deletion boundary and the before/after captures. The removed gallery and cache belong to Activity; Chat images, the shared viewer and persisted media APIs remain unchanged. Fixed the unused type import left in the surviving image browser tests. Scoped lint and formatting pass; the correction changes no runtime source or executable test behavior. Current-head functional tests and static checks passed. The only remaining failed check is the bundle-size gate; this landing uses the maintainer-authorized CSS/JS budget exception.

Keep recaps, Git information and conversation links without a second image-discovery and preview lifecycle.

Co-authored-by: vyctorbrzezowski <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: XL labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR removes transcript-image galleries and their discovery lifecycle from Activity while preserving recaps, Git information, conversation links, and Chat images.

Example: Open Activity at 1280×900 with the synthetic session “Review the release dashboard.”

  • Before: The session recap has two screenshot thumbnails beneath it.
  • After: The same recap and conversation link remain without the screenshot strip.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Direct visual evidence supports the intended behavior, but the incomplete consumer cutover leaves deterministic validation failures.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI Activity route with synthetic Gateway content and directly show the gallery removal; they do not independently demonstrate request counts or the claimed Chat navigation.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Activity repeats an image-browsing experience already available through the original conversation.
Reason: Maintainer authorship establishes the removal direction, and the patch removes the secondary lifecycle without adding replacement state or changing Chat.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored PR open: the intended UI removal works, but gallery-dependent E2E tests and benchmark modes still require the deleted component.

Priority: P3
Reviewed head: 6ed1fbee75937d2c93283d3897014fd3ec661869

Before merge

  • Update the retained Activity E2E scenarios for gallery removal (P2) - Deleting ActivitySessionMedia makes both viewport variants of both tests in this file fail: they still poll for four .chat-message-image-button elements at lines 83 and 203. The second group also waits for image discovery before reaching its Git hovercard coverage. Remove the gallery-only group and assertions while retaining the independent loading, recap, metadata, and Git checks.
  • Retire the benchmark modes that require the deleted gallery (P2) - The route benchmark still accepts --routes activity --activity-media empty|gallery and calls this helper. Even empty mode requires an artifacts.list request and openclaw-activity-session-media, neither of which exists after this PR; gallery mode additionally waits for a deleted thumbnail during route readiness. These advertised modes therefore time out instead of producing measurements. Remove the gallery fixture, modes, interactions, and their dependent reporting branches.

Findings

  • [P2] Update the retained Activity E2E scenarios for gallery removal — ui/src/e2e/activity-polish.e2e.test.ts:82-83
  • [P2] Retire the benchmark modes that require the deleted gallery — scripts/route-leaks-activity-pilot.ts:68-77
  • [P3] Remove Activity's obsolete image-viewer preload — ui/config/control-ui-navigation-preloads.ts:21
Agent review details

How this fits together

Activity renders Gateway session rows and recaps; the removed component separately discovered transcript artifacts and passed images to shared Chat media and lightbox components.

flowchart TD
  A[Gateway session rows] --> B[Activity feed]
  B --> C[Recaps and Git information]
  B --> D[Conversation link]
  D --> E[Chat images]
  F[Artifact API] --> E
Loading

Technical review

Best possible solution:

Complete the removal by retiring gallery benchmark modes and idle preloading, and preserve recap and Git coverage in the updated Activity E2E suite.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes that removing ActivitySessionMedia leaves the retained thumbnail assertions and gallery benchmark readiness predicates unsatisfiable; no failing execution was performed.

Is this the best way to solve the issue?

Deleting the secondary gallery is a direct implementation of the maintainer-approved direction, but its remaining test, benchmark, and preload consumers need the same cutover.

Full review comments:

  • [P2] Update the retained Activity E2E scenarios for gallery removal — ui/src/e2e/activity-polish.e2e.test.ts:82-83
    Deleting ActivitySessionMedia makes both viewport variants of both tests in this file fail: they still poll for four .chat-message-image-button elements at lines 83 and 203. The second group also waits for image discovery before reaching its Git hovercard coverage. Remove the gallery-only group and assertions while retaining the independent loading, recap, metadata, and Git checks.
    Confidence: 1
  • [P2] Retire the benchmark modes that require the deleted gallery — scripts/route-leaks-activity-pilot.ts:68-77
    The route benchmark still accepts --routes activity --activity-media empty|gallery and calls this helper. Even empty mode requires an artifacts.list request and openclaw-activity-session-media, neither of which exists after this PR; gallery mode additionally waits for a deleted thumbnail during route readiness. These advertised modes therefore time out instead of producing measurements. Remove the gallery fixture, modes, interactions, and their dependent reporting branches.
    Confidence: 1
  • [P3] Remove Activity's obsolete image-viewer preload — ui/config/control-ui-navigation-preloads.ts:21
    After the gallery is removed, this descriptor still makes the shell idle owner preload the image-lightbox content and its static assets on Activity. That interaction is no longer reachable there, so opening Activity continues fetching gallery presentation code unnecessarily. Remove the activity-next image-viewer entry while preserving shared lightbox loading for Chat.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 210458b3d434.

Provenance checked

  • Activity gallery presentation and lifecycle changes intended behavior with a stated reason (540476d: fix: make Activity recaps readable and resilient #147901 intentionally added expandable transcript images; subsequent Solid and loading refactors preserved them.)
  • Gallery-specific CSS, copy, documentation, and tests keeps the original intent (44d24c3: The deleted browser scenario exercised keyboard admission in Activity's horizontal gallery, whose renderer and stylesheet this PR deliberately removes.)
  • Controller baseline and CI inventories keeps the original intent (317cd3a: These entries account for the existing media component, stylesheet, and test; deleting their entries follows deletion of those files.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test:ui:e2e ui/src/e2e/activity-polish.e2e.test.ts
  • pnpm tsgo:ui
  • pnpm tsgo:scripts
  • pnpm --dir ui test src/app/navigation-preloads-build.node.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 73f784f adds ui/src/pages/activity/session-activity-row.tsx:182 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 73f784f92ec7; files: ui/src/pages/activity/session-activity-row.tsx)

PR surface

Source -583, Tests -521, Docs -1, Other -3. Total -1108 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 0 583 -583
Tests 2 0 521 -521
Docs 1 0 1 -1
Config 0 0 0 0
Generated 0 0 0 0
Other 3 0 3 -3
Total 10 0 1108 -1108

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a presentation simplification with limited user impact.
  • add merge-risk: 🚨 automation: Removing the gallery leaves browser checks and benchmark proof capture waiting for elements and requests that no longer exist.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is a presentation simplification with limited user impact.
  • merge-risk: 🚨 automation: Removing the gallery leaves browser checks and benchmark proof capture waiting for elements and requests that no longer exist.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 3:16 PM ET / 20:16 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 14, 2026 20:51
@vyctorbrzezowski
vyctorbrzezowski merged commit a4fb143 into main Nov 14, 2026
116 of 119 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the review/activity-image-removal-20261114 branch November 14, 2026 21:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
Remove the secondary image galleries and their browser-local cache from Activity. Preserve Chat images, shared viewers and stored media.

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants