Skip to content

feat(cli): add --shell flag to sbx attach#20

Merged
ch99q merged 4 commits into
mainfrom
ch99q/add-sbx-shell-cmd
May 12, 2026
Merged

feat(cli): add --shell flag to sbx attach#20
ch99q merged 4 commits into
mainfrom
ch99q/add-sbx-shell-cmd

Conversation

@ch99q
Copy link
Copy Markdown
Contributor

@ch99q ch99q commented Apr 15, 2026

Summary

  • Add --shell flag to sbx attach so users can specify a custom shell (e.g. /bin/zsh) for PTY sessions
  • Use flag.FlagSet for proper argument parsing instead of raw positional args
  • Update README CLI reference table with the new flag

Test plan

  • sbx attach <id> still works with default shell
  • sbx attach --shell /bin/zsh <id> launches zsh
  • sbx attach with no args prints updated usage

ch99q added 2 commits April 15, 2026 14:31
Allow users to specify a custom shell (e.g. /bin/zsh) when attaching
to a sandbox PTY session. Uses flag.FlagSet for proper argument parsing.
The expose probe consumes one nc iteration, and nc needs time to
restart in the while loop. TestPortProxy and TestPortsCleanedOnDestroy
now retry like TestExposeAndClosePort already does.
@ch99q ch99q force-pushed the ch99q/add-sbx-shell-cmd branch from 3150316 to c2f8ff0 Compare April 15, 2026 12:31
ch99q added 2 commits April 15, 2026 16:33
The "no daemon" test group used a bare client.connect() without retry,
causing timeouts in CI when the MCP server process was slow to start.
WriteFrame previously used two separate Write calls (header, then
payload), allowing concurrent goroutines to interleave partial frames
and corrupt the stream. Combine into a single Write for atomicity.
@ch99q ch99q merged commit 466a9fa into main May 12, 2026
5 checks passed
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.

1 participant