-
Notifications
You must be signed in to change notification settings - Fork 78
fix(FR-1772): add throttle to reduce lag in chat rendering #4793
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
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.37% | 517/11818 |
| 🔴 | Branches | 3.59% | 298/8308 |
| 🔴 | Functions | 2.63% | 95/3615 |
| 🔴 | Lines | 4.35% | 503/11559 |
Test suite run success
145 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from bb59bd5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses rendering lag in the chat interface by adding experimental throttling to message processing. The change introduces a 100ms delay between message chunks using the experimental_throttle parameter from the @ai-sdk/react library to improve streaming performance and user experience.
Key Changes:
- Adds
experimental_throttle: 100to theuseChathook configuration in ChatCard component
yomybaby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge activity
|
resolves #4790 (FR-1772) Adds experimental throttling to the chat component with a 100ms delay between message chunks. This helps control the rate at which messages are processed and displayed, providing a smoother user experience. **Checklist:** - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
9502b01 to
bb59bd5
Compare

resolves #4790 (FR-1772)
Adds experimental throttling to the chat component with a 100ms delay between message chunks. This helps control the rate at which messages are processed and displayed, providing a smoother user experience.
Checklist: