Files
raucao 9d861d41ac
CI / test (push) Successful in 1m21s
CI / test (pull_request) Successful in 1m20s
signer: let the user remember a decryption
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.
2026-12-01 12:14:32 +04:00
..