Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@SamSaffron
Copy link
Member

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.

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.
Copy link
Contributor

@nattsw nattsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just did a quick run locally and it seems fine.

@SamSaffron SamSaffron merged commit cf220c5 into main May 23, 2025
6 checks passed
@SamSaffron SamSaffron deleted the proofread-fixes branch May 23, 2025 06:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants