mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
refac
This commit is contained in:
parent
aec5796a53
commit
4ea29c0d61
1 changed files with 5 additions and 1 deletions
|
|
@ -2788,7 +2788,9 @@
|
|||
autoScroll = true;
|
||||
|
||||
// resetInput() must stay last: the selected model's defaults override the draft's selection.
|
||||
await restoreChatInput(sessionStorage.getItem('chat-input'));
|
||||
const chatInputPrompt = (await restoreChatInput(sessionStorage.getItem('chat-input')))
|
||||
? prompt
|
||||
: null;
|
||||
const previousChatId = $chatId;
|
||||
const previousMessageId = history.currentId;
|
||||
await resetInput();
|
||||
|
|
@ -2860,6 +2862,8 @@
|
|||
|
||||
loading = false;
|
||||
await tick();
|
||||
// Mounting the editor clears prompt, so apply the saved text afterward.
|
||||
if (chatInputPrompt !== null) messageInput?.setText(chatInputPrompt);
|
||||
if (modelSearch) await openModelSelectorWithSearch(modelSearch);
|
||||
|
||||
// Consume one-shot desktop event (e.g. Spotlight query, call shortcut)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue