Folo/apps/desktop/layer
Innei b927383e93
fix(ai): should stop when switch session
- Changed the `destroy` method in `ZustandChat` to be asynchronous, ensuring proper cleanup with `await`.
- Updated `newChat` and `switchToChat` actions to await the destruction of the old chat instance before creating a new one.
- Initialized `#eventEmitter`, `#status`, and `#error` in `ZustandChatState` constructor for better state management.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-08 16:25:38 +08:00
..
main chore: update dependencies (#4667) 2025-11-06 21:09:46 +08:00
renderer fix(ai): should stop when switch session 2025-11-08 16:25:38 +08:00