Skip to content

⚡️ Perf: Remove legacy setInterval polling in Webview Dashboard #69

@suhaibbinyounis

Description

@suhaibbinyounis

Context

The latest performance optimizations replaced full iframe DOM tearing with highly efficient statsSnapshot postMessage() differential updates.

The Problem

While reviewing the frontend execution, there are still legacy setInterval timers stranded inside the CopilotPanel.ts inject script (e.g., the refreshTimer countdown). This forces Electron to keep the V8 context active unnecessarily.

Proposed Solution

Completely purge client-side intervals. The backend extension gateway is already aware of state changes. Offload all trigger mechanisms so that the frontend only reacts when the gateway fires a requestRefresh IPC message via the vscode.postMessage tunnel. This will make the dashboard entirely passive and event-driven.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions