Skip to content

feat(client): add per-device automatic privacy mode - #152

Open
qihaze123 wants to merge 3 commits into
sqlpxc:mainfrom
qihaze123:feat/auto-privacy-on-connect
Open

qihaze123 wants to merge 3 commits into
sqlpxc:mainfrom
qihaze123:feat/auto-privacy-on-connect

Conversation

@qihaze123

@qihaze123 qihaze123 commented Dec 4, 2026 •

Copy link
Copy Markdown

Closes #141.

Add an opt-in shield button to My devices in the desktop console. A saved device keeps this preference when the user pairs again. The host acts on the request only after confirming the authenticated handshake.

The desktop console pauses remote input while waiting for the host to confirm privacy mode. It pauses input again if the host reports that privacy mode turned off. If the mode is unavailable, fails, or remains unconfirmed for 20 seconds, the user can disconnect or explicitly continue with the remote screen visible. This choice applies to the current connection.

Desktop connections wait for saved device settings to load. The shield confirms a change after the configuration write succeeds, including a save reply over the existing tray-to-service pipe on Windows. A manually enabled privacy request still carries over when reconnecting an ordinary session.

Verification

  • npm test (149 tests)
  • npm run build
  • cargo test --locked -p airhand-link (167 tests). An existing bitrate timing test failed on earlier runs and passed in isolation and in the final full run.
  • cargo test --locked --lib devices and the configuration file lifecycle test from client/src-tauri on macOS (8 tests)
  • Exercised the tray and service message handlers with an in-memory transport for successful saves, write failures, and disconnects.

The Windows service pipe and physical Windows and macOS display switching still need hands-on verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

隐私屏功能建议

1 participant