agent: code-atomiser-fix — repair sed-scar provenance from 26c7307
The Magnotia->Lumotia rebrand commit 26c7307 ran a too-greedy
s/magnotia/lumotia/g across comments that already had the correct
legacy/target distinction. The commit author caught one case in
src-tauri/src/lib.rs ("magnotia era" -> "lumotia era" restored) but
missed four others, plus a duplicated word in a Cargo description
from an earlier two-name sed.
Fixed sites:
* crates/storage/src/database.rs — migrate_legacy_setting_keys docstring
* src/lib/utils/localStorageMigration.ts — file-level docstring
* src/lib/utils/settingsMigrations.ts — historical-key comment
* crates/cloud-providers/Cargo.toml — description duplication
* src-tauri/src/lib.rs — data-dir migration log + doc
None of the underlying code paths were wrong; the lies were
docstring-only. Risk: future maintainer reading any of these
comments at incident time could invert the migration direction or
conclude no migration ran.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,9 @@ use sqlx::SqlitePool;
|
||||
use tauri::Manager;
|
||||
use tracing_subscriber::EnvFilter;
|
||||
|
||||
use lumotia_core::paths::{migrate_legacy_data_dir, MigrationStatus};
|
||||
use lumotia_core::paths::{
|
||||
check_target_ambiguity, migrate_legacy_data_dir, MigrationStatus,
|
||||
};
|
||||
use lumotia_core::types::EngineName;
|
||||
use lumotia_llm::LlmEngine;
|
||||
use lumotia_storage::{
|
||||
@@ -224,7 +226,7 @@ pub fn run() {
|
||||
|
||||
builder
|
||||
.setup(|app| {
|
||||
// One-shot legacy data-dir migration: rename ~/.local/share/lumotia
|
||||
// One-shot legacy data-dir migration: rename ~/.local/share/magnotia
|
||||
// (and macOS/Windows equivalents) to the convention-preserving
|
||||
// lumotia path on first launch after the rebrand. Idempotent —
|
||||
// safe to call on every boot. A migration error is fatal: silently
|
||||
@@ -238,7 +240,7 @@ pub fn run() {
|
||||
from = %from.display(),
|
||||
to = %to.display(),
|
||||
renamed_db,
|
||||
"migrated legacy lumotia data dir to lumotia"
|
||||
"migrated legacy magnotia data dir to lumotia"
|
||||
),
|
||||
Ok(MigrationStatus::TargetAlreadyExists { .. }) => {}
|
||||
Ok(MigrationStatus::NoLegacyFound) => {}
|
||||
|
||||
Reference in New Issue
Block a user