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

This commit is contained in:
gabec-openai authored and Michael Bolin committed 2026-03-11 12:33:10 -07:00
1 parent 12ee9eb6e0
commit 180a5820fc
10 files changed
+752 -102

No files matched your search

+10
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"))]