Skip to content
Source
Sign inSign up
pingdotgg/t3code

build: upgrade pnpm to 12 for 4x faster installs #22738

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/22738/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

pnpm 12 installs are much faster. On this repo, a clean install with a warm store dropped from about 11.2s to about 2.4s (3 runs each, vp 1.3.0, vp install --frozen-lockfile).

run 1run 2run 3
pnpm 11.10.015.1s11.2s11.2s
pnpm 12.14.04.7s2.5s2.4s

Changes:

  • Pin packageManager to pnpm@12.14.0. The lockfile now also records the pnpm binary itself with integrity hashes (pnpm 12 does this for the pinned package manager).
  • pnpm 12 links agent skills that dependencies ship into .claude/skills after approval. Three dependencies ship skills (@tanstack/router-plugin, drizzle-kit, expo-sqlite), so every install printed an approval prompt. I denied them in a new permissions block, because we curate our own skills.

Checked:

  • No workspace setting is unknown to pnpm 12 (pnpm 12 fails on unknown settings when the pin matches).
  • The store format stays v11, so existing stores are reused.
  • The mobile workflows' "Expose pnpm" step still finds package_manager/pnpm/<version>/pnpm/bin/pnpm under vp 1.3.0, and Node can spawn it.
  • scripts/build-desktop-artifact.test.ts passes.

Local machines on an older global vp (0.2.x) still work, but they run pnpm 12 through its Node wrapper. Run vp upgrade for the native binary path.

🤖 Generated with Claude Code

Created with Claude Opus 5.5 in Claude Code.

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

      Approvability

      Verdict: Approved at 3bad03f

      Macroscope's review found this PR approvable — This PR only upgrades the repository’s pnpm tooling and controls dependency-provided agent-skill links during installation. The changes affect setup/build behavior rather than product runtime behavior, with no schema or production deployment changes.

      No code changes detected at 98d9bbc. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      CodexLive turn WebSocket decoded20.9 KiB20.9 KiB0 B (0.0%)29.3 KiB✅
      CodexLive turn messages220 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.2 KiB21.2 KiB0 B (0.0%)29.3 KiB✅
      ClaudeLive turn messages220 (0.0%)8✅

      Baseline: 618761a · PR result: 98d9bbc · 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.

    3. Review in Change Stack →
      ✨ Finishing Touches
      🧪 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.