Skip to content

DEV: Improve diff streaming accuracy with safety checker #1338

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 15, 2025

Conversation

keegangeorge
Copy link
Member

@keegangeorge keegangeorge commented May 14, 2025

🔍 Overview

This update adds a safety checker which scans the streamed updates. It ensures that incomplete segments of text are not sent yet over message bus as this will cause breakage with the diff streamer. It also updates the diff streamer to handle a thinking state for when we are waiting for message bus updates.

📹 Preview

capture-preview.mov

@keegangeorge keegangeorge marked this pull request as ready for review May 14, 2025 22:15
@keegangeorge keegangeorge merged commit dfea784 into main May 15, 2025
6 checks passed
@keegangeorge keegangeorge deleted the improve-diff branch May 15, 2025 18:38
keegangeorge added a commit that referenced this pull request May 15, 2025
The diff animation introduced in #1332 and with attempts to improve it in #1338 still has various issues. As we work on a fix, we want to revert the animation to simply stream the diff without animation so users are not left with a janky unusable experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants