crates/tui/src/tui/history.rs:435 computes collapsed = folded ^ !verbose ^ thinking_default_expanded. Triple-XOR inverts intent: verbose ON plus default-expanded ON renders collapsed, and explicitly folding while verbose renders expanded. Replace with intent logic (explicit fold wins; otherwise verbose or default-expanded expands), add a keyboard inline expand/collapse for thinking blocks (currently mouse-click only via ReasoningAction::Expand), and cover the truth table with unit tests. Work in progress on a fix branch.
crates/tui/src/tui/history.rs:435 computes collapsed = folded ^ !verbose ^ thinking_default_expanded. Triple-XOR inverts intent: verbose ON plus default-expanded ON renders collapsed, and explicitly folding while verbose renders expanded. Replace with intent logic (explicit fold wins; otherwise verbose or default-expanded expands), add a keyboard inline expand/collapse for thinking blocks (currently mouse-click only via ReasoningAction::Expand), and cover the truth table with unit tests. Work in progress on a fix branch.