Remove version field from metadata.json

- Removes noisy version mismatch warnings on every bd upgrade
- Version field in metadata.json was redundant with daemon version checking via RPC
- Daemon version mismatches still detected via HealthResponse
- Removes checkVersionMismatch() function and related test file
- Updates .beads/.gitignore to properly ignore merge artifacts

Amp-Thread-ID: https://ampcode.com/threads/T-7ba8aff2-97a0-4d0c-9008-e858bdfadd61
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-11-08 18:16:39 -08:00
parent 384a369acf
commit 734579b1a2
10 changed files with 12 additions and 261 deletions

View File

@@ -456,11 +456,11 @@ This command:
}
}
// Save updated config with current version (fixes GH #193)
// Save updated config
if !dryRun {
if err := cfg.Save(beadsDir); err != nil {
if !jsonOutput {
color.Yellow("Warning: failed to update metadata.json version: %v\n", err)
color.Yellow("Warning: failed to save metadata.json: %v\n", err)
}
// Don't fail migration if config save fails
}
@@ -704,10 +704,7 @@ 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
cfg = configfile.DefaultConfig()
}
return cfg, nil