Skip to content

Conversation

@manzt
Copy link
Contributor

@manzt manzt commented Sep 24, 2025

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.

@manzt manzt requested a review from Light2Dark as a code owner September 24, 2025 20:24
@manzt manzt added the bug Something isn't working label Sep 24, 2025
@vercel
Copy link

vercel bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Sep 25, 2025 0:25am

@github-actions github-actions bot added the bash-focus Area to focus on during release bug bash label Sep 24, 2025
@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@manzt
Copy link
Contributor Author

manzt commented Sep 25, 2025

@mscolnick the frontend build popped up in another PR ... is that something with turbo? Also schema check failing just for the extra metadata (which i think is expected).

@github-actions
Copy link

Breaking changes detected in the OpenAPI specification!

@mscolnick mscolnick merged commit 1daa887 into main Sep 25, 2025
31 of 63 checks passed
@mscolnick mscolnick deleted the push-xyvkqtvzwrmm branch September 25, 2025 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget not displaying in marimo 0.15.3 or newer

3 participants