Repository navigation
Make streamed chat responses appear smoothly, like typing #411
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
Open
cpsievert
wants to merge
21
commits into
main
Choose a base branch
from
worktree-streaming-smoothing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
21d367c
feat(js): add StreamSmoother for paced text emission
cpsievert 95d71b9
test(js): cover StreamSmoother pacing, word boundaries, backoff
cpsievert 54cedba
fix(js): refine StreamSmoother word boundary logic for proper pacing
cpsievert 2cd36f6
fix(js): accumulate elapsed time across word boundary stalls
cpsievert bac92ca
feat(js): pace streamed chat chunks through StreamSmoother
cpsievert 35995db
fix(js): remove test-environment detection from ChatApp streaming
cpsievert b9dbfde
test(js): account for pacing delay in streaming-dot test timing
cpsievert cad53eb
feat(js): pace MarkdownStream text through StreamSmoother
cpsievert 95e7014
test(js): allow enough ticks for full drain in pacing test
cpsievert f3c6380
fix(js): satisfy strict typecheck and prettier in StreamSmoother
cpsievert 7e19b44
chore(js): rebuild dist assets for streaming smoothing
cpsievert c271c18
fix(js): correct StreamSmoother congestion backoff formula
cpsievert c65e781
chore(js): rebuild dist assets for backoff fix
cpsievert 6819784
Merge remote-tracking branch 'origin/main' into worktree-streaming-sm…
cpsievert 1b964f5
fix(js): auto-scroll after final content flush at stream end
cpsievert 78bccc2
chore(js): rebuild dist assets for end-of-stream auto-scroll fix
cpsievert 2399e23
feat(js): pace streamed text at character granularity and drain the tail
cpsievert 574fd92
feat(js): show the streaming dot only when a stream stalls
cpsievert 39e9fb5
chore(js): rebuild dist assets for character pacing and idle streamin…
cpsievert b5d25a4
feat(js): never end a paced emission inside an unclosed tag
cpsievert a241c7e
chore(js): rebuild dist assets for character pacing, tag holds, and i…
cpsievert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.