Commit Graph

21591 Commits

Author SHA1 Message Date
Peter Steinberger
f2b5e5bc69 chore(release): prepare 2026.4.24 beta 4 2026-04-25 15:11:29 +01:00
Peter Steinberger
9d612c1b5d fix(plugins): alias runtime dependency export subpaths 2026-04-25 15:01:08 +01:00
Peter Steinberger
da6530be0f chore(release): prepare 2026.4.24 beta 3 2026-04-25 14:24:22 +01:00
Peter Steinberger
9119ee6d75 fix(plugins): load mirrored runtime deps through ESM-safe aliases 2026-04-25 14:15:34 +01:00
Peter Steinberger
85839e5a13 chore(release): prepare 2026.4.24 beta 2 2026-04-25 13:04:46 +01:00
Peter Steinberger
1c98de9e66 fix(plugins): preserve package deps for runtime mirrors 2026-04-25 12:50:49 +01:00
hcl
9f6cda120d fix(heartbeat): clamp scheduler delay to Node setTimeout cap (#71414) (#71478)
* fix(heartbeat): clamp scheduler delay to Node setTimeout cap (#71414)

When `agents.defaults.heartbeat.every` resolves to >2_147_483_647 ms
(~24.85d), the previous scheduleNext() called setTimeout with the raw
delay. Node clamps any delay > 2^31-1 to 1 ms, fires the callback, and
the heartbeat re-arms with the same oversized value - a tight loop that
floods the log with TimeoutOverflowWarning and crashes the gateway with
exit code 1.

Clamp the computed delay to HEARTBEAT_MAX_TIMEOUT_MS (2_147_483_647)
before calling setTimeout. The worst case is now one heartbeat every
~24.85d instead of crash-loop. Warn once per process when clamping
fires, so a misconfigured "365d" remains visible without flooding.

This is a defense-in-depth fix at the scheduler layer; loadConfig-level
rejection is a broader change with more blast radius and a separate
question (some users may legitimately want "every: 365d" to mean
"effectively never"). The clamped behaviour is closer to that intent
than the crash is.

Test: new scheduler test sets heartbeat.every="365d" with fake timers,
advances 60s, and asserts runSpy was never called (with the bug, it
would be called ~60_000 times).

* style: format heartbeat scheduler clamp

* fix: share safe timeout delay clamp (#71478) (thanks @hclsys)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
(cherry picked from commit fd74fc5a4f)
2026-04-25 11:10:16 +01:00
Peter Steinberger
bd13188f79 chore(release): prepare 2026.4.24 beta 1 2026-04-25 10:31:38 +01:00
Peter Steinberger
bca479cefb fix: align browser profile facade exports 2026-04-25 09:32:50 +01:00
Peter Steinberger
6d082070a2 fix(plugins): preserve bundled cli metadata skip 2026-04-25 09:27:46 +01:00
Peter Steinberger
cdd91edd5e fix(plugins): load packaged runtime mirrors from canonical sources 2026-04-25 09:16:05 +01:00
Vincent Koc
3e3bba4f30 feat(diagnostics): emit exec process telemetry (#71451) 2026-04-25 00:12:58 -07:00
wzp
845040214e fix: recover subagent waits after transport drops
Fix subagent recovery and session state reconciliation.

Thanks @ZiPengWei.
2026-04-25 08:12:20 +01:00
Peter Steinberger
5376a4a5d6 fix(browser): default act timeout budget
Co-authored-by: Andy Lin <andyylin@users.noreply.github.com>
2026-04-25 08:11:48 +01:00
Peter Steinberger
712f7b218c test: cover bundled MCP runtime cleanup gates 2026-04-25 08:10:34 +01:00
Ayaan Zaidi
8e40bdba90 fix(cli): scope dev reset to active profile 2026-04-25 12:25:45 +05:30
Peter Steinberger
b34ece705f fix: retire idle bundled MCP runtimes 2026-04-25 07:49:12 +01:00
Alex Fries
66e66f19c6 feat(memory-core): expose hybrid search component scores
Expose raw `vectorScore` and `textScore` alongside the combined hybrid memory search `score`.

- Preserve vector/text component scores from `mergeHybridResults` output.
- Add optional component-score fields to both memory host SDK type surfaces.
- Extend hybrid merge tests for vector-only, text-only, and overlapping result cases.
- Document that component scores remain raw retrieval diagnostics while temporal decay/MMR only adjust or reorder the combined ranking `score`.

Closes #68166.

Maintainer verification:
- `pnpm test extensions/memory-core/src/memory/hybrid.test.ts`
- `pnpm check:changed`
- Fresh GitHub checks passed.

Co-authored-by: Alex Fries <alex@engramlabs.io>
2026-04-25 01:46:03 -05:00
Ayaan Zaidi
a903df02f5 fix(gateway): bound restart continuation recovery 2026-04-25 12:12:52 +05:30
FullerStackDev
03addfe9ba fix(gateway): tighten session delivery recovery 2026-04-25 12:12:52 +05:30
FullerStackDev
2261550633 fix(gateway): address restart continuation review comments 2026-04-25 12:12:52 +05:30
FullerStackDev
0ac81d41b6 fix(gateway): durably hand off restart continuations 2026-04-25 12:12:52 +05:30
Peter Steinberger
2ff7eb36cf fix(models): expose codex runtime context caps 2026-04-25 07:38:31 +01:00
Vincent Koc
3d554aefdf fix(logging): keep log transport internals private (#71322)
* fix(logging): share transports across module instances

* fix(logging): share transports across module instances

* fix(logging): share transports across module instances

* fix(logging): remove global log transport hooks

* test(agents): capture diagnostic logs after module reset
2026-04-24 23:36:57 -07:00
Charles Dusek
6b38714cb9 fix(agents): guard malformed tool result text blocks
Harden context pruning and tool-result character estimation against malformed `{ type: "text" }` blocks created by void/undefined tool handler results.

- Require text blocks to carry a string before using `.length` in the tool-result estimator.
- Guard context-pruning text/image loops against malformed and null content entries.
- Serialize malformed non-string text blocks for pruning size accounting so they cannot bypass trimming as zero-sized.
- Add regression coverage for malformed text blocks, null entries, and non-string text payloads.

Closes #34979.

Maintainer verification:
- `pnpm test src/agents/pi-embedded-runner/tool-result-char-estimator.test.ts src/agents/pi-hooks/context-pruning/pruner.test.ts`
- `pnpm check:changed`
- GitHub checks passed, including the OpenAI / Opus 4.6 parity gate.

Based on prior work by #39331 and #34980.

Co-authored-by: Charles Dusek <cgdusek@gmail.com>
Co-authored-by: alvinttang <alvinttang@users.noreply.github.com>
Co-authored-by: coffeexcoin <coffeexcoin@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-25 01:36:40 -05:00
Peter Steinberger
36eae5a2c7 fix: tighten silent cron exec notifications 2026-04-25 07:15:08 +01:00
Mark Goldenstein
bd60df3e53 fix: silence cron exec completion noise 2026-04-25 07:15:08 +01:00
Peter Steinberger
017252e4f8 test(daemon): remove duplicate launchd read mock 2026-04-25 07:12:17 +01:00
Jérôme Benoit
b8b270d5b8 fix(daemon): add Nix Home Manager PATH support
Add Nix Home Manager profile bin directories to generated gateway service PATHs on macOS and Linux.

Includes ~/.nix-profile/bin fallback when NIX_PROFILES is absent, honors NIX_PROFILES right-to-left precedence when present, and covers the service PATH resolver with focused unit tests.

Closes #44402.
2026-04-25 01:12:10 -05:00
Peter Steinberger
33d5ebbff7 test(daemon): read launchd fixture files 2026-04-25 07:11:33 +01:00
Peter Steinberger
2a96ea4d72 test(agents): cover committed delivery fallback 2026-04-25 07:11:33 +01:00
Peter Steinberger
07cf1dd65c test: remove duplicate launchd read mock 2026-04-25 07:10:32 +01:00
Peter Steinberger
85cab8b516 test: fix launchd restart mock state 2026-04-25 07:09:47 +01:00
Peter Steinberger
22aa402b64 test(daemon): mock launchd plist reads 2026-04-25 07:08:36 +01:00
Peter Steinberger
d957401c7e test(daemon): type launchd kickstart code fake 2026-04-25 07:08:36 +01:00
Peter Steinberger
d6a9165b9e test: stabilize gateway and TTS tests 2026-04-25 07:07:58 +01:00
Peter Steinberger
996ec2dd76 fix(agents): key fallback on committed delivery 2026-04-25 07:06:46 +01:00
Valentinws
4a68fa3962 fix(ui): keep tmp-dir resolver browser-import safe
Defers the Node fs.constants lookup until tmp-dir resolution actually runs, adds browser-shim import regression coverage, and records the fix in the changelog.\n\nLocal verification:\n- pnpm test src/infra/tmp-openclaw-dir.browser-import.test.ts src/infra/tmp-openclaw-dir.test.ts src/logging/logger.browser-import.test.ts\n- pnpm test src/infra/run-node.test.ts -t "serializes runtime postbuild restaging|forwards wrapper SIGTERM"\n- pnpm build\n\nCo-authored-by: Valentinws <Valentinws@users.noreply.github.com>
2026-04-25 07:02:10 +01:00
Vincent Koc
f5868ad1f8 fix(daemon): refresh launchd plist before restart bootstrap (#71421) 2026-04-24 22:59:21 -07:00
xDarkicex
cc0992564b fix: add contextInjection never mode (#65006) (thanks @xDarkicex) 2026-04-25 11:26:21 +05:30
Peter Steinberger
18ffa81564 fix(agents): suppress delivered messaging fallback 2026-04-25 06:55:47 +01:00
Vincent Koc
47a4124dc3 fix(daemon): tolerate loaded launchctl bootstrap (#71413) 2026-04-24 22:54:12 -07:00
Peter Steinberger
537a8e25ed fix(signal): classify filename-only voice notes 2026-04-25 06:45:54 +01:00
Peter Steinberger
f44759073b feat(gateway): auto-approve trusted CIDR node pairing (#61004) (thanks @sahilsatralkar) 2026-04-25 06:40:25 +01:00
Peter Steinberger
d79b9e0af4 fix(openrouter): allow DeepSeek cache-ttl eligibility 2026-04-25 06:38:34 +01:00
Peter Steinberger
f2745aa03a refactor(cron): clarify ambient session context rollover 2026-04-25 06:37:18 +01:00
Ziy
eaf6d3c146 fix(dashboard): keep bearer token out of runtime logs
Avoid logging tokenized Control UI URLs or SSH hints while preserving clipboard/browser token handoff.\n\nThanks @Ziy1-Tan!
2026-04-25 06:36:11 +01:00
Peter Steinberger
c2a2a481b2 fix(whatsapp): preserve audio-as-voice payload intent 2026-04-25 06:35:57 +01:00
Peter Steinberger
5b59079fd4 fix(tts): preserve audio-only hook transcript 2026-04-25 06:28:54 +01:00
Vincent Koc
57f5b3b201 fix(daemon): harden launchd restart handoff (#71409) 2026-04-24 22:27:05 -07:00