Skip to content

feat(remote-connect): let devices opt out of inbound control - #3998

Merged
bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/device-discoverability
Nov 19, 2026
Merged

bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/device-discoverability

Conversation

@bobleer

@bobleer bobleer commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add Allow control of this device (本机可被控制) to Desktop under Devices & Connections → Overview. The CLI exposes the same preference through openbitfun daemon remote-control [on|off]. Omit the argument to read the current value.

Motivation and impact

Users can take a device offline as a remote-control target and continue using it to control other online devices on the same account. The setting defaults to on for new and existing installations. Desktop and CLI processes that share a device identity also share the preference across restarts.

Implementation

  • Desktop uses the Relay's existing controller-only connection when remote control is off. Peers see the device as offline. The host stops accepting inbound control through the official Relay, LAN and chat bots.
  • The CLI daemon observes changes made by either client and honors the setting during startup and reconnect. Enabling control again reuses the existing credentials.
  • Peer Device Mode checks its attachment after a roster update when an offline controller is driving an online host.

Verification

  • Ran the Desktop encrypted RPC integration test against a local Relay. A peer saw the device offline and could not call it. The offline device received a reply to its outbound call. Re-enabling control restored inbound access with the original credentials.
  • Ran the compiled CLI daemon with an isolated profile and local Relay. Verified offline startup, successful inbound RPC after enabling, rejection after disabling, and recovery after enabling again. Separate CLI invocations confirmed persistence.
  • Passed 110 focused Web UI tests for the overview, account device panel and peer connection lifecycle.
  • Passed pnpm run type-check:web, pnpm run i18n:audit, pnpm run capabilities:check and pnpm run capabilities:test.

Reviewer notes

AI-assisted implementation and verification. Runtime checks ran locally on macOS.

@bobleer
bobleer merged commit 87a10ce into openBitFun:main Nov 19, 2026
13 checks passed
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