mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-03 14:10:43 +00:00
feat: add CLI version number to footer (#134)
This commit is contained in:
parent
60bee4b137
commit
7f3798e180
6 changed files with 227 additions and 5 deletions
|
|
@ -28,9 +28,10 @@ import { Tips } from './components/Tips.js';
|
|||
|
||||
interface AppProps {
|
||||
config: Config;
|
||||
cliVersion: string;
|
||||
}
|
||||
|
||||
export const App = ({ config }: AppProps) => {
|
||||
export const App = ({ config, cliVersion }: AppProps) => {
|
||||
const [history, setHistory] = useState<HistoryItem[]>([]);
|
||||
const [startupWarnings, setStartupWarnings] = useState<string[]>([]);
|
||||
const { streamingState, submitQuery, initError, debugMessage } =
|
||||
|
|
@ -165,6 +166,7 @@ export const App = ({ config }: AppProps) => {
|
|||
queryLength={query.length}
|
||||
debugMode={config.getDebugMode()}
|
||||
debugMessage={debugMessage}
|
||||
cliVersion={cliVersion}
|
||||
/>
|
||||
<ITermDetectionWarning />
|
||||
</Box>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue