Skip to content

Conversation

@nowgnuesLee
Copy link
Contributor

@nowgnuesLee nowgnuesLee commented Dec 9, 2025

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

Copy link
Contributor Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@nowgnuesLee nowgnuesLee marked this pull request as ready for review December 9, 2025 08:27
Copilot AI review requested due to automatic review settings December 9, 2025 08:27
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

Coverage report for ./react

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

Copy link
Contributor

Copilot AI left a 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: 100 to the useChat hook configuration in ChatCard component

@nowgnuesLee nowgnuesLee requested a review from yomybaby December 9, 2025 09:53
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

LGTM

@graphite-app
Copy link

graphite-app bot commented Dec 9, 2025

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
@graphite-app graphite-app bot force-pushed the fix/add-throttle-to-useChat branch from 9502b01 to bb59bd5 Compare December 9, 2025 10:04
@graphite-app graphite-app bot merged commit bb59bd5 into main Dec 9, 2025
10 checks passed
@graphite-app graphite-app bot deleted the fix/add-throttle-to-useChat branch December 9, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS ~10 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Significant slowdown in chat message rendering speed

3 participants