mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
Reuse the transcript overlay's interaction check for its browsing footer (#65156)
## What changed Use `has_active_interaction()` to decide whether to show the browsing footer, removing the duplicate checks for pending selection mode and active viewport interactions. GitOrigin-RevId: 9264a427feaef94bc298a18b79d440de721aadb4
This commit is contained in:
@@ -89,8 +89,7 @@ impl TranscriptOverlay {
|
||||
pub(crate) fn render(&mut self, area: Rect, buf: &mut Buffer) {
|
||||
Clear.render(area, buf);
|
||||
let browsing = self.browsing_footer.is_some()
|
||||
&& !self.pending_select_mode
|
||||
&& !self.view.has_active_interaction()
|
||||
&& !self.has_active_interaction()
|
||||
&& self.view.history != TranscriptHistoryState::Failed;
|
||||
let mut body = area;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user