Skip to content

bug: stale daemon processes persist after binary upgrade #608

@Wirasm

Description

@Wirasm

Problem

After cargo install --path crates/kild-daemon, old daemon processes keep running from the previous binary path. New sessions auto-start a daemon if none is running, but if an old one is still alive, sessions route through it.

Observed

Two kild-daemon processes running simultaneously from target/release/kild-daemon (days old), while ~/.cargo/bin/kild-daemon is the newly installed binary.

Impact

Sessions may run on stale daemon code after upgrades, causing hard-to-debug behavioral differences.

Considerations

  • Should there be only one daemon per machine? Currently per-project isolation is possible but not enforced.
  • kild daemon stop exists but isn't called during install.
  • A daemon restart command or automatic restart on binary change could help.
  • At minimum, kild daemon status should warn if the running binary differs from the installed one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority - Backlog, when time permitsbugSomething is brokendaemon.serverUnix socket server, connection handling, signal shutdowneffort/mediumFew files, one domain or module, some coordination needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions