Add keyboard based fast switching between agents in TUI (#13923)

This commit is contained in:
gabec-openai
2026-03-10 19:41:51 -07:00
committed by Michael Bolin
parent 12ee9eb6e0
commit 180a5820fc
10 changed files with 752 additions and 102 deletions

View File

@@ -1125,6 +1125,16 @@ impl BottomPane {
self.request_redraw();
}
}
/// Updates the contextual footer label and requests a redraw only when it changed.
///
/// This keeps the footer plumbing cheap during thread transitions where `App` may recompute
/// the label several times while the visible thread settles.
pub(crate) fn set_active_agent_label(&mut self, active_agent_label: Option<String>) {
if self.composer.set_active_agent_label(active_agent_label) {
self.request_redraw();
}
}
}
#[cfg(not(target_os = "linux"))]