Skip to content

revert(browser): remove extraArgs config - #18823

Closed
sebslight wants to merge 1 commit into
mainfrom
revert/pr-18443
Closed

sebslight wants to merge 1 commit into
mainfrom
revert/pr-18443

Conversation

@sebslight

@sebslight sebslight commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Revert browser.extraArgs support and related tests/config additions.
  • Removes extra Chrome arg injection to undo accidental merge.

Testing

  • Not run (revert only).

Reverts: #18443

Greptile Summary

This PR cleanly reverts the browser.extraArgs configuration feature that was added in three commits (039fc1e, 2977f73, 47f8c92). The revert removes:

  • The extraArgs property from BrowserConfig type definition
  • The extraArgs field from ResolvedBrowserConfig
  • The filtering/validation logic for extraArgs in resolveBrowserConfig()
  • The Chrome argument injection code in launchOpenClawChrome()
  • The extraArgs: [] initialization in buildSandboxBrowserResolvedConfig()
  • All 5 test cases covering extraArgs behavior

The revert is complete and doesn't leave any dangling references. All changes are pure deletions that undo the original feature without introducing new logic.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The revert is complete and correct. All additions from the three commits being reverted (039fc1e, 2977f73, 47f8c92) have been cleanly removed. No dangling references to extraArgs remain in the TypeScript/JavaScript codebase. The changes are pure deletions with no new logic introduced, making this a straightforward and safe revert operation.
  • No files require special attention

Last reviewed commit: d03339a

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Formal models conformance drift detected

The formal models extracted constants (generated/*) do not match this openclaw PR.

This check is informational (not blocking merges yet).
See the formal-models-conformance-drift artifact for the diff.

If this change is intentional, follow up by updating the formal models repo or regenerating the extracted artifacts there.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Feb 17, 2026
@tha80

tha80 commented Feb 18, 2026

Copy link
Copy Markdown

Why you want to revert the extraArgs for the browser? I think this is a good idea to have the option to set a custom userAgent and other things. Reverting this would remove this very useful thing.

Please don't merge this PR as this would brake setups that already have started to use the extraArgs config option.

@Myasuka

Myasuka commented Feb 26, 2026

Copy link
Copy Markdown

I'd like to advocate against merging this revert.

I've been running browser.extraArgs in production to configure proxy settings for my local OpenClaw instance — specifically to route browser traffic through a SOCKS5/HTTP proxy for agents that need to access geo-restricted services. The feature is genuinely useful and fills a real gap.

That said, I agree that extraArgs is a low-level escape hatch and probably not the right long-term API. However, rather than reverting, I'd suggest we look at #20578 (feat(browser): add proxy configuration option) instead. That PR:

- Fixes the Zod schema omission that caused the INVALID_CONFIG error (which was the root bug in #18443's original merge)
- Adds a proper browser.proxy config key with HTTP/HTTPS/SOCKS5 support
- Handles authenticated proxies via CDP Fetch.authRequired (something raw extraArgs can't do cleanly)
- Supports per-profile proxy overrides
- Has full test coverage and docs

It addresses the same underlying need more cleanly. If the concern with #18443 was the missing schema validation and the rough API surface of extraArgs, #20578 fixes both.

Could we close this revert in favor of landing #20578?

@steipete

Copy link
Copy Markdown
Contributor

Codex deep review: closing this revert. Current main intentionally keeps browser.extraArgs and has built docs/tests around it:

  • src/config/types.browser.ts exposes browser.extraArgs
  • src/config/zod-schema.ts accepts it and src/config/config.schema-regressions.test.ts covers valid/invalid values
  • extensions/browser/src/browser/config.ts normalizes it
  • extensions/browser/src/browser/chrome.ts appends resolved args to Chrome launch args
  • docs/tools/browser.md documents proxy flags through browser.extraArgs

Also this branch edits old src/browser paths; active browser plugin code is under extensions/browser/src/browser. If we later add typed proxy config, that should be an additive/deprecation path, not a revert that breaks existing users.

@steipete steipete closed this Apr 25, 2026
@shakkernerd
shakkernerd deleted the revert/pr-18443 branch October 19, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants