Skip to content

[Sandbox] Document v1.0 migration#31694

Open
aron-cf wants to merge 2 commits into
productionfrom
sandbox-next
Open

[Sandbox] Document v1.0 migration#31694
aron-cf wants to merge 2 commits into
productionfrom
sandbox-next

Conversation

@aron-cf

@aron-cf aron-cf commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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 (#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

  • 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.
  • The change adheres to the documentation style guide.
  • 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.
  • Files which have changed name or location have been allocated redirects.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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

@aron-cf aron-cf changed the title [Sandbox] Document next branch migration [Sandbox] Document v1.0 migration Jun 25, 2026

@ask-bonk ask-bonk 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.

PR Summary

This PR replaces the Sandbox SDK 2026 deprecation guide with a new v1.0 migration guide, adds a changelog entry for the 1.0 preview, updates existing sandbox docs with :::note callouts about the upcoming changes, and sets up redirects for the removed deprecation page.

What changed:

  • New: src/content/docs/sandbox/guides/migrating-to-1-0.mdx — comprehensive migration guide for the 1.0 preview (consolidated exec() API, plugins for Code Interpreter/Git/PTY, extension API, removed default sessions).
  • New: src/content/changelog/sandbox/2026-07-01-announcing-sandbox-sdk-1-0-preview.mdx — announces the 1.0 preview package.
  • New: src/content/docs/sandbox/migrating-to-1-0.mdx — navigation stub linking to the migration guide.
  • New: public/sandbox/guides/migrating-to-1-0/SKILL.md — updated agent skill for v1.0 migration.
  • Deleted: src/content/docs/sandbox/guides/2026-deprecation.mdx and public/sandbox/guides/2026-deprecation/SKILL.md.
  • Modified: 10 existing sandbox docs/API/concept pages with :::note callouts.
  • Redirect: /sandbox/guides/2026-deprecation//sandbox/guides/migrating-to-1-0/.

Labels: Already correctly labeled with product:sandbox, product:changelog, and size/l. No additional labels needed.

Issues to address

  1. Redirect validation failure — see inline comment on public/__redirects.
  2. Sidebar order conflict — see inline comment on src/content/docs/sandbox/migrating-to-1-0.mdx.
  3. Title inconsistency — see inline comment on src/content/docs/sandbox/migrating-to-1-0.mdx.
  4. WIP status — the PR description says this should be considered WIP. If it's not ready for merge, consider converting it to a Draft PR to prevent accidental merges.

Build validation

  • pnpm run check — passed (0 errors)
  • pnpm run format:core:check — passed
  • pnpm run lint — passed

Comment thread public/__redirects
/sandbox/platform/beta-info/ /sandbox/platform/ 301
/sandbox/guides/openai-agents-sdk/ /sandbox/tutorials/openai-agents/ 301
/sandbox/guides/2026-deprecation/ /sandbox/guides/migrating-to-1-0/ 301
/sandbox/guides/2026-deprecation/SKILL.md /sandbox/guides/migrating-to-1-0/SKILL.md 301

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.

Redirect validation issue. Source URLs in public/__redirects must end in / (or *, .xml, .json, .html). This line ends in .md, which will fail the redirect validation step in CI (bin/validate-redirects.ts).

If external traffic hits the old skill file directly, consider whether this redirect is needed. If it is, you may need to serve the skill at a path ending in / (e.g., via an index.md or HTML wrapper) rather than with a .md extension. Otherwise, removing this line is the safest fix.

@@ -0,0 +1,10 @@
---
title: Migrate to v1.0

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.

Title inconsistency. The linked guide uses the title "Migrate to Sandbox SDK 1.0". Consider aligning this navigation page title with the guide title so the sidebar label is consistent with the destination page. Something like Migrate to Sandbox SDK 1.0 or Migrate to Sandbox SDK v1.0 would reduce confusion.

description: Migrate existing Sandbox SDK projects to the 1.0 preview and update deprecated APIs.
external_link: /sandbox/guides/migrating-to-1-0/
sidebar:
order: 2

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.

Sidebar order conflict. Both this page and src/content/docs/sandbox/get-started.mdx use order: 2 in the root sandbox/ directory. This will cause a sidebar ordering conflict. Please choose a unique order value (e.g., 3, 10, or 99) for this navigation stub.

@ask-bonk

ask-bonk Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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: #31694 (review)

github run

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

CI run failed: build logs

@github-actions

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Preview URL: https://230a4b90.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/

Rebase this out before merge so the 2026-07-01 entry publishes on its
intended date instead of immediately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants