Skip to main content

apply_config_migration_fixes

Function apply_config_migration_fixes 

Source
pub fn apply_config_migration_fixes(root: &Path) -> Result<bool>
Expand description

Rewrites .apm/config.toml (or apm.toml) to replace legacy [workers] command/args/model fields with the agent-wrapper shape.

Returns true when the file was rewritten, false when no legacy fields were detected (no-op) or when migration was blocked by a non-Claude command.