buzz icon indicating copy to clipboard operation
buzz copied to clipboard

fix(mobile): retry messages after transient disconnects

Open tkors opened this issue 3 months ago • 4 comments

Summary

  • keep unacknowledged mobile events pending across transient relay reconnects
  • replay the same signed event ID so a lost acknowledgement cannot duplicate a message
  • cover the reported nested Alies thread reply and reconnect path with regressions

Test Plan

  • [x] just mobile-check
  • [x] just mobile-test
  • [x] verify a nested reply carries the outer root and direct parent tags
  • [x] verify an unacknowledged event is replayed and completes after reconnect

tkors avatar Aug 02 '26 19:08 tkors

@claude review

tkors avatar Aug 02 '26 19:08 tkors

@claude review\n\nFollow-up commit addresses the prior local Claude findings: the normal 8s acknowledgement timeout is restored, reconnect gets its own bounded grace period, and reconnecting/already-acked/auth-rejected paths now have regression coverage.

tkors avatar Aug 02 '26 19:08 tkors

@claude review\n\nSecond follow-up resolves the remaining local Claude findings: retries now have one absolute deadline across flaps, only kind-9 chat messages replay, response-bearing command events retain the original failure behavior, and terminal auth rejection blocks implicit reconnect.

tkors avatar Aug 02 '26 19:08 tkors

@block/buzz-oss-team Could you review this mobile reliability fix?

It prevents a chat message typed during a transient relay reconnect from being returned to the composer instead of delivered — the exact Android failure observed after an Alies thread reply. The change retries only plain chat events, reuses the event ID for relay deduplication, and keeps command events non-replayable. Targeted and full mobile tests (1,028; one existing skip) plus CI are green. No relay/server behaviour changes.

This review is the remaining prerequisite for an official Android update.

tkors avatar Aug 02 '26 21:08 tkors