Repository navigation
fix(ui): remove automatic browser preview cards - #197549
Conversation
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]>
|
🦞👀 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. |
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]>
|
Codex review: needs maintainer review before merge. What this changesRemoves 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -961, Tests -1180, Docs -7. Total -2148 across 53 files. Added test files: 2. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment 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]>
Co-authored-by: vyctorbrzezowski <[email protected]>
|
Maintainer verification after integrating main 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 After — original output remains readable, light and dark |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Remove automatic browser preview cards while retaining original tool output, deliberate attachments/widgets, and existing Browser panel routing. Delete the retired capture/cache and renderer paths. Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: Vyctor H. Brzezowski <[email protected]>



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
browserTabfield 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
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.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
After
Expanded browser result — normal output, no automatic card
Requested by @vyctorbrzezowski.
Maintainer verification
Integrated current main
d4577ec4b31in248345613c7, 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.