Skip to content

fix(config): report legacy config migration#2559

Draft
cyq1017 wants to merge 3 commits into
Hmbown:mainfrom
cyq1017:codex/2369-loud-config-migration
Draft

fix(config): report legacy config migration#2559
cyq1017 wants to merge 3 commits into
Hmbown:mainfrom
cyq1017:codex/2369-loud-config-migration

Conversation

@cyq1017
Copy link
Copy Markdown
Contributor

@cyq1017 cyq1017 commented Jun 2, 2026

Problem

The first-run config migration copies ~/.deepseek/config.toml into ~/.codewhale/config.toml, but the successful migration is only logged. Users who keep editing the legacy file can miss that the active copy moved.

Change

  • return the copied legacy and primary config paths from migrate_config_if_needed
  • print a one-time stderr notice when the migration actually copies the file
  • keep the migration non-fatal and preserve the existing no-overwrite behavior

Verification

  • cargo test -p codewhale-config --locked
  • cargo check -p codewhale-tui --all-features --locked
  • cargo fmt --check
  • git diff --check

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cyq1017 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cyq1017 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cyq1017 has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

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