Skip to main content

expand_under_home_override

Function expand_under_home_override 

Source
pub fn expand_under_home_override(path: &str) -> Option<PathBuf>
Expand description

A ~/.agentmux[/…] path re-rooted under AGENTMUX_HOME_OVERRIDE, when that is set; None for any other path or when it is not set.

An isolated srv (a test or dev instance started with the override) keeps its data under that root, but its $HOME is still the real one, so a stored ~/.agentmux/agents/<slug> workspace expanded against $HOME and was created under the real ~/.agentmux/agents/. Every ~ expander that can see such a path goes through this first.