Repository navigation
fix(server): agents on a sandbox know it is disposable - #33
Merged
OmarAlex24 merged 1 commit intoNov 13, 2026
Merged
Conversation
Agents on a sandbox left handoffs in files, but the sandbox is deleted when its chat ends. Only Claude had guidance, in a skill it might never open, and it said everything under $HOME survives. Every launch and resume now writes a short, always-loaded block between stable markers into Claude's CLAUDE.md, Codex's AGENTS.md and Pi's global context file, rewriting only the block. The t3-sandbox-files skill shares its lifetime sentence and now says deliverables go in the reply or a pushed branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 tasks done
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.
Problem
Agents on a sandbox left handoffs and plans in files, but the sandbox is deleted when its chat ends. Only Claude got guidance, in a skill it might never open, and that skill said everything under
$HOMEsurvives. Codex and Pi got nothing.Change
Every launch and resume writes a short, always-loaded block between stable markers into Claude's
CLAUDE.md, Codex'sAGENTS.mdand Pi's global context file, rewriting only that block and keeping the user's own text. Sub-sandboxes get it too. Thet3-sandbox-filesskill now shares the same lifetime sentence: deliverables go in the reply or a pushed branch.Scope and approval
Requested by the fork owner in a T3 Code session. Part of stack pingdotgg#43 on
feat/sandbox-environments; each PR is one fix and builds on the one below it.Verification
SandboxProvisioner.test.ts: 129/129, including the block reaching sub-sandboxes and the resume rewrite beforet3 servesandboxSetup.test.tscase: keeps the user's text, one block across reruns, replaces an older block, picks Pi's and Codex's filesvp run check:changed omar/feat/sandbox-environmentspasses format, lint, knip, typecheck (42 packages) and react compiler; 582 of 583 tests pass, and the one failure (tailscaleScriptinsandboxSetup.test.ts) fails the same way on the base branchNot yet run in a real client; UI before/after captures will follow once the stack is installed.
Model and harness: Claude Opus 5.5 (implementation subagents at high effort, coordinated by Claude Opus 5.5) in Claude Code, running in T3 Code.
🤖 Generated with Claude Code