mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Hide the warning navigation hint for a single warning (#62642)
Show the TUI warning navigation hint only when there are multiple warnings to browse. Update the single-warning snapshots to reflect the shorter footer. GitOrigin-RevId: 8bcea7841d9fd84e037f59a6afa3e4ef2de6f01e
This commit is contained in:
+1
-1
@@ -25,4 +25,4 @@ expression: screen(&tui)
|
||||
|
||||
|
||||
|
||||
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
|
||||
k keep & next · esc dismiss & close · ⌃o copy
|
||||
|
||||
+1
-1
@@ -13,4 +13,4 @@ expression: warning
|
||||
|
||||
|
||||
|
||||
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
|
||||
k keep & next · esc dismiss & close · ⌃o copy
|
||||
|
||||
@@ -25,4 +25,4 @@ Earlier transcript row 21
|
||||
|
||||
|
||||
|
||||
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
|
||||
k keep & next · esc dismiss & close · ⌃o copy
|
||||
|
||||
@@ -107,7 +107,10 @@ impl Renderable for WarningsView {
|
||||
.map(crate::key_hint::ShortcutHint::display_label),
|
||||
"copy",
|
||||
),
|
||||
((!navigation.is_empty()).then_some(navigation), "warning"),
|
||||
(
|
||||
(self.entries.len() > 1 && !navigation.is_empty()).then_some(navigation),
|
||||
"warning",
|
||||
),
|
||||
(
|
||||
crate::footer_hint::scroll_keys(
|
||||
offset,
|
||||
|
||||
+1
-1
@@ -13,4 +13,4 @@ expression: "super::helpers::render_bottom_popup(&chat, 80)"
|
||||
|
||||
|
||||
|
||||
k keep & next · esc dismiss & close · ⌃o copy · ←/→ warning
|
||||
k keep & next · esc dismiss & close · ⌃o copy
|
||||
|
||||
Reference in New Issue
Block a user