summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEddie Santos <[email protected]>2025-07-02 13:26:14 -0700
committerGitHub <[email protected]>2025-07-02 20:26:14 +0000
commit82a0ac3d1e9c8909186de47da540ad07a93d4cb7 (patch)
tree9765d6139298204208ac8a1f3d5fd88c88334409
parentedd69cb7d4dd616049fe604be10067683247568d (diff)
Update notification template (#3035)
-rw-r--r--packages/cli/src/ui/App.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx
index a805f721..c6cd567c 100644
--- a/packages/cli/src/ui/App.tsx
+++ b/packages/cli/src/ui/App.tsx
@@ -567,6 +567,9 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => {
return (
<StreamingContext.Provider value={streamingState}>
<Box flexDirection="column" marginBottom={1} width="90%">
+ {/* Move UpdateNotification outside Static so it can re-render when updateMessage changes */}
+ {updateMessage && <UpdateNotification message={updateMessage} />}
+
{/*
* The Static component is an Ink intrinsic in which there can only be 1 per application.
* Because of this restriction we're hacking it slightly by having a 'header' item here to
@@ -584,7 +587,6 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => {
<Box flexDirection="column" key="header">
<Header terminalWidth={terminalWidth} />
{!settings.merged.hideTips && <Tips config={config} />}
- {updateMessage && <UpdateNotification message={updateMessage} />}
</Box>,
...history.map((h) => (
<HistoryItemDisplay