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. Requested in the gitworkshop issue "Add option to always allow decrypt messages".
Decrypt now stores a Permission::Method for nip04_decrypt / nip44_decrypt exactly as encryption already did — per application and per method, so a NIP-44 grant never silently answers NIP-04.
What the user sees:
The decrypt dialog offers Deny / Allow once / Allow always.
An above-the-fold banner states the scope: every peer, and older messages fetchable from any relay.
The Apps page lists the grant as a permission you can remove.
The disclosure banners are warning-tinted (libadwaita tints an AdwBanner through --banner-color; see data/style.css).
What keeps it honest:
The auto-approval rate limit still bounds a silent stream.
Every silently answered request is recorded in the activity log (allowed-silently).
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.
Testing: cargo test --locked (171 passed, 9 ignored) and cargo clippy --all-targets --locked -- -D warnings are clean, and data/resources/style.css parses under GTK 4.
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. Requested in the gitworkshop issue ["Add option to always allow decrypt messages"](https://gitworkshop.dev/raucao@kosmos.org/nostr.kosmos.org/regent/issues/nevent1qqsxl54scev5m02yh030va0j0c3hj2g22337026ujjndqw57aj8u32cah84q0).
`Decrypt` now stores a `Permission::Method` for `nip04_decrypt` / `nip44_decrypt` exactly as encryption already did — per application and per method, so a NIP-44 grant never silently answers NIP-04.
What the user sees:
- The decrypt dialog offers Deny / Allow once / Allow always.
- An above-the-fold banner states the scope: every peer, and older messages fetchable from any relay.
- The Apps page lists the grant as a permission you can remove.
- The disclosure banners are warning-tinted (libadwaita tints an `AdwBanner` through `--banner-color`; see `data/style.css`).
What keeps it honest:
- The auto-approval rate limit still bounds a silent stream.
- Every silently answered request is recorded in the activity log (`allowed-silently`).
- 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.
Testing: `cargo test --locked` (171 passed, 9 ignored) and `cargo clippy --all-targets --locked -- -D warnings` are clean, and `data/resources/style.css` parses under GTK 4.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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. Requested in the gitworkshop issue "Add option to always allow decrypt messages".
Decryptnow stores aPermission::Methodfornip04_decrypt/nip44_decryptexactly as encryption already did — per application and per method, so a NIP-44 grant never silently answers NIP-04.What the user sees:
AdwBannerthrough--banner-color; seedata/style.css).What keeps it honest:
allowed-silently).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.
Testing:
cargo test --locked(171 passed, 9 ignored) andcargo clippy --all-targets --locked -- -D warningsare clean, anddata/resources/style.cssparses under GTK 4.