I’ve been experiencing a recurring issue with the Anna Agent on macOS and would like to suggest an optimization for the connection management.
Every evening, when I close my MacBook lid, the system goes to sleep. The next morning, when I resume work, the Agent status invariably shows as offline. Even though the laptop has reconnected to the internet, the Agent doesn’t seem to recover its connection to the server automatically.
Currently, I have to manually quit the Anna Agent process and restart it every single morning to get it back online. This adds a bit of friction to the daily start-up routine.
It would be great if the Agent could implement a more robust auto-reconnect mechanism….
This is a known issue we have been tracking, and I am happy to share that it has already been identified and fixed!
Root Cause:
The issue occurred because the NATS connection did not have a reconnection mechanism implemented. When macOS went to sleep, the NATS connection would drop, but the Agent could not automatically re-establish it after wake.
What is Fixed:
We have implemented a proper NATS auto-reconnect mechanism that:
Detects connection loss after system wake
Automatically attempts to re-establish the NATS connection
Includes exponential backoff for reliability
Shows clear status indicators during reconnection
Availability:
The fix has been deployed in the latest version. You should be able to update and test it right away. If you are still experiencing the issue after updating, please let us know and we will investigate further.
Thanks again for the detailed report – this kind of feedback is invaluable for improving Anna!