Skip to content

feat(sandboxes): create, exec, cp and ls - #445

Merged
pdonohoe02 merged 2 commits into
mainfrom
claude/project-thread-n88n41
Nov 25, 2026
Merged

pdonohoe02 merged 2 commits into
mainfrom
claude/project-thread-n88n41

Conversation

@pdonohoe02

Copy link
Copy Markdown
Contributor

Requested by Patrick · project thread

Summary

  • floo sandboxes create --app NAME creates a sandbox and prints its id on stdout (--image-file, --size, --timeout, --env, --name, --tag).
  • floo sandboxes exec ID -- cmd args runs a command, prints each stream where it wrote it, and exits with its exit code.
  • floo sandboxes cp copies 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.
  • Live against dev once floo#4998 reaches dev.

Discovered Issues

None


Generated by Claude Code

`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
@pdonohoe02 pdonohoe02 self-assigned this Nov 25, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T18:52:23.141258Z d616529 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/commands/sandboxes.rs Resolved
Comment thread src/commands/sandboxes.rs Resolved
@pdonohoe02
pdonohoe02 merged commit 242aa91 into main Nov 25, 2026
7 checks passed
@pdonohoe02
pdonohoe02 deleted the claude/project-thread-n88n41 branch November 25, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants