Announce incoming messages on the node's terminal

The node now checks for new messages every 10 s in the background (before,
only when the web UI asked), and Inbox.Collect reports newly filed visible
messages through OnArrivals. The CLI logs one line per conversation with the
listing title and a link to it, never the buyer's text. Hidden messages are not
announced, a backlog is capped at 5 lines, and a lock stops a background check
and a UI request from filing the same message twice.

The e2e checks that node A announces the message before its API is called.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 21:29:49 +01:00
co-authored by Claude Sonnet 5.5
parent 20ea9b32f7
commit a81595e9ee
8 changed files with 316 additions and 16 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ Buyers can write to an owner straight from a listing, without an account.
Messages are end-to-end encrypted in the browser and relayed through the
network, so a node only ever sees ciphertext. The owner reads and answers
in the browser (`allmende run` prints a sign-in link; open it to get "My listings")
and can release the exact address as a signed message.
and can release the exact address as a signed message. When a message arrives the
node says so on its terminal (listing, link to the conversation, never the text).
Owners publish from the same screen: "New listing" takes a title, price and
pasted coordinates (only a ~1 km area is published, never the address), and