Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

@agents-git-bot agents-git-bot bot commented Nov 28, 2025

Summary

  • Document top-level await support for JavaScript and TypeScript code execution
  • Document variable persistence across executions with const, let, and var
  • Add examples showing multi-step workflows with persistent state

Context

This documentation update corresponds to cloudflare/sandbox-sdk#261, which adds top-level await support and variable hoisting to JavaScript code execution in the Sandbox SDK.

Changes

  • Added new section "JavaScript and TypeScript features" to Code Interpreter API documentation
  • Includes examples of:
    • Using top-level await for async operations (fetch API)
    • Variable persistence across multiple executions
    • Multi-step workflows within a context

Related

Generated with Claude Code

@github-actions
Copy link
Contributor

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

Pattern Owners
/src/content/docs/sandbox/ @whoiskatrin, @ghostwriternr, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

Add documentation for new top-level await capability in JavaScript/TypeScript
code execution. Variables declared with const, let, or var now persist across
executions within a context, enabling multi-step workflows.

Related PR: cloudflare/sandbox-sdk#261
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.

2 participants