Repository navigation
fix(pi): suspend a sandbox that a crashed generation left running - #424
Merged
eersnington merged 1 commit intoDec 3, 2026
Merged
Conversation
This was referenced Dec 3, 2026
📟 Pip-Boy ·
|
| package (linux-x64-gnu) | @latest |
base | this PR | Δ vs base | packages |
|---|---|---|---|---|---|
@rivet-dev/pi |
405.8 MB | 405.9 MB | 405.9 MB | +3.2 KB (+0.0%) | 227 (0) |
@rivet-dev/sandbox-adapter |
114.5 KB | 114.5 KB | 114.5 KB | 0 | 1 (0) |
@sandbox-agent/cli-shared |
27.2 KB | 27.2 KB | 27.2 KB | 0 | 1 (0) |
@sandbox-agent/persist-indexeddb |
12.4 KB | 12.4 KB | 12.4 KB | 0 | 1 (0) |
@sandbox-agent/persist-postgres |
12.3 KB | 12.3 KB | 12.3 KB | 0 | 1 (0) |
@sandbox-agent/persist-rivet |
12.2 KB | 12.2 KB | 12.2 KB | 0 | 1 (0) |
@sandbox-agent/persist-sqlite |
12.3 KB | 12.3 KB | 12.3 KB | 0 | 1 (0) |
@sandbox-agent/react |
41.6 MB | 41.9 MB | 41.9 MB | 0 | 15 (0) |
acp-http-client |
6.7 MB | 6.7 MB | 6.7 MB | 0 | 3 (0) |
sandbox-agent |
30.9 MB | 30.9 MB | 30.9 MB | 0 | 8 (0) |
🧹 Rust dependencies
Skipped: this PR doesn't change any Rust code or dependencies.
🦀 Binaries
Skipped: this PR doesn't change any Rust code.
⏱ Timing
| job | wall time | slowest step |
|---|---|---|
zizmor |
32s | checkout · 12s |
changes |
19s | checkout · 15s |
footprint |
3m09s | Run pnpm --dir sandbox-agent install --frozen-lockfile · 1m03s |
⏭ native · ${{ matrix.platform }} |
— | skipped |
⏭ self-test |
— | skipped |
⏭ hygiene |
— | skipped |
report |
22s | checkout · 10s |
🔭 Full CI trace for this commit
One OpenTelemetry trace of CI and Pip-Boy for 963bd40: every job and step, with the sizes above attached. Run after CI finishes.
pnpm install --frozen-lockfile --filter 'pipboy...'
pnpm --filter pipboy pipboy trace --sha 963bd406e05cefd1dcf0aab3c93977390695ff7cAdd --otlp <url> to send it to any OTLP/HTTP collector.
Agent instruction: From a rivet-dev/agents checkout, run the commands above, then read the trace file the last command prints. List the slowest jobs and steps and explain where CI time went.
This was referenced Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Suspends the actor's stored sandbox on sleep even when this generation never connected to it. Before, a sandbox that a crashed generation left running stayed running, because sleep suspended only a sandbox connected in this generation.
SandboxSlotowns the sandbox for one generation.closeblocks new connects before it awaits anything, then suspends or destroys the connected, connecting, or stored sandbox.suspendto be safe on a suspended or missing sandbox, which fix(sandbox-adapter): make suspend and destroy noop on a suspended or missing sandbox #432 does for the built-in providers. Release both together.DOCKER_CONFIGpointed at the real~/.dockerbefore it movesHOMEto a temp directory, so the Docker CLI still finds the active context (OrbStack, Docker Desktop).Proof: a Docker test kills the process after a tool runs, then sleeps the next generation. The container stays
runningon the layer below and isexitedwith this PR.This is part 4 of 10 in a stack: