Skip to content

Skip webhook server on EADDRINUSE, bump to 0.9.7#31

Merged
pallaoro merged 2 commits intomainfrom
worktree-port-fix
Apr 25, 2026
Merged

Skip webhook server on EADDRINUSE, bump to 0.9.7#31
pallaoro merged 2 commits intomainfrom
worktree-port-fix

Conversation

@pallaoro
Copy link
Copy Markdown
Member

Summary

  • Plugin loads run in both the OpenClaw gateway daemon and the CLI; both call register(), both attempted to bind the webhook port, second one crashed with EADDRINUSE.
  • startWebhookServer now installs a server.on("error") handler that logs a warning and no-ops on EADDRINUSE, letting whichever instance binds first own the port.
  • Other listen errors still surface as errors.

Test plan

  • npm run lint clean
  • npm test — 117/117 pass
  • Manual: run two clawflow-loading processes against the same port; second should warn and continue rather than crash

Main already shipped 0.9.6 (NODE_KEYS, #30) while this PR was open.
@pallaoro pallaoro force-pushed the worktree-port-fix branch from ee7765b to 6b3a7f4 Compare April 25, 2026 17:01
@pallaoro pallaoro changed the title Skip webhook server on EADDRINUSE, bump to 0.9.6 Skip webhook server on EADDRINUSE, bump to 0.9.7 Apr 25, 2026
@pallaoro pallaoro merged commit a2cc096 into main Apr 25, 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