Joe Harouni
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
Josh Lehman
4bfa800cc7
fix: share context engine registry across bundled chunks ( #40115 )
...
Merged via squash.
Prepared head SHA: 6af4820b7d0ea64d96f2f894ef3b0e5750b776aa
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
2026-03-08 11:56:01 -07:00
Peter Steinberger
9914b48c57
fix: preserve loopback ws cdp tab ops ( #31085 ) (thanks @shrey150)
2026-03-08 18:48:51 +00:00
Shrey Pandya
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
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
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
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
3ada30e670
fix: restore gate after rebase
2026-03-08 18:40:15 +00:00
Peter Steinberger
c5095153b0
refactor: extract qmd process runner
2026-03-08 18:40:15 +00:00
Peter Steinberger
68775745d2
fix: restore acp session meta narrowing
2026-03-08 18:40:15 +00:00
Peter Steinberger
6bd5735519
refactor: split doctor config analysis helpers
2026-03-08 18:40:15 +00:00
Peter Steinberger
11be305609
refactor: neutralize context engine runtime bridge
2026-03-08 18:40:15 +00:00
Peter Steinberger
f6cb77134c
refactor: centralize acp session resolution guards
2026-03-08 18:40:14 +00:00
Peter Steinberger
25d0aa7296
refactor: simplify plugin sdk compatibility aliases
2026-03-08 18:40:14 +00:00
Peter Steinberger
dd7470730d
test: isolate git commit resolution fallbacks
2026-03-08 18:40:14 +00:00
Peter Steinberger
c70151e873
test: isolate legacy plugin-sdk root import check
2026-03-08 18:40:14 +00:00
Peter Steinberger
a007bed375
test: isolate plugin loader from mocked module cache
2026-03-08 18:40:14 +00:00
Peter Steinberger
371c53b282
test: expand talk config contract fixtures
2026-03-08 18:40:14 +00:00
Peter Steinberger
2ed644f5d3
fix: require talk resolved payload
2026-03-08 18:40:14 +00:00
Mariano
404b1527e6
fix(acp): persist spawned child session history ( #40137 )
...
Merged via squash.
Prepared head SHA: 62de5d56691e1fd185cc617bb5e7283a14ce90b0
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
2026-03-08 19:37:00 +01:00
Peter Steinberger
72ebaf97c3
test: add implicit provider matrix coverage
2026-03-08 18:26:36 +00:00
Peter Steinberger
8ab762c005
test: standardize hermetic provider env snapshots
2026-03-08 18:26:36 +00:00
Peter Steinberger
52bc809143
refactor: extract provider stream wrappers
2026-03-08 18:26:36 +00:00
Peter Steinberger
6094035054
refactor: extract static provider builders
2026-03-08 18:26:36 +00:00
Peter Steinberger
e53d840fed
refactor: extract openai stream wrappers
2026-03-08 18:26:36 +00:00
Peter Steinberger
f66bd105a4
refactor: decompose implicit provider resolution
2026-03-08 18:26:36 +00:00
Peter Steinberger
ef2541ceb3
refactor: centralize transcript provider quirks
2026-03-08 18:26:35 +00:00
Peter Steinberger
8a18e2598f
refactor: split models registry loading from persistence
2026-03-08 18:26:35 +00:00
Peter Steinberger
749eb4efea
refactor: thread config runtime env through models config
2026-03-08 18:26:35 +00:00
Peter Steinberger
e5c06dd64a
refactor: use model compat for anthropic tool payload normalization
2026-03-08 18:26:35 +00:00
Vincent Koc
efcca3d2ea
Tests: format daemon lifecycle CLI coverage
2026-03-08 11:22:41 -07:00
Vincent Koc
0b452a5665
CLI: set local gateway mode in setup
2026-03-08 11:17:29 -07:00
Vincent Koc
7856f5730c
Web search: allowlist Perplexity auth source type name
2026-03-08 11:16:03 -07:00
Vincent Koc
d23d36a2f9
Tests: lower entropy git commit fixtures
2026-03-08 11:16:03 -07:00
Vincent Koc
6f4de3cc23
Web search: rename Perplexity auth source helper
2026-03-08 11:16:03 -07:00
Vincent Koc
f19761cefa
Tests: reduce web search secret-scan noise
2026-03-08 11:16:03 -07:00
Vincent Koc
5387faa718
CI: satisfy provider merge fixture typing
2026-03-08 11:15:48 -07:00
Tak Hoffman
74624e619d
fix: prefer bundled channel plugins over npm duplicates ( #40094 )
...
* fix: prefer bundled channel plugins over npm duplicates
* fix: tighten bundled plugin review follow-ups
* fix: address check gate follow-ups
* docs: add changelog for bundled plugin install fix
* fix: align lifecycle test formatting with CI oxfmt
2026-03-08 13:00:24 -05:00
yuweuii
6c9b49a10b
fix(sessions): clear stale contextTokens on model switch ( #38044 )
...
Merged via squash.
Prepared head SHA: bac2df4b7f920ce271f0a15f1db9ed99b35300f3
Co-authored-by: yuweuii <82372187+yuweuii@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
2026-03-08 10:59:16 -07:00
GitBuck
caf1b84822
feat: allow compaction model override via config ( #38753 )
...
Merged via squash.
Prepared head SHA: a3d6d6c845c9ef492370c4cc12ea790ca92123f0
Co-authored-by: starbuck100 <25417736+starbuck100@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
2026-03-08 10:47:34 -07:00
Ayaan Zaidi
d4ab731746
fix(telegram): use message previews in DMs
2026-03-08 21:59:43 +05:30
Peter Steinberger
95dff166cb
refactor: fold implicit provider injection into resolver
2026-03-08 16:22:52 +00:00
Peter Steinberger
bce9d93fb5
fix: publish models.json atomically
2026-03-08 16:22:52 +00:00
Peter Steinberger
bec3c0b71d
refactor: reuse one models.json read per write
2026-03-08 16:22:52 +00:00
Peter Steinberger
b41bcb08a2
refactor: expand provider capability registry
2026-03-08 16:22:52 +00:00
Peter Steinberger
75e1521660
refactor: extract pure models config merge helpers
2026-03-08 16:22:52 +00:00
Peter Steinberger
79c5c660bb
fix: treat model api drift as baseUrl refresh
2026-03-08 16:22:52 +00:00
Peter Steinberger
dc5645d459
test: add talk config contract fixtures
2026-03-08 16:22:48 +00:00