discourse-ai/spec/jobs/regular
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
..
digest_rag_upload_spec.rb FEATURE: Native PDF support (#1127) 2025-02-18 09:22:57 +11:00
fast_track_topic_gist_spec.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00
generate_rag_embeddings_spec.rb FEATURE: configurable embeddings (#1049) 2025-01-21 12:23:19 -03:00
manage_embedding_def_search_index_spec.rb FEATURE: configurable embeddings (#1049) 2025-01-21 12:23:19 -03:00
stream_composer_helper_spec.rb FIX: Improve MessageBus efficiency and correctly stop streaming (#1362) 2025-05-23 16:23:06 +10:00
stream_discord_reply_spec.rb FEATURE: Configure persona backed features in admin panel (#1245) 2025-04-10 08:16:31 -07:00
stream_discover_reply_spec.rb FEATURE: Experimental search results from an AI Persona. (#1139) 2025-02-20 14:37:58 -03:00
stream_post_helper_spec.rb DEV: Clearly separate post/composer helper settings (#747) 2024-08-12 15:40:23 -07:00
stream_topic_ai_summary_spec.rb DEV: Use structured responses for summaries (#1252) 2025-05-06 10:09:39 -03:00