Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

409 B
Raw Blame
/** Per-node persistent session name (tmux, Zellij and the Windows session host all use it). Must
 *  stay stable — it is the persistence key. Lives in `src/shared` so the renderer can map a host's
 *  session list back to canvas nodes with the exact rule core used to name them. */
export function nodeSessionName(persistKey: string): string {
  return `nt-${persistKey.replace(/[^a-zA-Z0-9_-]/g, '_')}`
}