agent-orchestrator/packages/web
Prateek f0d3a08489 fix: address bugbot comments (cache leak, PR skip, CI alert)
Fixes three issues identified by bugbot:

1. **TTL cache memory leak (Medium)**: Cache only evicted expired entries
   on get(), causing unread keys to accumulate indefinitely. Added periodic
   cleanup via setInterval (runs every TTL period) with unref() to prevent
   blocking process exit.

2. **PR skip condition never triggers (Low)**: Check for merged/closed PRs
   was using sessions[i].pr.state which is always "open" (default from
   basicPRToDashboard). Fixed by checking cache for merged/closed state
   before enrichment, avoiding unnecessary API calls.

3. **SessionCard "0 CI check failing" bug**: When GitHub API fails,
   ciStatus is "failing" but ciChecks is empty, showing nonsensical
   "0 CI check failing" alert. Fixed to show "CI status unknown" instead
   when failCount is 0.

**Tests Added:**
- Cache cleanup interval test (async real timer)
- SessionCard CI status unknown test (verifies no "0 failing" or "ask to fix")

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 03:21:31 +05:30
..
e2e feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
screenshots feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
src fix: address bugbot comments (cache leak, PR skip, CI alert) 2026-02-15 03:21:31 +05:30
next-env.d.ts feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
next.config.js feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
package.json Wire xterm.js terminal embed into web dashboard (#29) 2026-02-15 01:37:07 +05:30
postcss.config.mjs feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
tsconfig.json feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30
vitest.config.ts feat: implement web dashboard with attention-zone UI and API routes (#1) 2026-02-14 14:26:59 +05:30