mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Add a reasoning summary picker to /config (#62905)
## What changed Choose Auto, Concise, Detailed, or None under Sessions in `/config`. The picker saves `model_reasoning_summary` through the connected app server for new chats. The panel shows the effective value and reports when a config or launch setting overrides the saved choice. ## Testing Add coverage for the picker and for saving Auto explicitly when the setting was previously unset. Verify that the active chat keeps its setting and that the panel reflects a profile override. GitOrigin-RevId: cd027a6b16879a656b8d8b21488f0588c98f9077
This commit is contained in:
@@ -33,6 +33,17 @@ impl ChatWidget {
|
||||
self.app_event_tx
|
||||
.send(crate::app_event::AppEvent::Provider(event));
|
||||
}
|
||||
ConfigEditor::ReasoningSummary => {
|
||||
let Some((backend, summary)) = self.config_panel_reasoning_summary else {
|
||||
self.config_editor_open_failed("Reasoning summary is unavailable.".into());
|
||||
return;
|
||||
};
|
||||
let keymap = self.bottom_pane.list_keymap();
|
||||
self.bottom_pane
|
||||
.show_selection_view(crate::config_panel::reasoning_summary(
|
||||
summary, backend, &keymap,
|
||||
));
|
||||
}
|
||||
ConfigEditor::Theme => self.open_theme_picker(),
|
||||
ConfigEditor::Effects => {
|
||||
let keymap = self.bottom_pane.list_keymap();
|
||||
@@ -220,6 +231,10 @@ impl ChatWidget {
|
||||
self.local_settings.transcript_mode,
|
||||
),
|
||||
custom_notification_filters: self.local_settings.custom_notification_filters,
|
||||
reasoning_summary: self
|
||||
.config_panel_reasoning_summary
|
||||
.map(|(_, summary)| summary)
|
||||
.ok_or("Reconnect or update the connected server to change this setting"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -129,6 +129,7 @@ impl ChatWidget {
|
||||
config,
|
||||
local_settings,
|
||||
config_panel_tui,
|
||||
config_panel_reasoning_summary: None,
|
||||
effective_service_tier,
|
||||
skills_all: Vec::new(),
|
||||
skills_initial_state: None,
|
||||
|
||||
@@ -587,7 +587,10 @@ impl ChatWidget {
|
||||
self.open_status_line_setup();
|
||||
}
|
||||
SlashCommand::Config => {
|
||||
self.config_panel_reasoning_summary = None;
|
||||
self.open_config_panel();
|
||||
self.app_event_tx
|
||||
.send(AppEvent::RefreshConfigReasoningSummary);
|
||||
}
|
||||
SlashCommand::Theme => {
|
||||
self.open_theme_picker();
|
||||
|
||||
Reference in New Issue
Block a user