Store sandbox sessions in repo-local .rwx/sandboxes/ directory#397
Merged
Store sandbox sessions in repo-local .rwx/sandboxes/ directory#397
Conversation
d4b28a2 to
de465c8
Compare
6 tasks
dan-manges
previously approved these changes
Mar 5, 2026
Sandbox storage now prefers .rwx/sandboxes/sandboxes.json over the global ~/.config/rwx/sandboxes.json when a .rwx directory exists. Falls back to global storage for repos without .rwx/. The sandboxes directory is gitignored and excluded from run uploads.
de465c8 to
736c82e
Compare
dan-manges
approved these changes
Mar 5, 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.
This allows us to default to storing sandboxes locally rather than in
~/config/rwx, so that agents with strict permissions to only work in their current working directory can still access that file.As an example, if you're using Codex and have this set in your
config.toml, it cannot easily access the sandboxes file today:This PR moves to always using a local
.rwx/sandboxes/directory, lazy-creating.rwxat the git root (or CWD) if one doesn't already exist.Summary
.rwx/sandboxes/sandboxes.json— global~/.config/rwx/sandboxes.jsonsupport has been removed.rwxdirectory exists, one is created at the git repository root (or CWD if not in a git repo)sandboxes/directory is gitignored (via*pattern) and excluded from run uploadsGetTopLevel()to the git client for finding the repo rootservice_sandbox.goTest plan
go test ./internal/... ./cmd/...)golangci-lint run ./...)rwx sandbox start/exec/list/stop— verify sessions stored in.rwx/sandboxes/sandboxes.json.rwx/— verify.rwxis lazy-created at git root.rwx/sandboxes/is not uploaded with runs