mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
Merge 73cb953836 into 2840f0e07b
This commit is contained in:
commit
59f470a2ab
1 changed files with 4 additions and 1 deletions
|
|
@ -2788,7 +2788,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();
|
||||
|
|
@ -2860,6 +2861,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