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
@@ -255,7 +255,8 @@ impl TurnDetails {
{
self.pending.push((start + index, tool.clone()));
}
if calls.is_empty() {
// Keep the patch's inline diff disclosure available for approval.
if calls.is_empty() || any.is::<crate::history_cell::PatchHistoryCell>() {
group.finish(rows, cells);
} else {
if let Some(exec) = any.downcast_ref::<crate::exec_cell::ExecCell>()