diff --git a/web/src/client/components/session-card.ts b/web/src/client/components/session-card.ts index 203b749b..dbf6e6cf 100644 --- a/web/src/client/components/session-card.ts +++ b/web/src/client/components/session-card.ts @@ -29,13 +29,11 @@ export class SessionCard extends LitElement { @state() private killing = false; @state() private killingFrame = 0; - private refreshInterval: number | null = null; private killingInterval: number | null = null; firstUpdated(changedProperties: PropertyValues) { super.firstUpdated(changedProperties); this.setupTerminal(); - this.startRefresh(); } updated(changedProperties: PropertyValues) { @@ -52,9 +50,6 @@ export class SessionCard extends LitElement { disconnectedCallback() { super.disconnectedCallback(); - if (this.refreshInterval) { - clearInterval(this.refreshInterval); - } if (this.killingInterval) { clearInterval(this.killingInterval); } @@ -117,15 +112,6 @@ export class SessionCard extends LitElement { } } - private startRefresh() { - this.refreshInterval = window.setInterval(async () => { - if (this.terminal) { - const url = `/api/sessions/${this.session.id}/snapshot`; - await this.loadSnapshot(url); - } - }, 10000); // Refresh every 10 seconds - } - private handleCardClick() { this.dispatchEvent( new CustomEvent('session-select', {