chore(server): bump device hub to 0.15.1 #16098
main fromrefs/pull/16098/head·opened View on GitHubProblem#
T3 pins expo-device-hub at 0.12.0. Two bugs fixed in the hub since then still reach T3 users through that pin:
- Physical Android devices inherit the emulator-only
grpc-screenshotdefault instead of scrcpy (expo/expo-device-hub#209). - The hub announces
video-sessionon scrcpy restarts that keep the same size, which sends WebCodecs viewers into the keyframe-reset loop described in #12229 (expo/expo-device-hub#210).
Both are fixed in expo-device-hub@0.15.1 (expo/expo-device-hub#239). Released clients, including mobile builds that cannot get the client-side change in #14664 until a new app release, stop looping once the hub they talk to stops sending the redundant message.
Change#
Bump DEVICE_HUB_VERSION from 0.12.0 to 0.15.1, and the expo-device-hub entry in third-party-licenses.config.json from 0.10.1 (already stale) to 0.15.1. Same two files as the previous bump (#12809); agent-device is untouched.
Compatibility review of the 0.13.0 to 0.15.1 release notes against T3's use of the hub:
0.14.0: serve-emu accepts onlyPOST /api/screenshot. T3 already posts (DeviceService.ts,client-runtime/src/device/screenshot.ts).0.14.0: an ungated preview answers only forlocalhostand IPHostheaders. T3 spawns the hub on127.0.0.1and the proxy drops the incomingHostheader, so requests go out with the loopback origin.0.15.0:--require-tokenandEXPO_DEVICE_HUB_EMULATOR_EXTRA_ARGSare opt-in and unused here.0.13.0and0.14.0network capture and the serve-sim sync are not used by T3.- Runtime dependencies are identical between
0.12.0and0.15.1.
Scope and approval#
Maintenance pin bump of the kind in #12809. It is not a behavior change on the T3 side and it is not approved in advance; the maintainer triage on #12229 calls the hub-side change optional and puts the main fix in the client (#14664). This PR does not replace that and does not close #12229.
Verification#
vp test run src/deviceinapps/server: 11 files, 80 tests passed.tsc --noEmitinapps/serverexits 0 (only existing suggestion-level diagnostics).node scripts/sync-third-party-license-notices.ts --checkexits 0.- Installed
expo-device-hub@0.15.1withnpm installinto a scratch directory and ran it with T3's launch flags (--host 127.0.0.1 --hide-sidebar --hide-boot-device) against a physical Samsung Galaxy Z Flip (SM-F731B, Android 16, wireless adb), with no local patches:GET /vendor/serve-emu/api/stream-modereports"mode":"scrcpy"andavailableModes:["scrcpy"],POST /vendor/serve-emu/api/screenshotreturns 200, andGETreturns 405. - Not checked: the full in-app video panel on
0.15.1(the video-session fix is covered by the hub's own tests in expo/expo-device-hub#239), iOS simulators, and SSH hosts.
Authored by Claude Sonnet 5.5 through Claude Code in T3 Code, at the request of the contributor, who has not line-reviewed the two-line diff.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
🧰 Additional context used
📚 Code guidelines (1)
docs/internals/effect-services.md — auto-discoveredNo actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5be11ca9-dc8c-4637-ac80-30142bed7614
📥 Commits
Reviewing files that changed from the base of the PR and between e22c8804346d4bd45a733803eda826e04e3bbd74 and 55acd4bb0dce27effb3789de8d1d724fdcb4ad25.
📒 Files selected for processing (2)
apps/server/src/device/DeviceToolchain.tsthird-party-licenses.config.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough#
The Device Hub version changes to 0.15.1 in the toolchain and third-party license notice. The agent-device version and tool installation behavior remain unchanged.
Changes#
Device Hub version update
Layer / File(s) Summary Update Device Hub version
apps/server/src/device/DeviceToolchain.ts,third-party-licenses.config.jsonThe toolchain version changes from 0.12.0 to 0.15.1. The expo-device-hub license notice changes from 0.10.1 to 0.15.1. Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Other
Suggested reviewers:
juliusmarmingeMerge Risk: ⚪ Minimal · up to
55acdThe toolchain and license notice agree on version 0.15.1, with no concrete merge-blocking risk identified.
Security Architecture Review#
Security architecture risk: 🔵 Low · up to
55acdThe update preserves the server’s authentication, route restrictions, and loopback launch settings. No introduced security failure was established, but the upgraded hub’s host, token, and endpoint behavior could not be independently compared with the previous release.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
- inferred — The security-sensitive scope is the device-host account executing the external package and the devices accessible through that host. The pin therefore changes executable trust, not merely license metadata; no increase in that authority was established.
Trust Boundaries and Controls
- observed — Attacker-supplied proxy paths are constrained by HTTP and WebSocket allowlists. Forwarding requires environment authentication; device-control sockets and stream-tuning or fold mutations require operate scope, while other permitted requests require read scope. These controls are unchanged by the PR.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation Title check ✅ Passed The title clearly and concisely identifies the server device hub version bump to 0.15.1. Description check ✅ Passed The description covers the problem, change, scope and approval status, compatibility review, verification results, and unchecked areas. It also states that the bump does not replace the client-side fi… Linked Issues check ✅ Passed [ #12229] requires breaking the Android video handshake loop. The PR pinsexpo-device-hubto0.15.1, which the PR description identifies as suppressing redundant same-sizevideo-sessionmessage…Out of Scope Changes check ✅ Passed The diff changes only the expo-device-hubversion pin and its third-party license version. Both changes support the dependency update for [#12229]. The physical-device stream-mode fix is bundled in …Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1… ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.juliusmarminge added labelsmacroscope-review
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — Although limited to two version changes, the PR changes the default external device hub executed by existing device workflows, which can alter runtime device behavior. Human review is warranted for this product-default and external-runtime dependency change.
Notes:
- Diff unchanged. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).