Skip to content

fix: prevent stale config migration during update#28

Merged
dkmnx merged 3 commits intomainfrom
develop
Mar 29, 2026
Merged

fix: prevent stale config migration during update#28
dkmnx merged 3 commits intomainfrom
develop

Conversation

@dkmnx
Copy link
Copy Markdown
Owner

@dkmnx dkmnx commented Mar 29, 2026

Summary

Stops kairo update from migrating provider models with stale defaults from the pre-update binary, which could rewrite configured models after an upgrade. This also adds regression coverage for the update flow and documents the fix in the changelog.

Changes

  • remove post-install config migration from cmd/update.go
  • inject update-step helpers so the update flow can be tested deterministically
  • add a regression test ensuring kairo update leaves config.yaml unchanged after install
  • document the updater fix in CHANGELOG.md

Test Plan

  • go test ./cmd -count=1
  • Verified the regression test covers preserving the configured model during update

@dkmnx dkmnx merged commit 61ef743 into main Mar 29, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant