Skip to content

fix: use v2 templates in Sandbox Playground and quickstart - #26

Merged
sam2tom merged 1 commit into
mainfrom
codex/sandbox-template-v2
Sep 29, 2026
Merged

sam2tom merged 1 commit into
mainfrom
codex/sandbox-template-v2

Conversation

@sam2tom

@sam2tom sam2tom commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

The Playground previously loaded /v2/templates and /templates together, so failure of the legacy endpoint blocked the template picker. It now uses only the paginated v2 response and enables templates whose buildStatus is ready. Names fall back through names, aliases, and templateID; non-ready builds remain visible with their status.

Remove the legacy route from the docs proxy and update the SDK quickstart to use v2, including build status and pagination guidance. This follows merged PR #25.

Validation: 13 Playground tests passed, including multi-page v2 loading, unnamed templates, build readiness, and rejection of the legacy proxy route. Content, internal-link, public API surface checks and diff whitespace checks passed. A read-only production v2 request returned HTTP 200 with four templates (three public, one private), all with buildStatus: ready. No sandbox was created or modified.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T06:13:11.049254Z ca4b56e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca4b56e158

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sandbox/quickstart.md
Comment on lines +59 to 60
curl --fail --silent --show-error 'https://sandbox.sandbase.ai/v2/templates?limit=100' \
-H "X-API-Key: $E2B_API_KEY"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Expose pagination headers in the curl example

When an organization has more than 100 templates, this command hides the X-Next-Token that the following paragraph requires, so users cannot discover or request later pages from the documented output. curl --help all documents --include as including response headers and --dump-header as writing them to a file, but neither option is present here; add one of them or provide a separate command that retrieves the pagination header.

Useful? React with 👍 / 👎.

@sam2tom
sam2tom merged commit 655657a into main Sep 29, 2026
1 check passed
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