Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: evict idle sessions despite permanent journal sinks

last month

6c0d3a5
Authored
Cursor Agent8/3/2026, 10:09:44 AM
Idle tracking already ignored journal sinks when connections attached,
but remove/evict still required an empty sink map. Journal-backed thread
bindings therefore never armed idle clocks or disposed after disconnect.
Key idle eviction off live connection sinks and lock the contract in tests.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parentfa5c0f6

2 files changed
  • src/server/runtime/SessionRegistry.ts+8−2
  • test/server/runtime/sessionRegistry.idleEviction.test.ts+115−0