Serialize settings applies; log fallback save error

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 20:24:17 -04:00
parent 324aa3ebce
commit 326990d69a
3 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -82,7 +82,9 @@ func main() {
if err := applyFn(cfg); err != nil {
log.Printf("settings: %v; falling back to claude backend", err)
cfg.AIBackend = "claude"
_ = settings.Save(settingsPath, cfg)
if err := settings.Save(settingsPath, cfg); err != nil {
log.Printf("settings: could not persist claude fallback to %s: %v", settingsPath, err)
}
if err := applyFn(cfg); err != nil {
log.Fatalf("settings: apply failed even with claude: %v", err)
}