Skip to main content

migrate_data_dir

Function migrate_data_dir 

Source
fn migrate_data_dir(requested: PathBuf) -> PathBuf
Expand description

The data folder migrate works on: the one the daemon opens given the same environment. The daemon turns its data folder into AGENTMUX_DATA_HOME and opens base::get_mux_db_dir(), which resolves through agentmux_root(), where AGENTMUX_HOME_OVERRIDE comes first, except for a data folder inside it (an isolated instance’s version folder, task #3569). Without the same resolution, the launcher’s migrate --prepare under a home override migrated the version’s folder while srv’s boot check read <override>/db, and srv never started (Korp@narko, after #5252).