mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-02 21:49:42 +02:00
cleanupSession() always called store.removeSession() which deleted the session from state.json. On server stop, cleanupSession(id, false) was called for all sessions - preserving screens but deleting their saved state. On next restart, state.json was empty so nothing was restored. Now only removes from state.json when killScreen=true (user explicitly deleting a session), preserving state for recovery on restart. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>