Skip to content

fix(cli): sandbox feedback fixes (1.0.38)#2

Merged
robertohluna merged 46 commits into
mainfrom
fix/cli-sandbox-feedback-2026-06-03
Jun 3, 2026
Merged

fix(cli): sandbox feedback fixes (1.0.38)#2
robertohluna merged 46 commits into
mainfrom
fix/cli-sandbox-feedback-2026-06-03

Conversation

@robertohluna

Copy link
Copy Markdown
Contributor

Fixes confirmed client feedback on the sandbox CLI. Build clean (tsc), 173/173 tests pass.

  • cp/ls crash (Cannot read properties of undefined (reading 'find')): listHosts() returns ?? []; top-level cp/ls now give a clear "use miosa sandbox cp/ls" error for sandbox IDs instead of crashing.
  • exec output cut off at ~45 chars: printObject prints full stdout/stderr; 48-char cell clipping retained for table columns only.
  • exec <id> bash -c "..." → unknown option: allowUnknownOption + allowExcessArguments on exec/run; joinCommandWords shell-quotes multi-word args so quoting survives; -- documented.
  • publish --wait timeout 180s → 600s; explicit --no-wait; clearer "still building" message.
  • publish duplicate-on-retry: attaches to an existing same-name deployment in a non-terminal state instead of creating a duplicate.
  • --follow/--stream streaming exec output.
  • new sandbox ports <id> subcommand.

Version bumped 1.0.37 → 1.0.38.

…ting, publish, ports, follow

- cp/ls: guard against undefined host list (client.listHosts -> ?? []) and
  give a clear error pointing sandbox IDs to `miosa sandbox cp/ls` instead of
  crashing with "Cannot read properties of undefined (reading 'find')".
- exec: printObject prints full stdout/stderr (no clipping); the 48-char
  cell clipping stays for table columns only.
- exec/run: allowUnknownOption + allowExcessArguments so `bash -c "..."` passes
  through; joinCommandWords shell-quotes multi-word args so quoting survives.
- publish: default --wait timeout 180s -> 600s; explicit --no-wait; clearer
  "still building" timeout message; attach to existing same-name deployment
  in a non-terminal state instead of creating a duplicate.
- exec/run: --follow/--stream streams output via background logfile polling.
- new `sandbox ports <id>` subcommand lists listening TCP ports (ss or /proc).
@robertohluna robertohluna merged commit be3919e into main Jun 3, 2026
0 of 2 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