Skip to content

fix: clean up tmux sessions#63

Merged
Davidknp merged 2 commits intov1from
emdash/fix-clean-up-tmux-sessions-3sy
Apr 10, 2026
Merged

fix: clean up tmux sessions#63
Davidknp merged 2 commits intov1from
emdash/fix-clean-up-tmux-sessions-3sy

Conversation

@jschwxrz
Copy link
Copy Markdown
Collaborator

issue

  • task/project deletion could leave tmux sessions behind
  • cleanup relied too much on in-memory PTY state, which can drift

fix

  • run task teardown before DB deletion in deleteTask
  • track knownSessionIds in conversation/terminal providers so tmux cleanup does not depend only on live PTY map entries
  • add DB-backed fallback cleanup in local/ssh project providers for detached/non-provisioned tasks
  • make teardown scripts bounded and non-blocking (10s timeout, log and continue), so resource cleanup still completes

@Davidknp Davidknp merged commit 693525a into v1 Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants