mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Collapse turn details by default in the full-screen transcript (#63788)
## What changed Summarize tool calls and collapse completed turns when `tui.collapse_turn_details` is unset, including when the entire `[tui]` table is absent. Set `tui.collapse_turn_details = false` to opt out. Keep patches out of tool-call summaries so their inline diffs stay available for review during approval. Record the configured setting at startup with the `codex.tui.collapse_turn_details` counter. ## Testing Update configuration tests to cover the new default and an explicit opt-out. GitOrigin-RevId: 8a1de12bd2a26f445bbc1eee68f31fe93fe4925a
This commit is contained in:
@@ -190,7 +190,6 @@ async fn follow_control_click_preserves_draft_caret_and_composer_geometry() -> R
|
||||
));
|
||||
}
|
||||
|
||||
app.local_settings.tui.collapse_turn_details = true;
|
||||
for id in 1..=6 {
|
||||
app.transcript_cells
|
||||
.push(Arc::new(crate::history_cell::new_web_search_call(
|
||||
|
||||
@@ -1802,6 +1802,7 @@ mod browsing;
|
||||
#[tokio::test]
|
||||
async fn find_refreshes_live_details_before_searching_the_first_query() -> Result<()> {
|
||||
let mut app = crate::app::test_support::make_test_app().await;
|
||||
app.local_settings.tui.collapse_turn_details = false;
|
||||
crate::chatwidget::tests::helpers::set_active_cell(
|
||||
&mut app.chat_widget,
|
||||
Box::new(crate::exec_cell::new_active_exec_command(
|
||||
@@ -2401,7 +2402,6 @@ async fn clickable_transcript_foreground_follows_mouse_motion() -> Result<()> {
|
||||
let mut tui = crate::tui::test_support::make_test_tui()?;
|
||||
tui.set_owned_screen(/*owned*/ true)?;
|
||||
let size = tui.terminal.size()?;
|
||||
app.local_settings.tui.collapse_turn_details = true;
|
||||
app.transcript_cells = vec![
|
||||
user_cell("See https://prompt.example/ for context."),
|
||||
Arc::new(history_cell::AgentMarkdownCell::new(
|
||||
|
||||
Reference in New Issue
Block a user