feat(mobile): preview agent devices with scoped stream access - #832
Merged
Merged
Conversation
|
Deployment failed for project pylon-marketing with the following error: Learn More: https://vercel.com/pylon-code?upgradeToPro=build-rate-limit |
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
What changed
Mobile now shows device sessions for the current thread and opens a full-screen viewer with live video and controls. The viewer shares Pylon's device stream transport with web, keeps host identity when switching devices, and stops decoding when the viewer loses focus, the app backgrounds, or the route closes.
Simulator testing exposed two release-blocking bugs in the first draft: the live subscription's
waitingflag kept the preview button hidden even after a valid session arrived, and the iOS full-screen modal hid its Close, Home, and device menu controls. Device inventory is now tied to the exact RPC session and supervisor generation; the iOS header is visible from the modal's initial render. Stream tickets remain fenced to the prepared connection and generation, and neither React keys nor errors contain ticket material.Adapted from upstream sources
823119350ee29cca434b1295aa5c560f4c9ef98aand the shared/mobile recovery portions of9f73ca3677; Pylon's existing web recovery remains in place.iOS evidence
Before the final fix, the viewer streamed the device but had no native controls:
After the fix, an iPhone 17 showed a live iPhone 16e Settings screen with Close, device options, and Home controls:
Validation
Limits
Android native rendering was not tested because this host has no Android SDK or emulator. Android has an explicit decoder error when WebCodecs is unavailable; remote Android streaming needs a secure context such as HTTPS or loopback. Older servers without device-state and hub endpoints cannot provide this viewer; the existing mobile thread UI remains usable.
Model/harness: GPT-6 Codex implementation; GPT-6 Sol (low) independent review.