Skip to content

Remove stdin fallbacks for sandboxes without write offsets - #381

Draft
kishorekrd wants to merge 1 commit into
mainfrom
kishore/command-stdin-cleanup
Draft

kishorekrd wants to merge 1 commit into
mainfrom
kishore/command-stdin-cleanup

Conversation

@kishorekrd

Copy link
Copy Markdown
Contributor

Every sandbox now supports stdin write offsets, so the SDK no longer needs the fallbacks for ones that don't:

  • Command always sends an offset, instead of switching to unsafe writes when a response lacks bytesWritten. If it can't learn the current offset, it fails before writing rather than assuming 0.
  • A 504 no longer triggers an extra empty request to find the bytes written; the timeout response already includes them.

@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sandbox Ready Ready Preview, v0 Oct 12, 2026 6:32pm UTC
sandbox-cli Ready Ready Preview Oct 12, 2026 6:32pm UTC
sandbox-sdk-ai-example Ready Ready Preview Oct 12, 2026 6:32pm UTC
workflow-code-runner Ready Ready Preview Oct 12, 2026 6:32pm UTC

Request Review

This branch was successfully deployed

4 active deployments
Preview – sandbox-sdk-ai-example — 2ff3acc5 Deployed Oct 12, 2026 by vercel[bot]
Preview – sandbox — 2ff3acc5 Deployed Oct 12, 2026 by vercel[bot]
Preview – workflow-code-runner — 2ff3acc5 Deployed Oct 12, 2026 by vercel[bot]
Preview – sandbox-cli — 2ff3acc5 Deployed Oct 12, 2026 by vercel[bot]
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