Files
Zero/apps/server
Adam 9ae261ca64 Fix ZeroAgent authentication reconnection (#1149)
## Description

This PR makes three targeted improvements:

1. Removes an unused import of `ThreadSubject` component from thread-display.tsx
2. Renames variable `idsToArchive` to `idsToMark` in mail-list-hotkeys.tsx to better reflect its purpose in the context of marking emails as important
3. Enhances error handling in the ZeroAgent class by attempting to re-setup authentication when a connection is missing before throwing an error

## Type of Change

- [x] 🐛 Bug fix (non-breaking change which fixes an issue)
- [x]  Performance improvement

## Areas Affected

- [x] Email Integration (Gmail, IMAP, etc.)
- [x] User Interface/Experience
- [x] Authentication/Authorization

## Testing Done

- [x] Manual testing performed

## Checklist

- [x] I have performed a self-review of my code
- [x] My changes generate no new warnings

## Additional Notes

The authentication improvement in the ZeroAgent class adds a fallback mechanism to attempt re-authentication before failing, which should improve reliability when connections time out or are temporarily lost.

---

_By submitting this pull request, I confirm that my contribution is made under the terms of the project's license._
2025-05-29 18:14:21 -07:00
..
2025-05-23 19:20:17 +05:30