Skip to content

Use bounded clipboard history defaults#5

Open
sickn33 wants to merge 1 commit into
chenyuxiaojin:mainfrom
sickn33:harden-clipboard-history-defaults
Open

Use bounded clipboard history defaults#5
sickn33 wants to merge 1 commit into
chenyuxiaojin:mainfrom
sickn33:harden-clipboard-history-defaults

Conversation

@sickn33

@sickn33 sickn33 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • default new installs to 30 days of clipboard history and at most 100 items
  • preserve 0 as an explicit user choice for indefinite retention
  • update the Clipboard settings footer and add tests for both default and explicit-permanent behavior

Why

Clipboard history can contain sensitive text, image, and file references. New installs currently default to 0 for both retention days and max items, which means indefinite retention unless the user discovers and changes the settings. Bounded defaults reduce the privacy footprint while keeping the existing opt-in permanent mode.

Verification

  • git diff --check
  • xcodebuild test -project DropKit/DropKit.xcodeproj -scheme DropKit -destination 'platform=macOS' -derivedDataPath /private/tmp/dropkit-defaults-derived CODE_SIGNING_ALLOWED=NO passed 13 tests, 0 failures

@sickn33 sickn33 force-pushed the harden-clipboard-history-defaults branch from 6b386aa to 5a232e1 Compare June 29, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants