fix(#4325): log renderMessages failure on virtualization toggle (greptile P2)

The opt-out toggle's change handler wrapped renderMessages in a silent
empty catch. Keep the defensive try (a toggle must never wedge the
settings handler) but console.warn on failure so a broken render is
diagnosable instead of swallowed.
This commit is contained in:
nesquena-hermes committed 2026-06-17 02:48:21 +00:00
1 parent 92df66d199
commit 65c74988a8
1 file changed
+1 -1
+1 -1
View File
@@ -6773,7 +6773,7 @@ async function loadSettingsPanel(){
window._virtualizeTranscript=virtualizeTranscriptCb.checked;
// Re-render the open transcript so the change takes effect immediately
// (full render when off, windowed when on).
if(typeof renderMessages==='function'){ try{ renderMessages({preserveScroll:true}); }catch(_){ } }
if(typeof renderMessages==='function'){ try{ renderMessages({preserveScroll:true}); }catch(e){ console.warn('[virtualize_transcript] renderMessages failed on toggle:',e); } }
_schedulePreferencesAutosave();
},{once:false});
}