Skip to content
Source
Sign inSign up
pingdotgg/t3code

chore(server): bump device hub to 0.15.1 #16098

Closedgustavohariel(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/16098/headopened View on GitHub

Problem

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-screenshot default instead of scrcpy (expo/expo-device-hub#209).
  • The hub announces video-session on 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 only POST /api/screenshot. T3 already posts (DeviceService.ts, client-runtime/src/device/screenshot.ts).
  • 0.14.0: an ungated preview answers only for localhost and IP Host headers. T3 spawns the hub on 127.0.0.1 and the proxy drops the incoming Host header, so requests go out with the loopback origin.
  • 0.15.0: --require-token and EXPO_DEVICE_HUB_EMULATOR_EXTRA_ARGS are opt-in and unused here.
  • 0.13.0 and 0.14.0 network capture and the serve-sim sync are not used by T3.
  • Runtime dependencies are identical between 0.12.0 and 0.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/device in apps/server: 11 files, 80 tests passed.
  • tsc --noEmit in apps/server exits 0 (only existing suggestion-level diagnostics).
  • node scripts/sync-third-party-license-notices.ts --check exits 0.
  • Installed expo-device-hub@0.15.1 with npm install into 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-mode reports "mode":"scrcpy" and availableModes:["scrcpy"], POST /vendor/serve-emu/api/screenshot returns 200, and GET returns 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

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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).
    3. Review in Change Stack →

      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-discovered

      No 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.ts
      • third-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.json
      The 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: juliusmarminge

      Merge Risk: ⚪ Minimal · up to 55acd

      The 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 55acd

      The 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 nameStatusExplanation
      Title check✅ PassedThe title clearly and concisely identifies the server device hub version bump to 0.15.1.
      Description check✅ PassedThe 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 pins expo-device-hub to 0.15.1, which the PR description identifies as suppressing redundant same-size video-session message…
      Out of Scope Changes check✅ PassedThe diff changes only the expo-device-hub version 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✅ PassedNo 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.
    4. juliusmarminge added labelsmacroscope-review

Sign in to join this conversation.