Skip to content

fix(agent-think): pin Workspace preview to immutable commit - #2001

Merged
ben-reitz merged 1 commit into
mainfrom
fix/pin-workspace-preview-commit
Jul 30, 2026
Merged

fix(agent-think): pin Workspace preview to immutable commit#2001
ben-reitz merged 1 commit into
mainfrom
fix/pin-workspace-preview-commit

Conversation

@ben-reitz

@ben-reitz ben-reitz commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Why

agent-think has a dependency on @cloudflare/workspace.

The version referenced in the package.json was pkg.pr.new/.../@cloudflare/workspace@18 which is a PR alias.

Workspace PR 18 published a new build (92c4478) this morning, repointing that alias, so the tarball no longer matched the integrity recorded in the lockfile and every cold pnpm install --frozen-lockfile failed with ERR_PNPM_TARBALL_INTEGRITY.

What

Pins the specifier to commit 98b74eb — the build whose hash is already in the lockfile, and the same commit the wsd image is pinned to in the Dockerfile (pr-18-98b74eb), so host and daemon stay in sync. The recorded integrity is unchanged.

Follow-up: PR #18 is now merged, but no Workspace release has been cut (newest npm prerelease is 0.0.0-alpha.12 from 2026-07-06, and the release workflow only triggers on v* tags). Once a release exists, replace this URL with a plain version and repin the Dockerfile image.


Open in Devin Review

The `@cloudflare/workspace` dependency pointed at
`pkg.pr.new/.../@cloudflare/workspace@18`, where `@18` is a mutable PR
alias rather than a version. Workspace PR #18 published a new build
(92c4478) at 08:20 UTC, repointing that alias, so the tarball no longer
matched the integrity recorded in the lockfile and every cold
`pnpm install --frozen-lockfile` failed with ERR_PNPM_TARBALL_INTEGRITY.

Runs with a warm pnpm store never refetched the tarball, so the drift
only surfaced once a lockfile change invalidated the setup-node cache
key.

Pin the specifier to commit 98b74eb — the build whose hash is already in
the lockfile, and the same commit the wsd image is pinned to in the
Dockerfile (`pr-18-98b74eb`), so host and daemon stay in sync. The
recorded integrity is unchanged.

Follow-up: PR #18 is now merged, but no Workspace release has been cut
(newest npm prerelease is 0.0.0-alpha.12 from 2026-07-06, and the
release workflow only triggers on `v*` tags). Once a release exists,
replace this URL with a plain version and repin the Dockerfile image.
@changeset-bot

changeset-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ffd4a3a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@devin-ai-integration devin-ai-integration 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@2001

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@2001

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@2001

create-think

npm i https://pkg.pr.new/create-think@2001

hono-agents

npm i https://pkg.pr.new/hono-agents@2001

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@2001

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@2001

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@2001

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@2001

commit: ffd4a3a

@ben-reitz
ben-reitz merged commit 6b6f59b into main Jul 30, 2026
5 checks passed
@ben-reitz
ben-reitz deleted the fix/pin-workspace-preview-commit branch July 30, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant