Repository navigation
feat(native): implement native macOS SnapShots capture, setup wizard, and settings UI (ST-SNAPSHOTS) - #463
Merged
Conversation
… and settings UI (ST-SNAPSHOTS)
…ive composer target
This was referenced Nov 20, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #99
Problem
ST-SNAPSHOTSinapps/nativewas stillpartialwithSNAPSHOTS_UNAVAILABLEplaceholder UI and no native capture backend, permission checks, global shortcut registration, setup wizard, or composer delivery pipeline.Approach
crates/core/src/client_settings.rs,crates/core/src/settings/{mod,snapshot,search}.rs):snapShotEnabled,snapShotIncludeAccessibility,snapShotShortcut,snapShotPlaySound,snapShotSound,snapShotFlash,snapShotAnimations) with defaults, per-key invalid fallbacks, atomicSnapShotSoundSelectionpatch support, and round-trip tests.SnapShotSettings.logic.ts,SnapShotSetupDialog.logic.ts,snapShotShortcut.ts,CaptureShortcutConfig.tsx,snapShotSource.ts,SnapShotCoordinator.tsxtarget-resolution/question-pinning helpers, andsnapShot.tssystem-conflict checks intocrates/core/src/settings/snapshot.rs.Aboutsearch items"update-track"("Update track") and"cli-command"("t3 command") incrates/core/src/settings/search.rswhile keeping the 5 child SnapShot search items anchored to"snap-shot-enabled"matchingsettingsSearch.ts.crates/app/src/snapshot_capture/{mod,macos}.rs):CGPreflightScreenCaptureAccess,CGRequestScreenCaptureAccess) and Accessibility (AXIsProcessTrusted,AXIsProcessTrustedWithOptions) checks + System Settings deep links (Privacy_ScreenCapture,Privacy_Accessibility).CGWindowListCopyWindowInfo+NSWorkspace, capture via/usr/sbin/screencapture -l <windowId> -o -x -t png <tempPath>with RAII temp cleanup, PNG header validation,imageresize withinMAX_CAPTURE_WIDTH x MAX_CAPTURE_HEIGHTandPROVIDER_SEND_TURN_MAX_IMAGE_BYTES, and bounded AX text extraction.NSEventshortcut monitor supporting modifier pairs and key chords with cooldown and clean teardown on disable/drop, plusNSSoundshutter/whoosh playback using the embedded web audio assets.#[cfg(all(target_os = "macos", not(test)))]and!is_os_side_effects_disabled()(--snapshot/ tests) withSnapShotPlatformtrait +MockSnapShotPlatformfor deterministic unit and GPUI tests, plus a clean unsupported fallback on non-macOS.coordinator.rs,setup_dialog.rs,diffs_browser.rs,composer/attachments.rs,workspace.rs):SnapShotCoordinatorand 2-stepSnapShotSetupDialogoverlay inworkspace.rs, addedComposer::attach_snapshot_png(...)enforcingPROVIDER_SEND_TURN_MAX_ATTACHMENTS& question-attachment pinning, and replacedSNAPSHOTS_UNAVAILABLEinsettings/diffs_browser.rs::snapshots_page()with fullSnapShotSettingsUI (enable switch, setup status & dialog launch, shortcut recorder + modifier-pair presets + conflict detection + Test capture, sound selector + preview button, flash/animations/accessibility toggles & resets).apps/native/parity/LEDGER.md): UpdatedST-SNAPSHOTS->doneand cleared#99.Verification
vp fmt --check apps/native/parity/LEDGER.md: PASSnode apps/native/scripts/gen-theme.ts --check: PASSnode apps/native/conformance/generate.ts --check: PASSnode --test apps/native/parity/sync.test.ts: 47 passed, 0 failedCARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: PASS (0 warnings)CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core: 1,875 unit + 8 conformance = 1,883 passed, 0 failedCARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-client -- --test-threads=1: 167 passed, 0 failedT3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- --test-threads=1: 218 passed, 0 failedT3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native --features snapshot -- --test-threads=1 snapshot_capture diffs_browser: 10 passed, 0 failedCARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: PASSBuilt with Antigravity (Gemini 3.1 Pro).