Documentation
¶
Overview ¶
Package launch renders how a user continues a moved session: the first message that tells the agent what happened, and the command line for the user's shell.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionName ¶
SessionName is a short name for Remote Control and session lists: "fix-tests@laptop".
func Shell ¶
Shell renders a command for a shell family ("posix" or "powershell"). When promptFile is set, the command's last argument (the prompt) is read from that file instead of being inlined. The command's Unset variables are removed for it and its Env set (env -u K V=x, or Remove-Item and Set-Item in PowerShell, which opens a window of its own for it).
func StartPrompt ¶
StartPrompt is the first message of a moved session: what happened, what that implies, and a request to check the environment before continuing.
Types ¶
type Context ¶
type Context struct {
AgentName string // the agent that resumes ("Claude Code")
SourceLocation string
SourceOS string
SourceVersion string // the agent version that last wrote the session
SourceCWD string
TargetLocation string
TargetOS string
TargetCWD string
Branch string
WorktreeNote string
Unpushed int
Dirty int
SecretsFound int
Redacted bool
OtherAccount bool // account-bound content was removed
Live bool // the source session was still running
Fork bool // the source keeps running
}
Context is what the moved session should know about its move.