# Changelog · 1.2

> Every Deck release and what changed in it.

42 releases

1.2.0 – 1.2.9 · 10 releases

## v1.2.9 eutactic (2026-02-28)

### TL;DR
-   Queue mode now uses `Option + Q`, and `Command + Q` in-panel now asks for confirmation to reduce accidental app exits.
-   A new custom trigger key can be recorded or cleared in Settings, and it works alongside the existing preset trigger key.
-   Search now uses adaptive debounce, while Statistics runs concurrent background computation with formatter caching for faster response.
-   Apple Music/Podcasts detection is more accurate, and `apple.co` now waits for metadata confirmation before layout selection.
-   Multiple state and concurrency issues in link preview and statistics were fixed to reduce stuck states and runtime errors.

### Added
-   Added a custom trigger key option: click to record one shortcut combo, with one-tap clear support.
-   Preset trigger behavior remains, while custom shortcut combos can also trigger actions and are persisted.

### Improvements
-   Search now responds instantly on clear and automatically extends debounce under heavy data/safe mode for better balance.
-   Expand/collapse animation timing is tighter, and global animation side effects were removed for cleaner interaction.
-   Statistics processing now runs concurrently in the background with formatter reuse to reduce main-thread pressure.
-   Apple Music now prioritizes track-level matching with collection fallback, and podcast summaries avoid duplicated details.

### Changes
-   Queue mode toggle shortcut changed from `Command + Q` to `Option + Q`.
-   Pressing `Command + Q` in the panel now shows a close-confirmation prompt first.
-   `apple.co` links no longer force Apple streaming layout immediately and now wait for metadata confirmation.

### Fixes
-   Fixed cases where `isLoading` could remain stuck after task cancellation or view disappearance.
-   Tightened URL parsing to reduce false positives where plain text (for example `podcast:true`) was misdetected as a URL.
-   Fixed main-thread isolation issues in statistics background tasks to avoid concurrency-context errors.

### Compatibility & Behavior Notes
-   If you used `Command + Q` for queue mode before, please switch to `Option + Q`.

---

## v1.2.8 Crisper (2026-02-26)

### TL;DR
-   Replaced the copy-success sound with a new effect for a clearer confirmation cue.
-   Link previews for Apple Music and Podcasts now show artwork, metadata, and RSS links.
-   Apple Music/Podcasts-only visual polish: reduced blank space, 50-char URL truncation, and auto contrast text color.
-   Preview improvements: non-truncated text, optimized code highlighting, higher-resolution images.
-   Fixed image preview sizing/padding regression and state-update warnings in code preview.
-   Increased website favicon in link record previews from 42x42 to 52x52 for better visibility.

### Changes
-   The default copy cue has been switched to a new sound for more direct feedback.
- **Apple Music / Apple Podcasts 元数据**  
  Apple Music/Podcasts link previews with artwork, metadata, and RSS support.
-   Apple Music/Podcasts-only preview style updates: reduced bottom blank area, 50-char URL truncation, adaptive text contrast, and RSS action moved to the footer bar.
-   Clipboard and preview: public.url support, high-res images, non-truncated text/code.
-   Fixed single-image previews being height-capped and resolved the SwiftUI "Modifying state during view update" warning in `SmartContentView`.
-   Fixed a crash caused by simultaneous access when toggling "Paste by Typing" in Settings.

-   Completed all missing translations in `Deck/Resources/Localizable.xcstrings` to zero gaps across `de/en/fr/ja/ko/zh-Hans/zh-Hant`, including update/database/script/error/onboarding/preview strings with real translated text.

-   Added localization lookups in `ScriptPluginService`, `DeckSQLManager`, and `ClipboardItem` for user-facing strings.

-   Standardized localization on `Localizable.xcstrings` only (no placeholder `.strings` files).

### Upgrade Notes
-   After upgrading, copy a short text once to confirm the new volume and tone fit your preference.

---

## v1.2.7 Honed (2026-02-25)

### TL;DR
-   Connection: immediate "Rejected" on decline/timeout; cooldown countdown; manual retry only after cooldown.

-   Install: single tools folder, one-click install with quarantine cleanup, multi-language help, auto dark/light icon.

-   Orbit: radial app-switching only; removed drag/black-hole paths; code cleanup; more stable.

-   Transfer: resource/stream for large payloads; multi-port fallback; tag sync on share; out-of-order resource/manifest handled; real tag IDs for direct connect.

-   Fixes: tag list refreshes on receive; TOTP live-rotating to reduce verification failures.

-   Welcome onboarding polish: corner/button colors are refined with steadier text transitions, and page 7 is auto-skipped when no importable data is found (6 goes directly to 8).


### Added
-   In the popup panel (⌘P), hold Command and drag any tag to reorder. All tags (system and user-defined) support drag reordering, and the order is persisted automatically.  

  -     Tags move only horizontally during drag; vertical position is locked.  
    Tags follow the cursor exactly with no acceleration or inertia.  
    Left/right boundaries are strictly enforced; tags cannot exceed the visible area.  
    Releasing Command during drag cancels the operation and restores the original order.  
    The dragged tag shows a subtle scale-up and shadow effect for visual distinction.  
    When the dragged tag overlaps another tag, the overlapped tag fades out (reduced opacity) for clearer visual hierarchy.  

-   Standalone scripts are now grouped into `Deck Installer Tools`, including `install.command` and `fix.command`.  

-   The paste queue HUD capsule at the bottom-right can now be dragged to any position on screen. The position is automatically saved and restored. An open-hand cursor appears on hover to indicate draggability, even when the app is in the background.  

-   The new `help.txt` covers all currently supported app languages and explains script purpose plus double-click run steps.  

-   Added `LANFileArchiver` for archiving, extraction, temp-resource claiming, and cleanup in LAN transfer flows.  

-   Added a direct-connect streaming path (`stream_start / chunk / stream_end`) for large payload and archived file transfer.  

-   Added a `resource_manifest` metadata channel in Multipeer so type, timestamp, app name, and tag metadata are restored correctly after resource transfer.  

### Improvements
-   Welcome refinements: 30pt corner radius, black right-side button text/icons in light mode, and steadier page transitions.  

-   Welcome view redesigned with a left-right split layout. Images are anchored bottom-right with overflow clipping. Borderless window with no traffic lights, minimalist black-and-white scheme, Light/Dark adaptive. Navigation buttons overlaid on the image panel with frosted glass material. Each page displays an animated SF Symbol overlay on the image (macOS 15+).  

-   Menu bar icon now uses `document.on.clipboard`, with monochrome by default and hierarchical rendering when paused. Copy events trigger a bounce-up symbol effect for clearer feedback.  

-   The status-bar icon context menu now includes a Feedback entry (same behavior as “Tell us your thoughts”, opening email with the HTML feedback template). A version/update section was also added between Preferences and Quit, showing “Version X.X.X” and a “Check for Updates” action that reuses the About page’s manual update-check flow and presents the update prompt window when a newer version is found.  

-   Tag bar layout is now more intuitive: the Add Tag (+) button and new-tag inline editor sit inside the tag area directly after the last tag, while settings, pause/resume, quit, and feedback stay on the right. These controls are now transparent by default and show highlight only on hover, matching the search-button behavior.  

-   The right-top and right-bottom corners of the settings sidebar now have rounded corners for a softer transition between the sidebar and content area. The previous 1px straight divider line has been replaced with a subtle rightward shadow for depth. The content area extends slightly behind the sidebar to fill rounded-corner gaps, ensuring pages with white backgrounds (e.g. Orbit) don't expose gray corners.  

-   The statistics page has been redesigned with a minimalist style: overview stats merged into a single card with number formatting; the data security notice is now a compact capsule badge; type distribution chart now has a side legend with percentages; top apps rows feature inline progress bars with percentage display; the 7-day activity chart uses narrower bars with gradient fills; storage info is integrated into the overview card footer.  

-   A "Cursor Assistant" capsule badge is now shown next to the Template Library title, clarifying its purpose. The subtitle and usage tips card have been rewritten with a step-by-step guide format explaining the full workflow of creating templates, setting trigger words, and quick invocation.  

-   The Add Trigger Word sheet has been redesigned: header now includes an icon and description; text field uses a custom style; match type selector replaced with custom tab buttons; type selection grid uses a horizontal layout with cleaner selection states; bottom button hit area now covers the full region.  

-   The Smart Rules editor UI has been refined: the "All/Any" match mode selector is replaced with custom capsule-style buttons; condition and action items now use card-like rows with icons for better visual hierarchy; the Add Condition/Action sheets remove excess whitespace with content-adaptive height.  

-   The maintenance description now uses icon-labeled rows instead of plain text; the report sheet header is centered with a circular icon background, card titles use small-caps style, metric values use rounded monospace font, and the close button has a custom style.  

-   Steganography passphrase field now has a leading icon (lock/key) with monospaced font; save and clear buttons use capsule-style with fill backgrounds; security mode info uses icon-labeled rows instead of bullet list; OCR language icons are now differentiated per language; storage info section removes the trailing divider.  

-   Added syntax highlighting to settings code samples (Script Plugins and CLI Bridge), improving readability for keywords, strings, numbers, comments, and variables.  

-   The right-side status feedback is clearer: red reject/cooldown messaging while waiting, then a blue retry action when ready.  

-   Version number now uses a capsule badge style; "Core Features" and "Smart Features" are merged into a single "Features Overview" card; shortcut badges now mimic keyboard keycaps (rounded corners + subtle shadow + border); "Updates" and "Feedback" are merged into one card.  

-   Search bar refactored to a collapse/expand pattern: shows only a magnifying glass icon by default (flat, no shadow, circular hover highlight); smoothly expands into a capsule search bar (300pt) on click or keyboard input; auto-collapses when blurred with empty query. Global keyboard capture, Chinese IME compatibility, and `/` slash command all preserved. Tag chips now sit directly next to the search icon; clicking the content area outside the top bar exits search mode (clicking tags or the rule picker popup does not).  

-   The three empty-state icons in the popup panel (tag has no records, clipboard is empty, no results found) now use `doc.on.clipboard` with hierarchical symbol rendering, automatically adapting to light and dark mode.  

-   The new status copy is fully localized, keeping connection feedback consistent across supported languages.  

-   Localized system-facing copy across export/import dialogs (success/failure/count), biometric auth defaults and cancel label, update notification title/body, updater status texts, accessibility permission dialogs, iCloud sync error messages, and Orbit installer error prompts.  

-   The new installer script now clears quarantine during installation to reduce manual Security & Privacy unblock steps.  

-   `Deck.app` and `Applications` remain in the main area, with the tools folder placed below for a clearer first-install flow.  

-   The installer icon now uses the 1024 logo by default and adapts automatically to dark/light appearance.  

-   Orbit demo visuals were simplified by removing black-hole/AirDrop overlays and drag-dissolve chains, while keeping click/hover/keyboard core interactions.  

-   Receive flow now enforces clearer per-message and total-buffer limits, rejecting bad payloads earlier to reduce stalls and misparsing.  

-   Panel show/hide animation shortened (0.16s / 0.18s) with easeOut on show for snappier close and gentler expand stop.  

-   Hotkey throttling and key-release detection added to prevent panel flash and jank from key-repeat or rapid presses; toggle requests are ignored during active animation.  

-   Panel close no longer runs purgeMissingFileItems and clearExpiredData immediately; cleanup is deferred ~0.6s to avoid main-thread stalls during rapid toggles.  

-   Activation and makeKeyAndOrderFront order adjusted: app activates before panel animates; post-animation re-activation only when needed, reducing “panel visible but not focused” stalls.  

-   Copy/Cut monitor now filters key events in-place; only ⌘C and ⌘X trigger detection, avoiding Task creation and main-thread switches on every keystroke to reduce background energy use.  

-   Hotkey settings are now cached and synced via UserDefaults notifications; keyDown callbacks use a fast path to process only V key and Typing Paste shortcut, avoiding JSON decode and main-thread hops on unrelated keys.  

-   Pause countdown UI now uses .task + Task.sleep instead of Timer.publish; tick only when paused with an end time; indefinite pause no longer triggers periodic wakeups, reducing CPU activity.  

-   Search bar expand/collapse now uses a custom timingCurve; background unified to RoundedRectangle with conditional fill; icon uses scaleEffect instead of font switching for smoother transitions.  

-   Group sharing now automatically falls back to per-item resource transfer when file URLs or large payloads are included, avoiding oversized group-send failures.  

-   Received resource files are now moved into app-controlled temp storage before processing, preventing read failures from OS temp cleanup.  

### Changes
-   Welcome now pre-scans in background and auto-hides page 7 when no importable content is found (6 goes directly to 8).  

-   The Beta badge next to Cursor Assistant and LAN Sharing settings headers has been removed; both features are now considered stable.  

-   “Retry in X” is now an action hint rather than an automatic action; the app will not auto-reconnect after countdown.  

-   Installer helpers in the DMG are changed from two standalone scripts to a single tools folder to reduce visual clutter.  

-   Orbit now follows a single-mode app-switching flow by default, without clipboard-ring switching or jump-model prediction ordering.  

-   The three empty-state icons in the popup panel (tag has no records, clipboard is empty, no results found) now use `doc.on.clipboard` with hierarchical symbol rendering, automatically adapting to light and dark mode.  

-   Top bar padding reduced from 14pt to 10pt for a more compact panel appearance.  

-   File URLs are no longer sent as inline blobs; they are archived for transfer and restored on the receiver.  

-   Single-item payloads now include `contentLength`, `timestamp`, `appName`, `tagName`, and `tagColor` for better context restoration.  

-   Payloads above threshold now auto-switch to resource transfer (Multipeer) or streaming (Direct), while small items stay inline.  

### Fixes
-   Fixed visible horizontal drift of left text during onboarding page transitions.  

-   Fixed an occasional index-out-of-range crash in `WelcomeView` page switching (`pages[currentPage]`), preventing `Swift/ContiguousArrayBuffer.swift:691: Fatal error: Index out of range`.

-   Fixed the issue where sender-side status could remain “Connecting” after a decline or timeout.  

-   Reduced repeated invitation popups by enforcing cooldown and manual retry flow.  

-   Fixed a SwiftUI `ForEach` duplicate-ID warning when detected content contains repeated values (such as multiple `127.0.0.1`), improving list rendering stability.  

-   Fixed a variable parsing issue in `release.sh` that could trigger an unbound-variable error in some environments.  

-   Fixed a compile issue in Orbit window controller context-process resolution after simplification by correcting the return-type implementation.  

-   Reduced priority-inversion performance warnings when closing the panel by streamlining focus teardown and avoiding main-thread waits.  

-   Fixed a focus-return race when pressing ESC immediately after opening the panel; focus now reliably returns to the previous app instead of staying on Deck.  

-   Old app backups (`.Deck.app.old.*`) in `/Applications` are now automatically removed on startup after an update, preventing accumulation.  

-   Fixed delayed tag visibility for single-item resource receive by refreshing the tag list immediately after tag creation.  

-   Fixed intermittent LAN failures for heavy payloads by replacing one-shot large sends with resource/stream transfer.  

-   Fixed occasional temp-file loss on receive by moving resources before decode, avoiding cleanup after callback return.  

-   Fixed direct-connect failures when the default port is occupied by adding automatic port fallback.  

-   TOTP is now computed live against the current time window, preventing failures caused by countdown changes while code stayed static.  

-   Continuation state is now cleared on early verify-request failures (encode/session/send), preventing later double-callback risks.  

-   Fixed resource drops caused by arrival-order mismatch by adding resource-first then manifest matching on receiver side.  

-   Added cleanup on receive-failure, service stop, and stale-cache paths to reduce temp-file buildup.  

-   In security mode, unverified resources are now rejected and cleaned immediately instead of being queued.  

-   Fixed direct-connect tag ID mapping by using real IDs and maintaining tag display order consistency.  

-   Receiver-side TOTP dialog now closes immediately when cancel is tapped.  

-   Removed an unused weak-capture binding in direct-send `sendItem`, eliminating the compiler warning.  

-   Fixed type-mismatch compile errors in HotKeyManager global hotkey event handling by aligning `InstallEventHandler` argument types: casting `paramErr` to `OSStatus` and passing event count as `Int`.  

-   Fixed no-feedback behavior of the Typing Paste shortcut cancel button. When the shortcut is already the default `⌘⌥V`, the cancel button is now dimmed/disabled; it becomes clickable only after customization to reset back to default.  

-   Adjusted rule-picker panel refresh timing to avoid layout-recursion warnings during active layout, improving popup stability.  

-   Added filtering for system processes that are unsuitable for title queries, reducing `task name port` log noise while preserving normal detection behavior.  

-   Added archive extraction boundary protection by validating zip entries before extraction and verifying output/symlink paths after extraction to prevent path escape.  

-   Temp artifacts are now cleaned immediately when `resource_manifest` sending fails, preventing file buildup.  

-   Connection invitations now carry `securityMode` context, and the receiver parses it to keep peer security-mode state in sync.  

-   Group transfer is now all-or-nothing for encryption: send fails if any item fails to encrypt, and receive drops the whole group if any item fails to decrypt.  

-   Verification flow now has busy protection and peer binding checks; `verify_success` without a valid secret now fails instead of being treated as success.  

-   Direct receive buffer now enforces limits before append; overflow/invalid-length payloads trigger immediate connection rejection to reduce DoS and state corruption risks.  

-   Reject/reconnect paths now mark disconnected first, preventing stale “connected” UI state.  

-   Sender no longer accepts empty AES-GCM `combined` output; PSK fallback now uses valid key length, and invalid PSK during challenge handling now rejects the connection immediately.  

-   Archive receive destination now uses sanitized `transferId` components to reduce path-injection risk.  

### Compatibility & Behavior Notes
-   After dragging the app into `Applications`, macOS will not auto-run scripts inside the DMG; run the needed script manually.  

### Upgrade Notes
-   v1.2.7 covers LAN connection and transfer (reject state, cooldown retry, large-payload streaming, multi-port fallback, tag sync), security and verification (live TOTP, encryption consistency, Zip Slip protection), install experience (tools folder, one-click install, multi-language help), and extensive UI improvements. Upgrade recommended for all users.

---

## v1.2.6 Hardened (2026-02-23)

### TL;DR
-   Improved bank-card and identity-number detection to reduce false positives in long text, so copied error/log content is more reliably saved.  
-   Fixed a tag-loss case where recopying the same content could reset a tagged item back to “untagged”.  
-   Refined matching flow and pre-checks to cut unnecessary scans, making detection faster and steadier under frequent copy events.  
-   Added clearer wording in "Settings > Privacy" to explain that only the last 24 hours of memory curves and related error info are uploaded, with anonymization applied.  
-   Network permission for script plugins is now strictly hash-bound; changed scripts no longer reuse old authorization and must be re-approved.  
-   The update proxy now degrades gracefully when `RATE_LIMITER` is missing or unhealthy (instead of hard 503); set `RATE_LIMIT_FAIL_CLOSED=true` for strict blocking behavior.  
-   Fixed a case where vec writes could still target an old default table right after recovery, causing “recovery completed but immediate upsert failure”; recovery tables are now preferred.  
-   Improved vec cleanup resilience: when sqlite-vec shadow-table restrictions apply, cleanup is deferred instead of force-dropping, reducing repeated `may not be dropped` noise.  
-   Added safer storage maintenance/migration guards: skip `VACUUM` when vec is active and abort migration if `WAL checkpoint` fails, reducing vec-structure inconsistency risk.  
-   Backfill scheduling now checks only vec virtual tables (excluding shadow tables), and upsert-failure log timing is corrected to avoid misleading recovery-order impressions.  

### Security & Delivery Hardening
-   The update Worker adds `RATE_LIMIT_FAIL_CLOSED` (default `false`) to choose between fail-open and fail-closed behavior when the rate limiter is unavailable.  

### Improvements
-   Sensitive detection now uses a combined decision based on context and content shape instead of single-pattern hits, improving overall usability.  
-   Added lightweight pre-checks for bank-card detection to avoid unnecessary computation on large text.  
-   Tuned the popup panel layout by insetting 7 px on both sides and shifting it up 7 px while keeping height unchanged, preserving centered alignment with a tighter look.  
-   Refined queue-mode status bar alignment: the left info group shifts 5 px right, while right-side hints and Clear/Exit shift 3 px left for a more balanced layout.  
-   Removed the gray underlay and depth shadow beneath history cards to give the list area a cleaner, flatter appearance.  

### Fixes
-   Fixed poor visibility of the "All" tag dot in dark mode when selected; it now uses a clearer light-gray indicator color.  
-   Fixed a false-positive issue where long app error/log text could be blocked when bank-card or identity-number detection was enabled.  
-   Preserved existing manual tags during duplicate-content upserts, preventing tag overwrite to untagged.  
-   Tagged items are no longer auto-deleted when source files go missing; they are kept and marked as missing-file entries.  
-   Cloud merge now avoids overwriting an existing local tag when the incoming cloud record is untagged.  
-   Fixed vec active-table fallback behavior by no longer persisting default-table mappings; recovery tables are now preferred for read/write routing when present.  
-   Fixed vec write/search routing during table-switch windows by re-resolving the active table before operations, reducing chained `vec upsert internal error` failures.  
-   Fixed repeated cleanup spam by avoiding direct deletion of sqlite-vec shadow subtables (such as `_chunks/_info/_rowids`); failed cleanup is deferred instead.  
-   Fixed shadow-table pollution in vec-table discovery by restricting enumeration to `CREATE VIRTUAL TABLE ... USING vec0`, preventing `_chunks/_info/_rowids` from being treated as active index tables.  
-   Fixed false “backfill not needed” decisions by basing checks on real vec virtual tables, and moved failure-log decisions into the same write flow to avoid delayed same-failure logs after recovery completion.  

### Performance
-   Streamlined clipboard hot-path by removing duplicate ignore checks and moving smart line-break cleanup off the main thread to reduce UI pressure during frequent copies.  
-   Replaced OFFSET-based fallback scans with keyset/cursor pagination for fuzzy search expansion, improving scalability on large datasets.  
-   Optimized regex matching in security mode by cutting per-row temporary string joins and using a limit-aware scan cap to reduce CPU spikes.  
-   Moved batch `row -> ClipboardItem` mapping off the DB serial queue to a background concurrent queue, reducing contention between pagination and queries.  
-   Storage-size directory traversal in Settings now runs in background with throttling and cancellation to avoid UI hitches.  
-   Reduced unnecessary history-list reordering and array rewrites by gating reorder triggers and skipping assignments when order is unchanged.  

### Notes
-   Diagnostics uploads are limited to the minimum required scope and remain anonymized, without other personal information.  

### Upgrade Notes
-   Recommended for all users, especially if you frequently copy debug logs, stack traces, or long text, to reduce false blocking.  

---

## v1.2.5 Auspicious (2026-02-16)

### TL;DR
-   Added high-confidence text format detection, so Diff/Patch, LilyPond, and XML family formats (including SVG/Plist) are recognized first with fewer wrong file extensions.  
-   Maintenance now follows a “snapshot first, deletion second” flow; if snapshot creation fails, destructive deletion is skipped to prevent irreversible loss.  
-   Polling, log writing, network interface probing, and permission timers were optimized for lower overhead and better long-running stability.  
-   iCloud sync state handling and LAN transfer fault tolerance were improved to reduce interruptions in edge cases.  
-   File-path parsing plus thumbnail/image-size/Base64 image caching flows are now more consistent, reducing misclassification and runtime issues.  
-   Version 1.2.5 bundles four patch groups (detection, performance, stability, and maintenance safety); upgrading is strongly recommended.  

### Added
-   Added a `j/k navigation direction` option in `Settings -> Keyboard -> VIM Mode`, so you can switch between `j→ k←` and `j← k→`.  
-   Smart filename generation now prioritizes high-confidence formats such as Diff/Patch, LilyPond, and XML family types (including SVG/Plist), reducing language-based misclassification.  
-   Added regression coverage for Diff/Unified Diff/Hunk snippets, Markdown separators, LilyPond, XML, and Swift/JSON/URL/plain text scenarios.  

### Improvements
-   Poll-bound calculations now use short-lived caching, and link prefetch/status-bar pulse paths avoid unnecessary async hops to reduce hot-path overhead.  
-   Cloud change token handling now uses locking plus caching, and fetch-state queue reuse reduces repeated decoding and transient queue creation.  
-   App-prefix matching now uses pre-sorted caching, while export/diagnostics/feedback/text-transform date formatting avoids repeated formatter allocation.  
-   LAN direct-connect interface caching now uses locking and refresh de-duplication with a reused monitor queue to avoid repeated probe tasks.  
-   Debug/Info logs are now call-site throttled, and file logging uses buffered batch flushes to reduce log storms and disk I/O pressure.  
-   Timer tolerance is now set for LAN confirmation views and permission polling to reduce unnecessary wakeups.  

### Changes
-   Retention-based cleanup now applies only to untagged items (`tag_id == -1`), while user-tagged content is preserved by default.  
-   Record deletion now happens only after rollback snapshot creation succeeds; if snapshot creation fails, deletion is skipped for safety.  
-   Snapshot replacement now persists the new snapshot first and deletes the old one afterward, preventing rollback gaps on mid-process failure.  
-   Force full sync now clears sync errors and resets the change token before entering the standard fetch pipeline for more consistent state handling.  

### Fixes
-   Fixed an intermittent crash when reading IDE caret context during text copy capture.  
-   Fixed an issue where Deck panel could unexpectedly hide after clicking category tags (such as “All/Text/Image/File”) on external displays.  
-   Fixed an issue where the panel appeared with square corners on macOS versions below 26.  
-   Fixed a stale preview issue in the `Command+P` panel: when preview is open (via Space), deleting the current item now immediately updates preview to the new current item, or closes it when no items remain.  
-   Added fallback parsing for text payload types like `public.html`, `public.utf16-plain-text`, and `public.utf16-external-plain-text`, reducing false “Deck can’t parse this clipboard content” cases in apps such as Microsoft Edge, Kiro, and WeChat.  
-   Pause menu item insertion now checks optionals first, avoiding force-unwrapping crashes during initialization.  
-   Cache flows for URL/color/file paths/thumbnails/Base64 images/image size now use stronger locking and consistent updates, reducing concurrency-related failures.  
-   File list parsing now supports both `file://` URLs and plain path strings, reducing path resolution failures.  
-   Multiple filter-expression builders were changed to avoid force-unwrapping, preventing nil-related crashes in complex rule combinations.  
-   Preview-thumbnail emptiness checks now use safer logic, preventing failure paths in medium/large image workflows.  
-   Global hotkey handling now validates pointers and status codes; install/remove failures are logged and state is safely recovered.  
-   Added bounds checks in TOTP truncation and safe-guarded missing shared keys in LAN transfer to avoid runtime interruption.  
-   Orbit overwrite-install now surfaces backup failures explicitly instead of silently continuing with inconsistent state.  
-   Icon cache now safely falls back to base icons when sized-copy creation fails, avoiding cache-path crashes.  
-   Maintenance scan now skips records whose stored blob path still exists, avoiding false broken-link detection.  
 Updated queue usage in `nonisolated` network-interface probing to avoid main-actor isolation compile errors under Swift 6.  

### Compatibility & Behavior Notes
-   When an editor returns invalid line/column context, Deck now skips invalid position data and continues capturing content.  
-   Tagged items are excluded from retention-based automatic cleanup and remain preserved by default.  
-   If rollback snapshot creation fails during maintenance, destructive record deletion is skipped and only non-destructive flows continue.  

### Upgrade Notes
-   This release mainly addresses stability, and all affected users are encouraged to upgrade.  

---

### A Note from the Author

>
>
> *To everyone who supports Deck: your feedback and patience have helped shape Deck into a more stable and more useful tool. Wishing you a rewarding and inspired Lunar New Year 2026.*

## v1.2.4 Efficient (2026-01-30)

### TL;DR
-   `NSScrollView` wheel-delta mapping + clamping + keyboard focus switching.  
  _HistoryListView.swift_  
-   Field-based matching (`title/text/appName`) + `lang:` (Beta) / `len:` rules.  
  _SearchService.swift_ _SearchRuleFilters.swift_ _TokenSearchTextView.swift_ _TopBarView.swift_  
-   Background Base64 detection/decoding with fast rejects, sampling, and hard caps.  
  _ClipItemCardView.swift_ _ClipboardItem.swift_  
-   Async file-size computation + `NSCache` caching to avoid scroll stalls.  
  _ClipItemCardView.swift_  
-   One-click maintenance + report sheet + 5-minute rollback snapshot.  
  _StorageMaintenanceService.swift_ _DeckSQLManager.swift_ _SettingsView.swift_ _StorageMaintenanceReportSheet.swift_  

### Added
-   Image cards now show file size under dimensions; displays “Calculating…” while processing and auto-refreshes when ready. Size is computed asynchronously and cached via `NSCache`.  
  _ClipItemCardView.swift_  
-   Filter/exclude by detected code language; case-insensitive, supports `+` multi-select with common aliases (e.g., js/ts/c#/cpp/yml/md). Adds a Beta badge and performance note in the rule picker.  
  _SearchRuleFilters.swift_ _SearchRulePickerView.swift_ _Localizable.xcstrings_  
-   New maintenance entry with progress UI, a report sheet, and a rollback snapshot available for 5 minutes.  
  _StorageMaintenanceService.swift_ _DeckSQLManager.swift_ _SettingsView.swift_ _StorageMaintenanceReportSheet.swift_  
-   Adds icon caching to reduce system icon lookups for more stable rendering in lists and previews.  
  _IconCache.swift_ _PreviewWindowController.swift_ _PreviewOverlayView.swift_ _ClipboardItem.swift_ _ClipboardCardView.swift_ _ClipItemCardView.swift_ _PrivacySettingsView.swift_ _StatisticsView.swift_ _PDFPreviewView.swift_  
-   Adds a new setting “General → Behavior → Hide Dock when panel opens”, enabled by default; turning it off restores the original Dock behavior (e.g., magnification on hover).  
  _SettingsView.swift_ _MainWindowController.swift_ _UserDefaultsManager.swift_ _Localizable.xcstrings_  

### Improvements
-   Smoother history scrolling with vertical-wheel-to-horizontal mapping, clamping, and interaction refinements for large histories.  
  _HistoryListView.swift_  
-   When `contextTypes` is empty, fall back to DB order to avoid a full-copy COW triggered by shared storage between `orderedItems` and `dataStore.items`, and ensure `selectedId` always resolves within the current list.  
  _HistoryListView.swift_  
-   Natural focus switching: Down moves focus from search to list without clearing text; Up returns to search (when no modifier keys are held).  
  _HistoryListView.swift_  
-   Field-based matching across `title/text/appName` for exact/regex/fuzzy; avoids concatenating huge strings, reducing CPU and transient memory pressure.  
  _SearchService.swift_  
-   `lang:` now runs after non-language rules narrow candidates; language detection uses a lighter-weight path and adds signature-based caching + warming to reduce redundant work.  
  _SearchRuleFilters.swift_ _DeckDataStore.swift_  
-   Markdown previews read only the first 16KB with a truncation hint to avoid stalls on large files.  
  _LargeTextPreviewView.swift_  
-   Lazy logging plus thread-local `DeckFormatters` reuse Number/Date/Relative formatters to reduce object churn and formatting costs on hot paths.  
  _AppLogger.swift_ _DeckFormatters.swift_  
-   Adds an ultra-light pre-check to avoid spawning Base64 tasks for normal text; adds cancellation handling for `Task.detached` to reduce task storms and wasted work.  
  _ClipItemCardView.swift_  
-   Link preview regex now reuses a RegexCache (with options) to avoid repeated compilation and CPU spikes.  
  _SmartRuleService.swift_ _LinkPreviewCard.swift_  
-   Makes SmartTextService hot paths lighter: `isLikelyAssetFilename` now uses plain string checks instead of regex, bare-domain validation reuses cached regex, and `matches(for:in:)` uses `enumerateMatches` to reduce intermediate allocations (no behavior change).  
  _SmartTextService.swift_  
-   Splits IconCache into base/sized caches and adds `icon(forFile:size:)`, reducing `.copy()` allocations and redundant work for more stable list/preview rendering.  
  _IconCache.swift_  
-   Further reduces allocations on ClipboardItem hot paths: caches URL/`normalizedFilePaths`, makes text/RTF sampling index-limited, extracts filenames via `NSString`, and routes PDF/file icons through the new size API.  
  _ClipboardItem.swift_ _IconCache.swift_  
-   Adds faster pre-checks and lightweight caching: quick URL-sanitization guard, 0.4s TTL cache for sensitive-title checks, index-limited ID sampling, and static bank-card prefixes to reduce repeated setup.  
  _ClipboardService.swift_  
-   Makes semantic-text truncation index-limited to avoid extra scans/allocations on long content.  
  _SemanticSearchService.swift_  
-   Improves drag-and-drop image type detection (especially WebP) using `withUnsafeBytes`, reducing unnecessary parsing overhead.  
  _ClipItemCardView.swift_  
-   Saves/restores `NSApp.presentationOptions` and temporarily toggles `.hideDock` during panel show/hide to prevent Dock interactions from interfering while the panel is active; adds delayed hide/restore (`scheduleDockSuppression(...)`) to avoid a quick Dock “flash” when the panel appears (macOS `.hideDock` has no fade animation). Defaults: `dockHideDelay = -1`, `dockShowDelay = 0.10`.  
  _MainWindowController.swift_  
-   Adds memory guardrails for unsupported payloads (total budget + per-type caps, skipping images) and prefers writing `NSURL` for file pastes while keeping the existing fallbacks for compatibility.  
  _ClipboardService.swift_  
-   Adds a hard 30MB cap for incoming data; oversized payloads are dropped and logged to prevent memory blow-ups.  
  _MultipeerService.swift_  

### Changes
-   The old `size:` rule is renamed to `len:` (numeric only); text-like items are filtered by length while non-text items are kept but de-ranked.  
  _SearchRuleFilters.swift_ _TokenSearchTextView.swift_ _TopBarView.swift_ _Localizable.xcstrings_  
-   Pushes length filtering down to the database where possible to reduce in-memory scanning and improve responsiveness.  
  _DeckDataStore.swift_  
-   Horizontal scrolling direction is corrected for more intuitive behavior (e.g., Magic Mouse swipe-left moves content to the right).  
  _HistoryListView.swift_  

### Fixes
-   Fixes multiple Swift 6 build issues related to concurrency captures, main-actor isolation, and missing `await`, using minimal-intrusion adjustments to preserve behavior.  
  _BlobStorage.swift_ _DataExportService.swift_ _DeckDataStore.swift_ _SearchRuleFilters.swift_ _ClipItemCardView.swift_ _StorageMaintenanceService.swift_ _DeckSQLManager.swift_  
-   Reduces stalls from extremely long content by moving Base64 checks/decoding off the main thread with fast rejects and hard limits.  
  _ClipItemCardView.swift_ _ClipboardItem.swift_  
-   Color parsing now prefers trimmed plain text, fixing cases where RTF/RTFD sources failed to render the color swatch.  
  _ClipboardItem.swift_  
-   URL sanitization now preserves original pasteboard types and enforces a copy size limit to reduce risk from abnormal content.  
  _ClipboardService.swift_  
-   Restores the original pasteboard snapshot when paste fails, preventing accidental clipboard clearing.  
  _ClipboardService.swift_  
-   Fixes maintenance flow issues including actor-isolation access, missing SQLite expression operators, and compression stream initialization.  
  _StorageMaintenanceService.swift_ _DeckSQLManager.swift_  
-   Make snapshot expiry timers cancel-safe (cancel returns immediately) to avoid “cancel == expire now”; also move missing-file scans and blob deletion work off `MainActor` to reduce UI impact during maintenance.  
  _StorageMaintenanceService.swift_  
-   Fixes 4 concurrency-isolation build errors in maintenance snapshots by snapshotting `ClipboardItem` id/paths on `MainActor`, moving file-existence checks back to background work, and running blob deletions on `MainActor`.  
  _StorageMaintenanceService.swift_  
-   Runs `log.warn` inside a `MainActor` task to avoid accessing the main-actor-isolated logger from a `nonisolated` context, fixing a concurrency-isolation build error.  
  _MultipeerService.swift_  
-   Pins the search debounce `Task` to `MainActor` to avoid Swift 6 `@Sendable` capture warnings.  
  _DeckViewModel.swift_  
-   Runs post-close expired-data cleanup as a `MainActor` task to avoid cross-isolation access and subtle instability.  
  _MainWindowController.swift_  
-   Adds a fallback to `Caches`/temporary directories when the token folder is unavailable, preventing a `first!` crash.  
  _OrbitBridgeAuth.swift_  
-   Adds the missing `.databaseError` observer and removes all related observers on `applicationWillTerminate` (including pause/orbit) to avoid leaks and duplicate callbacks.  
  _AppDelegate.swift_  
-   Guards debug preview string building behind `log.isEnabled(.debug)` and adds an `isEnabled(_:)` API to avoid unnecessary string formatting when debug logging is off.  
  _AppLogger.swift_ _DeckDataStore.swift_ _HistoryListView.swift_  
-   Fixes localization coverage by filling missing translations and removing stale, unreferenced keys.  
  _Localizable.xcstrings_  
-   Rule parsing supports `size:`/`len:` compatibility and returns the real prefix length to avoid token offset drift.  
  _SearchRuleFilters.swift_  
-   Mirrors the same cancel-safe expiry timer behavior in the Settings UI to avoid accidental triggers during cleanup/rollback interactions.  
  _SettingsView.swift_  

### Notes
-   The About page now prefers `NSHumanReadableCopyright` for the footer, with a fallback to the previous text.  
  _SettingsView.swift_  
-   `lang:` is Beta and may add overhead on very large datasets due to language detection; the rule picker includes a warning.  
  _SearchRulePickerView.swift_ _Localizable.xcstrings_  

### Upgrade Notes
-   Recommended if you experience scrolling/search stalls.  
  _HistoryListView.swift_ _SearchService.swift_ _SearchRuleFilters.swift_ _ClipItemCardView.swift_ _AppLogger.swift_  

---

## v1.2.3 Monumental (2026-01-27)

### Added
-   Major feature: type / in the search box to open the rule panel above the field. The list mode shows 6 rules; navigate with ↑↓ / j/k / 1–6, press Enter to insert a prefix (app/date/type or -app/-date/-type), and Esc closes the panel. After insertion, the cursor stays after the prefix for immediate value input; Space ends the value and continues keywords, / chains another rule; supports + multi-values and quoted app names with spaces. Delete/Backspace at the prefix/value boundary removes the whole rule (value + trailing space), and Esc in hint mode deletes the current rule and returns to search.  
  _SearchRuleFilters.swift_, _TopBarView.swift_, _TokenSearchTextView.swift_, _SearchRulePickerView.swift_, _SearchRulePickerPanelController.swift_, _DeckViewModel.swift_, _Localizable.xcstrings_  

-   Add per-item custom titles across model, storage, search, and UI, shown in card/preview headers.  
  _DeckSQLManager.swift_, _ClipboardItem.swift_, _DeckDataStore.swift_, _SearchService.swift_, _ClipItemCardView.swift_

-   Custom titles now flow through sync, export, and intents for cross-device consistency.  
  _CloudSyncService.swift_, _DataExportService.swift_, _DeckIntents.swift_

-   Smart Rules now include a “has custom title” condition selectable in the editor.  
  _SmartRuleService.swift_, _SmartRulesView.swift_, _Localizable.xcstrings_

-   Recognize Figma clipboard payloads with dedicated card/preview UI and parse only when the preview opens.  
  _ClipboardItem.swift_, _ClipItemCardView.swift_, _FigmaClipboardRenderService.swift_, _FigmaClipboardPreviewView.swift_, _PreviewWindowController.swift_

-   Add a “Show QR Code” button in the preview info bar for links, matching the context menu behavior.  
  _PreviewWindowController.swift_

-   “Go to Settings to add a device” now opens the LAN tab via shared settings navigation state.  
  _SettingsView.swift_, _SettingsWindowController.swift_, _ClipItemCardView.swift_

-   Add a toggle and configurable hotkey (default ⌘⌥V); when off, the combo is no longer intercepted.  
  _UserDefaultsManager.swift_, _HotKeyManager.swift_, _PasteQueueService.swift_, _SettingsView.swift_, _Localizable.xcstrings_

-   Show missing-file warnings and auto-purge missing items after the panel closes.  
  _ClipboardItem.swift_, _ClipItemCardView.swift_, _PreviewOverlayView.swift_, _PreviewWindowController.swift_, _DeckDataStore.swift_, _MainWindowController.swift_

### Deck × Orbit
-   Orbit summaries now include customTitle for consistent CLI/integration output.  
  _OrbitCLIBridgeService.swift_

### Improvements
-   Search supports ⌘A select-all (only with a non-empty query) and ⌘V paste; tag editing also supports ⌘A/⌘V.  
  _HistoryListView.swift_, _TopBarView.swift_, _DeckViewModel.swift_

-   Suppress auto-focus on panel open, avoid auto-search during rename, and elevate UI dispatch to userInteractive.  
  _MainWindowController.swift_, _HistoryListView.swift_, _TopBarView.swift_, _DeckViewModel.swift_

-   Figma preview uses a two-column layout with simplified localized info, and auto-inverts the icon in dark mode.  
  _FigmaClipboardPreviewView.swift_, _FigmaClipboardRenderService.swift_, _ClipItemCardView.swift_, _Localizable.xcstrings_

-   Add an LRU cache with a 500-item cap for link metadata and refresh order on hits to reduce memory.  
  _LinkPreviewCard.swift_

-   Run WAL checkpoint and file copy in the same dbQueue to avoid inconsistent backups during writes.  
  _DeckSQLManager.swift_

### Changes
-   Custom titles are capped at 12 characters (trimmed on save) and auto-scale to fit the header.  
  _ClipItemCardView.swift_, _Constants.swift_

-   Search now matches custom titles; title hits are stably promoted to the front without reordering within groups.  
  _DeckDataStore.swift_, _SearchService.swift_

-   Renaming a title re-evaluates Smart Rules, while ignore/transform actions remain ingestion-only.  
  _DeckDataStore.swift_

-   Only rule prefixes inserted via / are parsed; manually typed app:/date:/type: is treated as plain text.  
  _SearchRuleFilters.swift_, _TopBarView.swift_, _TokenSearchTextView.swift_

-   Rules now support -app/-date/-type exclusion and + multi-values; type drops email/phone and adds color; multi-word app names require quotes.  
  _SearchRuleFilters.swift_, _Localizable.xcstrings_, _DeckViewModel.swift_

-   Simulated typing paste sends Shift+Enter for newlines instead of a direct Return.  
  _PasteQueueService.swift_

-   Focus mode no longer records only text; rich text, files, and images are retained.  
  _ClipboardService.swift_

-   New Figma entries no longer write search text to avoid polluting search results.  
  _ClipboardService.swift_

### Fixes
-   Wrap custom_title with IFNULL to keep .like as Expression<Bool> and avoid optional-type errors.  
  _DeckDataStore.swift_

-   Fix rename focus jumps, Esc failures, and lingering edit fields on close; Enter now updates the title immediately in UI.  
  _DeckViewModel.swift_, _ClipItemCardView.swift_, _HistoryListView.swift_, _MainWindowController.swift_

-   Normalize and locally resolve file:// paths to handle spaces, and remove the unsafe propertyList fallback.  
  _Extensions.swift_, _ClipboardItem.swift_, _ClipboardService.swift_, _PreviewWindowController.swift_

-   Fix fileURL size calculation, skip thumbnails for missing files, and harden large-image reads and de-dup.  
  _ClipboardItem.swift_, _PreviewOverlayView.swift_, _ClipItemCardView.swift_

-   Fix rule prefixes with trailing spaces, UTF-16/emoji index crashes, and incomplete delete ranges.  
  _SearchRuleFilters.swift_, _TopBarView.swift_, _TokenSearchTextView.swift_

-   Fix result mixing from stale pagination and auto-expand fetches when results are insufficient.  
  _DeckDataStore.swift_

-   Resolve Swift 6 concurrency/isolation compile errors, including main-thread access, nonisolated calls, and required awaits.  
  _PreviewWindowController.swift_, _SteganographyService.swift_, _BlobStorage.swift_, _DataExportService.swift_, _DeckDataStore.swift_, _SearchService.swift_, _DeckSQLManager.swift_

-   Prevent TOTP underflow, stop persisting PSK in UserDefaults, and tighten blob cleanup and directory creation.  
  _MultipeerService.swift_, _DirectConnectService.swift_, _DeckDataStore.swift_, _BlobStorage.swift_, _DirectConnectService.swift_

-   Invalidate cache per updated item (title/OCR) and clear properly on memory pressure to avoid stale results.  
  _SearchService.swift_, _DeckDataStore.swift_

-   Revert drag export to synchronous temp file creation for reliability, with unified temp storage and auto cleanup.  
  _TemporaryFileManager.swift_, _ClipItemCardView.swift_

-   Improve tolerant HTML decoding and caching for Figma payloads, avoiding permanent false caches and adding clearer logs.  
  _UnsupportedPasteboardPayload.swift_, _ClipboardItem.swift_

-   Fix missing Combine import in SettingsView.swift and refine QR button hit area/spacing.  
  _SettingsView.swift_, _PreviewWindowController.swift_

-   Add a 60s backoff after storage path init failures to avoid retry storms.  
  _DeckSQLManager.swift_

### Notes
-   Rule hints/help text are localized across DE/EN/FR/JA/KO/zh-Hant/zh-Hans with consistent guidance on spacing and chaining.  
  _Localizable.xcstrings_

### Compatibility & Behavior Notes
-   Example: `app:\"Google Chrome\"+Safari -type:code+text -date:26-01-01+26-01-02` (+ multi-values, - exclusion).  
  _SearchRuleFilters.swift_

-   The Figma preview currently shows basic info only, without rendering graphics/elements.  
  _FigmaClipboardPreviewView.swift_

### Upgrade Notes
-   Upgrade migrates SQLite and rebuilds FTS for custom-title search; allow time for initial indexing.  
  _DeckSQLManager.swift_

---

## v1.2.2 Orchestrated (2026-01-23)

<h1 align="center">Deck</h1>



---



### Added
-   Deck adds French, Korean, and Japanese localization support.

-   Added a feedback email composer and wired it into About settings and the clipboard panel top bar, using a bundled HTML template with live system/app diagnostics and localized labels.  
  _FeedbackEmailService.swift · SettingsView.swift · TopBarView.swift · feedback.html · Localizable.xcstrings_

-   Feedback email now selects a localized HTML template based on `Locale.preferredLanguages` and generates a random UUID ticket ID each time.  
  _FeedbackEmailService.swift · feedback_en.html · feedback_de.html · feedback_kr.html · feedback_fr.html · feedback_ja.html · feedback_zh_hant.html_

-   Added Tab/Shift+Tab cycling with wrap-around for the settings sidebar, scoped to the settings window and only when no Command/Control/Option modifiers are held.  
  _SettingsView.swift_

-   Added global Cmd+Option+V “typing paste”: reads string/rtf/rtfd/html from the system pasteboard and types characters via CGEvent with a slight delay for remote-session stability (e.g., VNC); does not intercept the shortcut without Accessibility permission.  
  _PasteQueueService.swift_

-   Fixed a compile error by adding the `stringLength:` label to `keyboardSetUnicodeString` calls.  
  _PasteQueueService.swift_

-   Added the Orbit settings tab UI (intro/guide/installed stages), option-key handling, Orbit window show/hide, and install progress flow; integrated standalone Orbit app code under `Deck/Deck/Orbit` and used its window controller for the separate ring window.  
  _OrbitSettingsView.swift · OrbitWindow.swift · Deck/Deck/Orbit/_

-   Implemented installer + resource loader for bundled icon/zip and install detection; added Orbit assets/resources and improved texture loading fallbacks.  
  _OrbitInstaller.swift · OrbitResources.swift · OrbitIcon.png · OrbitApp.zip · black_hole_texture.png · BlackHoleView.swift_

-   Implemented a multi-file preview flow in the space preview panel so a clipboard item with multiple files can be browsed in order, with per-file preview selection and a smooth fade between files.  
  _PreviewWindowController.swift_

### Deck × Orbit
-   Ported the Magic Keyboard snippet component, adjusted Option key visuals, and resolved clipboard model name conflicts across ring-related models/services/views.  
  _OrbitMagicKeyboardView.swift · OrbitClipboardModels.swift · ClipboardRingViewModel.swift · ClipboardShareService.swift · ClipboardCardView.swift_

-   Orbit CLI Bridge service avoids running the whole request pipeline on `@MainActor`; only switches to main for required UI operations (e.g. paste), keeps JSON encoding/responses off-main, and adds rate limiting plus a 20MB response cap to protect UI smoothness under load.  
  _OrbitCLIBridgeService.swift_

### Improvements
-   Added a hover-only copy icon in CLI Bridge code blocks (top-right overlay) and copy via `NSPasteboard` so it only shows when the cursor is inside the code block.  
  _CLIBridgeSettingsView.swift_

-   Added the same hover-copy button used in CLI Bridge to the “Create Script Plugin” code blocks (hover-only, line animation to checkmark); introduced `CodeBlockView`, replaced two code snippets with copyable blocks, and imported AppKit for pasteboard access.  
  _ScriptPluginsSettingsView.swift_

-   Updated the Local Network IP copy button to use the CLI Bridge–style animated doc→check icon with the same timing while keeping the accent color, by replacing the inline button with a reusable `CopyIconButton`.  
  _LANSharingSettingsView.swift_

-   Updated the “Add Device” button to read as a real CTA (full-width accented fill, semibold label, and disabled styling) so it no longer resembles an input field.  
  _LANSharingSettingsView.swift_

-   Removed the loading text/spinner from the “Connected Devices” section and replaced the empty state with a localized “No connected Deck devices” message.  
  _LANSharingSettingsView.swift_

-   Moved data reload to run after the panel slide animation finishes, and changed close behavior to keep a small warm cache instead of fully purging, so animation doesn’t compete with heavy DB + SwiftUI rebuilds (UI files left untouched).  
  _MainWindowController.swift · DeckDataStore.swift_

-   Reduce Motion now forces duration 0; hide uses `easeIn` while show stays `easeOut`, and the slide animation is removed on completion to avoid residual state.  
  _MainViewController.swift_

-   Added popup panel corner radius and reduced top spacing for a more cohesive visual appearance.

-   Optimized popup animation by moving heavy work out of the present animation, simplifying Spaces behavior, using gentler `easeInEaseOut` easing, and removing extra behind-window blur on older macOS to avoid double-blur work.  
  _MainWindowController.swift · MainViewController.swift · DeckContentView.swift_

-   Submits UI updates as soon as data is ready (during animation) and prevents `setPanelActive` from overwriting freshly committed results via cache.  
  _DeckDataStore.swift · MainWindowController.swift_

-   Improved initial selection stability by adding `resetInitialSelection(force:)`, forcing selection reset after app switches when context-aware mode is on, and guarding on `selectedId == nil` to prevent repeated selection during commits/reorders.  
  _HistoryListView.swift_

-   Applied UX-neutral performance optimizations: large image blob writes now store asynchronously to avoid sync IO on UI-driven flows; search lowercasing is capped and avoids extra allocations; pasteboard string fetched once and bank-card detection is single-pass with early exit.  
  _DeckSQLManager.swift · SearchService.swift · ClipboardService.swift_

-   Applied minimal, interaction-neutral optimizations across hot paths: SearchService adds a bounded cross-keystroke cache for `prepareLowercasedText`, safe range conversion, security-mode/session-resign cache invalidation, and exposes `clearPreparedTextCache()` for memory pressure; SmartContentCache adds inflight dedupe, moves CPU work to a detached task, avoids cache overwrites on races, and cancels inflight tasks on invalidation/clear/memory pressure; Cursor Assistant lifts the numeric key map to static; memory pressure now clears SearchService cache.  
  _SearchService.swift · SmartContentCache.swift · CursorAssistantService.swift · DeckDataStore.swift_

-   Coalesced overlapping clipboard checks, consumed `changeCount` on nil items, warmed recent cache for CLI, and avoided full blob reads for OCR.  
  _ClipboardService.swift · DeckDataStore.swift · OCRService.swift_

-   Mitigated the settings window Auto Layout loop by hosting SwiftUI in a plain container view.  
  _SettingsWindowController.swift_

### Changes
-   Feedback email no longer uses `mailto` (browser-triggering); it now prefers composing via `NSSharingService` and falls back to plain-text content if template loading fails to avoid a blank email; only tries opening the Mail app itself when the service is unavailable.  
  _FeedbackEmailService.swift_

-   Reorganized settings so privacy items live only under Privacy and general behavior toggles live under General, and reordered the sidebar tabs to a more logical grouping/order (context-aware before smart rules, Cursor Assistant under it, Statistics near the bottom with Orbit below, About last).  
  _SettingsView.swift · PrivacySettingsView.swift_

-   Moved the settings sidebar order so Smart Rules now sits directly under Context Aware, and Cursor Assistant is adjacent to Template Library; order is driven by `SettingsTab` declaration order and `SettingsTab.allCases`.  
  _SettingsView.swift_

-   Added the ⌘⌥V row and a hint about simulated keyboard-typing paste in the Standard Shortcuts card, with full localization coverage (DE/EN/FR and existing locales).  
  _SettingsView.swift · Localizable.xcstrings_

-   Removed Focus polling/monitor timers and restore logic, and cleaned up Focus status helpers and Intents dependencies.  
  _AppDelegate.swift · DeckIntents.swift_

-   Default scripts now clean old defaults before writing new ones (keeping Word Count) and only delete/overwrite Deck-authored defaults to avoid touching user scripts; startup clears old default directories (base64-encode/base64-decode/url-encode/url-decode/json-format). The new defaults include Word Count, Remove Emoji, Remove Markdown, Remove Empty Lines, Extract URL, Extract Emails, and Line Number Prefix. Added a JSContext bridge `Deck.detectEmails` that calls `SmartTextService.shared` detection; emoji removal uses Unicode emoji matching (including variation selectors/ZWJ), and Markdown removal strips common syntax + HTML tags while keeping plain text.  
  _ScriptPluginService.swift_

-   All visible strings on the Deck × Orbit page are now localized via `NSLocalizedString`, and the missing “Welcome” entry has been added to the string catalog.  
  _OrbitSettingsView.swift · Localizable.xcstrings_

-   Moved “Accessibility permission” from Privacy to General (including permission refresh timing logic), moved “Steganography key” from Privacy to Security with clearer “for text steganography” wording (before Security info), and moved “History retention” from General to Storage (after Storage info), keeping the original UI style and behavior.  
  _SettingsView.swift_

-   Updated the Privacy page subtitle (“隐私保护设置”) and completed/synced translations for EN/DE/FR/JA/KR/zh-Hant for new/changed strings.  
  _Localizable.xcstrings_

-   Cleared 7 “no references” string-catalog warnings without deleting translations by setting stale entries’ `extractionState` to `manual`.  
  _Localizable.xcstrings_

-   Removed three stale string entries to stop Xcode “References to this key could not be found in source code” warnings: the plugin manifest JSON template string, the `transform(input) { return input.toUpperCase(); }` snippet, and “正在搜索附近的 Deck 设备...”.  
  _Localizable.xcstrings_

-   Switched Mail launching to the modern NSWorkspace API (`openApplication(at:configuration:completionHandler:)`) via Mail’s bundle ID.  
  _FeedbackEmailService.swift_

-   Updated the Cursor Assistant “Trigger key” row to show a static Shift keycap badge instead of a segmented selection, matching the fact there’s no choice right now.  
  _SettingsView.swift_

-   Tab cycling now follows the full order of system + user tags, continuing to user tags after “Important” when present (otherwise wraps back to system tags); `cycleSystemTags` now iterates the overall `vm.tags` order to support forward/backward cycling.  
  _HistoryListView.swift_

### Fixes
-   Updated clipboard classification to reduce URL/phone/email false positives, tighten URL normalization, and make analysis caching thread-safe; added URL edge-case tests.  
  _Extensions.swift · SmartTextService.swift · ClipboardItem.swift · SmartContentCache.swift · ExtensionsTests.swift · SmartTextServiceTests.swift_

-   Fixed compile errors while keeping all fixes inside `SmartTextService.swift`: removed `resourceSpecifier` usage, fixed `Substring` trimming, and replaced `asCompleteURL()` calls with a local URL normalizer to avoid main-actor isolation in nonisolated contexts.  
  _SmartTextService.swift_

-   Fixed test failures by tightening URL/@mention dedup (URL dedup now normalizes percent-encoding and mention regex avoids emails), improving Swift detection for short snippets, making the kana test explicitly assert false (avoids unused locals), and collapsing CN phone dedup for `+86` variants.  
  _SmartTextService.swift · ExtensionsTests.swift_

-   Adjusted the bare-domain URL regex to avoid matching inside `http/https/ftp` URLs, which was causing duplicates.  
  _SmartTextService.swift_

-   Changed URL detection to skip regex passes if `NSDataDetector` already found URLs, which should stop duplicate counts.  
  _SmartTextService.swift_

-   XML is now treated as data-like (no longer requires `structureScore ≥ 2`), and email regex results are percent-decoded before dedup to prevent double-counting in `mailto` cases.  
  _SmartTextService.swift_

-   Added an “unsupported clipboard” fallback so items aren’t dropped: builds a fallback `ClipboardItem` on parse failure (custom pasteboard type + localized placeholder text), and history cards render a centered “Deck 无法解析本剪贴板内容” message.  
  _ClipboardService.swift · ClipboardItem.swift · ClipItemCardView.swift · Localizable.xcstrings_

-   Fixed DirectConnect random generation and receive cleanup; hardened import sizing, background inserts, and streaming object limits.  
  _DirectConnectService.swift · DataExportService.swift_

-   Guarded sqlite handles/statements and bound table-name lookups safely to prevent invalid access.  
  _PasteNowMigrationAdapter.swift · PasteBarMigrationAdapter.swift · MaccyMigrationAdapter.swift_

-   Added a local `SQLITE_TRANSIENT` shim in migration adapters that use `sqlite3_bind_text`, matching the pattern in `PasteMigrationAdapter` to fix the “Cannot find SQLITE_TRANSIENT” compile error without changing behavior.  
  _PasteNowMigrationAdapter.swift · PasteBarMigrationAdapter.swift_

-   Normalized CloudSync numeric decoding, preserved group payload timestamps/app names, and moved plugin list publishing to main.  
  _CloudSyncService.swift · MultipeerService.swift · ScriptPluginService.swift_

-   Extended `DecodedItemPayload` to include timestamp and appName, wiring them through decode and delivery; `MultipeerService` now sets these for group items, defaults them for single items, and uses the fields when building `ClipboardItem`.  
  _MultipeerService.swift_

-   Safer biometric type detection and an Application Support path fallback.  
  _SecurityService.swift · DeckSQLManager.swift_

-   Hardened persistence/migration paths without UX changes: backfilled ManualPeer psk; guarded `ifa_addr` in Multipeer; ensured `isPaused` expiry restore runs on main; improved `openDatabase` error/close flow when `db == nil`; export writes now throw; encrypted migration uses id cursor paging; embedding migration batches in transactions; large ID queries are chunked to avoid SQLite variable limits.  
  _DirectConnectService.swift · MultipeerService.swift · ClipboardService.swift · PasteMigrationAdapter.swift · DataExportService.swift · DeckSQLManager.swift_

-   Made the `notifyEncryptionFailureIfNeeded()` call use an explicit `self` capture to fix the related compile/concurrency warning.  
  _DeckSQLManager.swift_

-   Expanded IDE anchor discovery so Cursor/VS Code no longer hard-fails on missing `AXDocument`; AX traversal is deeper and more robust to Electron-style trees; added multi-attribute extraction with proxy/title/value fallbacks plus lenient URL/path normalization, and centralized file-path validation to avoid false positives.  
  _IDEAnchorService.swift_

-   Swapped an unavailable AX constant for a string-based attribute so the build no longer depends on that SDK symbol, while keeping the navigation-order traversal attempt.  
  _IDEAnchorService.swift_

-   Fixed storage calculations in Statistics by measuring the real file sizes of `Deck.sqlite3` and its `-wal/-shm` siblings, and updating average record size accordingly.  
  _StatisticsView.swift_

-   Updated the history preview code copy button to use the same checkmark animation as CLI Bridge; copying code no longer shows the green “Copied” toast, while other copy actions keep their existing feedback.  
  _SmartContentView.swift_

-   Reset preview state on panel activation/deactivation/disappear (state + task cancel + window hide) so previews no longer resurface after reopening.  
  _HistoryListView.swift_

-   Cleaned up Swift 6 warnings/errors in preview/controller code and Orbit jump model by making `FilePreviewRules` constants/functions `nonisolated` under MainActor default isolation, fixing fallback icon API usage, and explicitly capturing `saveDebounce` to avoid actor hops.  
  _PreviewWindowController.swift · OrbitJumpModel.swift_

-   Fixed NSWorkspace icon API parameter labels by switching the fallback icon call to `NSWorkspace.shared.icon(for: .data)`, eliminating the `forContentType:` compile error.  
  _PreviewWindowController.swift_

-   Traced the Obj‑C decode warning to the RTF/RTFD path and added a plain-text short-circuit when a clean string already exists, avoiding `NSAttributedString` decoding warnings while preserving the original rich-text payload for pasting and fallback.  
  _ClipboardItem.swift_

-   Kept normal UX unchanged, but now rejects oversized/invalid inputs early (with logs) to prevent crashes and races by adding caps/locks/safe reads across Cloud Sync, script plugins, steganography, semantic search, and clipboard paths.  
  _CloudSyncService.swift · ScriptPluginService.swift · ClipboardItem.swift · SteganographyService.swift · SemanticSearchService.swift_

-   Fixed Swift 6 isolation compile errors by marking `loadCarrierImageData(from:)` `nonisolated` to match call sites and making `maxCarrierFileBytes` `nonisolated` to allow static access from nonisolated contexts.  
  _SteganographyService.swift_

-   Fixed a same-name shadowing bug (`if let previewData`) that made the value immutable inside the block; switching to a local `previewBytes` restores correct `previewData = nil` behavior.  
  _CloudSyncService.swift_

-   Applied UX-neutral stability fixes: explicit `bm25` alias for FTS, safe backfill for legacy empty `unique_id`, blob items honor `loadFullData`, chunked batch fetch under SQLite limits, cursor-based paging used by Cloud Sync, safer AX handling and multi-monitor caret positioning, hotkey update rollback on failure, cancellable auto-exit for paste queue, nil-safe TOTP generation, export via cursor paging with import IO off-main, JSON fragments support, tighter URL encoding, and typeID-checked unwrap helpers to eliminate CFTypeRef cast warnings.  
  _DeckSQLManager.swift · CloudSyncService.swift · CursorAssistantService.swift · ClipboardService.swift · HotKeyManager.swift · PasteQueueService.swift · MultipeerService.swift · DataExportService.swift · TextTransformer.swift · SourceAnchor.swift_

-   Resolved Swift 6 compile errors by tightening type inference and silencing unused results, making export DTOs `nonisolated` + `Sendable`, adding a `@MainActor` insert helper and awaiting main-actor logging, adding `Sendable` conformances for source-anchor value types used across tasks, and explicitly typing `rows: [Row]` to fix the remaining `append(contentsOf:)` error.  
  _DeckSQLManager.swift · DataExportService.swift · SourceAnchor.swift_

-   Fixed long-URL UI issues by fixing popup card width to 320, truncating displayed URLs (strip `http(s)://`, show up to 20 chars + ellipsis with full link on hover), showing a clear “link too long” message when QR generation fails (instead of spinning), and hiding “Show QR code” in the context menu when URL length exceeds 600 bytes.  
  _PreviewWindowController.swift · ClipItemCardView.swift_

-   Filled the 25 empty/missing translation entries in `Localizable.xcstrings`, restoring 100% translation coverage.  
  _Localizable.xcstrings_

-   Updated single-file drag-export `suggestedName` to strip the last extension so Finder doesn’t append another one based on UTType (avoids `.py.py` / `.json.json`).  
  _ClipboardItem.swift_

### Notes
-   Added translations for “提交反馈”, “告诉我们您的想法”, and the “Deck 反馈” email subject; updated subject/question/hint lines in existing templates and added missing language template files.  
  _Localizable.xcstrings · feedback_en.html · feedback_de.html · feedback_kr.html · feedback_fr.html · feedback_ja.html · feedback_zh_hant.html_

### Compatibility & Behavior Notes
-   Feedback email prefers composing via `NSSharingService` and only attempts to open the Mail app directly when the service is unavailable.  
  _FeedbackEmailService.swift_

### Upgrade Notes
-   Recommended for all users: v1.2.2 includes improvements to feedback email flow, localization coverage, preview/settings interaction, and broad stability/performance/safety hardening.

---

## v1.2.1 Lean (2026-01-18)

<h1 align="center">Deck</h1>



---



### Added
-   Added a `databaseAutoBackupEnabled` preference with Settings UI; supports manual backup/delete, and when disabled it stops backup/restore and cleans up `.bak`.  
  _UserDefaultsManager.swift, SettingsView.swift, DeckSQLManager.swift_

### Improvements
-   Keeps paged history items lightweight: only decrypts full payload when needed, using size thresholds and previews to defer heavy loads.  
  _DeckSQLManager.swift_
-   Keeps `orderedItems` empty when reordering is off/search/queue to avoid shared buffers and Copy-on-Write spikes.  
  _HistoryListView.swift_
-   Builds reorder results in a single array to avoid extra copies; materializes full payload before saving templates to ensure full data is persisted.  
  _ContextAwareService.swift, TemplateLibraryService.swift_
-   Splits DB work into interactive vs background queues and moves in-memory fuzzy ranking off the main actor to reduce UI stalls.  
  _DeckDataStore.swift, DeckSQLManager.swift_
-   Search now prefers exact hits in mixed mode and only falls back to fuzzy when needed; adds LIKE-based candidate expansion, a `scanLimit` cap, true cancellation for in-memory search, and cooperative cancellation checks in loops.  
  _DeckDataStore.swift, SearchService.swift_
-   Energy optimizations for CloudSync, steganography, and OCR: larger/low-power-aware batching, conditional stego decode, and OCR back-pressure/debounce with Low Power Mode skip and size caps for huge images.  
  _CloudSyncService.swift, ClipboardService.swift, OCRService.swift_
-   Adds O(1) LRU, `NSCache` regex caching, and a small regex cache for sensitive-content matching to reduce churn and repeated compilation.  
  _SmartContentCache.swift, SmartTextService.swift, ClipboardService.swift_
-   Reduces IO/CPU hotspots: batched sample saves, serialized blob IO, thermal/low-power OCR downsampling, BFS queue fix, and on-appear pagination.  
  _DiagnosticsMemorySampler.swift, BlobStorage.swift, OCRService.swift, IDEAnchorService.swift, HistoryListView.swift_
-   On macOS 26, uses `NSGlassEffectView` (`.regular`) as the main container with `cornerRadius = Const.panelCornerRadius`; SwiftUI background is `Color.clear`, top padding uses `Const.panelTopPadding`, and the search field radius uses `Const.searchFieldRadius`.  
  _MainViewController.swift, DeckContentView.swift, TopBarView.swift, Constants.swift_
-   Raises the serial DB queue QoS back to `.userInitiated` while enforcing `.utility` for background maintenance, preventing interactive queries from being deprioritized.  
  _DeckSQLManager.swift_

### Changes
-   Adjusts the macOS 26 view hierarchy and clipping: embeds the `HostingView` into `glass.contentView`, applies rounded clipping with `cornerCurve = .continuous` on 26+, and enables window shadow on macOS 26 (kept disabled on <26).  
  _MainViewController.swift, MainWindowController.swift_
-   Updates constants: adds `panelCornerRadius = 26`, `panelTopPadding = Const.space12 + 5`, `searchFieldRadius = 12`; adjusts window height to `305`; and lightens `panelOverlay` colors on macOS 26 (though it’s no longer used by `DeckContentView` on 26).  
  _Constants.swift, DeckContentView.swift_
-   Reverts hotkey listening and paste-queue behavior back to the previous `CGEventTap`-based implementation so `Cmd+P` and queue mode work again.  
  _HotKeyManager.swift, PasteQueueService.swift_
-   Cleans update artifacts on launch and removes `.Deck.app.old.*` backups in `/Applications` (no Trash), and uses the cleanup result to decide whether to show the 8-second Settings window prompt.  
  _AppDelegate.swift, UpdateService.swift_
-   Removes the manual analytics upload action so analytics only has the toggle; restyles stego passphrase input with clearer save/clear states and Enter-to-save flow.  
  _PrivacySettingsView.swift_
-   Renders the stego key mask with the exact length and right alignment; persists the length on save/clear so the UI stays consistent.  
  _UserDefaultsManager.swift, SteganographyKeyStore.swift, PrivacySettingsView.swift_

### Fixes
-   Fixes build issues by making `dbQueue`/`dbBackgroundQueue` `lazy` to avoid touching `self` during property initialization and removing an unused variable.  
  _DeckSQLManager.swift_
-   Fixes the `keyboardGetUnicodeString` call by adding the `maxStringLength:` label.  
  _CursorAssistantService.swift_
-   Avoids state mutations during SwiftUI updates; ignores programmatic text updates and defers focus/blur asynchronously to reduce update warnings and priority inversions.  
  _TopBarView.swift_
-   Marks `sharedKeyMaskLength` as `@MainActor` so it reads `DeckUserDefaults.stegoPassphraseLength` on the main actor.  
  _SteganographyKeyStore.swift_

### Notes
-   Keeps `BlobStorage.swift` base directory dynamic so runtime storage-location switches remain safe; if you want the patch’s lazy cache, add an invalidation hook.  
  _BlobStorage.swift_
-   Carbon hotkeys reserve `Cmd+Shift+V` globally; if Carbon returns and you need pass-through when queue mode is off, conditional registration or synthetic pass-through can be added.  
  _PasteQueueService.swift_
-   The post-update window still only shows when the built-in updater sets `deck.pendingUpdateVersion`; manual DMG updates won’t trigger it.  
  _AppDelegate.swift, UpdateService.swift_

### Compatibility & Behavior Notes
-   On macOS 26, `DeckContentView` no longer draws glass/overlay in SwiftUI (`Color.clear` background); glass and rounded clipping are handled by the `NSGlassEffectView` container, while <26 still uses `VisualEffectBackground + panelOverlay`.  
  _DeckContentView.swift, MainViewController.swift_

### Upgrade Notes
-   Recommended for all users: this release focuses on scroll/pagination/search/DB performance and energy improvements, includes macOS 26 container updates, and ships multiple stability fixes.  

---

## v1.2.0 Stabilized (2026-01-16)

<h1 align="center">Deck</h1>



---



### Added
-   Auto-update now uses a CF proxy for reliable access in mainland China, with GitHub downloads kept as a fallback.  

-   Added diagnostics upload and memory sampling: uploads a 24-hour report daily at 15:00 local time with a log-less fallback, and records minute-level memory samples up to 1440 points in `memory_samples.json`.  
  _DiagnosticsUploadService.swift, DiagnosticsMemorySampler.swift_

-   Privacy settings add an “Analytics Data” card with a toggle and a manual upload action when enabled.  
  _PrivacySettingsView.swift_

-   Added Traditional Chinese (zh-Hant) localization support.  
  _Localizable.xcstrings_

### Deck × Orbit
-   Orbit bridge tokens are now per-install random values with a DEBUG legacy fallback; Release no longer accepts a hardcoded token.  
  _OrbitBridgeAuth.swift_

-   Tokens are eagerly created at launch, and 401 responses trigger a disk reload and one retry.  
  _AppDelegate.swift, OrbitBridgeAuth.swift, OrbitBridgeClient.swift_

### Improvements
-   Preview now always shows the phone line + full text while keeping smart details; added multi-image thumbnail grids for file URLs, fixed history card thumbnails, and made previews refresh on mouse clicks.  
  _PreviewWindowController.swift, PreviewOverlayView.swift, HistoryListView.swift_

-   Multi-image cards now show only the first image with a separate right-side ellipsis indicator of fixed height/min width, without overlaying the image or pushing titles.  
  _ClipItemCardView.swift_

-   Install/update UI now forces original-color app icons to avoid dark-mode template tinting.  
  _SettingsView.swift_

-   Statistics now use metadata-only queries with a shrink-memory hook on exit, and Top Apps use `appPath` as a stable id.  
  _StatisticsView.swift, DeckSQLManager.swift_

-   PRAGMA `quick_check(1)` is throttled to a 24h window and forced only on restore; vec backfill runs only when embeddings exist and vec tables are empty, favoring recent rows with short sleeps; `updateVecIndex` avoids heavy serialization and uses `INSERT OR REPLACE`.  
  _DeckSQLManager.swift_

-   Stego decoding now runs off-main with cancellation support; export auth stays on main while fetch/encode/write run in a detached worker.  
  _ClipboardService.swift, SteganographyService.swift, DataExportService.swift_

-   Auto-delete is now coordinated by an `AutoDeleteScheduler` actor instead of per-item sleeps.  
  _SmartRuleService.swift_

-   Added matrixized scoring with norm caching while preserving threshold/sort semantics, and replaced deprecated `cblas_sgemv` with `vDSP_mmul`.  
  _SemanticSearchService.swift_

### Changes
-   On launch, clears all version-prefixed update caches (including `unknown-`) and records `pendingUpdateVersion`; when applicable, opens Settings after 8 seconds to show “Update complete,” with a new `showWindow()` to avoid toggle mis-close.  
  _UpdateService.swift, AppDelegate.swift, SettingsWindowController.swift_

-   Release updates now enforce code signature validation.  
  _UpdateService.swift_

-   Script execution was serialized to reduce contention, and is now concurrent to avoid head-of-line blocking.  
  _ScriptPluginService.swift_

-   `TransformType` persistence now uses a stable code with backward compatibility for legacy Chinese raw values.  
  _TextTransformer.swift_

-   DB now tracks `is_encrypted` with idempotent per-field encrypt/decrypt and row-level decisions; detection uses silent decrypt to avoid log spam.  
  _DeckSQLManager.swift, SecurityService.swift_

-   Exports now write directly to the user-chosen path and clean leftover temp exports on launch.  
  _DataExportService.swift_

-   Plaintext receives are rejected when no confirmation callback is wired.  
  _DirectConnectService.swift_

### Fixes
-   All CGEventTap callbacks now return `passUnretained(event)` and use `CFRunLoopGetMain()` for consistent attach/detach, preventing leaks and runloop mismatches.  
  _PasteQueueService.swift, CursorAssistantService.swift_

-   `unregisterAllHotKeys()` now iterates `Array(hotKeys.keys)` to avoid mutation-during-enumeration crashes.  
  _HotKeyManager.swift_

-   Modifier event tap callbacks now return `passUnretained(event)` to prevent leaks.  
  _HotKeyManager.swift_

-   Poll timer scheduling/canceling now runs on its own queue to avoid races and odd behavior.  
  _ClipboardService.swift_

-   Remote changes now apply with `shouldSyncToCloud=false` to prevent echo uploads; `moreComing` fetches loop until complete with proper token advancement.  
  _CloudSyncService.swift, DeckDataStore.swift_

-   Encrypted records are always decrypted regardless of local encryption toggle.  
  _CloudSyncService.swift_

-   Remote updates now write directly to the DB instead of delete+insert, preventing duplication and write amplification.  
  _CloudSyncService.swift, DeckSQLManager.swift_

-   `pendingUploadCount` now updates on the main thread to avoid races from background mutations.  
  _CloudSyncService.swift_

-   Removed `ManagedCriticalState` and added explicit tuple types to fix compile errors.  
  _CloudSyncService.swift_

-   `unique_id` now uses a UNIQUE index with dedupe-and-retry and a safe fallback to a normal index.  
  _DeckSQLManager.swift_

-   `fetchRow(uniqueId:)` now orders results to pick the most recent row deterministically.  
  _DeckSQLManager.swift_

-   Updates now persist `blob_path`, offload large data to blob storage when needed, and remove old blob files after successful updates.  
  _DeckSQLManager.swift, BlobStorage.swift_

-   `BlobStorage` no longer depends on `@MainActor`, and symlink resolution is hardened to prevent path traversal.  
  _BlobStorage.swift_

-   Avoids decoding file path strings as image data by generating thumbnails directly from file URLs.  
  _ClipItemCardView.swift_

-   JSCore execution now has a time limit; unavailable symbols are resolved via `dlsym` and applied only when present.  
  _ScriptPluginService.swift_

-   Large exports now stream-parse `items` to avoid OOM from full JSON decoding.  
  _DataExportService.swift_

-   Logging now uses `nonisolated(unsafe)` for background calls while removing unnecessary global logger isolation; stego decoding routes through nonisolated static helpers with pre-fetched keys; `SteganographyKeyStore` access is nonisolated.  
  _AppLogger.swift, SteganographyService.swift, SteganographyKeyStore.swift, ClipboardService.swift_

-   Stego services are captured on main before detaching and auto-delete logging is moved to main to satisfy Swift 6 isolation.  
  _ClipboardService.swift, SmartRuleService.swift_

-   Raw SQL loops now use Statement row indexing, and `shrinkMemory()` is async with updated call sites.  
  _DeckSQLManager.swift, StatisticsView.swift, DeckDataStore.swift_

-   Set 16 unused localization keys to `manual` to keep translations and remove warnings.  
  _Localizable.xcstrings_

### Notes
-   Diagnostic uploads exclude clipboard content and include only app version, system info, user ID, 24-hour memory curve, and crash logs.  

---

## Releases by version

- [1.4.x](https://deckclip.app/changelog.md)
- [1.3.x](https://deckclip.app/changelog/1.3.md)
- [1.2.x](https://deckclip.app/changelog/1.2.md) ←
- [1.1.x](https://deckclip.app/changelog/1.1.md)
- [1.0.x](https://deckclip.app/changelog/1.0.md)

- Watch on GitHub: https://github.com/yuzeguitarist/Deck
- Release feed: https://github.com/yuzeguitarist/Deck/releases.atom

---

- HTML: https://deckclip.app/changelog/1.2
- 中文: https://deckclip.app/zh-cn/changelog/1.2.md

© 2026 Yuze Pan
