Update notification template (#3035)

This commit is contained in:
Eddie Santos 2025-07-02 13:26:14 -07:00 committed by GitHub
parent edd69cb7d4
commit 82a0ac3d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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