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:
@@ -322,6 +322,13 @@ text rules below are enforced by endpoints.
|
||||
and `address_saved`) and `GET /api/v1/inbox?listing=<id>`, whose rows also
|
||||
carry `last_dir`, `needs_reply`, a text `preview` (empty for hidden messages),
|
||||
`effort` (proof-of-work bits of the first message) and `grant_until`.
|
||||
- **Terminal notice.** The node checks for new messages every 10 s (and on every
|
||||
UI request), so it reports them even with no browser open. For each
|
||||
conversation it logs one line, `new conversation` or `new message`, with the
|
||||
listing's title, a count if there are several, a short conversation id and a
|
||||
link `http://127.0.0.1:8080/#/mine/<listing>/<thread>`. It never prints what
|
||||
the buyer wrote (untrusted text, and it belongs in the browser), and hidden
|
||||
messages are not announced. A backlog is capped at 5 lines plus a summary.
|
||||
- **Owner login.** The page itself never contains the admin token (every node
|
||||
serves the same page, including public gateways). `allmende run` prints a link
|
||||
`http://127.0.0.1:8080/#/login/<token>` to the terminal, not to its log. The
|
||||
|
||||
Reference in New Issue
Block a user