feat(gateway): SessionGCService three-tier GC + /gc command + cron (P8-014) #179
Reference in New Issue
Block a user
Delete Branch "feat/p8-014-session-gc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
SessionGCServicewith three GC tiers:collect()(per-session immediate),sweepOrphans()(daily cron sweep), andfullCollect()(cold-start viaOnModuleInit)AgentService.destroySession()(fire-and-forget collect),CronService(daily 4am sweep viaSESSION_GC_CRONenv), andCommandExecutorService(/gcslash command)/gctoCommandRegistryServicemanifest andGCModuletoAppModule,AgentModule,LogModule,CommandsModuleTest plan
pnpm typecheckpassespnpm lintpassespnpm format:checkpassespnpm test— 49 tests (8 new GC tests) all passCloses #167
🤖 Generated with Claude Code
bffd5883f3tob649b5c987