Skip to content

fix: reconnect disconnected held gateway clients#599

Merged
rogerchappel merged 1 commit into
mainfrom
fix/codex/openclaw-runtime-reconnect
May 24, 2026
Merged

fix: reconnect disconnected held gateway clients#599
rogerchappel merged 1 commit into
mainfrom
fix/codex/openclaw-runtime-reconnect

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary

  • Replace disconnected held gateway clients instead of returning them from the pool
  • Clear stale holds when a disconnected client is recycled
  • Add regression coverage for disconnected held clients

Verification

  • pnpm test src/lib/gateway-chat-pool.test.ts
  • pnpm typecheck
  • git diff --check
  • pre-push: pnpm typecheck && pnpm build

Risk

Medium: affects gateway runtime connection reuse after OpenClaw restarts or updates. The change is scoped to disconnected clients that cannot service RPCs.

@rogerchappel rogerchappel marked this pull request as ready for review May 24, 2026 19:17
@rogerchappel rogerchappel merged commit b8971ae into main May 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant