Commit Graph

39060 Commits

Author SHA1 Message Date
Peter Steinberger
8e5c2efb8d refactor: trim test utility exports 2026-05-01 12:51:56 +01:00
Peter Steinberger
1d47974f89 fix: default Discord voice to explicit opt-in 2026-05-01 12:49:24 +01:00
Peter Steinberger
2ea00e1c35 refactor: delete unused repo scan helper 2026-05-01 12:48:46 +01:00
Peter Steinberger
0b4bc78496 refactor: trim cron test helper exports 2026-05-01 12:45:27 +01:00
Alex Knight
e1a7c5b860 fix: handle EPIPE errors on child process stdin writes (#75602)
Fix three child-process stdin write paths that let async EPIPE errors
escape to uncaughtException and crash the gateway.

extensions/imessage/src/client.ts (the actual #75438 crash path):
- Add child.stdin.on('error') listener in start() to catch async EPIPE
  and reject all pending requests via failAll().
- Add write callback to request() stdin.write() that rejects the
  specific pending request on error, instead of leaving it hanging
  until timeout.

src/agents/mcp-stdio-transport.ts:
- Fix write callback race in send(): previously resolved the promise
  immediately when write() returned true, then the write callback with
  EPIPE would fire after the promise was already fulfilled. Now always
  settles the promise from the write callback so the outcome is known
  before resolving.

src/process/exec.ts:
- Add stdin.on('error') before writing input so EPIPE from a
  prematurely-exited child is swallowed — the process exit handler
  reports the real status.

One reporter observed a gateway crash after 10.5 hours of stable
uptime — a single EPIPE on an iMessage RPC child process stdin write
killed the gateway with code 1.

Fixes: #75438
2026-05-01 21:45:12 +10:00
Peter Steinberger
72f6016ce5 fix(agents): dedupe messaging tool replies by route 2026-05-01 12:44:44 +01:00
Peter Steinberger
e073485c23 chore: sync whatsapp dependency lockfile 2026-05-01 12:43:48 +01:00
Peter Steinberger
040f533f60 chore: update dependencies 2026-05-01 12:43:17 +01:00
Peter Steinberger
666ab0a00b ci: stop parity gate on pull requests 2026-05-01 12:42:33 +01:00
Peter Steinberger
29d9a30497 refactor: trim command test helper exports 2026-05-01 12:42:16 +01:00
Peter Steinberger
7b3dfbf214 refactor: trim cli program test exports 2026-05-01 12:39:10 +01:00
Peter Steinberger
42aaf0c98a Prefer Codex native workspace tools (#75308)
Summary:
- The PR adds Codex dynamic-tool profile config defaulting to `native-first`, filters duplicate workspace/process/planning tools from Codex app-server thread payloads, keeps managed `web_search`, updates docs/manifest/config baselines/changelog, and adds regression tests.

ClawSweeper fixups:
- Included follow-up commit: test(codex): pin native-first tool catalog
- Included follow-up commit: chore(config): refresh generated schema baseline
- Included follow-up commit: chore: add codex native-first changelog
- Included follow-up commit: chore: move native-first changelog entry
- Included follow-up commit: chore: refresh config baseline after rebase

Validation:
- ClawSweeper review passed for head 30e5cecfb7.
- Required merge gates passed before the squash merge.

Prepared head SHA: 30e5cecfb7
Review: https://github.com/openclaw/openclaw/pull/75308#issuecomment-4356919781

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: pashpashpash <nik@vault77.ai>
2026-05-01 11:36:17 +00:00
Peter Steinberger
ec69c07b27 fix: send twilio notify twiml directly 2026-05-01 12:35:40 +01:00
Peter Steinberger
050f0f50c9 refactor: trim cli test helper exports 2026-05-01 12:31:52 +01:00
Peter Steinberger
4a4353e33f fix: recover Discord voice auto-join after resume 2026-05-01 12:28:57 +01:00
Peter Steinberger
7719dd8804 test: use built-in OpenAI provider in Windows smoke 2026-05-01 12:28:23 +01:00
Peter Steinberger
12fbdd4ede refactor: delete unused contract test helpers 2026-05-01 12:26:37 +01:00
Alex Knight
524528944f fix(agents): trim trailing assistant turns and rewrite blank user messages in session repair (#75606)
* fix(agents): trim trailing assistant turns and rewrite blank user messages in session repair

Session-file repair now:
- Trims trailing assistant messages so the JSONL never ends on
  role=assistant, preventing the Anthropic 400 prefill-loop that
  fires when thinking is enabled. (#75271)
- Rewrites blank-only user messages to a synthetic '(continue)'
  placeholder instead of dropping them, so strict providers
  (Qwen/mlx-vlm, Anthropic) no longer reject transcripts missing
  a user turn. (#75313)

Closes #75271, closes #75313.

* refactor: clean up comments in session-file repair

* fix(agents): preserve trailing assistant tool-call turns during session trim

Mirror the outbound guard (stripTrailingAssistantPrefillTurns):
skip assistant entries containing toolCall/toolUse/functionCall
blocks so transcript repair can synthesize missing tool results.

Addresses PR review feedback from clawsweeper on #75606.
2026-05-01 21:24:50 +10:00
Peter Steinberger
5fbf406beb refactor: delete unused test support modules 2026-05-01 12:24:12 +01:00
Peter Steinberger
8fd9264ae7 refactor: delete unused test helpers 2026-05-01 12:20:50 +01:00
Peter Steinberger
e5d2273e05 refactor: trim runtime test helper type exports 2026-05-01 12:16:58 +01:00
Peter Steinberger
caa7f7c4cc [codex] Defer status reaction cleanup (#75582)
Summary:
- The PR updates the shared status reaction controller to track active remove-capable reactions, defer cleanup until clear/restoreInitial, adjust controller and Slack lifecycle tests, add a changelog entry, and carries qrcode runtime-dependency mirror hunks from its older base.

ClawSweeper fixups:
- Included follow-up commit: fix: limit status reaction restore cleanup
- Included follow-up commit: chore: merge main into status reaction cleanup
- Included follow-up commit: fix: mirror qrcode runtime dependency

Validation:
- ClawSweeper review passed for head f3efcb4fd3.
- Required merge gates passed before the squash merge.

Prepared head SHA: f3efcb4fd3
Review: https://github.com/openclaw/openclaw/pull/75582#issuecomment-4358876584

Co-authored-by: Peter Steinberger <steipete@steipete-macstudio.local>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-01 11:16:33 +00:00
Peter Steinberger
aa74888cf7 refactor: trim subagent test helper exports 2026-05-01 12:14:08 +01:00
Peter Steinberger
7301e57632 refactor: trim sanitize history harness exports 2026-05-01 12:10:24 +01:00
Peter Steinberger
0e1af0d770 fix(whatsapp): mirror qrcode from root runtime deps 2026-05-01 12:06:26 +01:00
Peter Steinberger
b48dcab1b5 fix(cli): repair agent runtime deps during startup 2026-05-01 12:06:26 +01:00
Peter Steinberger
ef832f83f6 fix(extensions): guard model and Twilio fetches 2026-05-01 12:06:26 +01:00
Peter Steinberger
b68f3de91b fix(agent): honor explicit OpenAI SSE transport 2026-05-01 12:06:26 +01:00
Peter Steinberger
702e23835d fix(agent): default missing model cost metadata 2026-05-01 12:06:26 +01:00
Peter Steinberger
dddf871ad9 fix(agent): apply configured fast mode to embedded runs 2026-05-01 12:06:26 +01:00
Peter Steinberger
f5fde074bd fix(gateway): refresh stale channel health cache 2026-05-01 12:06:26 +01:00
Peter Steinberger
195a58224c refactor: trim sessions spawn harness type exports 2026-05-01 12:06:18 +01:00
Peter Steinberger
1c9b4d871c test: stabilize Parallels update smokes 2026-05-01 12:05:24 +01:00
Peter Steinberger
1e3d240220 refactor: trim test support helper exports 2026-05-01 12:02:22 +01:00
Vincent Koc
1b341f963b fix(plugin-sdk): restore deprecated reply pipeline compat exports 2026-05-01 04:01:22 -07:00
Alex Knight
bbc47cb9e1 fix(plugins): skip update when bundled plugin version is newer than installed clawhub/marketplace version (#75604) 2026-05-01 21:00:49 +10:00
Alex Knight
0a74037f6f docs(sandboxing): clarify sandbox setup scripts require source checkout (#75594)
Add inline docker build commands for npm-installed users who don't have the
source checkout scripts. Update all docs referencing sandbox-setup.sh,
sandbox-common-setup.sh and sandbox-browser-setup.sh to note they are
source-checkout-only and link to the new inline instructions.

Fixes #75485.
2026-05-01 20:58:26 +10:00
Peter Steinberger
5d519f1dc5 refactor: trim onboarding internal helpers 2026-05-01 11:58:13 +01:00
Peter Steinberger
737fd808dd fix: make Discord voice reconnect timing resilient 2026-05-01 11:57:45 +01:00
Peter Steinberger
678ef019f3 refactor: trim provider constant exports 2026-05-01 11:53:12 +01:00
Peter Steinberger
8d288e2dfd refactor: trim stream helper internal exports 2026-05-01 11:49:37 +01:00
Peter Steinberger
2c488daaf4 fix(whatsapp): stage qrcode runtime dependency 2026-05-01 11:49:05 +01:00
Peter Steinberger
b547286937 refactor: trim voice runtime internal exports 2026-05-01 11:46:58 +01:00
Peter Steinberger
0d631fa701 refactor: trim provider discovery internal exports 2026-05-01 11:44:13 +01:00
Peter Steinberger
b6daa922d6 refactor: trim catalog internal exports 2026-05-01 11:40:47 +01:00
Peter Steinberger
39ab11425f test: clear Windows Parallels smoke sessions 2026-05-01 11:40:32 +01:00
Peter Steinberger
fe022e409d test(infra): refresh generated config baselines 2026-05-01 11:40:27 +01:00
Peter Steinberger
404446f758 chore(qqbot): inline legacy text chunk helper 2026-05-01 11:40:27 +01:00
卧龙
5f42438cf7 test(plugins): cover runtime deps package manifest fallback 2026-05-01 11:40:27 +01:00
Peter Steinberger
931e60723d fix(plugins): invalidate runtime deps cache on package upgrade 2026-05-01 11:39:43 +01:00