Skip to content

fix(countdown-bot): harden WSS relay sessions - #4654

Open
billy-armstrong wants to merge 1 commit into
block:mainfrom
billy-armstrong:fix/countdown-bot-wss-session
Open

fix(countdown-bot): harden WSS relay sessions#4654
billy-armstrong wants to merge 1 commit into
block:mainfrom
billy-armstrong:fix/countdown-bot-wss-session

Conversation

@billy-armstrong

Copy link
Copy Markdown

Summary

  • Use the shared buzz-ws-client, install the Rustls ring provider before connecting, and reject relay URLs that are not absolute ws:// or wss:// URLs.
  • Wait for matching relay OK responses before reporting profile or reply success, and retain the exact signed pending reply across reconnects until it is accepted or rejected.
  • Reauthenticate and resubscribe after transient failures with capped backoff, use an EOSE-committed cursor plus bounded replay suppression, and surface channel-membership CLOSED responses as terminal errors. Add Countdown coverage to the normal Rust gates and document the operational behavior.

Related issue

N/A — no matching open issue or pull request found.

Testing

  • cargo test -p countdown-bot — 9 passed
  • cargo clippy -p countdown-bot --all-targets -- -D warnings
  • just ci

No UI change.

Signed-off-by: Billy Armstrong <billy@modernmerit.com>
@billy-armstrong
billy-armstrong marked this pull request as ready for review August 4, 2026 03:45
@billy-armstrong
billy-armstrong requested a review from a team as a code owner August 4, 2026 03:45
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