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.
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.
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.
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.
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.swiftSearchRulePickerView.swiftLocalizable.xcstrings
New maintenance entry with progress UI, a report sheet, and a rollback snapshot available for 5 minutes. StorageMaintenanceService.swiftDeckSQLManager.swiftSettingsView.swiftStorageMaintenanceReportSheet.swift
Adds icon caching to reduce system icon lookups for more stable rendering in lists and previews. IconCache.swiftPreviewWindowController.swiftPreviewOverlayView.swiftClipboardItem.swiftClipboardCardView.swiftClipItemCardView.swiftPrivacySettingsView.swiftStatisticsView.swiftPDFPreviewView.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.swiftMainWindowController.swiftUserDefaultsManager.swiftLocalizable.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.swiftDeckDataStore.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.swiftDeckFormatters.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.swiftLinkPreviewCard.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.swiftIconCache.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.swiftTokenSearchTextView.swiftTopBarView.swiftLocalizable.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.swiftDataExportService.swiftDeckDataStore.swiftSearchRuleFilters.swiftClipItemCardView.swiftStorageMaintenanceService.swiftDeckSQLManager.swift
Reduces stalls from extremely long content by moving Base64 checks/decoding off the main thread with fast rejects and hard limits. ClipItemCardView.swiftClipboardItem.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.swiftDeckSQLManager.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.swiftDeckDataStore.swiftHistoryListView.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.swiftLocalizable.xcstrings
Upgrade Notes
Recommended if you experience scrolling/search stalls. HistoryListView.swiftSearchService.swiftSearchRuleFilters.swiftClipItemCardView.swiftAppLogger.swift
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
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 · feedbacken.html · feedbackde.html · feedbackkr.html · feedbackfr.html · feedbackja.html · feedbackzhhant.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 · blackholetexture.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
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 maxCarrierFileBytesnonisolated 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 · feedbacken.html · feedbackde.html · feedbackkr.html · feedbackfr.html · feedbackja.html · feedbackzhhant.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.
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
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/dbBackgroundQueuelazy 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.
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.