trackslash
VAULT-31 P2

Clear copied values after a minute by default

0
All issues

Description

Copied codes and passwords stay on the clipboard forever unless someone changes Clipboard Duration. PasteTTL.default is .init(duration: nil), shown as "No expiry". MANIFESTO.md C7 says clipboard protections default to the protective value, so change the default to 1 minute. That's already one of the options.

  • Existing users: anyone who never changed the setting should get the new default. Anyone who explicitly chose "No expiry" keeps it.
  • Check DefaultsStored: if it writes the default the first time it's read, existing users won't pick up the change. You also couldn't then tell "chose No expiry" apart from "never changed it", so decide what to do in that case.
  • Tests: add a unit test for the new default, and update the Settings snapshot, which shows "No expiry".

Sub-issues

0

Linked issues

0

GitHub

0

No branches or pull requests linked.

Comments

1
Bradley

Fixed in https://github.com/badbundle/vault-app/pull/622 (merged as 912e6193).

  • New default: copied values now clear from the clipboard after 1 minute, instead of never.
  • No migration needed: DefaultsStored only writes when the user changes the setting. So anyone who never chose gets the new 1-minute default, and anyone who explicitly chose "Never" keeps it. That stored value decodes as {}, and a test pins it.
  • Widget and edit-menu copies: they don't follow Clear Clipboard yet. That's VAULT-38.