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

Conversation

@SamSaffron
Copy link
Member

  1. Do escaping direct in diff streamer, that way HTML tags and other unsafe chars can be displayed and fixed
  2. Add safeguard to ensure streaming always stops when it was terminated elsewhere

1. Do escaping direct in diff streamer, that way HTML tags and other unsafe chars can be displayed and fixed
2. Add safeguard to ensure streaming always stops when it was terminated elsewhere
unsubscribe() {
const channel = "/discourse-ai/ai-helper/stream_composer_suggestion";
this.messageBus.subscribe(channel, this.updateResult);
this.messageBus.unsubscribe(channel, this.updateResult);
Copy link
Member

Choose a reason for hiding this comment

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

oh wow, nice catch

// a little extra space for extra narrow desktop view
@media screen and (width <= 675px) {
@media screen and (max-width: 675px) {
span {
Copy link
Member

Choose a reason for hiding this comment

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

We should probably update this to use our viewport.until(md) mixin, but this is probably fine for now.

@SamSaffron SamSaffron merged commit 2d6ec5e into main May 24, 2025
6 checks passed
@SamSaffron SamSaffron deleted the improve-streaming branch May 24, 2025 05:19
Comment on lines +54 to +55
this.diffStreamer.isStreaming ||
!this.diffStreamer.isDone ||
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like that when you are done you should not be streaming anymore. So setting isDone to true should also set isStreaming to false, otherwise we will plague the code with this double check.

@SamSaffron
Copy link
Member Author

SamSaffron commented May 24, 2025 via email

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.

4 participants