Skip to content

Fix startup WebSocket readiness#49

Open
valkenrath wants to merge 1 commit intoeyalzh:mainfrom
valkenrath:fix/websocket-startup-readiness
Open

Fix startup WebSocket readiness#49
valkenrath wants to merge 1 commit intoeyalzh:mainfrom
valkenrath:fix/websocket-startup-readiness

Conversation

@valkenrath
Copy link
Copy Markdown

Summary

Fix startup races where the MCP server receives a tool call before the Firefox extension WebSocket is open.

Changes

  • Wait briefly for the extension WebSocket before sending extension-bound commands.
  • Reject pending extension requests when the active socket disconnects.
  • Retry stale CONNECTING sockets in the extension without creating duplicate sockets.
  • Add focused reconnect/readiness tests.

Validation

  • npm test in firefox-extension
  • npm run build

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.

2 participants