libtmux Reference MCP Search
On this page

tmux.Server.NewSessionConnection

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/connection.go
NewSessionConnection ( ctx : context.Context , request : NewSessionRequest , options : ConnectionOptions ) (Session, *Connection, error)
method [source]
method [source]
NewSessionConnection

NewSessionConnection creates a session with a control-mode client and keeps that same process as the first terminal command lane. Unlike Server.NewSession , it creates an attached session. If tmux reports a valid session ID before later setup fails, the returned partial session retains that ID and server. Cleanup closes the attached creator, so tmux policy may make the partial session no longer live. Before tmux 3.6, destroying the created session follows its detach-on-destroy policy and may end the connection. KillExisting is rejected because removing an existing session cannot be rolled back if later connection setup fails.

0 declared, 0 inherited

Esc

Type to search.