Skip to content

Fix codemode example wrangler file#908

Merged
whoiskatrin merged 2 commits intomainfrom
fix/codemode-remove-ctx-exports
Feb 14, 2026
Merged

Fix codemode example wrangler file#908
whoiskatrin merged 2 commits intomainfrom
fix/codemode-remove-ctx-exports

Conversation

@Muhammad-Bin-Ali
Copy link
Contributor

Remove enable_ctx_exports compatibility flag from codemode example

What

Removes the enable_ctx_exports compatibility flag from examples/codemode/wrangler.jsonc.

Why

The enable_ctx_exports flag was preventing the codemode example from starting locally with npm run start. The flag is no longer required at compatibility date 2026-01-28 — the behavior it enabled is now the default. Removing it brings the codemode example in line with every other example in the repo, none of which use this flag.

Changes

  • examples/codemode/wrangler.jsonc — removed "enable_ctx_exports" from compatibility_flags (retaining "nodejs_compat" and "experimental")

Verification

All 17 examples were tested and confirmed to start successfully after this change:

  • 10 Vite-based examples (playground, a2a, codemode, github-webhook, mcp, mcp-client, cross-domain, resumable-stream-chat, tictactoe, workflows)
  • 7 wrangler-only examples (email-agent, mcp-elicitation, mcp-server, mcp-worker, mcp-worker-authenticated, x402, x402-mcp)

Generated by OpenCode

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: 35a29de

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

@Muhammad-Bin-Ali Muhammad-Bin-Ali requested a review from a team February 13, 2026 20:01
@Muhammad-Bin-Ali Muhammad-Bin-Ali self-assigned this Feb 13, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@908

commit: 35a29de

Copy link
Contributor

@deathbyknowledge deathbyknowledge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I wouldn't expect this to break the server

@whoiskatrin whoiskatrin merged commit 14d35e5 into main Feb 14, 2026
4 checks passed
@whoiskatrin whoiskatrin deleted the fix/codemode-remove-ctx-exports branch February 14, 2026 08:19
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.

4 participants