An approved chat client re-reads its whole message history on every launch, so
refusing to remember a "yes" produced a prompt per message. That is prompt
fatigue rather than a control: it trains the user to click through, and the
prompts it trains them through include the ones that matter.
"Always" now stores a `Permission::Method` for `nip04_decrypt` / `nip44_decrypt`
exactly as it already did for encryption — per application and per method, so a
NIP-44 grant never silently answers NIP-04. The dialog discloses the scope in an
above-the-fold banner (every peer, and older messages fetchable from any relay),
the Apps page lists the grant as a removable permission, every silent answer is
recorded in the activity log, and the auto-approval rate limit still bounds a
silent stream. The vault gate is unchanged: a granted decrypt on a locked vault
still raises the unlock prompt, and headless still denies while locked.
The grant is deliberately not peer-scoped: a NIP-17 gift wrap is signed by a
fresh ephemeral key per message, so a peer-scoped rule would match only the
inner seal and still prompt for every wrapper.
The disclosure banners are warning-tinted. libadwaita tints an `AdwBanner`
through its `--banner-color` variable, and its own `.warning` class changes
nothing on a banner (it only recolours the foreground, which the banner's inner
widget overrides) — so `style.css` maps the class to `--warning-bg-color` and
rounds the corners.
Every key in the app is now the same kind of thing: `plain::key` /
`.key-value` renders it in the monospace font at the size the label already
has, as a fixed `head…tail` cut, so a column of them lines up. Deliberately
not libadwaita's `.monospace`, which also switches to the code size and, on an
`AdwActionRow`, takes the field name with it. The identities list shows the
name over the key alone (it used to be "Profile · npub" on one line, where a
long profile name ate the key's tail), and the switcher keeps its own shorter
npub cut and renders it at `.caption`: a key is never body-sized there, and the
row's bold *name* stays the loudest thing in it.
The switcher's second line prefers a NIP-05 address — but only one the domain
has confirmed for exactly this key, because a kind-0's `nip05` is
self-declared and that line is where an identity is identified.
`store::nip05` parses the address strictly (it becomes an HTTPS request, so a
sloppy parse would be an SSRF), asks
`https://<domain>/.well-known/nostr.json?name=<local>` through the icons'
hardened fetch — now split into `fetch_https(url, Content)`, the app's single
HTTP path — and shows the address only while `nip05_ok == nip05`. A
re-declared or forged address is unverified again immediately, a slow answer
for a changed one is dropped, and a failed check costs a day.
Names are no longer invented: no "Identity 3" and no "Imported 1". The create
dialog starts empty, import carries a Name field that is prefilled from a
cached profile as soon as the pasted string decodes to a key, and an empty
field stores no label at all. A discovered profile name trumps the label for
display (`identity_label`), which is what happens for a key imported before
its profile was known — the label itself is never overwritten.
Window, GSettings-backed config, Blueprint UI in a GResource, and the
packaging metadata (desktop entry, AppStream metainfo, schema, icons).
Built with gtk4-rs and libadwaita against the host toolchain; Meson drives
cargo and installs the GResource under $datadir/org.kosmos.raucao.Regent.