Skip to content

Add handling for sync actions#117

Merged
weedon-openai merged 4 commits intomainfrom
dev/weedon/sync-actions
Feb 20, 2026
Merged

Add handling for sync actions#117
weedon-openai merged 4 commits intomainfrom
dev/weedon/sync-actions

Conversation

@weedon-openai
Copy link
Contributor

Adds handling for sync actions.

Normally, widget actions are blocked while a thread is streaming a response. This prevents race conditions, but it can be limiting when a widget action is only going to update itself or trigger side effects outside the thread. To get around this limitation, we're adding ChatKitServer.sync_action where you can run any side effects and update the widget's UI as needed. To route an action to this handler, add streaming: false to the action. If a widget action includes streaming: false it won't be blocked during streaming.

@weedon-openai weedon-openai added this pull request to the merge queue Feb 20, 2026
Merged via the queue into main with commit 73cc717 Feb 20, 2026
1 check passed
@weedon-openai weedon-openai deleted the dev/weedon/sync-actions branch February 20, 2026 20:54
Copy link

@RiseAngelent RiseAngelent left a comment

Choose a reason for hiding this comment

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

Thanks

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.

3 participants