Skip to content

pnpm override pins @hono/node-server 2.1.5 while package.json ships 2.1.6, so tests never run the adapter users install #1815

Done

Description

@V3RON

`package.json:79` declares `"@hono/node-server": "2.1.6"` (bumped in d30c24d, #1460), but `pnpm-workspace.yaml:6` overrides it to `2.1.5`, and `pnpm-lock.yaml` resolves 2.1.5. An npm install of simlock ignores the override and gets 2.1.6, so every test runs an adapter version no user runs.

$ grep node-server package.json pnpm-workspace.yaml
package.json:79:    "@hono/node-server": "2.1.6",
pnpm-workspace.yaml:6:  "@hono/node-server": 2.1.5

2.1.6 differs from 2.1.5 in request-target checks (a backslash in the path is refused) and upgrade-socket cleanup. Either move the override with the dependency, or drop it.

Found while triaging #1810.

Written by an agent.

Activity

  1. added
    bug:new
    on Nov 24, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. V3RON commented on Nov 24, 2026

    @V3RON
    ContributorAuthor

    Reproduction

    Confirmed. src/dependencies.test.ts, "installs each exactly pinned runtime dependency at the version package.json pins", on bug/1815-repro. It checks all six exact pins in dependencies; only @hono/node-server differs.

    pnpm exec vitest run --project unit src/dependencies.test.ts
    
      {
        "@agent-device/proxy": "0.21.36",
    -   "@hono/node-server": "2.1.6",
    +   "@hono/node-server": "2.1.5",
        "@hono/zod-openapi": "1.6.3",
        ...
    ❯ src/dependencies.test.ts:34:23
    

    It is a plain unit test, not *.repo.test.ts: it reads node_modules, and a failing repo test cannot be pushed (#1817).

    Root cause

    Defect. pnpm-workspace.yaml:6 overrides @hono/node-server to 2.1.5. The override exists to lift the MCP SDK's own copy (87c8e7a8c, kept in step by hand in f947c640a). Dependabot's #1460 (d30c24d85) bumped package.json:79 to 2.1.6 and left the override alone. pnpm applies the override to the direct dependency too, so the lockfile resolves 2.1.5 (pnpm-lock.yaml:178-180, specifier 2.1.5). npm ignores pnpm overrides, so users get 2.1.6 with its three security fixes (GHSA-jpvv-r467-5p4w, GHSA-7v5p-43qr-wch5, GHSA-qv5m-9pm6-hqp3) that no test runs.

    Simplest fix

    Set the override to 2.1.6 and refresh the lockfile.

    pnpm-workspace.yaml:6   "@hono/node-server": 2.1.6
    pnpm install            # lockfile: 2.1.5 -> 2.1.6, 2 files, 8 lines
    pnpm exec vitest run --project unit src/dependencies.test.ts src/http src/daemon/main-stop.test.ts src/mcp
     Test Files  30 passed (30)
          Tests  400 passed (400)
    

    Alternatives rejected

    • Drop the override: the SDK's range (^1.19.9 || ^2.0.5) admits 2.1.6, but the floor that kept the SDK's copy off advisory versions goes away.
    • catalog: for both: package.json then says catalog:, which only pnpm publish rewrites; a bigger change than this bug.

    Risk

    • 2.1.6 answers 400 to a raw backslash in a request path; the src/http tests pass with it, but check no client sends one.
    • Dependabot will leave the override behind again; the new test catches that on the bump PR.

    Fast track

    • Defect: yes
    • Fix tried: yes
    • Nothing public added or broken: yes
    • No ADR or rule changed: yes
    • One fix: yes

    Side findings

    Written by an agent.

  4. removed their assignment
    on Nov 24, 2026
  5. added
    bug:ready
    fast-track
    and removed
    bug:new
    on Nov 24, 2026
  6. self-assigned this
    on Nov 24, 2026
  7. V3RON commented on Nov 24, 2026

    @V3RON
    ContributorAuthor

    Delivery run

    Merged: #1818 (#1815)
    Parked: none
    Waiting: none
    Decided: none

    Written by an agent.

  8. added a commit that references this issue on Nov 24, 2026
    9986137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug:readyfast-track

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions