Skip to content

refactor(browser): remove model-backed page extraction - #120101

Merged
steipete merged 2 commits into
mainfrom
codex/remove-browser-extract
Aug 7, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/remove-browser-extract

Conversation

@steipete

@steipete steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Browser plugin exposed extract as if it were a browser query, but it actually captured page HTML and sent the content plus the caller's question through a hidden second model completion. That split semantic reasoning away from the active agent, added latency and model/auth selection surprises, and encouraged agents to use an opaque model-backed path instead of deterministic browser primitives.

Why This Change Was Made

Remove the model-backed extraction feature before it becomes a stable contract. This deletes the agent action and schema fields, CLI command, private capture route, Playwright capture helper, node-proxy allowance, injected completion dependencies, tests, docs, and bundled-skill guidance as one Browser-plugin owner-boundary change.

The canonical reading flow is now explicit: use selector-scoped snapshots or act:evaluate to return bounded text/structured data, then let the active agent model reason over that result. Snapshot remains the canonical source of action refs.

Best-fix verdict: this is the best fix. Rewording query, renaming the action to analyze, or selecting the active session model would leave the hidden extra completion, duplicated reasoning, and second auth/model boundary in place.

Provenance: the extract action was introduced by #113861 on July 25, 2026 and expanded by #113938 later that day. Both PRs were authored and merged by @steipete; the squash commits were committed by GitHub. This PR removes that complete combined surface.

User Impact

Agents and CLI users no longer see or call browser extract. Browser reading uses deterministic, bounded page capture and the active agent's own reasoning, avoiding an unexpected utility-model call. Existing snapshot, evaluate, navigation, screenshot, and action behavior is unchanged.

Production LOC: +3/-1064 (net -1061) | Tests: +8/-1030 (net -1022) | Docs + bundled skill: +10/-68 (net -58).

No CHANGELOG.md entry is included per maintainer direction; this removes an experimental pre-stable surface rather than documenting it as supported behavior.

Evidence

  • Focused Browser regression suite: 5 files, 181 tests passed.
  • Full changed gate passed: formatting, extension production/test typechecks, extension lint, plugin boundaries, Plugin SDK API baseline, dead-export scans, import-cycle guard, and all selected repository guards.
  • Full pnpm build passed in 4m11s, including Browser assets, all tsdown phases, Plugin SDK export checks, runtime postbuild, and Control UI build/performance checks.
  • Exact branch autoreview (gpt-5.6-sol, high): clean; no accepted/actionable findings.
  • Complete-removal search found no remaining Browser extract action, command, route, capture helper, model-completion dependency, or docs/skill contract.

Heavy proof used the documented trusted local fallback because this host has no Blacksmith Testbox client and direct AWS Crabbox is not authenticated. The focused tests, full changed gate, build, and autoreview all ran against the exact rebased diff.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels Aug 7, 2026
@steipete steipete self-assigned this Aug 7, 2026
@steipete
steipete merged commit 01281ad into main Aug 7, 2026
113 checks passed
@steipete
steipete deleted the codex/remove-browser-extract branch August 7, 2026 01:32
@steipete

steipete commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant