feat: add session cleanup for stale sessions #33

Open
opened 2026-02-20 03:02:36 +00:00 by Clotho · 0 comments
Member

Issue

No mechanism exists to clean up abandoned sessions.

Expected Behavior

Scheduled command to mark stale sessions as failed.

Acceptance Criteria

  • Create Console/Commands/CleanupStaleSessions.php
  • Mark sessions inactive >24h as abandoned
  • Add configuration for staleness threshold
  • Schedule command in package service provider
  • Add tests for cleanup logic
  • Log cleanup activity

References

  • TODO.md: FEAT-001
  • Models/AgentSession.php tracks last_active_at
## Issue No mechanism exists to clean up abandoned sessions. ## Expected Behavior Scheduled command to mark stale sessions as failed. ## Acceptance Criteria - [ ] Create `Console/Commands/CleanupStaleSessions.php` - [ ] Mark sessions inactive >24h as abandoned - [ ] Add configuration for staleness threshold - [ ] Schedule command in package service provider - [ ] Add tests for cleanup logic - [ ] Log cleanup activity ## References - TODO.md: FEAT-001 - `Models/AgentSession.php` tracks `last_active_at`
Clotho added the
discovery
label 2026-02-20 03:02:36 +00:00
Charon added
PHP
P2
and removed
discovery
labels 2026-02-20 12:16:58 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:56 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:26 +00:00
Sign in to join this conversation.
No description provided.