bootstrap

package
v0.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package bootstrap moves stagent's long-lived processes on macOS from the bootstrap namespace of the login session they were started in to the user's per-user one, as tmux does (compat/daemon-darwin.c).

A process started from a terminal of the GUI session inherits that session's bootstrap port. After the user logs out of the GUI the process keeps running, but the port no longer reaches Mach services such as configd, so programs it starts later cannot resolve host names (curl, git, MCP servers). The per-user bootstrap port outlives the GUI session, and while the user is logged in it still reaches the keychain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// Applies: the host is macOS, where Swap makes the swap.
	Applies bool
	// Swapped: the process uses the per-user bootstrap port now.
	Swapped bool
	// Err says why the swap failed; "" when it did not.
	Err string
}

Result is what Swap did.

func Swap

func Swap() Result

Swap does nothing off macOS.

func (Result) SurvivesLogout

func (r Result) SurvivesLogout() (survives, known bool)

SurvivesLogout reports whether the process can still reach Mach services (DNS) after the user logs out of the GUI; known is false off macOS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL