Skip to content

AI 0.25.3: No new settings-history entry on every update run

AI 0.25.3 fixes a small leak in the settings history: running mix phoenix_kit.update or mix phoenix_kit.doctor no longer adds a new entry each time.

Both tasks start the app in core’s update mode, where reading a setting returns nothing. The marker that says the old api_key migration has run therefore looked missing, and each such start wrote it again, leaving a permanent entry in the settings history. The module now reads the marker from the database row itself, so it is written once and stays.

The documentation of run_legacy_api_key_migration/0 is corrected too: an endpoint’s old api_key column is cleared when the endpoint is migrated, not kept.

Full release notes: AI 0.25.3

0.25.3 · 6 October 2026

Fixed

  • The legacy api_key migration marker is written once and stays (PR #35). mix phoenix_kit.update and mix phoenix_kit.doctor start the host with core’s update_mode on, where Settings.get_setting/2 answers nil without reading, so the marker looked absent and every such boot stamped a new value, adding a permanent settings-history entry each time. The check now reads the row itself.
  • The run_legacy_api_key_migration/0 docs said the legacy api_key column is never cleared; it is cleared to "" when an endpoint is migrated.

AI 0.25.3. Install or update: {:phoenix_kit_ai, "~> 0.25"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.