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:
nesquena-hermes
2026-07-01 01:45:44 +00:00
parent 2ec7df8a27
commit adb528cfcb
+2 -2
View File
@@ -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');