mirror of
https://github.com/openai/codex.git
synced 2026-05-05 22:01:37 +03:00
Add keyboard based fast switching between agents in TUI (#13923)
This commit is contained in:
committed by
Michael Bolin
parent
12ee9eb6e0
commit
180a5820fc
@@ -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"))]
|
||||
|
||||
Reference in New Issue
Block a user