Skip to content

fix: timeout error no longer appears after tool call fail or new chat#131

Merged
wasaga merged 2 commits intomainfrom
timeout-bug-fix
Jul 11, 2025
Merged

fix: timeout error no longer appears after tool call fail or new chat#131
wasaga merged 2 commits intomainfrom
timeout-bug-fix

Conversation

@nickytonline
Copy link
Copy Markdown
Member

@nickytonline nickytonline commented Jul 11, 2025

This pull request introduces enhancements to the chat functionality and streaming logic to improve error handling and streamline event signaling. The most important changes include adding a reset for the timedOut state in the chat component, centralizing the stream_done event chunk, and ensuring the stream_done event is emitted even when errors occur during streaming.

Relates to #127

CleanShot 2025-07-11 at 10 23 10@2x

Added a test case to verify that the streamText function emits a stream_done event even when an error occurs during streaming. This ensures consistent behavior in error scenarios. Updated the implementation to always enqueue the stream_done chunk after an error is encountered.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 11, 2025

Deploy Preview for mcp-storybook ready!

Name Link
🔨 Latest commit a5ba64f
🔍 Latest deploy log https://app.netlify.com/projects/mcp-storybook/deploys/68711e49921ccd0008e48b0b
😎 Deploy Preview https://deploy-preview-131--mcp-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nickytonline nickytonline requested a review from wasaga July 11, 2025 14:24
@wasaga wasaga merged commit cd5ea20 into main Jul 11, 2025
6 checks passed
@wasaga wasaga deleted the timeout-bug-fix branch July 11, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants