Skip to content

v0.18.0

Choose a tag to compare

@nicobailon nicobailon released this 20 Oct 18:14
· 29 commits to main since this release

pi-intercom 0.18.0 makes messaging between sessions more honest and harder to get wrong. When you send to a session that isn't connected, you now hear that the message is waiting for it, not that it was sent, and that waiting message no longer disappears when the last session closes. Shortened or slightly wrong session names, common with long Herdr subagent names, now reach the right session or suggest the name you meant. In fullscreen mode you can click a single message to expand or collapse it, and handover now works with virtual models such as routers.

Highlights

  • Click a message in fullscreen mode to expand or collapse just that one.
  • Sending to a disconnected session says the message is waiting for it, instead of Message sent.
  • Queued messages are no longer lost a few seconds after the last session closes.
  • A shortened or slightly wrong session name reaches the right session, or tells you which name you probably meant.
  • handover works when your selected model is a virtual model, such as a router.

Changelog

Highlights

  • In fullscreen mode, click a message to expand or collapse just that one.
  • Sending to a session that isn't connected now says the message is waiting for it, instead of Message sent.
  • Queued messages are no longer lost a few seconds after the last session closes.
  • A shortened or slightly wrong session name now reaches the right session, or tells you which name you probably meant.
  • handover works when your selected model is a virtual model, such as a router.

Added

  • In fullscreen mode, clicking an intercom message expands or collapses just that message. Ctrl+O still expands or collapses all of them at once. Thanks to @summer-tt for #178.

Fixed

  • handover failed with Virtual model … must be routed before streaming when the selected model was a Pi virtual model, such as a router. It now works with virtual models. Thanks to @colinperel for #176 and #177.
  • A send, reply, or progress update to a disconnected session said Message sent, even though the message was only waiting in the broker's mailbox for that session to come back. The result now says the session is not connected and the message is waiting until it reconnects. A message that arrived after its session was replaced or shut down used to vanish without a trace; the sender now gets an expired receipt for it. Thanks to @Jaggerxtrm for #172.
  • A slightly wrong session name failed with Session not found, which reads as if the session had died. This happened most often with Herdr subagent names like subagent-chat-… that were cut short. A name that isn't an exact match now goes to the one connected session whose name starts with it, and the result says which session that was. A message to the exact name of an offline session still waits in that session's mailbox and never goes to a different session. If several names match, the error lists them; if none do, it suggests the closest name and points to intercom list. status now shows the session's own name. Thanks to @cabi for #174 and #175.
  • Messages queued for a disconnected session were lost about 5 seconds after the last connected session closed, because the broker shut down when idle and its mailbox lives in memory. The broker now stays running while it holds queued messages, and shuts down once they have been delivered or have expired (after 24 hours). Thanks to @odfalik for raising this in #173.