Keep side conversations open when switching threads (#35011)

## What changed

- Add a configurable `toggle_side_conversation` TUI action, bound to `ctrl-/` by default, to switch between a side conversation and its parent without closing either.
- Show the active binding in the footer and distinguish switching from closing with `ctrl-c`.
- Allow starting a replacement side conversation from the parent, while cleaning up the previous side thread and preserving it if cleanup fails.
- Clean up retained side conversations when shutting down the current thread.

## Testing

- Cover shortcut remapping, conflicts, and compatibility with existing `ctrl-/` and `ctrl-7` bindings.
- Cover side-thread replacement and footer states for both the parent and side conversation.

GitOrigin-RevId: a621c21e1c45ba73197d59750b2e05efa5ee1081
This commit is contained in:
Eric Traut authored and copyberry committed 2026-07-23 21:03:40 +00:00
1 parent 62ba648136
commit 7d4b417cd1
20 files changed
+244 -27

No files matched your search

+2
View File
@@ -111,6 +111,8 @@ pub struct TuiGlobalKeymap {
pub toggle_fast_mode: Option<KeybindingsSpec>,
/// Toggle raw scrollback mode for copy-friendly transcript selection.
pub toggle_raw_output: Option<KeybindingsSpec>,
/// Switch between a side conversation and its parent without closing either.
pub toggle_side_conversation: Option<KeybindingsSpec>,
}
/// Chat context keybindings.