Vincent Koc
6f9cebf1ca
test(agents): relax exec wake payload assertions
2026-04-18 08:44:12 -07:00
Vincent Koc
791dbf4f9d
fix(openrouter): heal stale provider base urls ( #68574 )
...
* fix(openrouter): heal stale provider base urls
* chore(changelog): fix openrouter baseurl entry placement
* fix(arcee): keep catalog config optional
2026-04-18 08:42:51 -07:00
Peter Steinberger
cdaa70facb
refactor: cache repeated lazy imports
2026-04-18 16:32:53 +01:00
Vincent Koc
d13869aab9
fix(models): resolve openrouter compat aliases ( #68579 )
...
* fix(models): resolve openrouter compat aliases
* fix(models): cover openrouter free interactive alias
* fix(models): mirror openrouter compat aliases in runtime resolver
* fix(models): align openrouter free allowlist aliases
2026-04-18 08:24:34 -07:00
Peter Steinberger
464cbbc9f9
perf: trim plugin and skills test overhead
2026-04-18 16:23:00 +01:00
Peter Steinberger
aa73df571d
perf: narrow auth test mocks
2026-04-18 16:23:00 +01:00
Peter Steinberger
4852935e8e
perf: speed exec event test waits
2026-04-18 16:23:00 +01:00
Peter Steinberger
c035c5c0d2
refactor: cache lazy runtime imports
2026-04-18 16:18:26 +01:00
Vincent Koc
68502c90d1
fix(openrouter): parse visible reasoning_details output ( #68577 )
...
* fix(openrouter): parse visible reasoning_details output
* fix(openrouter): preserve reasoning_details ordering
* fix(openrouter): harden reasoning details compat
* fix(openrouter): queue post-tool-call reasoning text
* chore(config): refresh generated schema baselines
* fix(openrouter): keep fallback reasoning with visible details
* fix(openrouter): bound streaming tool-call buffers
2026-04-18 08:18:13 -07:00
Peter Steinberger
66385670e4
refactor: reduce unnecessary dynamic imports
2026-04-18 16:15:33 +01:00
Peter Steinberger
3f2e73b723
chore(release): bump version to 2026.4.18
2026-04-18 15:46:33 +01:00
Vincent Koc
840bf00887
test(infra): avoid repeated module reloads
2026-04-18 07:21:08 -07:00
Vincent Koc
e5747629c3
fix(test): stabilize workspace package test imports
2026-04-18 06:45:09 -07:00
Frank Yang
442deb0816
fix(cli): normalize reply-media paths for agent --deliver ( #68516 )
2026-04-18 20:05:41 +08:00
Efe Baran Durmaz and Altay
a2eb8fa48f
fix(config): preserve $schema field across config rewrites ( #47322 )
...
* fix(config): preserve \$schema field across config rewrites
Add \$schema to the OpenClawConfig TypeScript type so it survives
the config write-back cycle. The Zod schema already accepted it
(added in #14998 ) but the TypeScript type omitted it, causing the
field to be silently stripped during config serialization.
Adds a round-trip test through validateConfigObject to prevent
regression.
Closes #43578
* fix(config): preserve root $schema during partial writes
* fix(config): preserve root $schema only when omitted
* fix(config): preserve root-authored $schema only
---------
Co-authored-by: Altay <altay@uinaf.dev >
2026-04-18 13:32:50 +03:00
Ted Li
9501656a8e
fix(cron): clean up deleteAfterRun direct deliveries ( #67807 )
...
Merged via squash.
Prepared head SHA: d23711c2e97030ec5862f47927d3bf41ddaba94f
Co-authored-by: MonkeyLeeT <6754057+MonkeyLeeT@users.noreply.github.com >
Co-authored-by: hxy91819 <8814856+hxy91819@users.noreply.github.com >
Reviewed-by: @hxy91819
2026-04-18 18:17:18 +08:00
junyuc25
ef3f9796c8
fix(failover): widen raw 402 detection for third-party proxy messages ( #45827 )
...
Merged via squash.
Prepared head SHA: 5f4b5d728375f173b9edcbafe727acbb1d947fc6
Co-authored-by: junyuc25 <10862251+junyuc25@users.noreply.github.com >
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com >
Reviewed-by: @altaywtf
2026-04-18 12:38:04 +03:00
Ayaan Zaidi
eaaab098fb
test(cron): use CronDeliveryMode in policy helpers
2026-04-18 14:44:37 +05:30
Ayaan Zaidi
13a0d7a9e0
fix(cron): keep runner-owned delivery off message tool
2026-04-18 14:44:37 +05:30
Ayaan Zaidi
49ae60d6ca
fix(cron): keep message tool without delivery
2026-04-18 14:44:37 +05:30
Ayaan Zaidi
31437b9e3b
test(cron): cover message tool with no delivery
2026-04-18 14:44:37 +05:30
4b5987829d
fix: redact credentials in browser.cdpUrl config paths ( #67679 )
...
Merged via squash.
Prepared head SHA: 77bc2c50ce4bbd10c925fcd9162dc139e05e8a9f
Co-authored-by: Ziy1-Tan <49604965+Ziy1-Tan@users.noreply.github.com >
Co-authored-by: hxy91819 <8814856+hxy91819@users.noreply.github.com >
Reviewed-by: @hxy91819
2026-04-18 14:22:58 +08:00
Val Alexander
f45bc09206
[codex] fix(auth): harden OAuth refresh and Codex CLI bootstrap flows ( #68396 )
...
* Harden OAuth refresh and Codex CLI bootstrap flows
- Treat near-expiry OAuth credentials as unusable for bootstrap and refresh
- Add clearer timeout and callback validation handling for OpenAI Codex OAuth
- Tighten file lock retry behavior for stale OAuth refresh contention
* fix(auth): address PR review threads
* fix(auth): adopt fresher imported refresh tokens
* test(auth): align oauth expiry fixtures with refresh margin
* fix(auth): tighten Codex OAuth bootstrap and local fallback
* Keep explicit local auth over CLI bootstrap
- Preserve existing non-OAuth local profiles during external CLI OAuth sync
- Add regression coverage for OpenAI Codex and generic external OAuth overlays
* fix(auth): distinguish oauth lock timeout sources
* fix(auth): reject cross-account external oauth bootstrap
* fix(auth): narrow refresh contention classification
2026-04-18 01:02:29 -05:00
Gustavo Madeira Santana
18c4fd5678
Session: skip binding lookup for system events
2026-04-18 01:50:56 -04:00
Marcus Castro
458a52610a
fix(whatsapp): isolate multi-account inbound state and align shared defaults ( #65700 )
...
* refactor(whatsapp): centralize inbound policy resolution
* fix(whatsapp): scope named-account group session keys
* fix(whatsapp): preserve legacy group activation during scoped-key migration
* fix(whatsapp): wire shared defaults through accounts.default
* fix(whatsapp): align schema, helpers, and monitor behavior
* fix(whatsapp): restore verbose inbound diagnostics
* chore(config): refresh whatsapp changelog and baseline hashes
2026-04-18 01:37:38 -03:00
2c3542e315
fix: allow unknown properties in WakeParams schema ( #68355 ) (thanks @kagura-agent)
...
* fix: allow unknown properties in WakeParams schema (#68347 )
WakeParamsSchema used additionalProperties: false, rejecting unknown
properties like 'paperclip' from external tools. Changed to
additionalProperties: true for forward compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
* style: trim wake params schema comments
* fix: allow unknown properties in WakeParams schema (#68355 ) (thanks @kagura-agent)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: Ayaan Zaidi <hi@obviy.us >
2026-04-18 09:10:05 +05:30
Rubén Cuevas
a0dd5f7e8e
Align documented bootstrap context defaults with runtime values ( #67968 )
...
* Fix bootstrap default limit docs to match runtime
* docs(context): fix stale bootstrap max/file example
2026-04-18 09:00:21 +05:30
Gustavo Madeira Santana
e910fe446a
fix(install): omit checkout alias from dist inventory
2026-04-17 23:16:19 -04:00
Gustavo Madeira Santana
110f8bd2e1
fix(plugins): resolve checkout plugin sdk imports
2026-04-17 23:04:11 -04:00
Viz
dee99f27d1
fix(gateway): allow microphone access for same-origin in Permissions-Policy header ( #68368 )
...
* test(gateway): add full unit coverage for http-common.ts
Adds tests exercising every export in src/gateway/http-common.ts so the module reaches 100% line, branch, function and statement coverage (33 tests). Captures current default security headers (including the existing Permissions-Policy microphone=() deny-list) and exhaustively covers sendJson/sendText/sendMethodNotAllowed/sendUnauthorized/sendRateLimited (with and without Retry-After), sendGatewayAuthFailure (both branches), sendInvalidRequest, readJsonBodyOrError (413/408/400/success), writeDone, setSseHeaders (with and without flushHeaders) and watchClientDisconnect (empty/single/dedup/distinct sockets, abort logic and listener cleanup).
* fix(gateway): allow microphone access for same-origin in Permissions-Policy header
The gateway's default security headers set Permissions-Policy to microphone=(), which denies microphone access for every origin including the page itself. As a result, the control-ui chat mic button (ui/src/ui/chat/speech.ts) cannot start SpeechRecognition: the browser refuses with 'Permissions policy violation: microphone is not allowed in this document' and the button silently resets.
Relax microphone to the same-origin allowlist (self) so the dashboard page can use the Web Speech API while still blocking third-party frames. Camera and geolocation remain fully denied.
Fixes #51085
* test(gateway): add seeded property/fuzz tests for http-common.ts
Adds src/gateway/http-common.fuzz.test.ts with 13 property-style tests (200 iterations each) driven by an in-file deterministic mulberry32 PRNG. Covers every export with invariants rather than fixed examples: baseline security headers across all opts shapes, Strict-Transport-Security iff non-empty string, sendJson/sendText status + body round-trips across random codes and payloads, sendMethodNotAllowed with random Allow values, sendRateLimited Retry-After iff retryAfterMs>0 with ceil-seconds value (including fractional ms), sendGatewayAuthFailure delegation, sendInvalidRequest message echo, readJsonBodyOrError status/body mapping across random error texts, writeDone sentinel, setSseHeaders with/without flushHeaders, and watchClientDisconnect invariants across arbitrary socket/controller/callback combinations (empty, same, distinct, pre-aborted). Deterministic seeds keep failures reproducible without introducing a new dev dependency.
2026-04-17 23:03:49 -04:00
Onur
361750775d
CI: stabilize live release lanes ( #67838 )
...
* CI: stabilize live release lanes
* CI: widen codex live exclusions
* Gateway: stop live config/auth lazy re-imports
* CI: mount writable live Docker homes
* Live: tighten retry and provider filter overrides
* CI: use API-key auth for codex live lanes
* CI: fix remaining live lanes
* CI: stop forwarding live OpenAI base URLs
* Gateway: fix live startup loader regression
* CI: stop expanding OpenAI keys in live Docker lanes
* CI: stop expanding installer secrets in Docker
* CI: tighten live secret boundaries
* Gateway: pin Codex harness base URL
* CI: fix reusable workflow runner label
* CI: avoid template expansion in live ref guard
* CI: tighten live trust gate
* Gateway: ignore empty Codex harness base URL
* CI: stabilize remaining live lanes
* CI: harden live retries and canvas auth test
* CI: extend cron live probe budget
* CI: keep codex harness lane on api-key auth
* CI: stage live Docker OpenAI auth via env files
* CI: bootstrap codex login for Docker API-key lanes
* CI: accept hosted-runner codex fallback responses
* CI: accept additional codex sandbox fallback text
* CI: accept hosted-runner live fallback variants
* CI: accept codex current-model fallback
* CI: broaden codex sandbox model fallbacks
* CI: cover extra codex sandbox wording
* CI: extend cli backend cron retry budget
* CI: match codex models fallbacks by predicate
* CI: accept configured-models live fallback
* CI: relax OpenAI websocket warmup timeout
* CI: accept extra codex model fallback wording
* CI: generalize codex model fallback matching
* CI: retry cron verify cancellation wording
* CI: accept interactive codex model entrypoint fallback
* Agents: stabilize Claude bundle skill command test
* CI: prestage live Docker auth homes
* Tests: accept current Codex models wording
* CI: stabilize remaining live lanes
* Tests: widen CLI backend live timeout
* Tests: accept current Codex model summary wording
* CI: disable codex-cli image probe in Docker lane
* Tests: respect CLI override for Codex Docker login
* Tests: accept current Codex session models header
* CI: stabilize remaining live validation lanes
* CI: preserve Gemini ACP coverage in auth fallback
* CI: fix final live validation blockers
* CI: restore Codex auth for CLI backend lane
* CI: drop local Codex config in live Docker lane
* Tests: tolerate Codex cron and model reply drift
* Tests: accept current Codex live replies
* Tests: retry more Codex cron retry wording
* Tests: accept environment-cancelled Codex cron retries
* Tests: retry blank Codex cron probe replies
* Tests: broaden Codex cron retry wording
* Tests: require explicit Codex cron retry replies
* Tests: accept current Codex models environment wording
* CI: restore trusted Codex config in live lane
* CI: bypass nested Codex sandbox in docker
* CI: instrument live codex cron lane
* CI: forward live CLI resume args
* Tests: accept interactive Codex model selection
* Tests: bound websocket warm-up live lane
* CI: close live lane review gaps
* Tests: lazy-load gateway live server
* Tests: avoid gateway live loader regression
* CI: scope reusable workflow secrets
* Tests: tighten codex models live assertion
* Tests: normalize OpenAI speech live text
2026-04-18 03:18:12 +02:00
Gustavo Madeira Santana
0e4ddf7b38
Tests: avoid bundled Discord runtime lookup
2026-04-17 20:57:27 -04:00
Peter Steinberger
c8d722d093
test: fix rebased local gates
2026-04-18 01:49:54 +01:00
Peter Steinberger
27f34f0491
test: merge provider contract wrappers
2026-04-18 01:36:33 +01:00
Peter Steinberger
3abb5fd291
test: slim channel contract hotspots
2026-04-18 01:36:33 +01:00
Peter Steinberger
569247cff8
test: speed channel contract hotspots
2026-04-18 01:36:15 +01:00
Peter Steinberger
576ce7c656
perf: slim zalo group access facade
2026-04-18 01:36:15 +01:00
Peter Steinberger
30cbfa3457
test: slim plugin shape contracts
2026-04-18 01:36:15 +01:00
Peter Steinberger
4c12ff6d23
test: merge provider web-search contracts
2026-04-18 01:36:15 +01:00
Peter Steinberger
7db9a53254
test: slim contract suite imports
2026-04-18 01:36:15 +01:00
Peter Steinberger
52b8e318bd
test: collapse gateway node authz hotspots
2026-04-18 01:34:11 +01:00
Peter Steinberger
ca34c7cd7b
test: merge device token authz cases
2026-04-18 01:34:11 +01:00
Peter Steinberger
5cf01ac7c1
test: keep gateway suites minimal
2026-04-18 01:33:37 +01:00
Peter Steinberger
75ffa29054
test: trim browser bootstrap integration
2026-04-18 01:32:34 +01:00
chaoliang yan
4749993bb5
[AI-assisted] fix(agents): mark failed TTS tool synthesis as an error ( #67980 )
...
Merged via squash.
Prepared head SHA: fa12d93c79f63011bb92c30f6f522b16d95a6869
Co-authored-by: lawrence3699 <247479654+lawrence3699@users.noreply.github.com >
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com >
Reviewed-by: @gumadeiras
2026-04-17 20:30:03 -04:00
Gustavo Madeira Santana
0266cf4d10
test: disable cron scheduler for manual runs
2026-04-17 19:46:38 -04:00
Gustavo Madeira Santana
b295f4afd8
test: skip throwaway device token auth clients
2026-04-17 19:37:12 -04:00
Gustavo Madeira Santana
e2351b5fdc
test: skip throwaway control ui auth clients
2026-04-17 19:25:19 -04:00
Gustavo Madeira Santana
5af1a51f8e
test: reuse default gateway auth server
2026-04-17 19:14:54 -04:00
Gustavo Madeira Santana
3ca8ad3845
test: avoid eager message action plugin discovery
...
Skip bundled channel discovery for plain message-action params and only resolve
plugin-owned media params when an extension field is actually present. This
keeps normal sends on the lightweight path while preserving plugin media-field
coverage.
2026-04-17 18:35:22 -04:00