mirror of
https://github.com/openai/codex.git
synced 2026-05-04 21:32:21 +03:00
chore(config) Rename config setting to personality (#10314)
## Summary Let's make the setting name consistent with the SlashCommand! ## Testing - [x] Updated tests
This commit is contained in:
@@ -1875,7 +1875,7 @@ impl App {
|
||||
let profile = self.active_profile.as_deref();
|
||||
match ConfigEditsBuilder::new(&self.config.codex_home)
|
||||
.with_profile(profile)
|
||||
.set_model_personality(Some(personality))
|
||||
.set_personality(Some(personality))
|
||||
.apply()
|
||||
.await
|
||||
{
|
||||
@@ -2325,7 +2325,7 @@ impl App {
|
||||
}
|
||||
|
||||
fn on_update_personality(&mut self, personality: Personality) {
|
||||
self.config.model_personality = Some(personality);
|
||||
self.config.personality = Some(personality);
|
||||
self.chat_widget.set_personality(personality);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user