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:
parent
92df66d199
commit
65c74988a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue