Skip to content

fix(pnpr): forward client resolver settings - #13730

Merged
zkochan merged 2 commits into
pnpm:mainfrom
edwardlong-ctrl:fix/pnpr-13389-resolve-settings
Aug 17, 2026
Merged

zkochan merged 2 commits into
pnpm:mainfrom
edwardlong-ctrl:fix/pnpr-13389-resolve-settings

Conversation

@edwardlong-ctrl

@edwardlong-ctrl edwardlong-ctrl commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update-capable pnpr requests did not carry the client's current
autoInstallPeers, dedupePeers, or excludeLinksFromLockfile values. The
server therefore resolved with its defaults even when the user had just changed
one of those settings.

This change:

  • adds the three settings to ResolveRequest as optional booleans, preserving
    the difference between an omitted field and explicit false;
  • forwards them through both the TypeScript pnpm path and the Rust pacquet path;
  • applies per-setting precedence of request value, then frozen input-lockfile
    value, then the existing server default; and
  • keys resolver-config interning and whole-resolution caching on only the three
    effective booleans, keeping the interning key bounded.

Focused tests cover explicit true and false, old-client omission, frozen
compatibility, both client/CLI call chains, cache separation, and a real
update-capable pacquet install followed by a frozen replay.

Fixes #13389.

Squash Commit Body

Carry the client's current autoInstallPeers, dedupePeers, and
excludeLinksFromLockfile values through both pnpr client implementations.

Prefer request values over frozen input-lockfile values while preserving the
legacy fallback for omitted fields, and separate cached resolver state by the
three effective booleans.

Fixes pnpm/pnpm#13389.

Validation

  • pnpm --filter @pnpm/pnpr.client test test/resolveViaPnprServer.test.ts
  • focused deps-installer Jest tests for resolver settings and workspace metadata
  • affected TypeScript package lints and pnpm --filter pnpm run compile
  • focused pnpr, pacquet pnpr-client, and pacquet CLI nextest suites
  • just ready (8,122 tests, Clippy with warnings denied)
  • just dylint
  • RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --workspace --all-features
  • taplo format --check
  • git diff --check

Checklist

  • I checked the referenced issue and verified that none of the PRs already
    linked to it solves it.
  • The change is implemented in both the TypeScript CLI and the Rust pnpm/
    port.
  • Added a changeset for the affected published packages.
  • Added or updated tests.

Written by an agent (OpenAI Codex, gpt-5.6-sol).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Bug Fixes

    • pnpr installations now honor automatic peer installation, peer deduplication, and link-handling settings.
    • Resolver behavior consistently applies these settings for frozen and updating installs.
    • Lockfiles and resolution results now reflect the active configuration.
    • Explicitly disabled settings are preserved, while unspecified options retain existing behavior.
  • Tests

    • Added coverage for setting propagation, request serialization, resolver behavior, caching, and frozen lockfile installations.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 710c1acb-c2ec-4bbd-b1a9-ebf80ac6a8c0

📥 Commits

Reviewing files that changed from the base of the PR and between f235ca7 and 3b71355.

📒 Files selected for processing (2)
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm11/installing/deps-installer/src/install/index.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm11/installing/deps-installer/src/install/index.ts

📝 Walkthrough

Walkthrough

pnpr now forwards autoInstallPeers, dedupePeers, and excludeLinksFromLockfile from clients to the resolver. The resolver applies request, lockfile, or default precedence and includes effective settings in configuration interning and cache keys.

Changes

pnpr resolver settings

Layer / File(s) Summary
Effective resolver settings
pnpr/crates/pnpr/src/resolver/protocol.rs, pnpr/crates/pnpr/src/resolver.rs, pnpr/crates/pnpr/src/resolver/tests.rs
ResolveRequest accepts optional resolver settings. The resolver applies request, frozen-lockfile, or default values and includes effective settings in generated configurations and cache keys.
Rust client and CLI forwarding
pnpm/crates/pnpr-client/src/lib.rs, pnpm/crates/cli/src/cli_args/install.rs, pnpm/crates/pnpr-client/src/tests.rs, pnpm/crates/pnpr-client/tests/integration.rs
The Rust client and CLI forward optional settings. Tests verify serialization of set values and omission of unset values.
TypeScript client and installer forwarding
pnpr/client/src/resolveViaPnprServer.ts, pnpm11/installing/deps-installer/src/install/index.ts, pnpr/client/test/resolveViaPnprServer.test.ts, pnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.ts, pnpm/crates/cli/tests/suite/pnpr_install.rs, .changeset/pnpr-resolve-settings.md
The TypeScript client and installer forward the settings. Tests cover request serialization, workspace metadata, and end-to-end lockfile behavior.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: ⚪ Minimal · up to 3b713

This change forwards the client’s resolver settings so update-capable requests honor current configuration while preserving cache separation; no actionable merge-blocking risk remains.

Sequence Diagram(s)

sequenceDiagram
  participant Installer
  participant pnprClient
  participant pnprResolver
  participant PacquetConfiguration
  Installer->>pnprClient: send resolver settings
  pnprClient->>pnprResolver: serialize settings in ResolveRequest
  pnprResolver->>pnprResolver: resolve effective settings
  pnprResolver->>PacquetConfiguration: apply settings and build cache key
  PacquetConfiguration-->>Installer: return resolved lockfile
Loading

Assessment against linked issues

Objective Addressed Explanation
Add the three optional settings to ResolveRequest [#13389] ✅
Forward the settings from both the TypeScript client and pnpr-client [#13389] ✅
Prefer request values over frozen lockfile values and include them in bounded configuration keys [#13389] ✅
Preserve legacy behavior when clients omit the settings [#13389] ✅
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@codecov-commenter

codecov-commenter commented Aug 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.15%. Comparing base (cf57dcb) to head (32a06f6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   pnpm/pnpm#13730   +/-   ##
=======================================
  Coverage   88.15%   88.15%           
=======================================
  Files         644      644           
  Lines      106363   106377   +14     
=======================================
+ Hits        93760    93774   +14     
  Misses      12603    12603           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 32a06f6b353e

Regular scenarios report direct and pnpr installs. The peer-heavy resolver scenario compares current Rust, main Rust, and TypeScript pnpm. Bencher consumes pacquet@HEAD and pnpr@HEAD.

The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time).

Scenario: Isolated linker: fresh restore, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.363 ± 0.115 2.245 2.597 1.61 ± 0.19
pacquet@main 2.491 ± 0.172 2.255 2.701 1.70 ± 0.22
pnpr@HEAD 1.489 ± 0.121 1.308 1.639 1.02 ± 0.14
pnpr@main 1.467 ± 0.161 1.284 1.687 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.36338860444,
      "stddev": 0.11529625368934751,
      "median": 2.30285922694,
      "user": 1.12976606,
      "system": 1.34365212,
      "min": 2.24458435444,
      "max": 2.5974366754400005
    },
    {
      "command": "pacquet@main",
      "mean": 2.49109797854,
      "stddev": 0.17242739569754173,
      "median": 2.5217564024400003,
      "user": 1.1705279599999998,
      "system": 1.30485742,
      "min": 2.25511933144,
      "max": 2.70125810144
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.4891999234400002,
      "stddev": 0.12141119522647996,
      "median": 1.53279430894,
      "user": 1.05031686,
      "system": 1.2228342199999997,
      "min": 1.30782773544,
      "max": 1.6385997434400001
    },
    {
      "command": "pnpr@main",
      "mean": 1.46712203624,
      "stddev": 0.16120771203108125,
      "median": 1.45177577794,
      "user": 1.08096286,
      "system": 1.20507052,
      "min": 1.28435580644,
      "max": 1.68691406544
    }
  ]
}

Scenario: Isolated linker: fresh restore, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 266.3 ± 10.3 250.4 283.8 1.01 ± 0.05
pacquet@main 262.4 ± 6.7 256.1 278.3 1.00
pnpr@HEAD 265.5 ± 7.7 254.3 276.4 1.01 ± 0.04
pnpr@main 336.5 ± 80.2 253.9 465.0 1.28 ± 0.31
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.26629783770000004,
      "stddev": 0.010277708178005161,
      "median": 0.2641379875,
      "user": 0.19408026,
      "system": 0.48819814,
      "min": 0.250439436,
      "max": 0.283792213
    },
    {
      "command": "pacquet@main",
      "mean": 0.2623714348,
      "stddev": 0.006664523389986073,
      "median": 0.2610594625,
      "user": 0.20563875999999998,
      "system": 0.46730804,
      "min": 0.256074194,
      "max": 0.278275218
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.26545711499999997,
      "stddev": 0.007700393641859002,
      "median": 0.263293486,
      "user": 0.20468186,
      "system": 0.46093984,
      "min": 0.254344287,
      "max": 0.276438559
    },
    {
      "command": "pnpr@main",
      "mean": 0.3364560797,
      "stddev": 0.08021962717171773,
      "median": 0.322466037,
      "user": 0.27616606,
      "system": 0.57007544,
      "min": 0.253917701,
      "max": 0.465025742
    }
  ]
}

Scenario: Isolated linker: repeat install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 6.3 ± 0.3 5.9 8.3 1.00
pacquet@main 6.3 ± 0.3 5.8 8.6 1.01 ± 0.06
pnpr@HEAD 6.4 ± 0.2 5.9 7.0 1.02 ± 0.06
pnpr@main 6.4 ± 0.2 6.0 7.2 1.03 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.006267862320476191,
      "stddev": 0.0002765072416096143,
      "median": 0.006223644380000001,
      "user": 0.004466528809523806,
      "system": 0.0018852890476190466,
      "min": 0.00593209538,
      "max": 0.00826800538
    },
    {
      "command": "pacquet@main",
      "mean": 0.006345502035612247,
      "stddev": 0.00027059815372832406,
      "median": 0.0063073838800000006,
      "user": 0.004282607040816329,
      "system": 0.002141041632653061,
      "min": 0.00584765538,
      "max": 0.00857130838
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.006423518323589745,
      "stddev": 0.00020540172589601362,
      "median": 0.006411514880000001,
      "user": 0.004144569743589745,
      "system": 0.0023581055384615398,
      "min": 0.00593008038,
      "max": 0.007004109380000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.00643622666142076,
      "stddev": 0.00020976622571708035,
      "median": 0.00645310338,
      "user": 0.004305057595628416,
      "system": 0.0022119043715847,
      "min": 0.0059592763800000005,
      "max": 0.007185031380000001
    }
  ]
}

Scenario: Isolated linker: repeat install, cold cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 33.7 ± 0.9 32.3 36.1 5.18 ± 0.25
pacquet@main 6.6 ± 0.3 5.7 8.1 1.01 ± 0.06
pnpr@HEAD 6.6 ± 0.2 5.9 7.1 1.01 ± 0.05
pnpr@main 6.5 ± 0.3 6.0 8.0 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.03368412123443039,
      "stddev": 0.000852720669188169,
      "median": 0.033478831880000004,
      "user": 0.030065976962025325,
      "system": 0.0036363189873417734,
      "min": 0.03231286188,
      "max": 0.03606274188
    },
    {
      "command": "pacquet@main",
      "mean": 0.006558939961871348,
      "stddev": 0.00030090069703808426,
      "median": 0.00656767388,
      "user": 0.004426107134502921,
      "system": 0.002162529824561402,
      "min": 0.00572064488,
      "max": 0.00806959988
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.006556011790216718,
      "stddev": 0.00021946058018790333,
      "median": 0.00656290388,
      "user": 0.00419251907120743,
      "system": 0.0023967560371517017,
      "min": 0.00590414088,
      "max": 0.007139993880000001
    },
    {
      "command": "pnpr@main",
      "mean": 0.006499524468059704,
      "stddev": 0.00026295242284028926,
      "median": 0.00646960888,
      "user": 0.0044894438805970095,
      "system": 0.002045590447761194,
      "min": 0.005963993880000001,
      "max": 0.00800168288
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + cold store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.719 ± 0.019 2.691 2.739 1.73 ± 0.17
pacquet@main 2.727 ± 0.016 2.703 2.751 1.74 ± 0.17
pnpr@HEAD 1.589 ± 0.170 1.375 1.820 1.01 ± 0.15
pnpr@main 1.572 ± 0.151 1.377 1.791 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.71923602002,
      "stddev": 0.018560413747144427,
      "median": 2.7226431947200003,
      "user": 1.41562308,
      "system": 1.2497106999999998,
      "min": 2.6910725227200003,
      "max": 2.73943854572
    },
    {
      "command": "pacquet@main",
      "mean": 2.72709973012,
      "stddev": 0.01581804705360625,
      "median": 2.72845210822,
      "user": 1.48784388,
      "system": 1.2178003999999998,
      "min": 2.7027979597200003,
      "max": 2.7513021387200003
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.58920546212,
      "stddev": 0.17028090003430257,
      "median": 1.5921875887199999,
      "user": 0.9930011799999999,
      "system": 1.2541927999999998,
      "min": 1.37505735872,
      "max": 1.81968661972
    },
    {
      "command": "pnpr@main",
      "mean": 1.57160148682,
      "stddev": 0.1506342930425908,
      "median": 1.5803082337199998,
      "user": 1.0372320800000001,
      "system": 1.2137604999999998,
      "min": 1.37724023272,
      "max": 1.79062392572
    }
  ]
}

Scenario: Isolated linker: fresh install, hot cache + hot store

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 436.2 ± 14.1 414.9 457.5 1.42 ± 0.06
pacquet@main 430.1 ± 19.1 411.2 468.6 1.40 ± 0.07
pnpr@HEAD 306.5 ± 7.5 292.2 322.6 1.00
pnpr@main 314.3 ± 8.4 299.8 328.5 1.03 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.4362207003600001,
      "stddev": 0.014073751663659803,
      "median": 0.43629087956,
      "user": 0.49652877999999995,
      "system": 0.65727722,
      "min": 0.41487390156000004,
      "max": 0.45753805756000004
    },
    {
      "command": "pacquet@main",
      "mean": 0.43007126776,
      "stddev": 0.019059051198220392,
      "median": 0.42422449556,
      "user": 0.5110288799999999,
      "system": 0.6274461199999999,
      "min": 0.41117586956,
      "max": 0.46857944456000006
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.30652238086000005,
      "stddev": 0.007466747424177805,
      "median": 0.30635352556,
      "user": 0.18565747999999999,
      "system": 0.47337951999999994,
      "min": 0.29215645956,
      "max": 0.32258639856000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.31433272426000003,
      "stddev": 0.008360209679538095,
      "median": 0.31485382656000005,
      "user": 0.19713608,
      "system": 0.49085512,
      "min": 0.29984637756000004,
      "max": 0.32846310956
    }
  ]
}

Scenario: Isolated linker: fresh install, cold cache + hot store

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 1.876 ± 0.019 1.845 1.904 6.03 ± 0.22
pacquet@main 1.864 ± 0.013 1.843 1.879 5.99 ± 0.21
pnpr@HEAD 0.311 ± 0.011 0.293 0.325 1.00
pnpr@main 0.313 ± 0.008 0.305 0.331 1.01 ± 0.04
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 1.8762553485000002,
      "stddev": 0.019083202466000235,
      "median": 1.8779525736000002,
      "user": 0.7201359399999999,
      "system": 0.7409747799999999,
      "min": 1.8452562446,
      "max": 1.9042595226
    },
    {
      "command": "pacquet@main",
      "mean": 1.8643326147000003,
      "stddev": 0.012756490381709623,
      "median": 1.8704006156,
      "user": 0.72987574,
      "system": 0.7079825799999998,
      "min": 1.8428211146000002,
      "max": 1.8787299906000001
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.3110727076,
      "stddev": 0.010824037328656583,
      "median": 0.31301334160000005,
      "user": 0.20304344,
      "system": 0.47135217999999995,
      "min": 0.2934817516,
      "max": 0.3250584506
    },
    {
      "command": "pnpr@main",
      "mean": 0.3129652542,
      "stddev": 0.007984118677046436,
      "median": 0.3117835786,
      "user": 0.19976003999999997,
      "system": 0.4895151799999999,
      "min": 0.3047651796,
      "max": 0.3312030836
    }
  ]
}

Scenario: Isolated linker: fresh resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 215.1 ± 16.8 185.6 235.3 2.32 ± 0.18
pacquet@main 213.2 ± 19.6 189.0 255.8 2.30 ± 0.21
pnpr@HEAD 93.6 ± 1.7 90.7 97.7 1.01 ± 0.02
pnpr@main 92.7 ± 1.2 90.8 96.0 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.21507335721,
      "stddev": 0.016782575573077795,
      "median": 0.22047861046000003,
      "user": 0.14330074,
      "system": 0.07075288333333334,
      "min": 0.18562269546000001,
      "max": 0.23532559146
    },
    {
      "command": "pacquet@main",
      "mean": 0.21318785567428572,
      "stddev": 0.019642644661184202,
      "median": 0.20806821796000002,
      "user": 0.16105052571428574,
      "system": 0.055632657142857145,
      "min": 0.18901513946,
      "max": 0.25582494146
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.09361430236322581,
      "stddev": 0.0016581000009029284,
      "median": 0.09327929446000001,
      "user": 0.027585272258064515,
      "system": 0.009197664516129031,
      "min": 0.09069517346000001,
      "max": 0.09769644046
    },
    {
      "command": "pnpr@main",
      "mean": 0.09271288768580646,
      "stddev": 0.001223424892156408,
      "median": 0.09241674846,
      "user": 0.026128239999999997,
      "system": 0.009188148387096775,
      "min": 0.09079318846000001,
      "max": 0.09595760246000001
    }
  ]
}

Scenario: Isolated linker: peer-heavy resolve, hot cache, offline

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 523.4 ± 113.5 407.8 711.4 1.00
pacquet@main 566.7 ± 86.8 456.6 698.2 1.08 ± 0.29
pnpm@HEAD 2933.6 ± 48.5 2867.9 2994.1 5.61 ± 1.22
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.5233557884666667,
      "stddev": 0.11348185107434665,
      "median": 0.48023011080000005,
      "user": 0.4912328555555555,
      "system": 0.10625222222222222,
      "min": 0.4078133498,
      "max": 0.7114462358
    },
    {
      "command": "pacquet@main",
      "mean": 0.5666528504666668,
      "stddev": 0.0867867096264295,
      "median": 0.5710626538,
      "user": 0.5290071888888889,
      "system": 0.10676433333333334,
      "min": 0.45662715080000005,
      "max": 0.6981896288
    },
    {
      "command": "pnpm@HEAD",
      "mean": 2.9335580511333337,
      "stddev": 0.04853537516753937,
      "median": 2.9289759418,
      "user": 4.4769783,
      "system": 0.2680206666666667,
      "min": 2.8679264278,
      "max": 2.9941075908
    }
  ]
}

Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.400 ± 0.130 4.280 4.648 1.28 ± 0.06
pacquet@main 4.457 ± 0.173 4.287 4.711 1.30 ± 0.07
pnpr@HEAD 3.471 ± 0.134 3.350 3.698 1.01 ± 0.05
pnpr@main 3.435 ± 0.127 3.346 3.754 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.400406798880001,
      "stddev": 0.12997174198688707,
      "median": 4.35228071778,
      "user": 1.29091976,
      "system": 1.3944633999999998,
      "min": 4.28020067628,
      "max": 4.64796414928
    },
    {
      "command": "pacquet@main",
      "mean": 4.45655390798,
      "stddev": 0.1734628467032984,
      "median": 4.364503256280001,
      "user": 1.29055596,
      "system": 1.3635945999999999,
      "min": 4.286918243280001,
      "max": 4.71112143028
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.4705769011800003,
      "stddev": 0.13395981718653246,
      "median": 3.4342812382800005,
      "user": 1.15868846,
      "system": 1.3394976,
      "min": 3.34994701928,
      "max": 3.6982632632800003
    },
    {
      "command": "pnpr@main",
      "mean": 3.43499537018,
      "stddev": 0.12690138881144744,
      "median": 3.3880888752800002,
      "user": 1.2168610599999998,
      "system": 1.3156994000000002,
      "min": 3.34578166128,
      "max": 3.75439758628
    }
  ]
}

Scenario: GVS linker: fresh restore, hot cache + hot store

Same install as the isolated fresh-restore hot/hot scenario, into the shared virtual store — the layout pnpm 12 installs into by default. Comparable to that scenario head-to-head.

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 160.6 ± 4.3 154.1 171.0 1.02 ± 0.05
pacquet@main 158.2 ± 6.0 151.6 175.5 1.00
pnpr@HEAD 171.1 ± 3.7 165.8 179.9 1.08 ± 0.05
pnpr@main 170.6 ± 3.0 164.4 175.4 1.08 ± 0.05
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.1606454960658824,
      "stddev": 0.004320993143165088,
      "median": 0.16095724536,
      "user": 0.18612981999999997,
      "system": 0.18661594941176474,
      "min": 0.15410127836,
      "max": 0.17099202936
    },
    {
      "command": "pacquet@main",
      "mean": 0.15823601304749998,
      "stddev": 0.005986547987909033,
      "median": 0.15692287386,
      "user": 0.18008781999999995,
      "system": 0.18380785749999998,
      "min": 0.15163324836,
      "max": 0.17549528336
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.17107930442666666,
      "stddev": 0.003670177210590525,
      "median": 0.17157096036,
      "user": 0.1933495533333333,
      "system": 0.19095655333333336,
      "min": 0.16580467636000001,
      "max": 0.17992849536
    },
    {
      "command": "pnpr@main",
      "mean": 0.17057477796,
      "stddev": 0.0030167665013048997,
      "median": 0.17062796436,
      "user": 0.19260848666666666,
      "system": 0.19106682,
      "min": 0.16440746536,
      "max": 0.17544524836
    }
  ]
}

@github-actions

github-actions Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13730
Testbedpacquet

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
isolated-linker.repeat-install.cold-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
32.31 ms
(+433.78%)Baseline: 6.05 ms
7.26 ms
(444.82%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
gvs-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
154.10 ms
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,691.07 ms
(-3.72%)Baseline: 2,794.96 ms
3,353.96 ms
(80.24%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,845.26 ms
(-4.31%)Baseline: 1,928.45 ms
2,314.14 ms
(79.74%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
414.87 ms
(-11.61%)Baseline: 469.38 ms
563.26 ms
(73.66%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
185.62 ms
(-16.35%)Baseline: 221.91 ms
266.29 ms
(69.71%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,244.58 ms
(-6.69%)Baseline: 2,405.48 ms
2,886.57 ms
(77.76%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,280.20 ms
(-4.61%)Baseline: 4,487.07 ms
5,384.48 ms
(79.49%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
250.44 ms
(-11.45%)Baseline: 282.83 ms
339.39 ms
(73.79%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
407.81 ms
(-19.71%)Baseline: 507.91 ms
609.50 ms
(66.91%)
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
32.31 ms
(+433.78%)Baseline: 6.05 ms
7.26 ms
(444.82%)

isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
5.93 ms
(-3.70%)Baseline: 6.16 ms
7.39 ms
(80.25%)
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13730
Testbedpnpr

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds flag.

Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,431.99 ms
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
289.99 ms
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
294.04 ms
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
⚠️ NO THRESHOLD
85.51 ms
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
⚠️ NO THRESHOLD
1,364.90 ms
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
⚠️ NO THRESHOLD
3,438.49 ms
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
⚠️ NO THRESHOLD
261.25 ms
🐰 View full continuous benchmarking report in Bencher

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@greptile-apps

greptile-apps Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (7): Last reviewed commit: "refactor(pnpr): tighten the forwarded re..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
pnpr/client/test/resolveViaPnprServer.test.ts (1)

59-74: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use distinct setting combinations in the serialization test.

Lines 62-64 assign the same value to every field. A serializer that swaps two fields would still pass. Use several combinations so each field is independently verified with both true and false.

Proposed test update
-test.each([true, false])('serializes current lockfile resolution settings set to %s', async (settingValue) => {
+test.each([
+  { autoInstallPeers: true, dedupePeers: true, excludeLinksFromLockfile: false },
+  { autoInstallPeers: true, dedupePeers: false, excludeLinksFromLockfile: true },
+  { autoInstallPeers: false, dedupePeers: true, excludeLinksFromLockfile: true },
+])('serializes current lockfile resolution settings', async (settings) => {
   const options = {
     dependencies: {},
-    autoInstallPeers: settingValue,
-    dedupePeers: settingValue,
-    excludeLinksFromLockfile: settingValue,
+    ...settings,
   }
 
   const request = await captureResolveRequest(options)
 
-  expect(request).toMatchObject({
-    autoInstallPeers: settingValue,
-    dedupePeers: settingValue,
-    excludeLinksFromLockfile: settingValue,
-  })
+  expect(request).toMatchObject(settings)
 })

As per path instructions, tests must prove explicit true/false serialization.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpr/client/test/resolveViaPnprServer.test.ts` around lines 59 - 74, Update
the test.each cases in the serialization test to use multiple distinct
combinations of autoInstallPeers, dedupePeers, and excludeLinksFromLockfile,
ensuring each field is independently exercised with both true and false values.
Keep the request assertions tied to the per-case values so swapped serializer
fields fail the test.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@pnpr/client/test/resolveViaPnprServer.test.ts`:
- Around line 59-74: Update the test.each cases in the serialization test to use
multiple distinct combinations of autoInstallPeers, dedupePeers, and
excludeLinksFromLockfile, ensuring each field is independently exercised with
both true and false values. Keep the request assertions tied to the per-case
values so swapped serializer fields fail the test.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c43383ed-f2ee-4c89-b9e8-3acf7eded9cb

📥 Commits

Reviewing files that changed from the base of the PR and between 4e68132 and f6865d8.

📒 Files selected for processing (14)
  • .changeset/pnpr-resolve-settings.md
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/cli/src/cli_args/install/tests.rs
  • pnpm/crates/cli/tests/suite/pnpr_install.rs
  • pnpm/crates/pnpr-client/src/lib.rs
  • pnpm/crates/pnpr-client/src/tests.rs
  • pnpm/crates/pnpr-client/tests/integration.rs
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm11/installing/deps-installer/test/install/pnprResolveSettings.ts
  • pnpr/client/src/resolveViaPnprServer.ts
  • pnpr/client/test/resolveViaPnprServer.test.ts
  • pnpr/crates/pnpr/src/resolver.rs
  • pnpr/crates/pnpr/src/resolver/protocol.rs
  • pnpr/crates/pnpr/src/resolver/tests.rs

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 8, 2026
@edwardlong-ctrl
edwardlong-ctrl marked this pull request as draft August 8, 2026 14:11
@edwardlong-ctrl
edwardlong-ctrl force-pushed the fix/pnpr-13389-resolve-settings branch from f6865d8 to cf30942 Compare August 8, 2026 14:50
@edwardlong-ctrl
edwardlong-ctrl marked this pull request as ready for review August 9, 2026 15:37
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@edwardlong-ctrl
edwardlong-ctrl force-pushed the fix/pnpr-13389-resolve-settings branch from cf30942 to 722daa8 Compare August 11, 2026 18:02
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 11, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
.changeset/pnpr-resolve-settings.md (1)

9-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Clarify the user-facing product name.

Describe this as a pnpm install that uses pnpr, rather than a “pnpr install.” This makes the release note clear about the affected executable and server.

Proposed wording
-Fixed pnpr installs to resolve with the client's `autoInstallPeers`, `dedupePeers`, and `excludeLinksFromLockfile` settings [pnpm/pnpm#13389](https://github.com/pnpm/pnpm/issues/13389).
+Fixed `pnpm` installs using pnpr to honor the client's `autoInstallPeers`, `dedupePeers`, and `excludeLinksFromLockfile` settings [pnpm/pnpm#13389](https://github.com/pnpm/pnpm/issues/13389).

Based on learnings: user-facing release-note prose should use pnpm for the published executable and describe Rust-server behavior separately. As per path instructions: changesets must accurately describe the release impact.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.changeset/pnpr-resolve-settings.md at line 9, Update the changeset wording
to describe a pnpm install using pnpr, rather than a “pnpr install.” Identify
pnpm as the user-facing executable and describe the pnpr server behavior
separately while preserving the referenced settings and issue link.

Sources: Path instructions, Learnings

pnpr/client/test/resolveViaPnprServer.test.ts (1)

59-64: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Cover partially specified settings.

Lines 59-64 always provide all three settings. A serializer that adds false for omitted sibling settings would pass this table but break the optional-field protocol. Add one-field cases and assert that the other two keys are absent.

As per coding guidelines, preserve explicit false values and omit unset optional values. As per path instructions, preserve compatibility when optional fields are omitted.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pnpr/client/test/resolveViaPnprServer.test.ts` around lines 59 - 64, Extend
the serializes current lockfile resolution settings independently test cases to
include one-setting inputs for autoInstallPeers, dedupePeers, and
excludeLinksFromLockfile, asserting the two unspecified keys are absent.
Preserve explicit false values while ensuring omitted optional settings are not
serialized, maintaining compatibility with the optional-field protocol.

Sources: Coding guidelines, Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.changeset/pnpr-resolve-settings.md:
- Line 9: Update the changeset wording to describe a pnpm install using pnpr,
rather than a “pnpr install.” Identify pnpm as the user-facing executable and
describe the pnpr server behavior separately while preserving the referenced
settings and issue link.

In `@pnpr/client/test/resolveViaPnprServer.test.ts`:
- Around line 59-64: Extend the serializes current lockfile resolution settings
independently test cases to include one-setting inputs for autoInstallPeers,
dedupePeers, and excludeLinksFromLockfile, asserting the two unspecified keys
are absent. Preserve explicit false values while ensuring omitted optional
settings are not serialized, maintaining compatibility with the optional-field
protocol.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 2e056f6f-6d86-40bc-8838-4a812e4532f7

📥 Commits

Reviewing files that changed from the base of the PR and between efb3d74 and 722daa8.

📒 Files selected for processing (13)
  • .changeset/pnpr-resolve-settings.md
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/cli/tests/suite/pnpr_install.rs
  • pnpm/crates/pnpr-client/src/lib.rs
  • pnpm/crates/pnpr-client/src/tests.rs
  • pnpm/crates/pnpr-client/tests/integration.rs
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.ts
  • pnpr/client/src/resolveViaPnprServer.ts
  • pnpr/client/test/resolveViaPnprServer.test.ts
  • pnpr/crates/pnpr/src/resolver.rs
  • pnpr/crates/pnpr/src/resolver/protocol.rs
  • pnpr/crates/pnpr/src/resolver/tests.rs
🚧 Files skipped from review as they are similar to previous changes (8)
  • pnpm11/installing/deps-installer/test/install/pnprWorkspaceMetadata.ts
  • pnpm11/installing/deps-installer/src/install/index.ts
  • pnpm/crates/cli/src/cli_args/install.rs
  • pnpm/crates/pnpr-client/src/tests.rs
  • pnpr/client/src/resolveViaPnprServer.ts
  • pnpm/crates/pnpr-client/tests/integration.rs
  • pnpr/crates/pnpr/src/resolver.rs
  • pnpm/crates/pnpr-client/src/lib.rs

@edwardlong-ctrl
edwardlong-ctrl force-pushed the fix/pnpr-13389-resolve-settings branch from 722daa8 to f235ca7 Compare August 11, 2026 20:04
@greptile-apps
greptile-apps Bot dismissed their stale review August 11, 2026 20:05

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 11, 2026
@zkochan
zkochan force-pushed the fix/pnpr-13389-resolve-settings branch from 3b71355 to 088df2b Compare August 17, 2026 00:20
@greptile-apps
greptile-apps Bot dismissed their stale review August 17, 2026 00:20

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

greptile-apps[bot]
greptile-apps Bot previously approved these changes Aug 17, 2026
@qodo-code-review

qodo-code-review Bot commented Aug 17, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. dedupePeers omission misread 🐞 Bug ≡ Correctness ⭐ New
Description
In EffectiveResolverSettings::for_request, a frozen legacy request falls back to the server
default when lockfile.settings.dedupePeers is omitted, but lockfile omission encodes false. This
makes frozen replays depend on server defaults and can cause incorrect resolution/lockfile settings
checks if defaults ever diverge from the lockfile semantics.
Code

pnpr/crates/pnpr/src/resolver.rs[R287-290]

+            dedupe_peers: request
+                .dedupe_peers
+                .or_else(|| lockfile_settings.and_then(|settings| settings.dedupe_peers))
+                .unwrap_or(DEFAULTS.dedupe_peers),
Relevance

●●● Strong

Team recently accepted fixes ensuring frozen requests honor lockfile-recorded settings over server
defaults; same semantic bug.

PR-#13386

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new code uses lockfile_settings.and_then(|settings| settings.dedupe_peers) and then falls back
to DEFAULTS.dedupe_peers, so an omitted lockfile key is treated as “use defaults”. But the
lockfile schema documents that dedupePeers is stored as Some(true) when enabled and omitted
otherwise, meaning omission encodes false; the frozen fast-path uses config.dedupe_peers for
lockfile settings checks, so deriving it incorrectly can break frozen semantics if defaults diverge.

pnpr/crates/pnpr/src/resolver.rs[276-295]
pnpm/crates/lockfile/src/lib.rs[64-75]
pnpr/crates/pnpr/src/resolver/resolve.rs[283-295]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`EffectiveResolverSettings::for_request()` currently treats an omitted `lockfile.settings.dedupePeers` as “no opinion” and falls back to `DEFAULTS.dedupe_peers`. However the lockfile format explicitly records `dedupePeers` only when enabled; omission means the effective value is `false`.

### Issue Context
This only matters when the request does not send `dedupePeers` (legacy client / omitted field) and `frozenLockfile` is true; in that case the lockfile’s encoded meaning should be honored.

### Fix
Change the lockfile fallback for `dedupe_peers` to interpret missing as `false`, e.g.:
- `lockfile_settings.map(|s| s.dedupe_peers.unwrap_or(false))`
(or equivalently `map(|s| s.dedupe_peers == Some(true))`)

### Fix Focus Areas
- pnpr/crates/pnpr/src/resolver.rs[276-295]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. legacy comment in protocol ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
New protocol field documentation describes behavior using historical framing (e.g., “legacy server
precedence” / “old-client omission”) instead of stating the current, explicit precedence/omission
contract in neutral terms. This violates the rule against historical-implementation comments and
will age poorly.
Code

pnpr/crates/pnpr/src/resolver/protocol.rs[R88-92]

+    /// Current `autoInstallPeers`; `None` uses legacy server precedence.
+    #[serde(default)]
+    pub auto_install_peers: Option<bool>,
+    /// Current `dedupePeers`; `None` uses legacy server precedence.
+    #[serde(default)]
Relevance

●●● Strong

Team has accepted making doc comments contract-focused and removing historical/PR-framing
references.

PR-#12645
PR-#12144

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 requires comments to describe the current behavior/contract and avoid
references to historical implementations. The cited doc comments for request fields describe None
semantics in terms of “legacy server precedence” and “preserves old-client omission,” which are
explicitly historical phrasings rather than a direct statement of the current precedence rules for
omitted fields.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpr/crates/pnpr/src/resolver/protocol.rs[88-96]
pnpm/crates/pnpr-client/src/lib.rs[74-79]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Protocol/request field doc comments use historical framing (e.g., `legacy server precedence`, `old-client omission`) rather than describing the current, explicit precedence/omission contract in neutral terms.

## Issue Context
Per PR Compliance ID 772199, comments should describe what the code does now (current behavior/contract/precedence) and avoid referencing prior implementations/clients as “legacy” or “old.” Rewrite the docs to state the present semantics for `None`/omitted fields directly, without historical justification.

## Fix Focus Areas
- pnpr/crates/pnpr/src/resolver/protocol.rs[88-96]
- pnpm/crates/pnpr-client/src/lib.rs[74-79]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Context
✅ Compliance rules (platform): 35 rules

Grey Divider

Tip of the day
💡 Did you know, you can route each action level your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous review results

Review updated until commit 32a06f6

Results up to commit 088df2b ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. legacy comment in protocol ✓ Resolved 📘 Rule violation ⚙ Maintainability
Description
New protocol field documentation describes behavior using historical framing (e.g., “legacy server
precedence” / “old-client omission”) instead of stating the current, explicit precedence/omission
contract in neutral terms. This violates the rule against historical-implementation comments and
will age poorly.
Code

pnpr/crates/pnpr/src/resolver/protocol.rs[R88-92]

+    /// Current `autoInstallPeers`; `None` uses legacy server precedence.
+    #[serde(default)]
+    pub auto_install_peers: Option<bool>,
+    /// Current `dedupePeers`; `None` uses legacy server precedence.
+    #[serde(default)]
Relevance

●●● Strong

Team has accepted making doc comments contract-focused and removing historical/PR-framing
references.

PR-#12645
PR-#12144

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
PR Compliance ID 772199 requires comments to describe the current behavior/contract and avoid
references to historical implementations. The cited doc comments for request fields describe None
semantics in terms of “legacy server precedence” and “preserves old-client omission,” which are
explicitly historical phrasings rather than a direct statement of the current precedence rules for
omitted fields.

Rule 772199: Comments must describe current behavior, not historical implementations
pnpr/crates/pnpr/src/resolver/protocol.rs[88-96]
pnpm/crates/pnpr-client/src/lib.rs[74-79]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Protocol/request field doc comments use historical framing (e.g., `legacy server precedence`, `old-client omission`) rather than describing the current, explicit precedence/omission contract in neutral terms.

## Issue Context
Per PR Compliance ID 772199, comments should describe what the code does now (current behavior/contract/precedence) and avoid referencing prior implementations/clients as “legacy” or “old.” Rewrite the docs to state the present semantics for `None`/omitted fields directly, without historical justification.

## Fix Focus Areas
- pnpr/crates/pnpr/src/resolver/protocol.rs[88-96]
- pnpm/crates/pnpr-client/src/lib.rs[74-79]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Source the fallback for an omitted setting from the config's own
defaults rather than a hardcoded copy of them, and restore the
rationale for gating the input-lockfile fallback on a frozen request.

Send the three settings inline like every other optional field of the
resolve request: the server reads an explicit null the same as an
absent key, so the manual inserts bought nothing.

Give the resolver settings their own forwarding test instead of
folding them into the verification-policy one.
@greptile-apps
greptile-apps Bot dismissed their stale review August 17, 2026 00:35

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 32a06f6

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit c5fadf1 into pnpm:main Aug 17, 2026
49 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review state: automerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpr: resolve requests don't carry the client's autoInstallPeers / dedupePeers / excludeLinksFromLockfile

3 participants