Peter Steinberger
b84c7037de
fix: repair ci audit and type drift
2026-03-13 21:02:19 +00:00
Peter Steinberger
d2a36d0a98
refactor: share small test harness helpers
2026-03-13 20:19:38 +00:00
Peter Steinberger
593964560b
feat(browser): add chrome MCP existing-session support
2026-03-13 20:10:08 +00:00
Vincent Koc
18f15850e6
fix(browser): restore proxy attachment media size cap ( #43684 )
...
* browser: honor shared proxy file size cap
* test(browser): cover proxy file size cap
* docs(changelog): note browser proxy size cap fix
2026-03-12 01:04:31 -04:00
Matt Van Horn
5ed96da990
fix(browser): surface 429 rate limit errors with actionable hints ( #40491 )
...
Merged via squash.
Prepared head SHA: 13839c2dbd0396d8a582aa2c5c206d2efaff1b07
Co-authored-by: mvanhorn <455140+mvanhorn@users.noreply.github.com >
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com >
Reviewed-by: @altaywtf
2026-03-11 00:49:31 +03:00
Peter Steinberger
93775ef6a4
fix(browser): enforce redirect-hop SSRF checks
2026-03-09 05:41:36 +00:00
Peter Steinberger
141738f717
refactor: harden browser runtime profile handling
2026-03-09 00:25:43 +00:00
Peter Steinberger
362248e559
refactor: harden browser relay CDP flows
2026-03-08 23:46:10 +00:00
Peter Steinberger
a075baba84
refactor(browser): scope CDP sessions and harden stale target recovery
2026-03-08 19:52:33 +00:00
Peter Steinberger
d3111fbbcb
fix: make browser relay bind address configurable ( #39364 ) (thanks @mvanhorn)
2026-03-08 19:15:21 +00:00
Matt Van Horn and Claude Opus 4.6
e883d0b556
fix(browser): add IP validation, fix upgrade handler for non-loopback bind
...
- Zod schema: validate relayBindHost with ipv4/ipv6 instead of bare string
- Upgrade handler: allow non-loopback connections when bindHost is explicitly
non-loopback (e.g. 0.0.0.0 for WSL2), keeping loopback-only default
- Test: verify actual bind address via relay.bindHost instead of just checking
reachability on 127.0.0.1 which passes regardless
- Expose bindHost on ChromeExtensionRelayServer type for inspection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 19:15:21 +00:00
Matt Van Horn and Claude Opus 4.6
436ae8a07c
fix(infra): make browser relay bind address configurable
...
Add browser.relayBindHost config option so the Chrome extension relay
server can bind to a non-loopback address (e.g. 0.0.0.0 for WSL2).
Defaults to 127.0.0.1 when unset, preserving current behavior.
Closes #39214
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 19:15:21 +00:00
Peter Steinberger
0692f71c6f
fix: wait for extension relay tab reconnects ( #32461 ) (thanks @AaronWander)
2026-03-08 19:11:58 +00:00
AaronWander
bcb0d1b8b4
fix(browser): wait for extension tabs after relay drop ( #32331 )
2026-03-08 19:11:58 +00:00
Joe Harouni and Claude Opus 4.6
dfa3605bee
fix(browser): rewrite 0.0.0.0 and [::] wildcard addresses in CDP WebSocket URLs
...
Containerized browsers (e.g. browserless in Docker) report
`ws://0.0.0.0:<internal-port>` in their `/json/version` response.
`normalizeCdpWsUrl` rewrites loopback WS hosts to the external
CDP host:port, but `0.0.0.0` and `[::]` were not treated as
addresses needing rewriting, causing OpenClaw to try connecting
to `ws://0.0.0.0:3000` literally — which always fails.
Fixes #17752
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 19:07:23 +00:00
Peter Steinberger
9914b48c57
fix: preserve loopback ws cdp tab ops ( #31085 ) (thanks @shrey150)
2026-03-08 18:48:51 +00:00
Shrey Pandya and Claude Opus 4.6
4d904e7b7d
style(browser): fix oxfmt formatting in config.ts
...
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-08 18:48:10 +00:00
Shrey Pandya
7b58507224
chore: remove vendor-specific references from code comments
2026-03-08 18:48:10 +00:00
Shrey Pandya
c1f6edf48b
fix(browser): preserve wss:// cdpUrl in legacy default profile resolution
2026-03-08 18:48:10 +00:00
shrey150 and Claude Opus 4.6
8b2f40f5f6
fix(browser): update existing tests for ws/wss protocol support
...
Two pre-existing tests still expected ws:// URLs to be rejected by
parseHttpUrl, which now accepts them. Switch the invalid-protocol
fixture to ftp:// and tighten the assertion to match the full
"must be http(s) or ws(s)" error message.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 18:48:10 +00:00
shrey150 and Claude Opus 4.6
f9c220e261
test+docs: comprehensive coverage and generic framing
...
- Add 12 new tests covering: isWebSocketUrl detection, parseHttpUrl WSS
acceptance/rejection, direct WS target creation with query params,
SSRF enforcement on WS URLs, WS reachability probing bypasses HTTP
- Reframe docs section as generic "Direct WebSocket CDP providers" with
Browserbase as one example — any WSS-based provider works
- Update security tips to mention WSS alongside HTTPS
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 18:48:10 +00:00
shrey150 and Claude Opus 4.6
75602014db
feat(browser): support direct WebSocket CDP URLs for Browserbase
...
Browserbase uses direct WebSocket connections (wss://) rather than the
standard HTTP-based /json/version CDP discovery flow used by Browserless.
This change teaches the browser tool to accept ws:// and wss:// URLs as
cdpUrl values: when a WebSocket URL is detected, OpenClaw connects
directly instead of attempting HTTP discovery.
Changes:
- config.ts: accept ws:// and wss:// in cdpUrl validation
- cdp.helpers.ts: add isWebSocketUrl() helper
- cdp.ts: skip /json/version when cdpUrl is already a WebSocket URL
- chrome.ts: probe WSS endpoints via WebSocket handshake instead of HTTP
- cdp.test.ts: add test for direct WebSocket target creation
- docs/tools/browser.md: update Browserbase section with correct URL
format and notes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-08 18:48:10 +00:00
Peter Steinberger
a617cd7b79
fix(test): restore long dep for full vitest gate
2026-03-07 21:23:06 +00:00
Peter Steinberger and NewdlDewdl
9b4a114eb6
fix(browser): keep dispatcher context with no-retry hints
...
Landed from #39090 by @NewdlDewdl.
Co-authored-by: NewdlDewdl <rohin.agrawal@gmail.com >
2026-03-07 20:45:06 +00:00
Vincent Koc
e4d80ed556
CI: restore main detect-secrets scan ( #38438 )
...
* Tests: stabilize detect-secrets fixtures
* Tests: fix rebased detect-secrets false positives
* Docs: keep snippets valid under detect-secrets
* Tests: finalize detect-secrets false-positive fixes
* Tests: reduce detect-secrets false positives
* Tests: keep detect-secrets pragmas inline
* Tests: remediate next detect-secrets batch
* Tests: tighten detect-secrets allowlists
* Tests: stabilize detect-secrets formatter drift
2026-03-07 10:06:35 -08:00
Vignesh Natarajan
06a229f98f
fix(browser): close tracked tabs on session cleanup ( #36666 )
2026-03-05 16:40:52 -08:00
Josh Avant
72cf9253fc
Gateway: add SecretRef support for gateway.auth.token with auth-mode guardrails ( #35094 )
2026-03-05 12:53:56 -06:00
8d48235d3a
fix(browser): remove deprecated --disable-blink-features=AutomationControlled flag
...
- Removes OpenClaw's default `--disable-blink-features=AutomationControlled` Chrome launch switch to avoid unsupported-flag warnings in newer Chrome (#35721 ).
- Preserves compatibility for older Chrome via `browser.extraArgs` override behavior (source analysis: #35770 , #35728 , #35727 , #35885 ).
- Synthesis attribution: thanks @Sid-Qin, @kevinWangSheng, @ningding97, @Naylenv, @clawbie.
Source PR refs: #35734 , #35770 , #35728 , #35727 , #35885
Co-authored-by: Sid-Qin <Sid-Qin@users.noreply.github.com >
Co-authored-by: kevinWangSheng <kevinWangSheng@users.noreply.github.com >
Co-authored-by: ningding97 <ningding97@users.noreply.github.com >
Co-authored-by: Naylenv <Naylenv@users.noreply.github.com >
Co-authored-by: clawbie <clawbie@users.noreply.github.com >
Co-authored-by: Takhoffman <Takhoffman@users.noreply.github.com >
2026-03-05 09:22:47 -06:00
Josh Avant
1c200ca7ae
follow-up: align ingress, atomic paths, and channel tests with credential semantics ( #33733 )
...
Merged via squash.
Prepared head SHA: c290c2ab6a3c3309adcbc4dc834f3c10d2ae1039
Co-authored-by: joshavant <830519+joshavant@users.noreply.github.com >
Co-authored-by: joshavant <830519+joshavant@users.noreply.github.com >
Reviewed-by: @joshavant
2026-03-03 20:29:46 -06:00
Peter Steinberger
3460aa4dee
refactor(browser): dedupe playwright interaction helpers
2026-03-03 02:53:13 +00:00
Peter Steinberger
67e3eb85d7
refactor(tests): dedupe browser and config cli test setup
2026-03-03 01:15:09 +00:00
Peter Steinberger
fd3ca8a34c
refactor: dedupe agent and browser cli helpers
2026-03-03 00:15:00 +00:00
Peter Steinberger
a282b459b9
fix(ci): remove unused chrome ws type import
2026-03-02 23:31:42 +00:00
Tak Hoffman
e2483a5381
Browser: fix ws RawData type import for dts build
2026-03-02 17:24:34 -06:00
Peter Steinberger
7365aefa19
fix(ci): resolve chrome websocket raw-data typing
2026-03-02 23:18:06 +00:00
Vincent Koc
8f3eb0f7b4
fix(browser): use CDP command probe for cdpReady health ( #31421 )
...
* fix(browser): validate cdp command channel health
* test(browser): cover stale cdp command channel readiness
* changelog: note cdp command-channel readiness check
* browser(cdp): detach ws message listener on health-probe cleanup
2026-03-02 15:10:28 -08:00
Peter Steinberger
3cb851be90
test: micro-optimize heavy gateway/browser/telegram suites
2026-03-02 22:29:04 +00:00
Peter Steinberger
3beb1b9da9
test: speed up heavy suites with shared fixtures
2026-03-02 21:58:35 +00:00
Peter Steinberger
067855e623
refactor(browser): dedupe browser and cli command wiring
2026-03-02 21:31:36 +00:00
Peter Steinberger
d01e04bcec
test(perf): reduce heavy fixture and guardrail overhead
2026-03-02 21:07:52 +00:00
Peter Steinberger
9617ac9dd5
refactor: dedupe agent and reply runtimes
2026-03-02 19:57:33 +00:00
Mark L
1727279598
fix(browser): default to openclaw profile when unspecified ( #32031 )
2026-03-02 18:34:37 +00:00
Peter Steinberger
0ebe0480fa
test(perf): replace relay fixed sleeps with condition waits
2026-03-02 17:55:47 +00:00
Peter Steinberger
34ff873a7e
test(perf): trim fixed waits in relay and startup tests
2026-03-02 17:30:33 +00:00
Peter Steinberger
104d32bb64
fix(security): unify root-bound write hardening
2026-03-02 17:12:33 +00:00
Peter Steinberger
c973b053a5
refactor(net): unify proxy env checks and guarded fetch modes
2026-03-02 16:24:26 +00:00
Peter Steinberger
ea204e65a0
fix(browser): fail closed navigation guard with env proxy
2026-03-02 16:06:31 +00:00
Peter Steinberger
17c434f2f3
refactor: split browser context/actions and unify CDP timeout policy
2026-03-02 16:02:39 +00:00
Peter Steinberger
663c1858b8
refactor(browser): split server context and unify CDP transport
2026-03-02 15:43:05 +00:00
Peter Steinberger
9eb70d2725
fix: add proxy-bypass regression + changelog ( #31469 ) (thanks @widingmarcus-cyber)
2026-03-02 13:56:30 +00:00