discourse-ai/spec/requests
Sam cf220c530c
FIX: Improve MessageBus efficiency and correctly stop streaming (#1362)
* FIX: Improve MessageBus efficiency and correctly stop streaming

This commit enhances the message bus implementation for AI helper streaming by:

- Adding client_id targeting for message bus publications to ensure only the requesting client receives streaming updates
- Limiting MessageBus backlog size (2) and age (60 seconds) to prevent Redis bloat
- Replacing clearTimeout with Ember's cancel method for proper runloop management, we were leaking a stop
- Adding tests for client-specific message delivery

These changes improve memory usage and make streaming more reliable by ensuring messages are properly directed to the requesting client.

* composer suggestion needed a fix as well.

* backlog size of 2 is risky here cause same channel name is reused between clients
2025-05-23 16:23:06 +10:00
..
admin FEATURE: Examples support for personas. (#1334) 2025-05-13 10:06:16 -03:00
ai_bot FEATURE: correctly decorate AI bots (#1300) 2025-04-30 16:36:38 +10:00
ai_helper FIX: Improve MessageBus efficiency and correctly stop streaming (#1362) 2025-05-23 16:23:06 +10:00
discord FEATURE: Discord Bot integration (#831) 2024-10-16 12:41:18 -03:00
embeddings FIX: Open AI embedding shortening is only available for some models (#1080) 2025-01-21 17:50:40 -03:00
sentiment DEV: Sentiment analysis report follow-up updates (#1145) 2025-02-24 16:21:10 +11:00
summarization DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
topic_spec.rb FIX: Load categories for related topics (#570) 2024-04-15 09:31:07 +10:00