cloudflare-docs icon indicating copy to clipboard operation
cloudflare-docs copied to clipboard

[Sandbox] Document v1.0 migration

Open aron-cf opened this issue 5 months ago • 7 comments

Summary

We're shipping a preview branch of Sandbox SDK 1.0 which contains a number of breaking changes. This PR follows on from the prior announcement PR (https://github.com/cloudflare/cloudflare-docs/pull/31338) with more concrete guidance on next steps.

This PR should be considered WIP until all the changes documented in the migration guide have landed on the preview branch.

Documentation checklist

  • [x] Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • [x] The change adheres to the documentation style guide.
  • [x] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • [x] Files which have changed name or location have been allocated redirects.

aron-cf avatar Jun 25 '26 12:06 aron-cf

Review

⏸️ Automatic reviews for this PR are paused.

This PR has already received 2 automatic reviews. To run another review, a codeowner can comment /review or /full-review. To permanently lift the limit for this PR, a codeowner can comment /ignore-review-limit.

Tip: Keep PRs in draft mode until they are ready for review — the bot skips draft PRs automatically.


⚠️ 6 warnings, 💡 1 suggestion found in commit fc93fbd.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

Warnings (4)
File Issue
public/sandbox/guides/migrating-to-1-0/SKILL.md line 1 Skill file in public directory — The file is named SKILL.md and contains agent skill content (YAML frontmatter with name/description and skill instructions), but it is placed under public/. Agent skills belong in .agents/skills/; public/ serves static assets and is not scanned for skills. Fix: Move the skill to .agents/skills/sandbox/migrating-to-1-0/SKILL.md if it is intended for agents, or convert it to a docs page at src/content/docs/sandbox/guides/migrating-to-1-0.mdx if it is intended for users.
public/sandbox/guides/migrating-to-1-0/SKILL.md line 1 Agent skill file in wrong directory — SKILL.md files for agent skills must live under .agents/skills/ per AGENTS.md. This file is placed in public/sandbox/guides/migrating-to-1-0/, which serves it as a public static asset and places it outside the canonical skill discovery path. Fix: Move the skill to .agents/skills/sandbox-migrating-to-1-0/SKILL.md (or another subdirectory under .agents/skills/).
sandbox/configuration/sandbox-options.mdx line 16 Contradictory documentation for removed option — The added note says enableDefaultSession is removed in @cloudflare/sandbox@next and top-level operations are sessionless by default, but the rest of the page still documents enableDefaultSession as a current option with Default: true, examples, and stateful-default behavior. Fix: Either remove or deprecate the enableDefaultSession section, or clarify that it only applies to SDK versions before 1.0 and that the page's top note describes the 1.0 preview behavior.
sandbox/configuration/transport.mdx line 17 Inconsistent transport availability guidance — The added note states HTTP and WebSocket transports are removed in @cloudflare/sandbox@next, but the rest of the page still describes HTTP as the current default transport and includes a 'Switch from RPC to HTTP' migration section. This creates contradictory guidance for a reader deciding which transport to use. Fix: Clarify which SDK versions each section applies to, or remove/update the HTTP and WebSocket configuration instructions if they are no longer available in the @next/1.0 release.

Style Guide Review

Warnings (2)
File Issue
changelog/sandbox/2026-07-01-announcing-sandbox-sdk-1-0-preview.mdx line 2 Headings: avoid -ing verb form — Frontmatter title begins with Announcing Fix: Use the imperative form, for example Announce the Sandbox SDK 1.0 preview.
changelog/sandbox/2026-07-01-announcing-sandbox-sdk-1-0-preview.mdx line 24 Internal links must not include file extensions — Link uses /sandbox/guides/migrating-to-1-0/SKILL.md Fix: Remove the .md extension and add a trailing slash: /sandbox/guides/migrating-to-1-0/SKILL/.
Suggestions (1)
File Issue
sandbox/guides/execute-commands.mdx line 16 Active voice — Line uses passive voice: "...are consolidated into a single exec() API." Fix: Rewrite in active voice, for example: "In @cloudflare/sandbox@next, exec() combines exec(), execStream(), and startProcess() into a single API."
Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • [ ] /sandbox/guides/2026-deprecation/

github-actions[bot] avatar Jun 25 '26 12:06 github-actions[bot]

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/public/__redirects @cloudflare/content-engineering, @cloudflare/product-owners
* @cloudflare/product-owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/product-owners
/src/content/docs/sandbox/ @whoiskatrin, @ghostwriternr, @scuffi, @aron-cf, @thomasgauvin, @cloudflare/product-owners, @cloudflare/ai-agents

github-actions[bot] avatar Jun 25 '26 12:06 github-actions[bot]

I've completed the review for PR #31694 and posted it directly on the pull request.

What I found

Summary of changes:

  • Replaces the 2026 deprecation guide with a new Sandbox SDK 1.0 migration guide (migrating-to-1-0.mdx)
  • Adds a changelog entry for the 1.0 preview
  • Adds a navigation stub (sandbox/migrating-to-1-0.mdx) linking to the guide
  • Adds an updated agent skill (SKILL.md) for v1.0 migration
  • Adds :::note callouts to 10 existing docs referencing the upcoming changes
  • Sets up a redirect for the removed deprecation page

Inline comments flagged (3 issues):

  1. public/__redirects — The redirect source /sandbox/guides/2026-deprecation/SKILL.md ends in .md, which violates the repo's redirect validation rules. Source URLs must end in / (or *, .xml, .json, .html). This will fail CI.
  2. src/content/docs/sandbox/migrating-to-1-0.mdx (line 7) — sidebar: order: 2 conflicts with get-started.mdx in the same sandbox/ directory.
  3. src/content/docs/sandbox/migrating-to-1-0.mdx (line 2) — The navigation page title ("Migrate to v1.0") is inconsistent with the guide's title ("Migrate to Sandbox SDK 1.0").

Other flags:

  • The PR body says it's WIP, but the PR is open (not draft). I recommended converting it to a draft PR if it's not ready for merge.
  • Labels are already appropriate (product:sandbox, product:changelog, size/l).

Validation:

  • pnpm run check — passed
  • pnpm run format:core:check — passed
  • pnpm run lint — passed

The review is live at: https://github.com/cloudflare/cloudflare-docs/pull/31694#pullrequestreview-4570780521

github run

ask-bonk avatar Jun 25 '26 12:06 ask-bonk

CI run failed: build logs

github-actions[bot] avatar Jun 25 '26 12:06 github-actions[bot]

Broken Links

Found 2 broken link(s) across 1 file(s).

File Link Position Error
content/changelog/sandbox/2026-06-09-deprecating-sandbox-sdk-features.mdx /sandbox/guides/2026-deprecation/ 41:48 invalid link
content/changelog/sandbox/2026-06-09-deprecating-sandbox-sdk-features.mdx /sandbox/guides/2026-deprecation/SKILL.md 41:138 invalid link

github-actions[bot] avatar Jun 25 '26 12:06 github-actions[bot]

Preview URL: https://da3ed9b5.preview.developers.cloudflare.com Preview Branch URL: https://sandbox-next.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/sandbox/guides/migrating-to-1-0/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/guides/migrating-to-1-0/
https://developers.cloudflare.com/sandbox/guides/2026-deprecation/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/guides/2026-deprecation/
https://developers.cloudflare.com/changelog/post/2026-07-01-announcing-sandbox-sdk-1-0-preview/ https://sandbox-next.preview.developers.cloudflare.com/changelog/post/2026-07-01-announcing-sandbox-sdk-1-0-preview/
https://developers.cloudflare.com/sandbox/migrating-to-1-0/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/migrating-to-1-0/
https://developers.cloudflare.com/sandbox/api/commands/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/api/commands/
https://developers.cloudflare.com/sandbox/api/interpreter/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/api/interpreter/
https://developers.cloudflare.com/sandbox/api/sessions/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/api/sessions/
https://developers.cloudflare.com/sandbox/api/terminal/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/api/terminal/
https://developers.cloudflare.com/sandbox/concepts/sessions/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/concepts/sessions/
https://developers.cloudflare.com/sandbox/concepts/terminal/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/concepts/terminal/
https://developers.cloudflare.com/sandbox/configuration/sandbox-options/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/configuration/sandbox-options/
https://developers.cloudflare.com/sandbox/configuration/transport/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/configuration/transport/
https://developers.cloudflare.com/sandbox/guides/code-execution/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/guides/code-execution/
https://developers.cloudflare.com/sandbox/guides/execute-commands/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/guides/execute-commands/
https://developers.cloudflare.com/sandbox/guides/git-workflows/ https://sandbox-next.preview.developers.cloudflare.com/sandbox/guides/git-workflows/

github-actions[bot] avatar Jun 25 '26 12:06 github-actions[bot]

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

github-actions[bot] avatar Jul 17 '26 04:07 github-actions[bot]