Skip to content

[bug]: Orphaned processes remain after task deletion #688

@rabanspiegel

Description

@rabanspiegel

Bug Description

When a task is deleted, any running terminal processes (like npm run dev) in that worktree aren't killed. The processes keep running and hold onto ports.

Steps to Reproduce

  1. Create a new task
  2. Run npm run dev (or any long-running process) in the task's terminal
  3. Delete the task from the sidebar
  4. Check lsof -i :3000 - process is still running on the deleted worktree

Actual vs Expected Behavior

Actual: Process keeps running after task deletion, blocking port 3000
Expected: All processes spawned in a task's terminal should be killed when the task is deleted

emdash Version

0.3.53

Operating System

macOS 15

Additional Context

Found this when port 3000 was blocked by a Vite server running on a worktree that no longer exists as a task. Had to manually kill the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions