diff --git a/.beads/config.json b/.beads/config.json index a57a1287..b1d2fd2f 100644 --- a/.beads/config.json +++ b/.beads/config.json @@ -1,5 +1,5 @@ { "database": "beads.db", - "version": "0.21.0", + "version": "0.21.3", "jsonl_export": "beads.jsonl" } \ No newline at end of file diff --git a/cmd/bd/migrate.go b/cmd/bd/migrate.go index d7f8dd0c..5ca7d322 100644 --- a/cmd/bd/migrate.go +++ b/cmd/bd/migrate.go @@ -440,6 +440,16 @@ This command: } } + // Save updated config with current version (fixes GH #193) + if !dryRun { + if err := cfg.Save(beadsDir); err != nil { + if !jsonOutput { + color.Yellow("Warning: failed to update config.json version: %v\n", err) + } + // Don't fail migration if config save fails + } + } + // Final status if jsonOutput { outputJSON(map[string]interface{}{ @@ -667,6 +677,9 @@ func loadOrCreateConfig(beadsDir string) (*configfile.Config, error) { // Create default if no config exists if cfg == nil { cfg = configfile.DefaultConfig(Version) + } else { + // Update version field in existing config (fixes GH #193) + cfg.Version = Version } return cfg, nil