Problem
static/js/script.js line 1583: The 15-second polling interval for /llm_log is created when the log tab opens but never cleared. It continues indefinitely after generation completes, navigation, new sessions, or session deletion.
Why It Matters
Stale polling intervals accumulate, causing unnecessary server load and network traffic as each poll reads and parses the log file.
Recommended Fix
function clearLogPolling() {
if (_logPollInterval) {
clearInterval(_logPollInterval);
_logPollInterval = null;
}
}
// Call in: new session, delete session, and session load handlers
Problem
static/js/script.jsline 1583: The 15-second polling interval for/llm_logis created when the log tab opens but never cleared. It continues indefinitely after generation completes, navigation, new sessions, or session deletion.Why It Matters
Stale polling intervals accumulate, causing unnecessary server load and network traffic as each poll reads and parses the log file.
Recommended Fix