Commit Graph

159 Commits (39634088712e5f8530d9063cf5b413c5bf496a18)

Author SHA1 Message Date
MoerAI 9da06d918f fix(windows): add windowsHide to detached spawn calls to suppress console windows (#44693)
The restart helper and taskkill spawn calls were missing windowsHide: true,
causing visible command prompt windows to flash on screen during gateway
restart and process cleanup on Windows.
8 months ago
Vincent Koc 4ca84acf24
fix(runtime): duplicate messages, share singleton state across bundled chunks (#43683)
* Tests: add fresh module import helper

* Process: share command queue runtime state

* Agents: share embedded run runtime state

* Reply: share followup queue runtime state

* Reply: share followup drain callback state

* Reply: share queued message dedupe state

* Reply: share inbound dedupe state

* Tests: cover shared command queue runtime state

* Tests: cover shared embedded run runtime state

* Tests: cover shared followup queue runtime state

* Tests: cover shared inbound dedupe state

* Tests: cover shared Slack thread participation state

* Slack: share sent thread participation state

* Tests: document fresh import helper

* Telegram: share draft stream runtime state

* Tests: cover shared Telegram draft stream state

* Telegram: share sent message cache state

* Tests: cover shared Telegram sent message cache

* Telegram: share thread binding runtime state

* Tests: cover shared Telegram thread binding state

* Tests: avoid duplicate shared queue reset

* refactor(runtime): centralize global singleton access

* refactor(runtime): preserve undefined global singleton values

* test(runtime): cover undefined global singleton values

---------

Co-authored-by: Nimrod Gutman <nimrod.gutman@gmail.com>
8 months ago
Peter Steinberger 344b2286aa refactor: share windows command shim resolution 9 months ago
Vincent Koc b48291e01e
Exec: mark child command env with OPENCLAW_CLI (#41411) 9 months ago
yuweuii 6c9b49a10b
fix(sessions): clear stale contextTokens on model switch (#38044)
Merged via squash.

Prepared head SHA: bac2df4b7f920ce271f0a15f1db9ed99b35300f3
Co-authored-by: yuweuii <82372187+yuweuii@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
9 months ago
Peter Steinberger e20f445099 fix(supervisor): keep service-managed children attached (#38463, thanks @spirittechie)
Co-authored-by: Jesse Paul <drzin69@gmail.com>
9 months ago
0xlin2023 d000316d19 fix: Windows: openclaw plugins install fails with spawn EINVAL
Fixes #7631
9 months ago
Peter Steinberger b1c30f0ba9 refactor: dedupe cli config cron and install flows 9 months ago
Peter Steinberger 6add2bcc15 test(process): replace no-output timer subprocess with spawn mock 9 months ago
Peter Steinberger 6a5041f3ff test(exec): deflake no-output timeout heartbeat scenario 9 months ago
Tak Hoffman 2a11a20fe2
test(windows): stabilize exec wrapper mock assertions (#31771) 9 months ago
Peter Steinberger 234e07fcc0 refactor(process): extract command env resolution helper 9 months ago
Peter Steinberger 09748ab109 test(perf): speed up supervisor and exec process tests 9 months ago
icesword0760 6e008e93be
Process: fix Windows .cmd spawn EINVAL (openclaw#29759) thanks @icesword0760
Verified:
- pnpm vitest run src/process/exec.test.ts src/process/exec.windows.test.ts

Co-authored-by: icesword0760 <123886211+icesword0760@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Peter Steinberger a9d572394e test(perf): tighten exec timeout slack in non-flaky cases 9 months ago
Peter Steinberger f7b8e4be27 test(fix): stabilize exec no-output heartbeat timing case 9 months ago
Peter Steinberger d9ff3bf1af test(perf): tighten process exec and supervisor timing fixtures 9 months ago
Peter Steinberger 79b649a25e test: fix signal-listener typing in exec bridge test 9 months ago
Peter Steinberger bff785aecc test(perf): tighten process test timeouts and fs setup 9 months ago
Peter Steinberger 4a8ada662e test(perf): cache media fixtures and trim timeout waits 9 months ago
Peter Steinberger 8a1465c314 test(perf): trim timer-heavy suites and guardrail scanning 9 months ago
Peter Steinberger 04030ddf68 test(runtime): trim timer-heavy regression suites 9 months ago
Peter Steinberger 656121a12b test: micro-optimize hot unit test files 9 months ago
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>
9 months ago
Peter Steinberger c89836a251 test: harden flaky timeout and resolver specs 9 months ago
Peter Steinberger 262bca9bdd fix: restore dm command and self-chat auth behavior 9 months ago
joshavant e8637c79b3 fix(secrets): harden sops migration sops rule matching 9 months ago
Peter Steinberger c397a02c9a fix(queue): harden drain/abort/timeout race handling
- reject new lane enqueues once gateway drain begins
- always reset lane draining state and isolate onWait callback failures
- persist per-session abort cutoff and skip stale queued messages
- avoid false 600s agentTurn timeout in isolated cron jobs

Fixes #27407
Fixes #27332
Fixes #27427

Co-authored-by: Kevin Shenghui <shenghuikevin@github.com>
Co-authored-by: zjmy <zhangjunmengyang@gmail.com>
Co-authored-by: suko <miha.sukic@gmail.com>
9 months ago
Peter Steinberger df9a474891 test: stabilize no-output timeout exec test 9 months ago
Peter Steinberger 31f2bf9519 test: fix gate regressions 9 months ago
Peter Steinberger 3b5a276a48 test: speed up supervisor test timing 9 months ago
Peter Steinberger fe62711342 test(gate): stabilize env- and timing-sensitive process/web-search checks 9 months ago
Peter Steinberger 86a8b65e9d test: consolidate redundant suites and speed up timers 9 months ago
Peter Steinberger a6a2a9276e test: reduce exec timer test runtime 9 months ago
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