Skip to content

feat(sdk): single API call to run, wait and get logs of command#223

Merged
QuiiBz merged 3 commits into
mainfrom
sdk/single-call-command-logs
Jun 16, 2026
Merged

feat(sdk): single API call to run, wait and get logs of command#223
QuiiBz merged 3 commits into
mainfrom
sdk/single-call-command-logs

Conversation

@QuiiBz

@QuiiBz QuiiBz commented Jun 5, 2026

Copy link
Copy Markdown
Member

The run-command endpoint now supports a new logs boolean field alongside the previous wait boolean field, that returns logs inside the ND-JSON stream. That allows us to do a single API call to run, wait and get the logs of a command, instead of two to run and wait, and get the logs

This is supported when providing stdout or stderr within runCommand(), or later on when calling logs()/output()/stdout()/stderr() on the CommandFinished. It is also only supported if we are not running commands in detached mode, as otherwise we are not waiting for the command to complete/not waiting for its logs

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
sandbox Ready Ready Preview, Comment, Open in v0 Jun 14, 2026 5:11pm
sandbox-cli Ready Ready Preview, Comment Jun 14, 2026 5:11pm
sandbox-sdk Ready Ready Preview, Comment Jun 14, 2026 5:11pm
sandbox-sdk-ai-example Ready Ready Preview, Comment Jun 14, 2026 5:11pm
workflow-code-runner Ready Ready Preview, Comment Jun 14, 2026 5:11pm

Request Review

Comment thread packages/vercel-sandbox/src/session.ts
@QuiiBz QuiiBz merged commit 387675a into main Jun 16, 2026
12 checks passed
@QuiiBz QuiiBz deleted the sdk/single-call-command-logs branch June 16, 2026 09:14
@github-actions github-actions Bot mentioned this pull request Jun 16, 2026
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.

2 participants