fix(KB-172): fix terminal session leak with activity tracking and stale eviction
- Add session activity tracking (lastActivityAt) to TerminalService - Implement stale session eviction when approaching session limits - Fix WebSocket close handler to properly kill PTY sessions on disconnect - Add lastActivityAt to session listing endpoint for observability - Add comprehensive tests for activity tracking, eviction, and terminal routes - Add changeset for patch release
This commit is contained in:
5
.changeset/fix-terminal-session-leak.md
Normal file
5
.changeset/fix-terminal-session-leak.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@dustinbyrne/kb": patch
|
||||
---
|
||||
|
||||
Fix terminal session leak: WebSocket disconnect now properly kills PTY sessions. Added stale session eviction to automatically clean up inactive sessions when approaching the session limit. Session listing endpoint now includes `lastActivityAt` for observability.
|
||||
Reference in New Issue
Block a user