Watch
0
0
Fork
You've already forked hyperhive
0

docs(matrix): state where the account prefix appears

This commit is contained in:
atlas 2026-10-02 09:53:10 +02:00 • committed by mara
commit f688cfcdf0

View file

@ -112,8 +112,8 @@ Every matrix tool above takes an optional `account` parameter (a name
from this map, or a linked account's) to act as that identity instead
of the primary one.
Declaring an extra account also changes what the agent *receives*: wake
bodies and invite todos gain an `[acct:<name>]` prefix — see
Declaring an extra account also changes what the agent *receives*: the
summaries of unread-room and invite todos gain an `[acct:<name>]` prefix — see
[Architecture](#architecture) below.
## Architecture
@ -147,9 +147,10 @@ The summary depends on the room's unread state:
use read_room to view, mark_read to clear`
**Multi-account prefix**: when the daemon serves more than one account
(`services.hyperhive.agent.matrixAccounts`), it prefixes every wake body and every invite todo
below with `[acct:<name>] `, so a wake arrives as
`[acct:ccc] [matrix] <sender> in <room>: …`. A single-account agent gets the
(`services.hyperhive.agent.matrixAccounts`), it prefixes the summary of every
unread-room todo above and every invite todo below with `[acct:<name>] `, so
`get_loose_ends` shows
`- todo #<id> [matrix <room_id>, …]: [acct:ccc] [matrix] <sender> in <room>: …`. A single-account agent gets the
formats exactly as written — the daemon adds nothing — which is why matching
on a leading `[matrix]` works right up until you declare a second account.