Add a command palette picker for local and SSH sessions

Discover attached and detached sessions over existing SSH connections. Focus an open view or attach to the selected session using its daemon identity, preserving the original shells.
This commit is contained in:
James Magahern
2026-11-17 19:36:19 -08:00
parent 2fa33e5e8c
commit 804ab007ee
11 changed files with 1869 additions and 85 deletions
+16 -2
View File
@@ -109,8 +109,22 @@ on the same host. A remote window reuses the focused SSH connection’s executab
and agent settings. For a nested SSH tab, the new window connects directly
from your computer, so the nested host must be reachable using your local
SSH configuration. Closing a window leaves its session available for reattachment.
To choose a session, run `psyterm --list` and pass its ID to `psyterm --attach ID`. With no ID,
`--attach` prefers the most recently used detached session and otherwise
Choose **Switch to session…** in the command palette to see your local sessions
and the sessions on each directly connected SSH host, including detached
sessions. For example, with one tab connected to `vigilant`, search for
`vigilant` to see every live session on that host’s psyTerm daemon. Select one
and press Enter. From a local workspace, another session on that host opens
in an adjacent SSH tab. From a standalone SSH window, it opens in a window.
An already open session can be focused directly.
The picker uses the existing SSH connection for discovery and refreshes while
open. Tabs reached through a nested SSH connection are grouped under the session
that hosts them. Remote discovery needs the updated local daemon and works with
existing v6 SSH hosts.
From the CLI, run `psyterm --list` and pass the session ID to
`psyterm --attach ID`. With no ID, `--attach` prefers the most recently used detached session and otherwise
selects the most recently used attached session.
Shells inherit the server's environment and receive