From 4a7f760d25b280fb367ac9b3a8a7ac78563e3aff Mon Sep 17 00:00:00 2001 From: Kit Langton Date: Thu, 16 Jul 2026 22:08:22 -0400 Subject: [PATCH] fix(tui): preserve prompt footer actions (#37180) --- packages/tui/src/component/prompt/index.tsx | 194 +++++++++++--------- 1 file changed, 103 insertions(+), 91 deletions(-) diff --git a/packages/tui/src/component/prompt/index.tsx b/packages/tui/src/component/prompt/index.tsx index 6b076d394d..acffe2904b 100644 --- a/packages/tui/src/component/prompt/index.tsx +++ b/packages/tui/src/component/prompt/index.tsx @@ -1555,102 +1555,114 @@ export function Prompt(props: PromptProps) { } /> - - - - - - [⋯]}> - - - - 0 ? themeV2.background.action() : themeV2.text()}> - esc{" "} - 0 ? themeV2.background.action() : themeV2.text.subdued(), - }} - > - {store.interrupt > 0 ? "again to interrupt" : "interrupt"} - - - - - - {(progress) => ( - - - {progress()} - {".".repeat(move.creatingDots())} - - - )} - - - - (new working copy) - - - - }> - {(location) => ( - - {location()} - - )} - - - - - - {(file) => ( - - {file()} - - )} - + + - - - 0}> - - - {(shortcut) => {shortcut()} } - - - {(label) => {label()}} - - - · - - - {(label) => {label()}} - - 0}> - · - - 0}> - {statusItems().join(" · ")} - - - - - - {agentShortcut()} agents - - - - - {paletteShortcut()} commands - + + + + [⋯]}> + + + + 0 ? themeV2.background.action() : themeV2.text()} + wrapMode="none" + truncate + flexShrink={1} + > + esc{" "} + 0 ? themeV2.background.action() : themeV2.text.subdued(), + }} + > + {store.interrupt > 0 ? "again to interrupt" : "interrupt"} + + + - - - esc exit shell mode - + + {(progress) => ( + + + {progress()} + {".".repeat(move.creatingDots())} + + + )} + + + + + (new working copy) + + + + + }> + {(location) => ( + + {location()} + + )} + + + {(file) => ( + + {file()} + + )} + + + + + 0}> + + + {(shortcut) => {shortcut()} } + + + {(label) => {label()}} + + + · + + + {(label) => {label()}} + + 0}> + · + + 0}> + {statusItems().join(" · ")} + + + + + + {agentShortcut()} agents + + + + + {paletteShortcut()} commands + + + + + esc exit shell mode + + +