feat(core,tui,app-server) personality migration (#10307)

## Summary
Keep existing users on Pragmatic, to preserve behavior while new users
default to Friendly

## Testing
- [x] Tested locally
- [x] add integration tests
This commit is contained in:
Dylan Hurd
2026-01-31 17:25:14 -07:00
committed by GitHub
parent 8a461765f3
commit 0f9858394b
6 changed files with 445 additions and 0 deletions

View File

@@ -215,6 +215,23 @@ pub async fn run_main(
.await
{
Ok(config) => {
let effective_toml = config.config_layer_stack.effective_config();
match effective_toml.try_into() {
Ok(config_toml) => {
if let Err(err) = codex_core::personality_migration::maybe_migrate_personality(
&config.codex_home,
&config_toml,
)
.await
{
warn!(error = %err, "Failed to run personality migration");
}
}
Err(err) => {
warn!(error = %err, "Failed to deserialize config for personality migration");
}
}
let auth_manager = AuthManager::shared(
config.codex_home.clone(),
false,