Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): sync device tool license versions with installer pins #18121

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/18121/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Problem

The third-party license notices for agent-device and expo-device-hub could drift from the versions installed by device support. Their versions were maintained separately in the license config and installer.

Change

Move both device tool versions into shared pins. The installer and license manifest generator now read those pins, and the license config keeps the package names without duplicate versions. Add coverage for web and mobile manifests and document where the versions come from.

Scope and approval

This is a focused maintenance fix: the license notices should report the same versions as the existing installer pins. It does not change device support behavior or add a user-facing option.

Verification

Added focused coverage that checks both device tool notice versions against the shared pins in web and mobile manifests, while confirming explicitly configured custom notice versions remain unchanged. Tests were not run.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge added labelsmacroscope-review

    3. Approvability

      Verdict: Approved at c9d53f1

      Macroscope's review found this PR approvable — This is a small, localized consistency fix that centralizes unchanged device-tool pins and corrects build-time license metadata, with focused test coverage. Existing installation behavior and unrelated license entries remain unchanged.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB4.9 KiB−23 B (−0.5%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB−23 B (−1.9%)2.0 KiB✅
      CodexLive turn WebSocket decoded20.9 KiB20.8 KiB−41 B (−0.2%)29.3 KiB✅
      CodexLive turn messages21−1 (−50.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB+24 B (+0.5%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB+24 B (+2.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.2 KiB21.2 KiB+41 B (+0.2%)29.3 KiB✅
      ClaudeLive turn messages12+1 (+100.0%)8✅

      Baseline: 7808950 · PR result: c9d53f1 · Source CI: success

      Scenario and decoded snapshot size

      10 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.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Team
      • Run ID: 21be6290-9f2e-4475-b894-6192b0fa9572

      📥 Commits

      Reviewing files that changed from the base of the PR and between cf821991863d5e374f698cb45bcef4759d3a0b7f and c9d53f106e174339dcfa30bc5344f845d9c8f749.


      📒 Files selected for processing (7)
      • apps/server/src/device/DeviceToolchain.ts
      • docs/internals/open-source-licenses.md
      • packages/shared/package.json
      • packages/shared/src/deviceToolVersions.ts
      • scripts/lib/third-party-licenses.test.ts
      • scripts/lib/third-party-licenses.ts
      • third-party-licenses.config.json

      💤 Files with no reviewable changes (1)
      • 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 server device installer and third-party license generator now use shared version pins for agent-device and expo-device-hub. The license configuration removes those version fields and the @connectrpc/connect-node override.

      Changes

      Device tool versions and license notices

      Layer / File(s)Summary
      Define and use shared device version pins
      packages/shared/src/deviceToolVersions.ts, packages/shared/package.json, apps/server/src/device/DeviceToolchain.ts
      A shared immutable map defines versions for agent-device and expo-device-hub. The server installer reads its versions from this map.
      Apply shared pins to license notices
      scripts/lib/third-party-licenses.ts, third-party-licenses.config.json, scripts/lib/third-party-licenses.test.ts, docs/internals/open-source-licenses.md
      Custom device-tool notices use the shared versions and otherwise retain the configured-version fallback. Tests cover web and mobile manifests and an explicitly versioned vendored asset. The config removes the device-tool version fields and the @connectrpc/connect-node override. Documentation describes the shared pins.

      Priority: ⬇️ Low

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Bug fix

      Suggested reviewers: juliusmarminge


      Merge Risk: ⚪ Minimal · up to c9d53

      No actionable merge-blocking risk was established; the change is ready for normal checks.

      Pre-merge checks | Passed 4
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Title checkPassedThe title clearly and concisely describes the main change: synchronizing device tool license versions with installer pins. It uses an appropriate conventional commit format.
      Description checkPassedThe description covers the problem, change, scope, and verification. It explains why the focused maintenance fix does not require broader approval and clearly states that tests were not run.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.

      ✨ Finishing Touches
      📝 Generate docstrings
      • Commit to this branch
      • Create a new PR

      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR

      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.

Sign in to join this conversation.