You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] A chat warns when the daemon it joins runs another build #1966
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