Skip to content

Fix CLI stdin race before SDK 0.1.6 release - #20

Merged
muxx merged 1 commit into
mainfrom
fix/cli-stdin-process-exit
Sep 16, 2026
Merged

muxx merged 1 commit into
mainfrom
fix/cli-stdin-process-exit

Conversation

@muxx

@muxx muxx commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

A short agentbox sandbox exec command can exit before the CLI closes piped stdin. Envd then returns NotFound for the process; the SDK currently converts that into a generic SandboxError, so the CLI reports a failure even though the command succeeded.

Map missing process IDs in sendStdin and closeStdin to CommandNotFoundError, and let the CLI treat that result as normal process completion while retaining failures for other errors. This fixes the reproducible non-interactive KVM release smoke for SDK 0.1.6.

Validation: pnpm format:check, pnpm lint, pnpm typecheck, pnpm test, make go-check, reproducible make generate, release artifact build/install checks, and the complete test-release-runtime.sh suite against the dev KVM runtime (JavaScript, Python, Go, CLI, private traffic, template build).

@muxx
muxx merged commit 4b342f6 into main Sep 16, 2026
14 checks passed
@muxx
muxx deleted the fix/cli-stdin-process-exit branch September 16, 2026 21:41
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