Repository navigation
fix(web): stabilize device streaming, recording handoff, and panel lifecycle - #1069
Merged
Merged
Conversation
…fecycle Fixes client-runtime device transport and streaming issues (idle iOS 16-second reconnect loop, Android WebCodecs fallback and initial keyframe buffering, split CRLF SSE parsing, Android accessibility cap ordering, and transport error/close handling) along with web Device tab lifecycle, Android AVD boot selection, floating window coordinates, recording handoff preservation, and UI polish.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Auditing the merged Device panel across
packages/client-runtimeandapps/websurfaced streaming reconnect loops, Android WebCodecs and AVD boot edge cases, React ref/keying lifecycle bugs, recording handoff data-loss paths, and a few UI gaps (including no way to reopen device setup from the picker on linked computers or the phone app).Fix
Client runtime (
packages/client-runtime/src/device/)reset-videorequests to 1 second, and reset cached screen/mode state onstop().send/creditthrows, malformed base64, mixed text/binary frames, and spurious 1006 errors during intentional close; add a zero-copy single-part binary path.\r\nacross chunks in the iOS event log SSE parser, filter Android accessibility nodes before applying the 500-element limit, propagateAbortErrorinstead of swallowing it, cap iOSsendTextat 256 characters, shrink MJPEG/AVCC buffers after spikes, cache the 2D canvas context, and add a 5-second timeout on iOS/foregroundpolling.Web UI (
apps/web/)DevicePanel,DeviceWorkspace, andFloatingDeviceby thread and device, clear per-environment device state on disconnect and unsubscribe, and avoid auto-opening the mobile right-panel sheet when an agent opens a device.openDevicewhen starting an Android AVD, awaitcloseDevicebefore removing a chip, and add a Device settings button inDevicePickerto reopen setup.DeviceStreamViewso React 19 does not detach live canvases on rerender, addShift+Escapeblur escape, release held iOS keys on blur, guard zero-size coordinates, and send Duo visual coordinates for recording.deviceId,model, andphysicalinto floating streams, keep floating drag state synchronous on pointer end, and keep the right edge anchored during left-edge resize near the margin./foregroundonly while Tools is open, fix touch keyboard IME composition and Android Backspace, useelevate-overlayandEscapeclose on the narrow Tools drawer, usetext-destructive-foregroundinDevicesSettings, and keep unselected chip menus visible on keyboard focus.discard()onDeviceRecorder, propagate abort signals into screenshot capture, preserve recording files for download whenever they are not inpersistedAttachments, and deduplicate concurrentsaveComposerDraftAttachmentscalls for the same list without blocking newer edits behind stale reads.Verification
vp fmtandvp lint(0 errors)vp run --cache '@threadlines/client-runtime#typecheck'andvp run --cache '@threadlines/web#typecheck'vp run --cache '@threadlines/client-runtime#test'(63/63)vp run --cache '@threadlines/web#test' device(26/26) andcomposerDraft(93/93)vp run --cache '@threadlines/web#test:browser'(118 files, 1,203/1,203 tests)DevicePickerand destructive error text in light and dark themes with bundled fonts loaded