Skip to content

[miniflare] Scope Durable Object and Workflow local explorer peers by storageScope - #15527

Open
devaniketh wants to merge 2 commits into
cloudflare:mainfrom
devaniketh:fix/miniflare-local-explorer-storage-scope
Open

[miniflare] Scope Durable Object and Workflow local explorer peers by storageScope#15527
devaniketh wants to merge 2 commits into
cloudflare:mainfrom
devaniketh:fix/miniflare-local-explorer-storage-scope

Conversation

@devaniketh

@devaniketh devaniketh commented Sep 6, 2026

Copy link
Copy Markdown

Fixes #15479.

Scope Durable Object and Workflow peer aggregation and owner resolution in the Miniflare local explorer to peers sharing the same storageScope when Shared Storage is enabled.

In the local explorer, KV, D1, and R2 scoped peer aggregation to instances sharing the same storageScope. Durable Objects and Workflows previously omitted { sharedStorageOnly: true }, allowing peer instances with differing storage scopes to advertise their DOs and Workflows to each other.

This change passes { sharedStorageOnly: true } to getPeerUrlsIfAggregating and aggregateListResults for DOs and Workflows, ensuring consistency across all resource explorers and preventing cross-scope contamination in local development.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Internal local explorer peer scoping behavior; no public API or CLI changes.

Devin Review

… storageScope

Scope Durable Object and Workflow peer aggregation and owner resolution in the Miniflare local explorer to peers sharing the same storageScope when Shared Storage is enabled.

This brings DO and Workflow exploration into alignment with KV, D1, and R2 behavior and prevents cross-project access to local development state across instances configured with different persistence roots.

Fixes cloudflare#15479
@changeset-bot

changeset-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 950800a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
miniflare Patch
@cloudflare/deploy-helpers Patch
@cloudflare/pages-shared Patch
@cloudflare/remote-bindings Patch
@cloudflare/runtime-types Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-plugin Patch
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Sep 6, 2026
@workers-devprod
workers-devprod requested review from a team and emily-shen and removed request for a team September 6, 2026 03:28
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • .changeset/scope-do-workflow-explorer-storage-scope.md: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/resources/do.ts: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/resources/workflows.ts: [@cloudflare/wrangler]
  • packages/miniflare/test/plugins/local-explorer/aggregation.spec.ts: [@cloudflare/wrangler]

devin-ai-integration[bot]

This comment was marked as resolved.

@pkg-pr-new

pkg-pr-new Bot commented Sep 6, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15527

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15527

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15527

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15527

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15527

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15527

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15527

miniflare

npm i https://pkg.pr.new/miniflare@15527

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15527

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15527

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15527

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15527

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15527

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15527

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15527

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15527

wrangler

npm i https://pkg.pr.new/wrangler@15527

commit: 950800a

…eer aggregation

Pass getKey: (namespace) => namespace.id to aggregateListResults for DO namespaces, preventing duplicate entries when same-scope peers advertise matching namespaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

Miniflare local explorer should scope Durable Object and Workflow peers by storageScope

2 participants