fix(config): migrate legacy bindings and optimize session resolve

This commit is contained in:
Hoshina
2026-04-07 22:57:10 +08:00
parent 3d60385958
commit 27db03e5ca
5 changed files with 436 additions and 19 deletions
+2
View File
@@ -1105,6 +1105,8 @@ func LoadConfig(path string) (*Config, error) {
return nil, fmt.Errorf("unsupported config version: %d", versionInfo.Version)
}
applyLegacyBindingsMigration(data, cfg)
if err = env.Parse(cfg); err != nil {
return nil, err
}