Skip to content

connect returns to the shell you were last in - #71

Merged
vitramir merged 1 commit into
mainfrom
persistent-shells-cli
Aug 14, 2026
Merged

vitramir merged 1 commit into
mainfrom
persistent-shells-cli

Conversation

@vitramir

Copy link
Copy Markdown
Contributor

A shell the CLI attaches to is the same shell the browser opens as a tab: both
name one through the sandbox layout, so work started in a terminal is picked up
in a tab and the other way round.

connect defaults to the most recently attached shell -- what tmux's own attach
does, and what someone reconnecting means. --tab names one by number or id,
--new opens another. start always opens a fresh one and records it, since
starting a sandbox has nothing to return to.

Whether the shell survives the connection is the environment's answer, not this
command's; naming one costs nothing where it does not. A layout the platform
cannot give us is not a reason to refuse a shell, and a failed write costs the
tab list on the next visit rather than the shell in front of you.

sandbox tabs lists them.

A shell the CLI attaches to is the same shell the browser opens as a tab: both
name one through the sandbox layout, so work started in a terminal is picked up
in a tab and the other way round.

connect defaults to the most recently attached shell -- what tmux's own attach
does, and what someone reconnecting means. --tab names one by number or id,
--new opens another. start always opens a fresh one and records it, since
starting a sandbox has nothing to return to.

Whether the shell survives the connection is the environment's answer, not this
command's; naming one costs nothing where it does not. A layout the platform
cannot give us is not a reason to refuse a shell, and a failed write costs the
tab list on the next visit rather than the shell in front of you.

sandbox tabs lists them.
@vitramir
vitramir merged commit 268078a into main Aug 14, 2026
4 of 5 checks passed
@vitramir
vitramir deleted the persistent-shells-cli branch August 14, 2026 03:42
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