Repository navigation
refactor(browser): remove model-backed page extraction - #120101
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 7, 2026
* refactor(browser): remove model-backed extraction * docs(browser): remove stale extract reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The Browser plugin exposed
extractas 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:evaluateto 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 toanalyze, 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.mdentry is included per maintainer direction; this removes an experimental pre-stable surface rather than documenting it as supported behavior.Evidence
pnpm buildpassed in 4m11s, including Browser assets, all tsdown phases, Plugin SDK export checks, runtime postbuild, and Control UI build/performance checks.gpt-5.6-sol, high): clean; no accepted/actionable findings.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.