Skip to content

fix(ui): remove automatic browser preview cards - #197549

Merged
vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/browser-previews-inside-tool-work
Nov 13, 2026
Merged

vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/browser-previews-inside-tool-work

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Related: #197528

What Problem This Solves

Fixes repeated page-preview cards cluttering the conversation whenever the agent browses during a task.

User Impact

Browser tool calls keep their normal expandable results without automatic preview cards, including inside expanded work. Deliberately shared links, images, and widgets remain unchanged. The Browser panel remains available through its existing controls and retains the session’s latest successful browser target. No migration or configuration change is required.

Why This Change Was Made

Following the requester’s design direction, this removes the card rather than hiding it or introducing a replacement. @vyctorbrzezowski plans to redesign browser activity as a better chat-transcript experience in separate work. The renderer, styles, thumbnail capture/cache, preview-placement selectors, transcript plumbing, unused copy, and obsolete card tests are removed. Browser target selection remains because the existing panel still uses it.

A follow-up review of adjacent code also removed the card-only browserTab field from Browser panel open requests. No other producer sends it; panel controls, Gateway panel commands, native links, and session-result routing are unchanged. Browser, settings, security, and configuration documentation no longer describes the removed card or its menu and page-preview behavior. Stale card paths are removed from CI owner metadata and benchmark checks. External-link hover previews keep their existing setting.

The generated boot manifest and config-documentation hash are refreshed; no new state owner or compatibility path is added.

Evidence

  • The removal regression failed in both light and dark themes before the card was removed; it passes afterward.
  • After merging current main, 3,553 of 3,555 tests passed across 316 of 317 UI unit files covering chat components, Browser panel, menus, clipboard, and native links. The two failures were mobile session-menu timing tests outside this change; that file passed 17/17 twice in isolation.
  • 30 production-bundle browser tests passed across 6 suites: light/dark expansion and reload, draft retention, repeated visits at desktop/mobile widths, social URLs, delivered widgets, and host/node Browser panel routing.
  • Browser panel tests now route through session results instead of the removed card event. CI owner-selection tests passed.
  • UI typecheck, i18n verification, boot-manifest generation, config-documentation and schema checks, Markdown lint, scoped lint, and formatting passed. Earlier production-build validation passed.
  • The production build’s advisory size report was over its startup-JS and total-CSS limits (92,176 vs 92,137 startup bytes; 322.8 vs 318.9 KiB CSS gzip). Those warnings are not claimed as passing, and no limit was raised.
  • Original author review and simplification completed; current independent maintainer review is recorded below.

Screenshots show the actual Control UI production bundle with deterministic mock Gateway history and an emulated 1200 × 950 viewport, not a live user session. The original before image is from the base above. The collapsed after image is reused because this revision leaves that appearance unchanged; the expanded after image is from the complete removal.

Before

Before: automatic page cards escape collapsed work

After

After: collapsed work leaves only the delivered replies

Expanded browser result — normal output, no automatic card

Expanded browser result without an automatic preview card

Requested by @vyctorbrzezowski.

Maintainer verification

Integrated current main d4577ec4b31 in 248345613c7, preserving its newer tool-output and assistant-identity owners. Removed the retired browser-card references from the new inline-command presentation and extended the existing output-preservation test to cover it.

The integrated candidate passed 109 focused tests, 11 production-browser cases, the UI typecheck, scoped lint/format, and generation of the boot/config artifacts. Independent P0–P2 review found no actionable issues. The previous CI failure around the GitHub device-code “Copied” feedback did not reproduce in this run; a passing replay is not a causal explanation. Current-head CI is tracked separately.

Inspected before/after screenshots and full maintainer verification. The captures and browser cases use the actual production UI with synthetic Gateway responses, not a live provider. The larger suite counts in Evidence are retained author results, not a claim that the maintainer reran those entire suites.

CI disposition

CI run 43366946051 passed every non-aggregate job except the Home read-only browser scenario, which hit its 120-second timeout. Gateway startup alone took 92.4 seconds; the log reaches the owner connection but not the reader's Home checks. The Home test, its CI classification, and the Gateway/state startup trees are byte-identical to the tested main baseline. This is an inherited setup/runtime timeout, not a browser-preview assertion failure.

The complete Home scenario passed locally against this head in 17.2 seconds, including read access, rejected writes, and hidden content after access changed. That replay does not turn the failed CI run green. Landing uses the maintainer's pre-existing-failure exception with the exact failed run, checkout, logs, and unchanged-input evidence retained. Performance, security, typechecks, lint and the other CI test jobs passed.

Work sessions

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

Make expanded tool results the single owner of automatic browser previews instead of promoting them into separate transcript rows. Preserve delivered replies and existing capture and permission contracts.

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

clawsweeper Bot commented Nov 12, 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 size: L labels Nov 12, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 12, 2026 05:23
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
Keep normal tool results and browser panel target selection without rendering automatic page cards. Remove the retired card, screenshot cache, transcript plumbing, copy, and tests; preserve explicit links and widgets.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot roboclaw-bot changed the title fix(ui): keep automatic browser previews inside tool work fix(ui): remove automatic browser preview cards Nov 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Removes automatic browser preview cards while preserving expandable tool results, explicit assistant outputs, and Browser panel targeting.

Example: An agent visits #197528 three times during verification.

  • Before: Automatic page cards appear alongside the delivered replies.
  • After: The replies and expandable browser results remain, without automatic cards.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, approved removal with direct visual proof and focused consumer coverage; no concrete source defect was found.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The actual built Control UI with synthetic Gateway history shows repeated cards before removal, retained replies afterward, and ordinary browser output after expansion; inspected screenshots directly prove the changed visual behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Automatic browser cards repeatedly interrupt the conversation while the agent verifies pages.
Reason: The maintainer-authored direction explicitly accepts removing automatic browsing visibility from chat while preserving normal results and manual Browser panel access.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR implements the approved removal cleanly, with no concrete introduced defect found; failing CI still needs attribution before landing.

Priority: P2
Reviewed head: 942eb08e79a66bb63dfc40fe18b88ed077dbdf45

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI projects browser tool results from live and saved messages into chat presentation and session Browser panel selection.

flowchart TD
  A[Browser tool results] --> B[Tool card extraction]
  B --> C[Expandable chat results]
  B --> D[Latest successful browser target]
  D --> E[Browser panel]
  F[Explicit assistant outputs] --> G[Links media and widgets]
Loading

Technical review

Best possible solution:

Remove the retired card pipeline completely while retaining the existing tool-result, explicit-output, and Browser panel owners.

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

Current-main extraction and transcript renderers generate automatic cards from successful browser results, matching the inspected base screenshot; no target execution was performed during this review.

Is this the best way to solve the issue?

The complete deletion matches the approved direction and is the smallest coherent cutover: stop producing browser previews, remove their consumers and cache, and retain exact panel selection.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Automatic browser cards and thumbnail capture changes intended behavior with a stated reason (61fc3d2: Expose page identity and a live thumbnail instead of leaving browser activity represented only by tool rows.)
  • Preview placement around completed replies changes intended behavior with a stated reason (fix(ui): a later browser preview renders above an earlier inline widget in completed turns #161473: Keep browser previews and explicit visual outputs in execution order when completed work collapses.)
  • URL-less Browser panel routing keeps the original intent (5ce97da: Preserve exact successful browser targeting independently of whether a page URL qualifies for a preview.)
  • Explicit widgets and video previews keeps the original intent (4d18f99: Render existing widget and tool-preview contracts with Solid while preserving actions and lazy boundaries.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Approved direction and retained behavior: The collaborator-authored PR explicitly chooses complete card removal and retains normal results, explicit outputs, and panel selection; its direction is an owner decision under this review's rules. (942eb08e79a6)
  • Removal at the existing producer: Tool presentation no longer creates browser previews, but still validates canonical browser origin and returns the exact browser target; explicit canvas extraction remains before this branch. (ui/src/lib/chat/tool-cards.ts:188, 942eb08e79a6)
  • Panel selection survives: The existing latest-successful-target selector still supplies preferredBrowserTab and sessionBrowserTabs to the panel; only transcript preview plumbing is removed. (ui/src/pages/chat/chat-pane-layout-render.ts:439, 942eb08e79a6)
  • Inspected visual proof: Inspected all three attached PR screenshots locally: the base shows repeated cards, the collapsed result retains delivered replies without cards, and expanded work shows normal browser output without a card. The body identifies the actual production bundle with synthetic Gateway history. (942eb08e79a6)
  • Current main retains the feature: Fetched main still contains the card renderer, automatic thumbnail capture, and browser-preview production, so this removal is not already implemented. (ui/src/lib/chat/browser-tab-preview.ts:75, b1a5641eabd8)
  • Original feature intent: feat(browser): agent requests/text/emulate + snapshot query, and inline browser-tab thumbnail cards #131592 introduced automatic cards to make browser activity visible; this PR explains its intentional reversal in favor of uncluttered conversations and existing panel controls. (ui/src/lib/chat/browser-tab-preview.ts:35, 61fc3d2d7957)

Likely related people:

  • Peter Steinberger: Raw commit 61fc3d2 adds ui/src/lib/chat/browser-tab-preview.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 61fc3d2d7957; files: ui/src/lib/chat/browser-tab-preview.ts)

PR surface

Source -961, Tests -1180, Docs -7. Total -2148 across 53 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 29 58 1019 -961
Tests 22 292 1472 -1180
Docs 2 2 9 -7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 53 352 2500 -2148

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.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +58 / -1,014; tests +292 / -1,472 The reduction removes the renderer, thumbnail cache, placement machinery, and obsolete tests; retained additions cover ordinary results and panel routing.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Conversation clutter is a bounded UI improvement with working tool results and Browser panel access.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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 12, 2026, 12:58 AM ET / 05:58 UTC.

Remove the card-only browser panel toggle field and stale card references in docs, config help, CI owner inventory, and tests.

Co-authored-by: vyctorbrzezowski <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts labels Nov 12, 2026
@vyctorbrzezowski

vyctorbrzezowski commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Maintainer verification after integrating main d4577ec4b31 into 248345613c7: the automatic browser cards are removed, while expandable tool results, explicit images/widgets, the composer draft, and Browser panel targeting remain intact.

The integration preserves main's newer tool-output and assistant-identity owners. I also removed the retired card references from the new inline-command presentation and extended the existing output-preservation test to cover that route.

Validation: 109 focused tests and 11 production-browser cases passed, including expansion, reload, draft retention and Browser panel routing. UI typecheck, scoped lint/format, generated boot/config artifacts, and independent P0–P2 review passed. The old GitHub-device-code “Copied” failure did not reproduce; this passing replay does not establish its original cause. Current-head CI is tracked separately.

These are inspected captures of the actual production UI with synthetic Gateway history, not a live-provider claim.

Before — automatic cards

Automatic browser cards

After — original output remains readable, light and dark

Expanded browser output in light theme

Expanded browser output in dark theme

@vyctorbrzezowski
vyctorbrzezowski merged commit 18872ea into main Nov 13, 2026
151 of 154 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/browser-previews-inside-tool-work branch November 13, 2026 05:09
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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 extensions: qa-lab gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants