Implements SessionGCService with three GC tiers: collect() (per-session immediate), sweepOrphans() (daily cron sweep), and fullCollect() (cold-start via OnModuleInit)
Wires GC into AgentService.destroySession() (fire-and-forget collect), CronService (daily 4am sweep via SESSION_GC_CRON env), and CommandExecutorService (/gc slash command)
Adds /gc to CommandRegistryService manifest and GCModule to AppModule, AgentModule, LogModule, CommandsModule
8 Vitest unit tests covering all three tiers; all 49 gateway tests pass
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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