Dashboardcliidle.ts eviction: upstream uses per-fun…

idle.ts eviction: upstream uses per-function cleanup in idle.ts, not centralized evictSession in pipeline.ts

Category: pattern
Confidence: 1.00
ID: 019e6b25-30e4-73e9-b734-780aa7612053
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-06-23 09:27:14
Updated: 2026-06-23 09:27:14

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 12d ago

Content

Upstream (main branch) puts session eviction logic directly in idle.ts rather than a centralized evictSession() in pipeline.ts. idle.ts imports cleanup functions individually: evictSession as evictGradientSession from @loreai/core; also deleteSessionAuth, clearAuthStale from ./auth; deleteSessionCosts from ./cost-tracker; deleteBillingPrefix from ./cch; clearWarmupAuthDisabled from ./cache-warmer. The startIdleScheduler signature uses onEvict?: (sessionID: string) => void (upstream) vs onEvictSession?: (sessionID: string) => boolean (branch). Upstream inline onEvict in pipeline.ts cleans 5 Maps: headerSessionIndex, ltmSessionCache, ltmPinnedText, stableLtmCache, cwdWarned. When merging, adopt upstream's per-function approach and add any missing cleanup calls.

Move to: