Skip to content

[FEATURE] A chat warns when the daemon it joins runs another build #1966

Description

@edenreich

Summary

infer chat --daemon, and a plain chat's rooms, join the daemon that is already running. That daemon can run an older build than the chat: it runs until idle_exit passes with no threads and no clients, and stops early only when its binary is gone. A go run binary lives in the Go build cache and is never removed, and every dev build declares the version dev in the hello ack. So a chat built from newer code talks to an old daemon, and whatever the new code added on the daemon's side is silently missing.

Testing #1958, the room approvals never appeared: the daemon serving the room, and every member it spawned, was built from a branch without them, while the chat on top had the new room view. The room showed the old "waits for approval in its own chat" note, and nothing said the daemon was stale.

Acceptance Criteria

  • The daemon declares a build identity in its hello ack that tells two dev builds apart, such as the executable's content hash, or the VCS revision with its modified flag.
  • A chat that joins a daemon of another build says so once, naming the daemon's pid to stop from ~/.infer/run/daemon.pid, and keeps working.
  • Released builds compare the same way, so a chat after an upgrade notices a daemon still running the previous version.
  • Tests cover a daemon of the same build and one of another.

Activity

  1. added
    enhancement
    on Nov 24, 2026
  2. moved this from Todo to In progress in 2026on Nov 24, 2026
  3. moved this from In progress to QA in 2026on Nov 24, 2026
  4. moved this from QA to Done in 2026on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions