mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-16 09:41:23 +00:00
Merge 73cb953836 into 9959fc95a2
This commit is contained in:
commit
478119c3ef
1 changed files with 4 additions and 1 deletions
|
|
@ -2766,7 +2766,8 @@
|
|||
autoScroll = true;
|
||||
|
||||
// resetInput() must stay last: the selected model's defaults override the draft's selection.
|
||||
await restoreChatInput(sessionStorage.getItem('chat-input'));
|
||||
const restored = await restoreChatInput(sessionStorage.getItem('chat-input'));
|
||||
const draftPrompt = prompt;
|
||||
const previousChatId = $chatId;
|
||||
const previousMessageId = history.currentId;
|
||||
await resetInput();
|
||||
|
|
@ -2838,6 +2839,8 @@
|
|||
|
||||
loading = false;
|
||||
await tick();
|
||||
// the input mounts empty once loading ends
|
||||
if (restored) messageInput?.setText(draftPrompt);
|
||||
if (modelSearch) await openModelSelectorWithSearch(modelSearch);
|
||||
|
||||
// Consume one-shot desktop event (e.g. Spotlight query, call shortcut)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue