Repository navigation
feat(sandboxes): create, exec, cp and ls - #445
Merged
Merged
Conversation
`floo sandboxes` could only find, tag and end sandboxes; creating one or running a command needed the SDK. On the API's new JSON routes (getfloo/floo#4998): - `floo sandboxes create --app NAME` prints the new sandbox's id on stdout, with --image-file, --size, --timeout, --env, --name, --tag. - `floo sandboxes exec ID -- cmd args` prints each stream where the command wrote it and exits with its exit code. - `floo sandboxes cp` copies a file in or out (ID:/path; `-` for stdin or stdout), text or bytes. - `floo sandboxes ls ID [PATH]` lists a directory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Eufw48aqkZ9aSBLhMwfbsB
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d616529439
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Eufw48aqkZ9aSBLhMwfbsB
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.
Requested by Patrick · project thread
Summary
floo sandboxes create --app NAMEcreates a sandbox and prints its id on stdout (--image-file,--size,--timeout,--env,--name,--tag).floo sandboxes exec ID -- cmd argsruns a command, prints each stream where it wrote it, and exits with its exit code.floo sandboxes cpcopies a file in or out (ID:/path,-for stdin/stdout), text or bytes;floo sandboxes ls ID [PATH]lists a directory.Merge only after getfloo/floo#4998 is in prod: these call its new routes.
Issue Closure (Required)
N/A: asked directly by Patrick in the project thread; no issue was filed.
Changes
src/commands/sandboxes.rs: the four commands.src/api_client.rs: their calls; create and exec wait past the usual 30 s (an image's first build, a command's own timeout).src/cli.rs: arguments, help and examples (drops "the CLI never creates one").tests/sandboxes_tests.rs: mock-API tests for each.Test Plan
./scripts/test(fmt, clippy -D warnings, all tests): passes.Discovered Issues
None
Generated by Claude Code