Peter Steinberger
427b4360b9
build: update deps and stabilize tests
9 months ago
Peter Steinberger
34ea33f057
refactor: dedupe core config and runtime helpers
9 months ago
Peter Steinberger
d01cc69ef0
test: tighten process timeout fixtures
9 months ago
Peter Steinberger
d116bcfb14
refactor(runtime): consolidate followup, gateway, and provider dedupe paths
9 months ago
Peter Steinberger
adfbbcf1f6
chore: merge origin/main into main
9 months ago
Peter Steinberger
00eb2541dc
test: shorten idle child timers in timeout assertions
9 months ago
Peter Steinberger
a4607277a9
test: consolidate sessions_spawn and guardrail helpers
9 months ago
Peter Steinberger
401106b963
fix: harden flaky tests and cover native google thought signatures ( #23457 ) (thanks @echoVic)
9 months ago
Peter Steinberger
bf52273a58
test: harden flaky timeout-sensitive tests
9 months ago
Peter Steinberger
78c3c2a542
fix: stabilize flaky tests and sanitize directive-only chat tags
9 months ago
Peter Steinberger
d6d73d0ed9
test(core): trim redundant test resets and use mockClear
9 months ago
Peter Steinberger
1f0695ba47
test(core): use lightweight clears in update, child adapter, and copilot token setup
9 months ago
Peter Steinberger
4ddaafee68
test(plugins): use lightweight clears in wired hooks setup
9 months ago
Peter Steinberger
185fba1d22
refactor(agents): dedupe plugin hooks and test helpers
9 months ago
Peter Steinberger
81a85c19ff
test(gateway): tighten e2e timeouts and dedupe invoke checks
9 months ago
Peter Steinberger
ae70bf4dca
refactor(test): simplify env scoping in exec and usage tests
9 months ago
Peter Steinberger
fa89ae8e9e
fix: stabilize swift protocol generation and flaky tests
9 months ago
Peter Steinberger
a1cb700a05
test: dedupe and optimize test suites
9 months ago
Peter Steinberger
7ebd213acf
perf(test): dedupe telegram thread cases and tighten PTY timer
9 months ago
Peter Steinberger
a011361784
perf(test): remove timer callbacks in command queue tests
9 months ago
Peter Steinberger
8f079afb38
perf(test): remove timer usage in command queue ordering test
9 months ago
Peter Steinberger
c7bc94436b
perf(test): fake queue timers and merge telegram reply-mode checks
9 months ago
Peter Steinberger
308e09c876
perf(test): shorten process timeout fixtures
9 months ago
Peter Steinberger
46278e22cf
perf(test): trim telegram duplicates and queue wait delays
9 months ago
Peter Steinberger
b8b43175c5
style: align formatting with oxfmt 0.33
9 months ago
Peter Steinberger
31f9be126c
style: run oxfmt and fix gate failures
9 months ago
cpojer
2a4ca7671e
chore: Fix types in tests 35/N.
9 months ago
cpojer
03e6acd051
chore: Fix types in tests 28/N.
9 months ago
cpojer
d0cb8c19b2
chore: wtf.
9 months ago
Sebastian
ed11e93cf2
chore(format)
9 months ago
Sebastian
f7d2e15a2e
test: stabilize infra tests
9 months ago
cpojer
01ea808876
chore: Format files.
9 months ago
Sebastian
fb996031bc
fix(process): harden graceful kill-tree cancellation semantics
9 months ago
Sebastian
726ad45c75
Revert "fix: add windowsHide: true to spawn in runCommandWithTimeout"
...
This reverts commit 32c66aff49 .
9 months ago
cpojer
90ef2d6bdf
chore: Update formatting.
9 months ago
artale
a1a1f56841
fix(process): disable detached spawn on Windows to fix empty exec output ( #18035 )
...
The supervisor's child adapter always spawned with `detached: true`,
which creates a new process group. On Windows Scheduled Tasks (headless,
no console), this prevents stdout/stderr pipes from properly connecting,
causing all exec tool output to silently disappear.
The old exec path (pre-supervisor refactor) never used `detached: true`.
The regression was introduced in cd44a0d01 (refactor process spawning).
Changes:
- child.ts: set `detached: false` on Windows, keep `detached: true` on
POSIX (where it's needed to survive parent exit). Skip the no-detach
fallback on Windows since it's already the default.
- child.test.ts: platform-aware assertions for detached behavior.
Fixes #18035
Fixes #17806
9 months ago
Guy
32c66aff49
fix: add windowsHide: true to spawn in runCommandWithTimeout
...
Fixes flashing conhost.exe windows on Windows when exec module spawns
child processes. The windowsHide: true option prevents orphaned conhost.exe
processes and eliminates disruptive terminal window flashing.
Closes #18613
9 months ago
Daniel Sauer
20957efa46
fix(process): graceful process tree termination with SIGTERM before SIGKILL
...
Process trees (pty sessions, tool exec) were being SIGKILL'd immediately
without any grace period for cleanup. This prevented child processes from:
- Flushing buffers and closing files cleanly
- Closing network connections
- Terminating their own child processes
- Removing temporary files
Changes:
- Send SIGTERM to process group first (Unix)
- Wait configurable grace period (default 3s)
- Then SIGKILL if process still alive
- Windows: taskkill without /F first, then with /F after grace period
- Use unref() on timeout to not block event loop exit
Fixes #18619
Co-authored-by: James <james@openclaw.ai>
9 months ago
Peter Steinberger
a177f7b9fe
refactor(tests): dedupe slack telegram and web monitor setup
9 months ago
Peter Steinberger
9684ae4c6d
test: tighten process timeout thresholds with stabilized emit guard
9 months ago
Peter Steinberger
0b780789bc
test: further reduce process timeout waits in fast suites
9 months ago
Peter Steinberger
795874711b
test: shorten process timeout waits in exec and supervisor suites
9 months ago
Peter Steinberger
17d8e2a1c8
test: reduce supervisor no-output wait threshold
9 months ago
Peter Steinberger
c53e4e6c8f
test: trim exec timeout waits for faster suite runtime
9 months ago
Peter Steinberger
1b223dbdd8
test: isolate git-hooks integration and stabilize exec timeout
9 months ago
Peter Steinberger
bc65e787c8
test: trim process no-output timeout waits
9 months ago
Peter Steinberger
a7385aa8ac
test: reduce process timeout test latency
9 months ago
Peter Steinberger
83ce48302f
test: trim timeout-heavy exec and telegram cases
9 months ago
Peter Steinberger
31939397a9
test: optimize hot-path test runtime
9 months ago
Peter Steinberger
38ac4b8083
test(pty): stabilize non-windows signal assertion
9 months ago