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
a20d96ae31
test: stabilize isolated runtime and config suites
2026-04-07 11:41:02 +01:00
Peter Steinberger
5b29483ab1
test(ci): type-safe exec timeout stub
2026-04-03 22:14:59 +01:00
Peter Steinberger
5a94909654
test(ci): stabilize exec timeout tests
2026-04-03 22:12:08 +01:00
Peter Steinberger
fa6e6603fa
test(ci): harden cli and exec tests for shared workers
2026-04-03 21:30:47 +01:00
Vincent Koc
f575bc2bfe
test(ci): harden proxy-sensitive and timeout unit tests
2026-04-04 02:12:00 +09:00
Peter Steinberger
b87f33c920
test(ci): deflake windows npm exec coverage
2026-03-31 19:28:11 +01:00
Vincent Koc
37099dae3e
fix(ci): restore matrix monitor import guards and windows npm exit codes
2026-03-31 22:04:35 +09:00
Shakker
82681ba215
test: stabilize exec timeout assertions on windows
2026-03-31 01:40:55 +01:00
Shakker
56c9e2493b
test: harden windows timeout-sensitive suites
2026-03-31 01:40:55 +01:00
Shakker
9590e2ccae
test: stabilize windows task registry and exec timeouts
2026-03-31 01:40:55 +01:00
Joseph Krug
d81593c6e2
fix: trigger compaction on LLM timeout with high context usage ( #46417 )
...
Merged via squash.
Prepared head SHA: 619bc4c1fa
Co-authored-by: joeykrug <5925937+joeykrug@users.noreply.github.com >
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com >
Reviewed-by: @jalehman
2026-03-25 12:51:36 -07:00
Vincent Koc
b48291e01e
Exec: mark child command env with OPENCLAW_CLI ( #41411 )
2026-03-09 19:14:08 -04:00
0xlin2023
d000316d19
fix: Windows: openclaw plugins install fails with spawn EINVAL
...
Fixes #7631
2026-03-06 22:19:16 +05:30
Peter Steinberger
6add2bcc15
test(process): replace no-output timer subprocess with spawn mock
2026-03-02 19:16:46 +00:00
Peter Steinberger
6a5041f3ff
test(exec): deflake no-output timeout heartbeat scenario
2026-03-02 18:41:59 +00:00
Peter Steinberger
234e07fcc0
refactor(process): extract command env resolution helper
2026-03-02 14:02:47 +00:00
Peter Steinberger
09748ab109
test(perf): speed up supervisor and exec process tests
2026-03-02 13:53:10 +00:00
Peter Steinberger
a9d572394e
test(perf): tighten exec timeout slack in non-flaky cases
2026-03-02 12:58:00 +00:00
Peter Steinberger
f7b8e4be27
test(fix): stabilize exec no-output heartbeat timing case
2026-03-02 12:18:27 +00:00
Peter Steinberger
d9ff3bf1af
test(perf): tighten process exec and supervisor timing fixtures
2026-03-02 11:56:57 +00:00
Peter Steinberger
79b649a25e
test: fix signal-listener typing in exec bridge test
2026-03-02 11:22:26 +00:00
Peter Steinberger
bff785aecc
test(perf): tighten process test timeouts and fs setup
2026-03-02 11:16:24 +00:00
Peter Steinberger
4a8ada662e
test(perf): cache media fixtures and trim timeout waits
2026-03-02 10:52:58 +00:00
Peter Steinberger
8a1465c314
test(perf): trim timer-heavy suites and guardrail scanning
2026-03-02 10:28:39 +00:00
Peter Steinberger
04030ddf68
test(runtime): trim timer-heavy regression suites
2026-03-02 09:47:29 +00:00
Peter Steinberger
656121a12b
test: micro-optimize hot unit test files
2026-03-02 05:33:07 +00:00
Peter Steinberger
a1a8ec6870
fix(windows): land #31147 plugin install spawn EINVAL (@codertony)
...
Landed from contributor PR #31147 by @codertony.
Co-authored-by: codertony <codertony@users.noreply.github.com >
2026-03-02 02:23:53 +00:00
Peter Steinberger
c89836a251
test: harden flaky timeout and resolver specs
2026-03-01 21:30:07 +00:00
Peter Steinberger
262bca9bdd
fix: restore dm command and self-chat auth behavior
2026-02-26 18:49:16 +01:00
Peter Steinberger
df9a474891
test: stabilize no-output timeout exec test
2026-02-25 02:46:23 +00:00
Peter Steinberger
31f2bf9519
test: fix gate regressions
2026-02-24 04:39:53 +00:00
Peter Steinberger
fe62711342
test(gate): stabilize env- and timing-sensitive process/web-search checks
2026-02-23 19:19:58 +00:00
Peter Steinberger
86a8b65e9d
test: consolidate redundant suites and speed up timers
2026-02-23 04:44:42 +00:00
Peter Steinberger
a6a2a9276e
test: reduce exec timer test runtime
2026-02-23 04:25:00 +00:00
Peter Steinberger
427b4360b9
build: update deps and stabilize tests
2026-02-22 23:32:38 +01:00
Peter Steinberger
d01cc69ef0
test: tighten process timeout fixtures
2026-02-22 17:06:35 +00:00
Peter Steinberger
00eb2541dc
test: shorten idle child timers in timeout assertions
2026-02-22 12:37:49 +00:00
Peter Steinberger
ae70bf4dca
refactor(test): simplify env scoping in exec and usage tests
2026-02-21 19:13:46 +00:00
Peter Steinberger
a1cb700a05
test: dedupe and optimize test suites
2026-02-19 15:19:38 +00:00
Peter Steinberger
308e09c876
perf(test): shorten process timeout fixtures
2026-02-18 04:27:01 +00:00
Sebastian
f7d2e15a2e
test: stabilize infra tests
2026-02-16 22:37:34 -05:00
Peter Steinberger
9684ae4c6d
test: tighten process timeout thresholds with stabilized emit guard
2026-02-16 05:09:47 +00:00
Peter Steinberger
0b780789bc
test: further reduce process timeout waits in fast suites
2026-02-16 04:48:55 +00:00
Peter Steinberger
795874711b
test: shorten process timeout waits in exec and supervisor suites
2026-02-16 04:45:44 +00:00
Peter Steinberger
c53e4e6c8f
test: trim exec timeout waits for faster suite runtime
2026-02-16 04:41:45 +00:00
Peter Steinberger
1b223dbdd8
test: isolate git-hooks integration and stabilize exec timeout
2026-02-16 04:24:00 +00:00
Peter Steinberger
bc65e787c8
test: trim process no-output timeout waits
2026-02-16 04:17:38 +00:00
Peter Steinberger
a7385aa8ac
test: reduce process timeout test latency
2026-02-16 04:08:50 +00:00
Peter Steinberger
83ce48302f
test: trim timeout-heavy exec and telegram cases
2026-02-16 04:00:53 +00:00