Skip to main content

agentmux_root

Function agentmux_root 

Source
pub fn agentmux_root() -> Option<PathBuf>
Expand description

The account-wide AgentMux root, for code that means ~/.agentmux itself (archives/, channels/, shared/). Inside srv, after startup, agentmux_common::data_paths::agentmux_root() answers with this version’s data directory instead (see [HOME_DIR]); this answers with the root captured before that. Only when no capture ran (tests, tools that don’t run srv’s main) does it ask the resolver; a capture that ran and found no root stays None, since asking now would get the data directory.