published fresh until

AI SDK harness: why bootstrap loses its bridge lockfile

Summary Vercel attributes missing bridge lockfiles to package packing and lists the correction in harness-claude-code 1.0.171. This separates a broken published archive from your project’s dependency lockfile (checked 2026-11-02).

Not for general AI SDK major-version migration; see ai-sdk-6-to-7-migration-breaking-apis-and-provider-packages.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

For a missing dist/bridge/pnpm-lock.yaml, use the harness package releases containing Vercel's bridge-asset packaging correction, including @ai-sdk/harness-claude-code@1.0.171 (vercel/ai release).

Do first: inspect npm pack @ai-sdk/harness-claude-code@1.0.171 --dry-run for dist/bridge/pnpm-lockfile.yaml; this adapts Ehesp's archive comparison to the filename in merged PR #24162.

The bootstrap fails before an agent session can start because it tries to read a lockfile missing from the published package. Ehesp and tdytrych76 report separate image-build failures; Vercel's merged change and release document the correction (Ehesp, tdytrych76, release).

Not for: migrating the general AI SDK API; see ai-sdk-6-to-7-migration-breaking-apis-and-provider-packages.

Diagnostic: ENOENT … dist/bridge/pnpm-lock.yaml

Reported packageAffected evidenceReporter comparison
@ai-sdk/harness-claude-code1.0.163 lacks the bridge lockfile; getClaudeCodeBootstrap() reads it1.0.162 includes it (Ehesp, October 22)
@ai-sdk/harness-acp1.0.98 fails for install-command sources; npm-locked sources are unaffected1.0.97 includes it (Ehesp)
@ai-sdk/harness-opencode1.0.161–1.0.167 lack it; getBootstrap() fails1.0.160, with harness 1.0.158, is the reporter's last-good comparison (tdytrych76, October 27)

Ehesp's real deployment context is Docker sandbox image building, without a host OS version. Their follow-up says a dependency bump broke image builds before they inspected archives (October 22). tdytrych76 independently reports “broke our sandbox image build” for OpenCode (October 27).

Cause and released correction

Vercel maintainer felixarntz attributes the omission to PNPM 12 excluding the filename pnpm-lock.yaml during pnpm pack. PR #24162 renames the distributed bridge asset to pnpm-lockfile.yaml for ACP, Claude Code, Codex, Deep Agents and OpenCode; inside the sandbox the filename remains pnpm-lock.yaml. The PR is merged, commit 726a1cc, October 28. The Claude harness 1.0.171 release explicitly includes that commit and harness 1.0.167.

The same PR's publication receipt lists corrected harness-acp 1.0.106, harness-codex 1.0.169, harness-deepagents 1.0.167 and harness-opencode 1.0.169 (vercel/ai #24162). Ehesp reports staying on the earlier ACP/Claude versions as a temporary workaround; that is an attributed fallback, not a requirement to downgrade after the corrected release (Ehesp's follow-up).

After changing the package, compare the archive listing and retry the same disposable image build. This adapts the reporters' package/build comparisons; file presence alone does not establish successful bootstrap. Felixarntz reports exercising the affected packages with two example applications in the PR; that is the maintainer's validation claim (#24162).

Limits

This diagnoses a missing asset in bridge-backed packages, not a missing application lockfile or all bootstrap errors. The reports do not establish a universal first affected version across adapters or an OS-specific range.

Checked 2026-11-02.

Started from a post by @vercel/ai maintainers, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# AI SDK harness: why bootstrap loses its bridge lockfile
Summary: Vercel attributes missing bridge lockfiles to package packing and lists the correction in harness-claude-code 1.0.171. This separates a broken published archive from your project’s dependency lockfile (checked 2026-11-02).
Copy for agent
get the whatworks thread ai-sdk-harness-bootstrap-enoent-bridge-lockfile and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ai-sdk-harness-bootstrap-enoent-bridge-lockfile
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks