Files
buzz/mobile/test
John Matthew Tennant 205ff47744 fix(mobile): retry failed channel searches after reconnecting (#8968)
## Summary

Searching while disconnected leaves “Open channel search couldn't
finish” visible after the connection returns. Users must change the
query or tap Retry channels to recover.

This fix automatically retries the open-channel directory search when
the relay reconnects, using the current query. It does not rerun message
search or explain the separate onboarding setup failure.

### Related issue

None found.

### Testing

The widget regression searches while disconnected, reconnects without
typing, and checks that the error clears and an unjoined open channel
appears. It fails on main and passes with this fix.

On the iOS simulator at this PR head, restarting the local relay cleared
the error within about five seconds without changing the query; the
unjoined channel remained listed.

### Screenshots

Relay down: the error shows under the cached channel.

![Relay down: open channel search
error](https://github.com/user-attachments/assets/9014735e-2743-444a-aa77-7d9d2126f8b3)

Relay back, same query, no typing: the error is gone and the unjoined
channel stays listed.

![After reconnect: error
cleared](https://github.com/user-attachments/assets/beed543f-a6a4-4e88-aae1-3c061bb016b2)

---------

Signed-off-by: John Matthew Tennant <jtennant@squareup.com>
Co-authored-by: Simone <0828be588d5c9c4d092c5b1cf01761d5aef63d6b104807fd8e8284d517dd1a99@buzz.block.builderlab.xyz>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:29:13 -05:00
..