#18823: revert(browser): remove extraArgs config
agents
maintainer
size: S
Cluster:
Browser Extension Fixes
## 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: https://github.com/openclaw/openclaw/pull/18443
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR cleanly reverts the `browser.extraArgs` configuration feature that was added in three commits (039fc1e0, 2977f732, 47f8c920). 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.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The revert is complete and correct. All additions from the three commits being reverted (039fc1e0, 2977f732, 47f8c920) 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
<sub>Last reviewed commit: d03339a</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#14944: fix(browser): prefer openclaw profile in headless/noSandbox environ...
by BenediktSchackenberg · 2026-02-12
72.6%
#6193: fix(browser): default to openclaw profile instead of chrome extensi...
by mikezaoldyeck · 2026-02-01
71.8%
#18907: Fix: Improve browser error messages to avoid misleading agents
by jriff · 2026-02-17
70.6%
#10937: fix(browser): correct fallback path for bundled Chrome extension
by dddabtc · 2026-02-07
70.5%
#22952: fix(browser): suggest remote profile when local Chrome is not insta...
by dashed · 2026-02-21
70.3%
#15595: fix(browser): avoid local port conflicts for remote cdp
by TsekaLuk · 2026-02-13
69.8%
#13568: Fix browser (OpenClaw-managed) launch fail by binding remote debugg...
by singlag · 2026-02-10
69.7%
#19495: fix: handle Chrome process re-parenting on Windows
by andenwick · 2026-02-17
69.4%
#8614: fix(browser): detect early chromium exit to prevent startup hang
by Wren-OC · 2026-02-04
69.3%
#14784: fix(browser): clarify stale targetId errors (tab not found)
by sovushik · 2026-02-12
69.1%