Files
Zero/apps/server
Adam b753afa5b6 Remove brain state dependency and fix Gmail subscription key format (#1848)
# Fix AI Summary Display and Gmail Subscription Key Format

## Description

This PR includes three key changes:

1. Removed the conditional rendering of the `AiSummary` component based on `brainState.enabled`, allowing the component to handle its own visibility logic.
2. Fixed the Gmail subscription key format in the server by using a composite key format `${id}__${providerId}` instead of just `id` when accessing the `gmail_sub_age` KV store.
3. Temporarily commented out thread synchronization logic in the agent routes due to issues with Durable Object storage resetting.

## Type of Change

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

## Areas Affected

- [x] Email Integration (Gmail, IMAP, etc.)
- [x] User Interface/Experience
- [x] Data Storage/Management

## 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 commented-out thread synchronization code includes a TODO note explaining that the Durable Object storage is sometimes resetting. This is a temporary measure until we can properly address the underlying issue.

---

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