diff --git a/core/internal/config/deployer.go b/core/internal/config/deployer.go index 692ed4ea..b4beace5 100644 --- a/core/internal/config/deployer.go +++ b/core/internal/config/deployer.go @@ -213,6 +213,11 @@ func (cd *ConfigDeployer) deployNiriDmsConfigs(dmsDir, terminalCommand string) e for _, cfg := range configs { path := filepath.Join(dmsDir, cfg.name) + // Skip if file already exists to preserve user modifications + if _, err := os.Stat(path); err == nil { + cd.log(fmt.Sprintf("Skipping %s (already exists)", cfg.name)) + continue + } if err := os.WriteFile(path, []byte(cfg.content), 0644); err != nil { return fmt.Errorf("failed to write %s: %w", cfg.name, err) }