mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Move Intro to Help and only display after help command.
This commit is contained in:
@@ -48,6 +48,7 @@ const addHistoryItem = (
|
||||
export const useGeminiStream = (
|
||||
setHistory: React.Dispatch<React.SetStateAction<HistoryItem[]>>,
|
||||
refreshStatic: () => void,
|
||||
setShowHelp: React.Dispatch<React.SetStateAction<boolean>>,
|
||||
config: Config,
|
||||
openThemeDialog: () => void,
|
||||
) => {
|
||||
@@ -74,6 +75,7 @@ export const useGeminiStream = (
|
||||
const { handleSlashCommand, slashCommands } = useSlashCommandProcessor(
|
||||
setHistory,
|
||||
refreshStatic,
|
||||
setShowHelp,
|
||||
setDebugMessage,
|
||||
getNextMessageId,
|
||||
openThemeDialog,
|
||||
@@ -154,6 +156,8 @@ export const useGeminiStream = (
|
||||
messageIdCounterRef.current = 0; // Reset counter for this new submission
|
||||
let queryToSendToGemini: PartListUnion | null = null;
|
||||
|
||||
setShowHelp(false);
|
||||
|
||||
if (typeof query === 'string') {
|
||||
const trimmedQuery = query.trim();
|
||||
setDebugMessage(`User query: '${trimmedQuery}'`);
|
||||
|
||||
Reference in New Issue
Block a user