refactor: remove device Pairing feature entirely (issue #645) (#650)

* refactor: remove device Pairing feature entirely (issue #645)

- Delete Pairing.kt model + pairing API endpoints (get/approve/revoke/clear)
- Delete PairingScreen/PairingViewModel + PairingCodeEntryScreen/ViewModel
- Remove NavKeys, ScreenRegistry drawer entry, Navigation.kt entry + Landing pairing button
- Remove pairing string resources (en + ko); keep connect_* config-parse strings
- Keep Telegram onboarding pairing_id flow (separate concept, per issue)
- Fix related doc comments + remaining test reference

* test: fix racy CONNECTED read in gated-mode WS test (issue #635 test)

testGatedMode_attemptsTicketFetchWithoutBareCookie asserted CONNECTED
immediately after the server-side onOpen latch fired, racing the client
handshake (WsListenerImpl sets CONNECTED on receipt of the 101). Await the
real status transition via connectionStatus.first{==CONNECTED} like the
other connect tests do. No product behavior changed.

---------

Co-authored-by: M57 <Hy4ri@users.noreply.github.com>
This commit is contained in:
M57andM57 authored and GitHub committed 2026-07-20 23:23:29 +03:00
1 parent e44a53366b
commit a62bc7e16c
19 files changed
+13 -892

No files matched your search

-17
View File
@@ -92,7 +92,6 @@
<string name="screen_config">Config</string>
<string name="screen_mcp_servers">MCP Servers</string>
<string name="screen_models">Models</string>
<string name="screen_pairing">Pairing</string>
<string name="screen_keys">Keys</string>
<string name="screen_channels">Channels</string>
<string name="screen_logs">Logs</string>
@@ -538,16 +537,6 @@
<string name="webhooks_no_matching">No matching subscriptions</string>
<string name="webhooks_no_matching_desc">Try adjusting your search.</string>
<!-- Pairing Screen -->
<string name="pairing_screen_title">Device Pairing</string>
<string name="pairing_sec_pending">Pending Approvals</string>
<string name="pairing_action_clear_all">Clear All</string>
<string name="pairing_action_approve">Approve</string>
<string name="pairing_sec_approved">Approved Devices</string>
<string name="pairing_empty_approved">No approved devices paired yet.</string>
<string name="pairing_label_user_id">User ID: %1$s</string>
<string name="pairing_action_revoke">Revoke</string>
<!-- Config Screen -->
<string name="config_screen_title">Configuration</string>
<string name="config_action_reset">Reset</string>
@@ -833,12 +822,6 @@
<string name="landing_title">Hermes Mobile</string>
<string name="landing_subtitle">Control panel for Hermes Agent</string>
<string name="landing_action_auth_login">Auth Login</string>
<string name="landing_action_pairing_login">Pairing Login</string>
<!-- Pairing Code Entry Screen -->
<string name="pairing_code_entry_title">Pairing Login</string>
<string name="pairing_code_entry_manual_desc">Paste the pairing string from your Hermes dashboard below.</string>
<string name="pairing_code_entry_code_label">Pairing Code</string>
<!-- Loading State -->
<string name="loading_state_subtitle_models">Fetching model providers…</string>