@@ -307,24 +307,24 @@ Attach to the canonical main process in a running sandbox:
307307openshell sandbox connect my-sandbox
308308```
309309
310- Disconnecting does not stop the process or close its stdin. A later `connect`
311- attaches to the same process instance and replays up to 1 MiB of recent
312- output. One attachment owns stdin at a time. Use `sandbox exec --tty --
313- /bin/bash -l` when you want a new independent shell instead.
310+ Press `Ctrl-P`, then `Ctrl-Q` in sequence to disconnect. The main process keeps
311+ running and its stdin stays open. A later `connect` attaches to the same process
312+ instance and replays up to 1 MiB of recent output. One attachment owns stdin
313+ at a time. Use `sandbox exec --tty -- /bin/bash -l` when you want a new
314+ independent shell instead.
314315
315316If an established connection is interrupted, for example when a laptop sleeps
316317and wakes, the CLI obtains a new SSH session and reattaches to the same main
317318process. It retries transient transport failures for up to 60 seconds. Initial
318319authentication failures, sandbox lifecycle changes, and clean SSH exits are
319320not retried.
320321
321- Press `Ctrl-P`, then `Ctrl-Q` to disconnect without terminating the main
322- process. `Ctrl-C` retains its normal terminal behavior and interrupts the
323- foreground process. For read-only attachments, `Ctrl-C` only exits the
324- current viewer. OpenSSH' s ` ~.` escape reports the same status as a broken
325- transport, so it starts automatic recovery instead of exiting. After ` ~.` , use
326- ` Ctrl-P` , then ` Ctrl-Q` once OpenShell reattaches, or press ` Ctrl-C` while the
327- CLI is between retry attempts to cancel recovery.
322+ `Ctrl-C` retains its normal terminal behavior and interrupts the foreground
323+ process. For read-only attachments, `Ctrl-C` only exits the current viewer.
324+ OpenSSH' s ` ~.` escape reports the same status as a broken transport, so it
325+ starts automatic recovery instead of exiting. After ` ~.` , use ` Ctrl-P` , then
326+ ` Ctrl-Q` once OpenShell reattaches, or press ` Ctrl-C` while the CLI is between
327+ retry attempts to cancel recovery.
328328
329329Launch VS Code or Cursor directly into the sandbox workspace:
330330
@@ -370,6 +370,8 @@ Run an interactive shell with a TTY:
370370openshell sandbox exec -n my-sandbox --tty -- /bin/bash
371371```
372372
373+ Run `exit` or press `Ctrl-D` to close this separate shell.
374+
373375OpenShell allocates a TTY automatically when both stdin and stdout are terminals. Force the behavior with `--tty` or disable it with `--no-tty`.
374376
375377| Flag | Purpose |
0 commit comments