fix(server): sync device tool license versions with installer pins #18121
main fromrefs/pull/18121/head·merged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubProblem#
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
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
Approvability#
Verdict: Approved at
c9d53f1Macroscope'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).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
mainmeasurement shown below.Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 4.9 KiB −23 B (−0.5%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB −23 B (−1.9%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 20.9 KiB 20.8 KiB −41 B (−0.2%) 29.3 KiB ✅ Codex Live turn messages 2 1 −1 (−50.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB +24 B (+0.5%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB +24 B (+2.0%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB +41 B (+0.2%) 29.3 KiB ✅ Claude Live turn messages 1 2 +1 (+100.0%) 8 ✅ Baseline:
7808950· PR result:c9d53f1· Source CI: successScenario 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.
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.tsdocs/internals/open-source-licenses.mdpackages/shared/package.jsonpackages/shared/src/deviceToolVersions.tsscripts/lib/third-party-licenses.test.tsscripts/lib/third-party-licenses.tsthird-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-deviceandexpo-device-hub. The license configuration removes those version fields and the@connectrpc/connect-nodeoverride.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.tsA shared immutable map defines versions for agent-deviceandexpo-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.mdCustom 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-nodeoverride. 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
c9d53No actionable merge-blocking risk was established; the change is ready for normal checks.
Pre-merge checks |
4-
✅ Passed checks (4 passed)
-
Check name Status Explanation Title check The title clearly and concisely describes the main change: synchronizing device tool license versions with installer pins. It uses an appropriate conventional commit format. Description check The 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 check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check 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.-
Yash-Singh1(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes