Skip to content

LLM Log Polling Never Stops #142

@CyberSecDef

Description

@CyberSecDef

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

Metadata

Metadata

Labels

bugSomething isn't workingpriority:lowLow priority

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions