From 65c74988a8a95f9c8cd852e78e8a05def314e5c8 Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Wed, 17 Jun 2026 02:48:21 +0000 Subject: [PATCH] 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. --- static/panels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/panels.js b/static/panels.js index 1b5c19cf..4fa70354 100644 --- a/static/panels.js +++ b/static/panels.js @@ -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}); }