openclaw/src
fuller-stack-dev 36f394c299
fix(gateway): increase WS handshake timeout from 3s to 10s (#49262)
* fix(gateway): increase WS handshake timeout from 3s to 10s

The 3-second default is too aggressive when the event loop is under load
(concurrent sessions, compaction, agent turns), causing spurious
'gateway closed (1000)' errors on CLI commands like `openclaw cron list`.

Changes:
- Increase DEFAULT_HANDSHAKE_TIMEOUT_MS from 3_000 to 10_000
- Add OPENCLAW_HANDSHAKE_TIMEOUT_MS env var for user override (no VITEST gate)
- Keep OPENCLAW_TEST_HANDSHAKE_TIMEOUT_MS as fallback for existing tests

Fixes #46892

* fix: restore VITEST guard on test env var, use || for empty-string fallback, fix formatting

* fix: cover gateway handshake timeout env override (#49262) (thanks @fuller-stack-dev)

---------

Co-authored-by: Wilfred <wilfred@Wilfreds-Mac-mini.local>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-03-19 22:46:40 +05:30
..
acp refactor: shrink plugin sdk public surface 2026-03-18 23:31:08 +00:00
agents fix(ci): repair main type and boundary regressions 2026-03-19 08:00:33 -07:00
auto-reply Matrix: wire thread binding command support 2026-03-19 09:24:31 -04:00
bindings ACP: harden startup and move configured routing behind plugin seams (#48197) 2026-03-17 17:27:52 +01:00
browser
canvas-host
channels fix(ci): repair main type and boundary regressions 2026-03-19 08:00:33 -07:00
cli CLI: support versioned plugin updates (#49998) 2026-03-19 12:51:10 -04:00
commands fix(onboard): respect services.ai custom provider compatibility 2026-03-19 22:07:19 +05:30
compat
config fix(discord): break plugin-sdk account helper cycle 2026-03-19 06:30:59 -07:00
context-engine feat: expose context-engine compaction delegate helper (#49061) 2026-03-17 22:54:18 -07:00
cron Tests: fix current check failures 2026-03-18 22:58:40 -05:00
daemon ACP: harden startup and move configured routing behind plugin seams (#48197) 2026-03-17 17:27:52 +01:00
docs
gateway fix(gateway): increase WS handshake timeout from 3s to 10s (#49262) 2026-03-19 22:46:40 +05:30
hooks fix: stabilize windows temp and path handling 2026-03-18 23:29:14 -05:00
i18n
image-generation test: stabilize gate regressions 2026-03-18 15:36:32 +00:00
infra style(format): restore import order drift 2026-03-19 09:38:42 -07:00
interactive refactor: deduplicate reply payload handling 2026-03-18 18:14:57 +00:00
line refactor: tighten sdk reply pipeline contract 2026-03-19 03:13:15 +00:00
link-understanding
logging fix: stabilize windows temp and path handling 2026-03-18 23:29:14 -05:00
markdown
media Core: move web media seam out of plugin sdk 2026-03-18 09:12:23 -07:00
media-understanding refactor: shrink plugin sdk public surface 2026-03-18 23:31:08 +00:00
memory refactor: shrink plugin sdk public surface 2026-03-18 23:31:08 +00:00
node-host
pairing fix(pairing): include shared auth in setup codes 2026-03-19 11:20:31 +05:30
plugin-sdk Matrix: fix Jiti runtime API boundary 2026-03-19 11:40:44 -04:00
plugins CLI: support versioned plugin updates (#49998) 2026-03-19 12:51:10 -04:00
process
providers
routing
scripts
secrets fix: restore full gate stability 2026-03-19 03:36:03 +00:00
security Fix windows ACL os mock typing 2026-03-18 23:49:53 -05:00
sessions Session management improvements and dashboard API (#50101) 2026-03-19 12:12:30 +09:00
shared refactor: dedupe plugin lazy runtime helpers 2026-03-17 09:24:22 -07:00
terminal refactor: replace "seam" terminology across codebase 2026-03-18 00:20:15 -07:00
test-helpers
test-utils Plugin SDK: require unified message discovery 2026-03-18 03:02:16 +00:00
tts Plugin SDK: route reply payload through public subpath 2026-03-18 12:01:15 -07:00
tui MiniMax: add M2.7 models and update default to M2.7 (#49691) 2026-03-18 09:24:37 -07:00
types
utils Matrix: rebuild plugin migration branch 2026-03-19 01:58:29 -04:00
web-search fix: restore rebased full gate 2026-03-18 15:36:18 +00:00
whatsapp
wizard fix: preserve interactive Ollama model selection (#49249) (thanks @BruceMacD) 2026-03-18 18:02:44 -07:00
channel-web.ts refactor: untangle whatsapp runtime boundary 2026-03-19 03:13:48 +00:00
docker-build-cache.test.ts
docker-image-digests.test.ts
docker-setup.e2e.test.ts
dockerfile.test.ts Stabilize plugin loader and Docker extension smoke (#50058) 2026-03-18 23:35:32 -05:00
entry.test.ts
entry.ts
entry.version-fast-path.test.ts
globals.ts
index.test.ts fix: isolate CLI startup imports (#50212) 2026-03-19 10:34:29 +05:30
index.ts fix: isolate CLI startup imports (#50212) 2026-03-19 10:34:29 +05:30
install-sh-version.test.ts
library.ts refactor: untangle whatsapp runtime boundary 2026-03-19 03:13:48 +00:00
logger.test.ts
logger.ts
logging.ts
param-key.ts
poll-params.test.ts
poll-params.ts Polls: scope Telegram poll extras to plugin schema 2026-03-18 02:34:33 +00:00
polls.test.ts
polls.ts
runtime.ts
utils.test.ts
utils.ts
version.test.ts
version.ts