Block until a background command completes and return its result.
pid completes, then returns the
full CommandResult. The process is removed from the tracked list after this call
returns.
If the PID is not found in the tracked process list, the endpoint returns a
CommandResult with exit_code: 1 and a "process not found" message in stderr.
sbx-<8 chars>.42"process not found" if the PID is
not tracked.0 indicates success. 1 when the
process was not found.| Status | Cause |
|---|---|
400 | pid path parameter is not a valid integer |
401 | Missing or invalid API key |
503 | Sandbox has no VM |
502 | envd daemon inside the VM is unreachable |