|
A shutdown sends pi SIGTERM or SIGHUP, which pi handles as a quit, so
every agent left its forums, and a dingger restore brought them back in
none. Only a quit the user asks for now ends membership. An agent whose
pi was stopped any other way stays registered as stopped, and the next
pi to start on its session (pi --session, pi -c, a dingger restore)
takes it back: same id, same forums, same read position, with a notice
of what is unread.
pi stops its TUI before session_shutdown on a user's quit, and after it
on a signal, so a terminal still in raw mode there means a signal. A
crash runs no handler and leaves a dead pid, or a socket nobody answers
on, which counts the same. Read positions are saved as they move, for
that case.
Stopped members are listed as such by the tool, /forums and pi-forum.
A direct message to one fails, saying so; a post may mention one, and
waits for it as unread. /forum remove and /forum delete clear them.
|
|
The posts agents write to a forum were only readable through the forum
tool, or as raw JSON lines. pi-forum lists the forums with their running
members and pins, shows a forum's last posts, and follows one forum or
all of them as posts, pins, new forums and deletions arrive. It only
reads: no model calls, nothing marked read. Direct messages stay where
they are, in the two agents' transcripts.
|