From cf5f55d2944a92879c7c03ef317e7e59a521c435 Mon Sep 17 00:00:00 2001 From: zenchantlive <103866469+zenchantlive@users.noreply.github.com> Date: Sat, 14 Feb 2026 01:18:53 -0800 Subject: [PATCH] Update src/app/api/events/route.ts Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com> --- src/app/api/events/route.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/app/api/events/route.ts b/src/app/api/events/route.ts index f2525fc..7d64b08 100644 --- a/src/app/api/events/route.ts +++ b/src/app/api/events/route.ts @@ -77,15 +77,6 @@ export async function GET(request: Request): Promise { const lastTouchedPath = path.join(projectRoot, '.beads', 'last-touched'); let lastTouchedVersion: number | null = null; - let isPolling = false; - const pollLastTouched = async () => { - if (isPolling) { - return; - } - isPolling = true; - try { - const nextVersion = await readLastTouchedVersion(lastTouchedPath); - if (nextVersion === null) { let isPolling = false; const pollLastTouched = async () => { if (isPolling) { @@ -105,10 +96,6 @@ export async function GET(request: Request): Promise { lastTouchedVersion = nextVersion; write(toSseFrame(issuesEventBus.emit(projectRoot, lastTouchedPath, 'changed'))); } - } finally { - isPolling = false; - } - }; const touchedPoll = setInterval(() => { void pollLastTouched();