mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-07-18 21:50:55 +00:00
fix(#5170): persist busy-input-mode mirror on Settings autosave + panel-load (Codex: mirror only written on boot-apply, so a Settings change didn't survive the boot race)
This commit is contained in:
+2
-2
@@ -7796,7 +7796,7 @@ async function _autosavePreferencesSettings(payload){
|
||||
if(typeof applyConversationOutlinePreference==='function') applyConversationOutlinePreference();
|
||||
}
|
||||
if(payload&&payload.busy_input_mode!==undefined){
|
||||
window._busyInputMode=(saved&&saved.busy_input_mode)||'queue';
|
||||
window._busyInputMode=(typeof _persistBusyInputMode==='function')?_persistBusyInputMode(saved&&saved.busy_input_mode):((saved&&saved.busy_input_mode)||'queue');
|
||||
if(typeof _applyBusyComposerPlaceholder==='function') _applyBusyComposerPlaceholder();
|
||||
}
|
||||
if(payload&&payload.show_busy_placeholder_hint!==undefined){
|
||||
@@ -8382,7 +8382,7 @@ async function loadSettingsPanel(){
|
||||
if(busyInputModeSel){
|
||||
const val=String(settings.busy_input_mode||'queue');
|
||||
busyInputModeSel.value=['queue','interrupt','steer'].includes(val)?val:'queue';
|
||||
window._busyInputMode=busyInputModeSel.value;
|
||||
window._busyInputMode=(typeof _persistBusyInputMode==='function')?_persistBusyInputMode(busyInputModeSel.value):busyInputModeSel.value;
|
||||
busyInputModeSel.addEventListener('change',_schedulePreferencesAutosave,{once:false});
|
||||
}
|
||||
const showBusyPlaceholderHintCb=$('settingsShowBusyPlaceholderHint');
|
||||
|
||||
Reference in New Issue
Block a user