mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
## What changed Remove the `/personality` command, selection popup, tooltip, and associated settings update and persistence handlers. Stop sending a personality override with TUI user turns. GitOrigin-RevId: 0549a1f9dcfd8118340fad4b60fd24d4eee7f93a
42 lines
1.4 KiB
Rust
42 lines
1.4 KiB
Rust
//! Settings-adjacent popup surfaces for `ChatWidget`.
|
|
//!
|
|
//! This keeps theme and experimental-feature UI out of the main
|
|
//! orchestration module without changing their event wiring.
|
|
|
|
use super::*;
|
|
|
|
impl ChatWidget {
|
|
pub(super) fn open_theme_picker(&mut self) {
|
|
let codex_home = codex_utils_home_dir::find_codex_home().ok();
|
|
let params = crate::theme_picker::build_theme_picker_params(
|
|
self.local_settings.tui.theme.as_deref(),
|
|
codex_home.as_deref(),
|
|
self.last_rendered_width.get(),
|
|
);
|
|
self.bottom_pane.show_selection_view(params);
|
|
}
|
|
|
|
pub(crate) fn open_experimental_popup(&mut self) {
|
|
let Some(thread_id) = self.thread_id() else {
|
|
self.add_info_message(
|
|
"Experimental features are unavailable until startup completes.".to_string(),
|
|
/*hint*/ None,
|
|
);
|
|
return;
|
|
};
|
|
let (response_tx, response_rx) = tokio::sync::oneshot::channel();
|
|
self.app_event_tx.send(AppEvent::FetchExperimentalFeatures {
|
|
thread_id,
|
|
response_tx,
|
|
});
|
|
let view = ExperimentalFeaturesView::new(
|
|
Vec::new(),
|
|
thread_id,
|
|
Some(response_rx),
|
|
self.app_event_tx.clone(),
|
|
self.bottom_pane.list_keymap(),
|
|
);
|
|
self.bottom_pane.show_view(Box::new(view));
|
|
}
|
|
}
|