mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Update notification template (#3035)
This commit is contained in:
@@ -567,6 +567,9 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => {
|
|||||||
return (
|
return (
|
||||||
<StreamingContext.Provider value={streamingState}>
|
<StreamingContext.Provider value={streamingState}>
|
||||||
<Box flexDirection="column" marginBottom={1} width="90%">
|
<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.
|
* 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
|
* 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">
|
<Box flexDirection="column" key="header">
|
||||||
<Header terminalWidth={terminalWidth} />
|
<Header terminalWidth={terminalWidth} />
|
||||||
{!settings.merged.hideTips && <Tips config={config} />}
|
{!settings.merged.hideTips && <Tips config={config} />}
|
||||||
{updateMessage && <UpdateNotification message={updateMessage} />}
|
|
||||||
</Box>,
|
</Box>,
|
||||||
...history.map((h) => (
|
...history.map((h) => (
|
||||||
<HistoryItemDisplay
|
<HistoryItemDisplay
|
||||||
|
|||||||
Reference in New Issue
Block a user