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:
Eric Traut
2026-11-25 01:13:00 +00:00
committed by copyberry
parent 1ace17a02e
commit da973317bb
9 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -995,8 +995,8 @@ pub struct Tui {
#[serde(default = "default_true")]
pub fullscreen_transcript: bool,
/// Summarize tool calls and collapse completed turns in the full-screen transcript. Defaults to `false`.
#[serde(default)]
/// Summarize tool calls and collapse completed turns in the full-screen transcript. Defaults to `true`.
#[serde(default = "default_true")]
pub collapse_turn_details: bool,
/// Preferred docked sidebar width as a percentage of the terminal. Defaults to one third.