Repository navigation
Keep one-time codes and password-manager copies out of the clipboard widget - #55
Merged
Merged
Conversation
The clipboard provider already skipped a pasteboard carrying the nspasteboard.org Concealed, Transient or AutoGenerated types. Some applications mark what they copy with their own type instead of, or as well as, those: 1Password, KeeWeb, Butler, Typeit4me and Keyboard Maestro's generator. Other clipboard managers honour these markers too, so a copy carrying one is now never recorded either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every rule in isSecret started at eight characters, so a six-digit OTP copied from an SMS or an authenticator was recorded unmasked: shown on the Edge, kept in the 20-entry history, and sent to a paired iPad whose screen holds the clipboard widget. A text that is only four to eight digits, or two groups of three or four split by one space or dash, is now masked. It is tested before the whitespace rule so "482 913" counts. The rule is anchored on the whole text: digits inside prose, phone numbers (more digits, more groups) and lopsided splits are left alone. A bare year or postcode copied on its own is masked too, which costs a preview and nothing else. Found while reviewing PR #49. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying fremkit with
|
| Latest commit: |
544344c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ea1ac634.fremkit.pages.dev |
| Branch Preview URL: | https://hotfix-clipboard-short-secre.fremkit.pages.dev |
fdussert
added a commit
that referenced
this pull request
Nov 18, 2026
The kiosk window becomes a non-activating panel that never turns key, so a tap on the Edge no longer takes the keyboard (or the ⌘Tab switcher) away from the app on the primary display. Tested on a real Edge with real touches. The merge also brings origin/main's #55 (clipboard one-time codes, private pasteboard markers) and #56 (UI tests off the real WebSocket), which local main did not have yet; CHANGELOG entries from both sides are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Found while reviewing #49: the clipboard provider recorded a six-digit one-time code unmasked. Every rule in
isSecretstarted at eight characters, so the code showed on the Edge, stayed in the 20-entry history and reached a paired iPad whose screen holds the clipboard widget.482913,482 913,4829-1375), is now masked. The rule matches the whole text: digits inside prose (Meeting at 2026), phone numbers and lopsided splits are left alone. The trade-off, explained in a comment: a bare year or postcode copied on its own is masked too, which costs a preview and nothing else. It still copies back with a tap.org.nspasteboard.ConcealedType,TransientTypeorAutoGeneratedType. It now also skips the markers that 1Password, KeeWeb, Butler, Typeit4me and Keyboard Maestro's generator set, which other clipboard managers honour too. These entries are never recorded at all, not just masked.No UI change: the widget already shows
••• secretfor any masked entry.Tests
server/test/clipboard.test.ts:482913and its variants are masked, and the snapshot never contains the digits.Meeting at 2026, phone numbers and odd splits are not masked. Each new private type records nothing.pnpm typecheckandpnpm testpass.🤖 Generated with Claude Code