Skip to content

fix(config): report the keys dropped from the global config.yaml (pacquet) - #13864

Merged
zkochan merged 7 commits into
pnpm:mainfrom
lazerg:fix/issue-13863-global-config-yaml-ignored-keys
Aug 20, 2026
Merged

zkochan merged 7 commits into
pnpm:mainfrom
lazerg:fix/issue-13863-global-config-yaml-ignored-keys

Conversation

@lazerg

@lazerg lazerg commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

pacquet parses the global config.yaml into WorkspaceSettings, whose fields are camelCase and which does not use deny_unknown_fields, and then zeroes the workspace-only fields. Both passes are silent, so a key the file cannot carry and a key spelled in kebab-case do nothing at all and say nothing about it:

# ~/.config/pnpm/config.yaml
store-dir: /kebab-store
nodeLinker: hoisted

The TypeScript CLI reports both cases against the same file, the second one as of #13862. pacquet now emits the same warnings, with the same texts, so the parity tests can compare them:

The following settings cannot be set in the global config file ("/home/user/.config/pnpm/config.yaml") and were ignored: "nodeLinker". Move them to a project-level pnpm-workspace.yaml. ...
The following settings in the global config file ("/home/user/.config/pnpm/config.yaml") were ignored because they are not written in camelCase: "store-dir" (use "storeDir").

pnpm splits the first case further: a key no configuration file may set — machine locations, the current run's directories, credentials, and the reader's own bookkeeping — is reported in a third message with the route pnpm offers for it instead of the move-to-workspace advice. pacquet ports that refusal list and whereRefusedKeyBelongs's routes (as refused_keys) so those texts match too:

The following settings cannot be set in the global config file ("/home/user/.config/pnpm/config.yaml") and were ignored: "configDir" (This is not a pnpm setting), "bin" (Set it for the machine instead: pnpm config set --global global-bin-dir), "dir" (Pass --dir on the command line instead).

Which keys were dropped is read back off the settings after the clearing pass, not from a second list of key names that would drift from the struct: a key serde did not recognize is missing from the serialized settings, and a key the clearing pass zeroed is null there. A key written as an explicit null is skipped, since nothing was dropped in that case either way. A dropped camelCase key pnpm's isConfigFileKey accepts (globalBinDir and friends, which pacquet does not read from this file yet) stays silent: pnpm honors it there, so the fix is to honor it too, and until then a warning would diverge from pnpm's output on the same file.

One gap this leaves open on purpose: pacquet honors a handful of keys from that file which pnpm's isConfigFileKey rejects (workspaceConcurrency, maxSockets, audit, and a few more). Those stay silent, because warning that a setting was ignored while still honoring it reads worse than saying nothing. Closing that gap changes what the file does rather than what it reports, so it wants its own change and its own tests.

Closes #13863

Squash Commit Body

The global config.yaml is parsed into a struct with camelCase fields and
no `deny_unknown_fields`, and the workspace-only fields are then zeroed.
Both passes are silent, so a key that cannot be set in that file and a
key spelled in kebab-case each did nothing and said nothing, while the
TypeScript CLI reports both against the same file.

Report them from pacquet too, with the texts pnpm uses, including the
third message pnpm has for a key no configuration file may set: the
refusal list and whereRefusedKeyBelongs's routes are ported as
refused_keys. What was dropped is read back off the settings after the
clearing pass rather than from a second list of key names: a key serde
did not recognize is missing from the serialized settings, and a key the
clearing pass zeroed is null there, so the report cannot drift from the
struct.

The keys pacquet honors but pnpm's `isConfigFileKey` rejects stay silent.
Warning about a setting that is still honored would be worse than the
silence, and closing that gap is a behavior change rather than a report.
The mirror gap is silent too: a camelCase key pnpm honors in this file
but pacquet does not read yet gets no warning, since the fix for it is
to honor it, not to report it.

Closes pnpm/pnpm#13863

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, or the description notes what still needs porting.
  • Added a changeset (pnpm changeset) if this PR changes any published
    package. Keep it short and written for pnpm users — it becomes a release note.
  • Added or updated tests.

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
    • Global configuration now reports unsupported or workspace-only settings instead of silently ignoring them.
    • Warnings identify kebab-case configuration keys and suggest the supported camelCase names.
    • Configuration warnings preserve correct handling of empty or null values.
    • Each affected setting is reported separately, making configuration issues easier to identify and correct.
    • Warnings include configuration guidance and identify where the affected setting was found.

@lazerg
lazerg requested a review from zkochan as a code owner August 12, 2026 12:13
@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 →

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@zkochan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 1 minute

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 517a7651-391d-49e8-85a1-c4e30ef91d15

📥 Commits

Reviewing files that changed from the base of the PR and between 6932dae and 934ea11.

📒 Files selected for processing (5)
  • pnpm/crates/config/src/lib.rs
  • pnpm/crates/config/src/refused_keys.rs
  • pnpm/crates/config/src/refused_keys/tests.rs
  • pnpm/crates/config/src/tests.rs
  • pnpm/crates/config/src/workspace_yaml.rs

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: 07d5423a-ecd7-4d71-9df8-a7ae8460cfb7

📥 Commits

Reviewing files that changed from the base of the PR and between bb57938 and 6932dae.

📒 Files selected for processing (3)
  • .changeset/pacquet-global-config-yaml-ignored-keys.md
  • pnpm/crates/config/src/tests.rs
  • pnpm/crates/config/src/workspace_yaml.rs
🚧 Files skipped from review as they are similar to previous changes (3)
  • .changeset/pacquet-global-config-yaml-ignored-keys.md
  • pnpm/crates/config/src/workspace_yaml.rs
  • pnpm/crates/config/src/tests.rs

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The Rust global configuration loader now warns about unsupported and kebab-case keys. Tests cover warning content, source paths, camelCase loading, null handling, warning order, and workspace-only guidance. A pacquet patch changeset documents the behavior.

Changes

Global configuration diagnostics

Layer / File(s) Summary
Detect and report ignored keys
pnpm/crates/config/src/workspace_yaml.rs
Global configuration parsing inspects top-level keys, excludes workspace-only settings, and warns about unsupported or kebab-case keys with camelCase suggestions.
Validate diagnostics and release metadata
pnpm/crates/config/src/tests.rs, .changeset/pacquet-global-config-yaml-ignored-keys.md
Tests verify camelCase loading, warning content, source paths, null handling, warning order, and workspace-only guidance. The changeset records a pacquet patch release.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 6932d

This localized change adds warnings for ignored global configuration keys without changing supported configuration behavior; no actionable merge-blocking risk remains beyond normal checks and review.

Sequence Diagram(s)

sequenceDiagram
  participant GlobalConfigYaml
  participant WorkspaceSettings
  participant warn_about_dropped_keys
  participant DiagnosticOutput
  GlobalConfigYaml->>WorkspaceSettings: Load YAML and retain source path
  WorkspaceSettings->>warn_about_dropped_keys: Inspect present top-level keys
  warn_about_dropped_keys->>DiagnosticOutput: Emit unsupported-key and kebab-case warnings
Loading

Assessment against linked issues

Objective Addressed Explanation
Report unsupported keys in the global configuration file [#13863] ✅
Report kebab-case keys and suggest camelCase names [#13863] ✅
Preserve null handling and warning behavior for both categories [#13863] ✅

Possibly related PRs

  • pnpm/pnpm#13862 — Implements related global config.yaml kebab-case warning behavior.
  • pnpm/pnpm#13283 — Modifies global config.yaml handling for workspace-only settings.
  • pnpm/pnpm#13941 — Modifies global configuration handling for supported and ignored workspace settings.

Suggested labels: product: pacquet

Suggested reviewers: zkochan

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

@greptile-apps

greptile-apps Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Reviews (6): Last reviewed commit: "docs(config): keep the dropped-key ratio..." | 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.

Actionable comments posted: 1

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

Inline comments:
In `@pnpm/crates/config/src/tests.rs`:
- Around line 3402-3453: Extend the global configuration tests around
global_config_yaml_kebab_case_key_is_reported and
global_config_yaml_keys_it_cannot_set_are_reported to cover an explicit null key
that produces no warning. Add a mixed-key fixture containing ignored
workspace-only/unknown keys and a kebab-case key, then assert the exact warning
messages and their pnpm-defined ordering.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 49ad1cea-8725-43f6-bfa6-815362247a7f

📥 Commits

Reviewing files that changed from the base of the PR and between 26f45df and 64196c6.

📒 Files selected for processing (3)
  • .changeset/pacquet-global-config-yaml-ignored-keys.md
  • pnpm/crates/config/src/tests.rs
  • pnpm/crates/config/src/workspace_yaml.rs

Comment thread pnpm/crates/config/src/tests.rs Resolved
@codecov-commenter

codecov-commenter commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.92308% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.19%. Comparing base (bb57938) to head (934ea11).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pnpm/crates/config/src/workspace_yaml.rs 95.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13864   +/-   ##
=======================================
  Coverage   88.19%   88.19%           
=======================================
  Files         646      647    +1     
  Lines      107162   107226   +64     
=======================================
+ Hits        94509    94573   +64     
  Misses      12653    12653           

☔ 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 added the reviewed: coderabbit CodeRabbit submitted an approving review label Aug 12, 2026
@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Integrated-Benchmark Report (Linux)

Commit: 934ea11ed407

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.582 ± 0.120 2.441 2.733 1.74 ± 0.18
pacquet@main 2.533 ± 0.155 2.372 2.824 1.71 ± 0.19
pnpr@HEAD 1.506 ± 0.135 1.322 1.681 1.02 ± 0.13
pnpr@main 1.480 ± 0.133 1.325 1.674 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.5816233274,
      "stddev": 0.12005395413802357,
      "median": 2.5821192672,
      "user": 2.3123262,
      "system": 2.0966949799999997,
      "min": 2.4413336152,
      "max": 2.7331847571999996
    },
    {
      "command": "pacquet@main",
      "mean": 2.5325033643999997,
      "stddev": 0.1548127142045491,
      "median": 2.5044214432,
      "user": 2.1157098999999997,
      "system": 1.9395903799999998,
      "min": 2.3720344921999996,
      "max": 2.8238866961999998
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.5062053260000001,
      "stddev": 0.13521257589402014,
      "median": 1.4938404517000001,
      "user": 1.7347291999999999,
      "system": 1.56399038,
      "min": 1.3222106632000001,
      "max": 1.6807306262000001
    },
    {
      "command": "pnpr@main",
      "mean": 1.4798493961,
      "stddev": 0.1332677804797087,
      "median": 1.4669899197,
      "user": 1.8109904000000003,
      "system": 1.7344986799999997,
      "min": 1.3251226462,
      "max": 1.6738454142
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 355.2 ± 16.5 330.3 380.7 1.11 ± 0.12
pacquet@main 322.1 ± 18.5 296.6 357.6 1.01 ± 0.11
pnpr@HEAD 342.7 ± 21.8 308.4 376.6 1.08 ± 0.12
pnpr@main 318.7 ± 29.9 280.9 360.0 1.00
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.35516118237999994,
      "stddev": 0.01650939728742662,
      "median": 0.35385742628,
      "user": 0.29768524,
      "system": 0.61237588,
      "min": 0.33031840028,
      "max": 0.38071613528
    },
    {
      "command": "pacquet@main",
      "mean": 0.32211972748,
      "stddev": 0.018541382434822267,
      "median": 0.32160501128,
      "user": 0.26870654000000005,
      "system": 0.57463208,
      "min": 0.29661357328,
      "max": 0.35760660128
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.34267281578,
      "stddev": 0.02184423048180449,
      "median": 0.34054914327999997,
      "user": 0.26653743999999996,
      "system": 0.59954538,
      "min": 0.30835560728,
      "max": 0.37662568228
    },
    {
      "command": "pnpr@main",
      "mean": 0.31873677558,
      "stddev": 0.02993013674927027,
      "median": 0.31622008928,
      "user": 0.25275294,
      "system": 0.5669189800000001,
      "min": 0.28087708228,
      "max": 0.36001852428000003
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 14.2 ± 2.5 8.7 20.9 1.00
pacquet@main 15.0 ± 2.5 9.4 21.5 1.05 ± 0.25
pnpr@HEAD 15.6 ± 2.2 10.8 20.6 1.10 ± 0.25
pnpr@main 14.9 ± 2.3 10.9 20.5 1.05 ± 0.25
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.014225977825976103,
      "stddev": 0.002473652172637339,
      "median": 0.014229836320000001,
      "user": 0.008092639681274902,
      "system": 0.006210435856573708,
      "min": 0.008710257320000001,
      "max": 0.02086296932
    },
    {
      "command": "pacquet@main",
      "mean": 0.014976328253333341,
      "stddev": 0.0025140504062511723,
      "median": 0.01495326332,
      "user": 0.007780869090909094,
      "system": 0.007237855272727274,
      "min": 0.009407012320000002,
      "max": 0.02153763632
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.015620960843489934,
      "stddev": 0.002192818440965425,
      "median": 0.016006913320000003,
      "user": 0.008762029798657716,
      "system": 0.006926724026845637,
      "min": 0.010799964320000001,
      "max": 0.020597915320000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.014907810567474747,
      "stddev": 0.0023350671713341315,
      "median": 0.01473330032,
      "user": 0.007887110505050502,
      "system": 0.007097371313131311,
      "min": 0.010932193320000002,
      "max": 0.02048138332
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 16.6 ± 3.0 10.6 24.4 1.12 ± 0.29
pacquet@main 16.6 ± 3.0 11.2 26.4 1.12 ± 0.29
pnpr@HEAD 14.8 ± 2.8 10.5 24.1 1.00
pnpr@main 15.2 ± 1.9 11.0 19.6 1.03 ± 0.23
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.016605794787272726,
      "stddev": 0.002979343581505295,
      "median": 0.01644759306,
      "user": 0.009360955303030296,
      "system": 0.0072182884848484875,
      "min": 0.01063475506,
      "max": 0.024353485060000003
    },
    {
      "command": "pacquet@main",
      "mean": 0.016555863030149248,
      "stddev": 0.0030361575507913217,
      "median": 0.016068367060000005,
      "user": 0.009465301492537315,
      "system": 0.007098321194029852,
      "min": 0.01117660306,
      "max": 0.026354684060000005
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.014829567235572525,
      "stddev": 0.0027786803863516017,
      "median": 0.01417152906,
      "user": 0.008024595419847326,
      "system": 0.006871034503816792,
      "min": 0.01048686106,
      "max": 0.024123066060000004
    },
    {
      "command": "pnpr@main",
      "mean": 0.015230714568771935,
      "stddev": 0.0018596548438345839,
      "median": 0.015532281060000002,
      "user": 0.008573977192982451,
      "system": 0.006757556959064327,
      "min": 0.010965299060000001,
      "max": 0.01957631606
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 3.023 ± 0.104 2.894 3.159 1.87 ± 0.15
pacquet@main 2.899 ± 0.061 2.829 3.005 1.79 ± 0.13
pnpr@HEAD 1.620 ± 0.114 1.480 1.797 1.00
pnpr@main 1.652 ± 0.105 1.502 1.797 1.02 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 3.02346596756,
      "stddev": 0.10410972451892686,
      "median": 3.0155515203600003,
      "user": 2.7040399799999997,
      "system": 2.0211596399999996,
      "min": 2.89405925436,
      "max": 3.1593942803600004
    },
    {
      "command": "pacquet@main",
      "mean": 2.89935501186,
      "stddev": 0.060516964432974184,
      "median": 2.8802692393600005,
      "user": 2.48131698,
      "system": 1.8528100399999996,
      "min": 2.82915797436,
      "max": 3.00450263536
    },
    {
      "command": "pnpr@HEAD",
      "mean": 1.62043961446,
      "stddev": 0.11396570593049464,
      "median": 1.60708430036,
      "user": 1.7963433800000002,
      "system": 1.8261089400000003,
      "min": 1.47973923236,
      "max": 1.79668391536
    },
    {
      "command": "pnpr@main",
      "mean": 1.6515384910600002,
      "stddev": 0.10538279278422362,
      "median": 1.6542626523600001,
      "user": 1.8330638799999996,
      "system": 1.85087854,
      "min": 1.50230086136,
      "max": 1.79679347436
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 477.5 ± 29.1 425.2 511.5 1.30 ± 0.11
pacquet@main 475.8 ± 34.8 409.9 532.5 1.30 ± 0.12
pnpr@HEAD 367.2 ± 20.3 329.4 389.2 1.00
pnpr@main 378.7 ± 42.4 326.4 454.0 1.03 ± 0.13
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.47747712519999996,
      "stddev": 0.029112065071177064,
      "median": 0.48594287049999996,
      "user": 0.5788098799999999,
      "system": 0.76164222,
      "min": 0.4251987255,
      "max": 0.5114932275
    },
    {
      "command": "pacquet@main",
      "mean": 0.47576016700000007,
      "stddev": 0.03478645766836832,
      "median": 0.48188465999999996,
      "user": 0.54656918,
      "system": 0.7443245199999999,
      "min": 0.4098690735,
      "max": 0.5324606745
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.36722542980000006,
      "stddev": 0.0202633850828222,
      "median": 0.370059052,
      "user": 0.25601347999999996,
      "system": 0.5673320199999999,
      "min": 0.3293743755,
      "max": 0.3891543295
    },
    {
      "command": "pnpr@main",
      "mean": 0.378721661,
      "stddev": 0.04238045585652244,
      "median": 0.3641791645,
      "user": 0.25132798,
      "system": 0.6106236199999999,
      "min": 0.3263519905,
      "max": 0.4539970865
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 2.038 ± 0.038 1.984 2.096 5.39 ± 0.23
pacquet@main 2.070 ± 0.076 1.972 2.236 5.48 ± 0.29
pnpr@HEAD 0.378 ± 0.015 0.358 0.398 1.00
pnpr@main 0.382 ± 0.018 0.355 0.423 1.01 ± 0.06
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 2.03827670262,
      "stddev": 0.03777729966241088,
      "median": 2.02880985172,
      "user": 1.0537879599999997,
      "system": 0.9767175,
      "min": 1.9844582812200002,
      "max": 2.09605549322
    },
    {
      "command": "pacquet@main",
      "mean": 2.07018595732,
      "stddev": 0.07638177138087411,
      "median": 2.06246811922,
      "user": 1.0656379599999999,
      "system": 1.0009064,
      "min": 1.9718515952200002,
      "max": 2.23638250122
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.37787330562000004,
      "stddev": 0.014556263172419334,
      "median": 0.37921041572,
      "user": 0.25177516,
      "system": 0.5981958999999999,
      "min": 0.35799628622,
      "max": 0.39793937722
    },
    {
      "command": "pnpr@main",
      "mean": 0.38210376802,
      "stddev": 0.01844988945831256,
      "median": 0.38021298372,
      "user": 0.27425166,
      "system": 0.5847548999999999,
      "min": 0.35479347622,
      "max": 0.42281129122
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 283.8 ± 27.0 243.6 342.7 2.43 ± 0.27
pacquet@main 301.1 ± 41.8 237.0 361.2 2.57 ± 0.39
pnpr@HEAD 116.9 ± 6.7 104.9 130.4 1.00
pnpr@main 122.3 ± 8.8 110.2 146.1 1.05 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2838397007290909,
      "stddev": 0.02699990710961776,
      "median": 0.28893448282000006,
      "user": 0.23913481636363632,
      "system": 0.10271898727272727,
      "min": 0.24364608982,
      "max": 0.34266871282000005
    },
    {
      "command": "pacquet@main",
      "mean": 0.30108469032,
      "stddev": 0.041828345138993264,
      "median": 0.31252725532000003,
      "user": 0.25591288,
      "system": 0.09609205999999999,
      "min": 0.23704516182000002,
      "max": 0.36122883882000006
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.11694765693538461,
      "stddev": 0.006744793116131705,
      "median": 0.11716944082000001,
      "user": 0.03717183384615385,
      "system": 0.021201721538461536,
      "min": 0.10494081682,
      "max": 0.13041254882
    },
    {
      "command": "pnpr@main",
      "mean": 0.12229718739142854,
      "stddev": 0.008803786244808666,
      "median": 0.12039568282000002,
      "user": 0.03972146571428571,
      "system": 0.022005783809523807,
      "min": 0.11024128682,
      "max": 0.14607980882
    }
  ]
}

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

Command Mean [ms] Min [ms] Max [ms] Relative
pacquet@HEAD 643.1 ± 118.0 509.1 845.1 1.00
pacquet@main 789.3 ± 83.8 594.2 900.8 1.23 ± 0.26
pnpm@HEAD 3881.7 ± 245.5 3654.1 4343.0 6.04 ± 1.17
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.6430748994666665,
      "stddev": 0.1179849042149622,
      "median": 0.5830553608,
      "user": 0.6306204511111111,
      "system": 0.1553505844444444,
      "min": 0.5091347578,
      "max": 0.8450713928
    },
    {
      "command": "pacquet@main",
      "mean": 0.7893309108,
      "stddev": 0.08382243095845975,
      "median": 0.8117590528,
      "user": 0.7733145622222223,
      "system": 0.20164580666666665,
      "min": 0.5941700088,
      "max": 0.9008365528
    },
    {
      "command": "pnpm@HEAD",
      "mean": 3.881708367688889,
      "stddev": 0.24550143154130274,
      "median": 3.7835990378,
      "user": 5.78149734,
      "system": 0.43272369555555557,
      "min": 3.6541000948,
      "max": 4.3429737418
    }
  ]
}

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

Command Mean [s] Min [s] Max [s] Relative
pacquet@HEAD 4.687 ± 0.190 4.400 4.910 1.32 ± 0.06
pacquet@main 4.464 ± 0.115 4.338 4.709 1.25 ± 0.04
pnpr@HEAD 3.558 ± 0.075 3.461 3.706 1.00
pnpr@main 3.589 ± 0.077 3.465 3.726 1.01 ± 0.03
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 4.6874526602,
      "stddev": 0.19037248558115905,
      "median": 4.704154166,
      "user": 2.2614689199999995,
      "system": 2.01633228,
      "min": 4.400333654000001,
      "max": 4.91037994
    },
    {
      "command": "pacquet@main",
      "mean": 4.463990222200001,
      "stddev": 0.11523669588522768,
      "median": 4.4318950795,
      "user": 2.02771562,
      "system": 1.8643686799999997,
      "min": 4.337653368000001,
      "max": 4.709195139
    },
    {
      "command": "pnpr@HEAD",
      "mean": 3.5581465437000004,
      "stddev": 0.07535097257101019,
      "median": 3.549159853,
      "user": 2.10648182,
      "system": 1.9600423800000002,
      "min": 3.46139655,
      "max": 3.705856351
    },
    {
      "command": "pnpr@main",
      "mean": 3.5889485849,
      "stddev": 0.07725635741227016,
      "median": 3.590490034,
      "user": 2.11983502,
      "system": 1.97385458,
      "min": 3.4646806569999997,
      "max": 3.7256526979999998
    }
  ]
}

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 215.0 ± 12.5 200.5 240.4 1.00
pacquet@main 221.6 ± 12.9 199.1 246.8 1.03 ± 0.08
pnpr@HEAD 236.2 ± 12.9 209.6 251.8 1.10 ± 0.09
pnpr@main 236.6 ± 16.6 213.3 257.8 1.10 ± 0.10
BENCHMARK_REPORT.json
{
  "results": [
    {
      "command": "pacquet@HEAD",
      "mean": 0.2149535247833333,
      "stddev": 0.012456528998054278,
      "median": 0.2122548307,
      "user": 0.24986811999999994,
      "system": 0.2525608733333334,
      "min": 0.2005261227,
      "max": 0.2404288977
    },
    {
      "command": "pacquet@main",
      "mean": 0.2215871055,
      "stddev": 0.01287978464386506,
      "median": 0.22041830969999998,
      "user": 0.26243052,
      "system": 0.23287014,
      "min": 0.1991307627,
      "max": 0.2467979457
    },
    {
      "command": "pnpr@HEAD",
      "mean": 0.2361828368818182,
      "stddev": 0.012901547260708225,
      "median": 0.2367547617,
      "user": 0.2647909836363636,
      "system": 0.2465954490909091,
      "min": 0.2096226817,
      "max": 0.2518200167
    },
    {
      "command": "pnpr@main",
      "mean": 0.23655086024545452,
      "stddev": 0.016601842830815356,
      "median": 0.2417406487,
      "user": 0.2634629836363636,
      "system": 0.2573348127272727,
      "min": 0.2133073817,
      "max": 0.2578286127
    }
  ]
}

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpnpm's project
Branchpr/13864
Testbedpacquet

🚨 2 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
isolated-linker.repeat-install.cold-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
10.63 ms
(+60.84%)Baseline: 6.61 ms
7.93 ms
(134.03%)

isolated-linker.repeat-install.hot-cache.hot-storeLatency
milliseconds (ms)
📈 plot
🚷 threshold
🚨 alert (🔔)
8.71 ms
(+36.71%)Baseline: 6.37 ms
7.65 ms
(113.93%)

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
200.53 ms
(+11.75%)Baseline: 179.44 ms
215.33 ms
(93.13%)
isolated-linker.fresh-install.cold-cache.cold-store📈 view plot
🚷 view threshold
2,894.06 ms
(+3.71%)Baseline: 2,790.65 ms
3,348.78 ms
(86.42%)
isolated-linker.fresh-install.cold-cache.hot-store📈 view plot
🚷 view threshold
1,984.46 ms
(+3.02%)Baseline: 1,926.28 ms
2,311.54 ms
(85.85%)
isolated-linker.fresh-install.hot-cache.hot-store📈 view plot
🚷 view threshold
425.20 ms
(-7.20%)Baseline: 458.18 ms
549.82 ms
(77.33%)
isolated-linker.fresh-resolve.hot-cache.offline📈 view plot
🚷 view threshold
243.65 ms
(+12.76%)Baseline: 216.08 ms
259.30 ms
(93.96%)
isolated-linker.fresh-restore.cold-cache.cold-store📈 view plot
🚷 view threshold
2,441.33 ms
(+5.87%)Baseline: 2,306.07 ms
2,767.29 ms
(88.22%)
isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr📈 view plot
🚷 view threshold
4,400.33 ms
(+1.16%)Baseline: 4,349.90 ms
5,219.88 ms
(84.30%)
isolated-linker.fresh-restore.hot-cache.hot-store📈 view plot
🚷 view threshold
330.32 ms
(+18.64%)Baseline: 278.42 ms
334.11 ms
(98.87%)
isolated-linker.peer-heavy-resolve.hot-cache.offline📈 view plot
🚷 view threshold
509.13 ms
(+3.08%)Baseline: 493.91 ms
592.69 ms
(85.90%)
isolated-linker.repeat-install.cold-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
10.63 ms
(+60.84%)Baseline: 6.61 ms
7.93 ms
(134.03%)

isolated-linker.repeat-install.hot-cache.hot-store📈 view plot
🚷 view threshold
🚨 view alert (🔔)
8.71 ms
(+36.71%)Baseline: 6.37 ms
7.65 ms
(113.93%)

🐰 View full continuous benchmarking report in Bencher

@zkochan
zkochan force-pushed the fix/issue-13863-global-config-yaml-ignored-keys branch from 712ebcd to 6932dae Compare August 20, 2026 15:36
@coderabbitai

coderabbitai Bot commented Aug 20, 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 20, 2026
@qodo-code-review

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

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Remediation recommended

1. Redundant case conversions 🐞 Bug ➹ Performance ⭐ New
Description
warn_about_dropped_keys repeatedly allocates when converting the same YAML key to kebab/camel case
(and can do it multiple times per key), adding per-invocation overhead proportional to number of
keys. This is avoidable because naming_cases conversions allocate and do multi-pass word splitting.
Code

pnpm/crates/config/src/workspace_yaml.rs[R999-1002]

+            if !is_config_file_key(&to_kebab_case(key)) {
+                if is_refused_by_a_project_manifest(key) {
+                    nowhere.push(format!(
+                        r#""{key}" ({})"#,
Relevance

●●● Strong

Recent accepted precedent supports eliminating repeated per-item allocations and work in hot loops;
this is a deterministic local optimization.

PR-#13974
PR-#14021

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The loop classifies each YAML key by converting it to kebab-case for is_config_file_key and again
to camel-case for refused-key routing and kebab-case diagnostics; these conversions allocate and do
multi-pass splitting, so repeating them per key increases runtime and allocation pressure for every
global config.yaml load.

pnpm/crates/config/src/workspace_yaml.rs[995-1010]
pnpm/crates/config/src/naming_cases.rs[51-75]
pnpm/crates/config/src/naming_cases.rs[82-112]

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

### Issue description
`warn_about_dropped_keys` calls `to_kebab_case(key)` and `to_camel_case(key)` multiple times while classifying a single key, which causes repeated allocations and word-splitting work.

### Issue Context
`to_kebab_case` and `to_camel_case` allocate and perform non-trivial splitting (`words(...)` builds a `Vec<char>` and `Vec<String>`). In `warn_about_dropped_keys`, this work happens inside the loop over all keys in the global `config.yaml`.

### Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[995-1010]
- pnpm/crates/config/src/naming_cases.rs[51-75]
- pnpm/crates/config/src/naming_cases.rs[82-112]

### Suggested fix
- In the `for key in ...` loop, compute `kebab_key` and `camel_key` once per key (only when needed), and reuse them for:
 - `is_config_file_key(...)`
 - `is_refused_by_a_project_manifest(...)` / `where_refused_key_belongs(...)`
 - the kebab-case warning message.
- Fast-path: if `is_camel_case(key)` then `camel_key` can be borrowed as `key`; similarly if the key is already strictly kebab-case you can avoid running `to_kebab_case` and just borrow `key`.
- Consider changing helper APIs to accept `&str`/`Cow<'_, str>` to make borrowing easy and avoid extra `String` creation.

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


2. Extra parse on hot path 🐞 Bug ➹ Performance
Description
WorkspaceSettings::load_global now always performs a second YAML parse plus a full JSON
serialization of the settings to compute dropped-key warnings. This adds avoidable overhead to every
pnpm/pacquet invocation that loads global config.yaml, even when warn logging is disabled or no keys
are dropped.
Code

pnpm/crates/config/src/workspace_yaml.rs[R950-954]

+            .map_err(|source| LoadWorkspaceYamlError::ParseYaml { path: path.clone(), source })?;
        settings.validate_registries()?;
        settings.clear_workspace_only_fields();
+        settings.warn_about_dropped_keys(&text, &path);
        Ok(Some(settings))
Relevance

●● Moderate

No close performance precedent; overhead concern is plausible but optimization impact and warning
behavior remain subjective.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR adds a new call to warn_about_dropped_keys() in load_global(). That function performs an
additional serde_saphyr::from_str over the entire file and a serde_json::to_value(self)
serialization. current_inner() loads global settings as part of normal configuration resolution,
so this added work executes on a common path.

pnpm/crates/config/src/workspace_yaml.rs[941-954]
pnpm/crates/config/src/workspace_yaml.rs[976-983]
pnpm/crates/config/src/lib.rs[2637-2646]

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

### Issue description
`load_global()` now calls `warn_about_dropped_keys()`, which re-parses the YAML into an `IndexMap` and serializes `WorkspaceSettings` to JSON. This is unconditional work on a startup/config-load path.

### Issue Context
`Config::current_inner()` calls `WorkspaceSettings::load_global()` early for essentially every run, so this extra work happens frequently.

### Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[941-954]
- pnpm/crates/config/src/workspace_yaml.rs[976-983]
- pnpm/crates/config/src/lib.rs[2637-2646]

### Suggested fix approach
- Add an early return at the start of `warn_about_dropped_keys()` like:
 - `if !tracing::enabled!(target: "pacquet::config", level: tracing::Level::WARN) { return; }`
 This avoids the second parse/serialization when warnings are not going to be emitted.
- Optionally, consider parsing once into an intermediate representation (if feasible with `serde_saphyr`) and deriving both the settings struct and the key set from that single parse, but the logging-level guard alone likely removes most of the unnecessary cost.

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



Informational

3. Log injection via keys 🐞 Bug ⛨ Security
Description
warn_about_dropped_keys interpolates raw YAML key strings into warning messages without escaping,
allowing newline/control-character injection into logs/terminals if a config.yaml key contains them.
This can forge/mislead diagnostic output and may enable terminal escape-sequence attacks in
environments where an attacker can influence the global config file contents.
Code

pnpm/crates/config/src/workspace_yaml.rs[R988-992]

+            match kept.get(key) {
+                Some(value) if !value.is_null() => {}
+                Some(_) => ignored.push(format!(r#""{key}""#)),
+                None if !is_camel_case(key) && is_config_file_key(&to_kebab_case(key)) => {
+                    kebab_case.push(format!(r#""{key}" (use "{}")"#, to_camel_case(key)));
Relevance

● Weak

Recent repository precedent rejected sanitizing repo-controlled strings in terminal/log diagnostics.

PR-#13404

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The warning strings are constructed from YAML keys (String) and emitted verbatim via tracing without
any escaping/sanitization. The same file demonstrates an existing pattern of sanitizing untrusted
strings before placing them in diagnostics, indicating this output is expected to be safe for
terminals/logs.

pnpm/crates/config/src/workspace_yaml.rs[985-1012]
pnpm/crates/config/src/workspace_yaml.rs[86-99]

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

### Issue description
`warn_about_dropped_keys()` formats YAML keys directly into `tracing::warn!` strings. YAML keys can contain newlines and other control characters, so this enables log/terminal injection.

### Issue Context
This code already contains a precedent for sanitizing user-controlled strings before emitting them (e.g., registry URLs are passed through `redact_and_sanitize` to make them safe for messages). The new warnings should apply similar hardening to key names (and any derived key variants).

### Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[985-1012]
- pnpm/crates/config/src/workspace_yaml.rs[86-99]

### Suggested fix approach
- Introduce a small helper used only for these warnings that escapes/removes control characters (e.g., reuse `pnpm_network::redact_and_sanitize` if appropriate, or implement a minimal escaping strategy like replacing `\n`, `\r`, `\t`, and non-printables).
- Apply it to `key` and the `to_camel_case(key)` value before pushing into `ignored`/`kebab_case` vectors so the final message remains well-formed even with hostile input.

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


Grey Divider

Context sources
✅ Compliance rules (platform): 27 rules

Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 934ea11

Results up to commit 6932dae ⚖️ Balanced


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


Remediation recommended
1. Extra parse on hot path 🐞 Bug ➹ Performance
Description
WorkspaceSettings::load_global now always performs a second YAML parse plus a full JSON
serialization of the settings to compute dropped-key warnings. This adds avoidable overhead to every
pnpm/pacquet invocation that loads global config.yaml, even when warn logging is disabled or no keys
are dropped.
Code

pnpm/crates/config/src/workspace_yaml.rs[R950-954]

+            .map_err(|source| LoadWorkspaceYamlError::ParseYaml { path: path.clone(), source })?;
        settings.validate_registries()?;
        settings.clear_workspace_only_fields();
+        settings.warn_about_dropped_keys(&text, &path);
        Ok(Some(settings))
Relevance

●● Moderate

No close performance precedent; overhead concern is plausible but optimization impact and warning
behavior remain subjective.

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR adds a new call to warn_about_dropped_keys() in load_global(). That function performs an
additional serde_saphyr::from_str over the entire file and a serde_json::to_value(self)
serialization. current_inner() loads global settings as part of normal configuration resolution,
so this added work executes on a common path.

pnpm/crates/config/src/workspace_yaml.rs[941-954]
pnpm/crates/config/src/workspace_yaml.rs[976-983]
pnpm/crates/config/src/lib.rs[2637-2646]

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

### Issue description
`load_global()` now calls `warn_about_dropped_keys()`, which re-parses the YAML into an `IndexMap` and serializes `WorkspaceSettings` to JSON. This is unconditional work on a startup/config-load path.

### Issue Context
`Config::current_inner()` calls `WorkspaceSettings::load_global()` early for essentially every run, so this extra work happens frequently.

### Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[941-954]
- pnpm/crates/config/src/workspace_yaml.rs[976-983]
- pnpm/crates/config/src/lib.rs[2637-2646]

### Suggested fix approach
- Add an early return at the start of `warn_about_dropped_keys()` like:
 - `if !tracing::enabled!(target: "pacquet::config", level: tracing::Level::WARN) { return; }`
 This avoids the second parse/serialization when warnings are not going to be emitted.
- Optionally, consider parsing once into an intermediate representation (if feasible with `serde_saphyr`) and deriving both the settings struct and the key set from that single parse, but the logging-level guard alone likely removes most of the unnecessary cost.

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



Informational
2. Log injection via keys 🐞 Bug ⛨ Security
Description
warn_about_dropped_keys interpolates raw YAML key strings into warning messages without escaping,
allowing newline/control-character injection into logs/terminals if a config.yaml key contains them.
This can forge/mislead diagnostic output and may enable terminal escape-sequence attacks in
environments where an attacker can influence the global config file contents.
Code

pnpm/crates/config/src/workspace_yaml.rs[R988-992]

+            match kept.get(key) {
+                Some(value) if !value.is_null() => {}
+                Some(_) => ignored.push(format!(r#""{key}""#)),
+                None if !is_camel_case(key) && is_config_file_key(&to_kebab_case(key)) => {
+                    kebab_case.push(format!(r#""{key}" (use "{}")"#, to_camel_case(key)));
Relevance

● Weak

Recent repository precedent rejected sanitizing repo-controlled strings in terminal/log diagnostics.

PR-#13404

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The warning strings are constructed from YAML keys (String) and emitted verbatim via tracing without
any escaping/sanitization. The same file demonstrates an existing pattern of sanitizing untrusted
strings before placing them in diagnostics, indicating this output is expected to be safe for
terminals/logs.

pnpm/crates/config/src/workspace_yaml.rs[985-1012]
pnpm/crates/config/src/workspace_yaml.rs[86-99]

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

### Issue description
`warn_about_dropped_keys()` formats YAML keys directly into `tracing::warn!` strings. YAML keys can contain newlines and other control characters, so this enables log/terminal injection.

### Issue Context
This code already contains a precedent for sanitizing user-controlled strings before emitting them (e.g., registry URLs are passed through `redact_and_sanitize` to make them safe for messages). The new warnings should apply similar hardening to key names (and any derived key variants).

### Fix Focus Areas
- pnpm/crates/config/src/workspace_yaml.rs[985-1012]
- pnpm/crates/config/src/workspace_yaml.rs[86-99]

### Suggested fix approach
- Introduce a small helper used only for these warnings that escapes/removes control characters (e.g., reuse `pnpm_network::redact_and_sanitize` if appropriate, or implement a minimal escaping strategy like replacing `\n`, `\r`, `\t`, and non-printables).
- Apply it to `key` and the `to_camel_case(key)` value before pushing into `ignored`/`kebab_case` vectors so the final message remains well-formed even with hostile input.

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


Grey Divider

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.

zkochan and others added 2 commits August 20, 2026 17:56
pnpm splits the dropped-key warning for the global config.yaml in two:
keys movable to a project's pnpm-workspace.yaml keep the move-there
advice, while keys no configuration file may set are reported with the
route pnpm offers instead (pnpm config set --global, the --dir flag, or
"This is not a pnpm setting"). pacquet folded both into the move-there
message; port the refusal list and the routes so the texts match.

A dropped camelCase key pnpm's isConfigFileKey accepts now stays silent
instead of getting the move-there advice: pnpm honors it in that file,
so that advice was wrong, and the fix for such a key is to honor it
too, not to report it.

Co-Authored-By: Claude Fable 5 <[email protected]>
…fiers

The constants deliberately carry their config.reader names, so a
backticked mention of the upstream name resolves to the local item and
trips perfectionist::bare-identifier-reference. Name the source file
instead of restating the identifier.

Co-Authored-By: Claude Fable 5 <[email protected]>
@greptile-apps
greptile-apps Bot dismissed their stale review August 20, 2026 15:59

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 20, 2026
The doc on warn_about_dropped_keys narrated the three warning categories
the buckets and the tests already show, and the silence test restated
the rationale that doc carries. Trim the narration and point the test at
the doc.

Co-Authored-By: Claude Fable 5 <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit eaa5b3f

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

@greptile-apps
greptile-apps Bot dismissed their stale review August 20, 2026 16:07

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 934ea11

@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 949b3a8 into pnpm:main Aug 20, 2026
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: pacquet reviewed: coderabbit CodeRabbit submitted an approving review state: automerge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pacquet ignores unsupported and kebab-case keys in the global config.yaml without a word

3 participants