Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Summary
DeviceStreamnow ships the phone controls that Mobilerun Cloud shows: a dark Back / Home / Recent apps row inside the screen, and a stopped-device view with a Play button that resumes the device. Both parts are on by default and can be turned off per component.Changes
DeviceStreamrendersNavigationBarunder the video, inside the screen. Keys send BACK / HOME / RECENT and are disabled while the stream is not connected orhasControlis false.hideNavigationturns the row off.NavigationBarkeeps its props and gains optionaldisabledandlabels; its look changes to the dark Cloud row.deviceStateandonResume. WithdeviceState="stopped"the stream is not opened; the screen shows a "Device stopped" pill with a power icon and a round Play button. A tap callsonResumeand shows "Starting" until the state leavesstopped; ifonResumerejects, the button comes back.hideResumeButtonkeeps the pill and hides the button. Reconnecting is paused while the device is stopped and starts fresh when it runs again.useDeviceStream({ device })returnsresume()when the SDK device object supports it (@mobilerun/sdk6.2+). It resumes, then refetches the device, also when the readiness wait fails after the resume request.back,home,recentApps,resume,stopped,starting. Existing complete label objects still type-check.StreamStatusPillgains an optionalicon(spinnerby default, orpower).POST /api/v1/devices/:id/resumeand the read-onlyGET /api/v1/devices/:id/wait, with the same same-origin, id and missing-key guards as the stream-key route. The API key stays on the server.docs/default-ui.mdand the device-stream skill document the new props, flags and labels.Upgrade notes: no version, peer range or export changes. The navigation row now appears by default and takes space inside the component's height; apps that already render their own row should remove it or set
hideNavigation. The navigation buttons aretype="button", so aDeviceStreaminside a form never submits it.Testing
bun run typecheck: passbun test: pass (0 failures)bun run build: pass; the new utility classes are present indist/styles.csshideNavigation, the stopped view (pill, Play, Starting, rejection, state change),hideResumeButton, reconnect paused while stopped,resume()refetch after a failed readiness wait, the old label shape, and the example's resume and wait routes (happy path, invalid id, foreign origin, missing key, upstream errors).Runtime
UNVERIFIED — no resume against a real device yet; needs one stopped dev device resumed through the example app after merge.
Release Checklist
🤖 Generated with Claude Code