You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#6499
The `msgspec` migration changed how we encode "buffers" (aka binary
blobs) in the `UIElement.text`, causing our frontend to dual-encode the
responses.
This commit properly decodes buffers at system boundaries by converting
base64 strings to `DataView` objects at two key points:
- When extracting buffers from `SendUIElementMessage` operations in the
WebSocket handler
- When resolving the initial value from HTML attributes in the
AnyWidgetPlugin component
I added several tests were we missed these changes, verifying that
buffers are correctly encoded as base64 in HTML and properly handled in
the Python backend.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Myles Scolnick <[email protected]>
0 commit comments