Give Devices its own Settings section under Remote & Devices
Closes #14771
Settings › Remote & Devices has a Devices section again, directly below Cloud: the group reads Mobile, Cloud, Devices, Networking. It's the settings home of the Cloud sidebar's My Devices. It holds the two switches, Make this Mac discoverable and Discover other Macs, which write the same preferences as the sidebar's My Devices menu. Below them are Your Macs with a Refresh button, the account's other Macs, and their pair, hide and open actions. Mobile is back to iPhone pairing only.
What was wrong
#14332 folded the Computers section into Mobile and turned computers into a hidden alias of it. As a result:
- Remote & Devices listed only Mobile and Cloud.
- The Devices controls sat at the bottom of the Mobile page.
cmux settings open computers, saved navigation targets and search for "computers", "my devices" or "discovery" all opened Mobile.
A second bug showed up once the section was visible again. With Cloud Machines off (the Release default until the beta opt-in and the remote flag are both on), the section still showed the sign-in or discovery prompt. Its switches read on but did nothing, because DevicesFeature.isAvailable() is false and nothing runs.
Reproduce on main:
- Open Settings.
- Look under Remote & Devices: there is no Devices row.
- Run
cmux settings open computers: Mobile opens, and Devices shows as a card at the bottom. - Search for "discovery": the result lands on Mobile.
Design
Identity: SettingsSectionID.computers keeps its raw value, titled "Devices". The raw value is persisted in AppStorage, in navigation targets and in setting:computers:* anchors, and the CLI already accepts both computers and devices for it. Renaming the case would mean a migration plus a compatibility alias for every old value, and it would change nothing a user sees. Keeping the raw value makes every existing link resolve with no migration.
Old anchors saved while Devices lived under Mobile still work. Both setting:computers:pair and setting:mobile:computers resolve to the Devices section header, whichever section the request named. The resolver lives in one place, SettingsSectionID.navigationDestination, and every entrypoint uses it:
- the notification userInfo,
SettingsWindowPresenter,- the CLI,
- search.
The switches are inline rows, not the compact menu from 0b3a5ee. On a settings page, a switch with a subtitle is the standard control, and search can scroll straight to a row. The two new curated search entries, setting:computers:discovery and setting:computers:incoming-access, need rows to land on. The Cloud sidebar keeps its compact ComputerAccessMenuItems menu. Both surfaces write through DevicesPreferencesModel, so a change in one shows up in the other.
What the section shows, in priority order:
| Condition | Note |
|---|---|
| Cloud Machines off | "Turn on Cloud Machines in Settings › Beta Features to use My Devices." (or the policy message when Cloud is disabled by MDM). Both switches and Refresh are disabled. |
| Signed out | Sign-in prompt |
| Discovery disabled by MDM | "Disabled by your administrator." |
| Discovery off | Prompt to turn it on |
| No other Macs | Empty state |
| Otherwise | The list of Macs |
Refresh errors show under the list. HiveComputersService now publishes an unavailableMessage and republishes it when any of these changes:
- the Cloud flag,
- the beta toggle,
- managed policy.
Verification
-
Regression proof. 0b7f3564df9 contains only the updated package tests. CI's
macos / swift-package-testsfailed on it: job,swift test --package-path Packages/macOS/CmuxSettingsUI, "193 tests in 36 suites failed … with 38 issues". The failures were the taxonomy, search index, section ID, mount model and cold-mount expectations for Devices. -
Placement regression proof (Devices directly below Cloud). 65d237a09c1 changes only the tests: the package tests plus the UI test's sidebar-order check. On it, CI's
macos / swift-package-testsfailed with "197 tests in 36 suites failed … with 3 issues", all on the placement:devicesIsItsOwnSectionAfterCloud: Devices sat at enum index 6, and the test expects 8.groupsFollowTheBrowseTaxonomy: got[.mobile, .computers, .cloudMachines, .networking].devicesSitsBetweenCloudAndNetworkingInTheDetailStack: got[.computers, .cloudMachines, .networking].
The fix, 8487c09d2ff, reorders all four sources: the taxonomy, the enum case order (used for search ties), the mount model's
displayOrder, and the detail stack slots. With it, the same lane passed on 2b34c566701: "197 tests in 36 suites passed". -
The Devices UI test had never run.
cmuxUITests/SettingsComputersBehaviorUITests.swiftwas wired into thecmuxUITeststarget when it was added in 4141fb41eaf. It lost all four pbxproj entries in c79c9bc0d5d, a merge ofmaininto #12105's branch, and reachedmainthat way on 2026-09-21. The first dispatch of this PR's UI test (run) built, reported "Executed 0 tests", and the selected-test guard rejected it: "selected test filter cmuxUITests/SettingsComputersBehaviorUITests matched zero tests". d01b3799f2a restores the entries with the original object IDs.lint-pbxproj-test-wiring.sh --target cmuxUITests --tests-dir cmuxUITestsfails onmainfor this one file and passes here.scripts/ci/workloads/ci-guard.shruns that lint forcmuxTestsandcmuxCLITests, notcmuxUITests, which is why nothing caught it. -
Required CI on 173a2cd is green. Run 36220749412 attempt 3: 47 checks pass, 18 skipped, none failing.
- Attempts 1 and 2 failed in one inherited test,
SidebarWorkspaceRowSuspensionTests.transientWindowReparentingPreservesChecklistPopover(#expect(rePresented)at:348). - This PR doesn't touch that code. The changed-suites router picked the suite only because it also mentions
HiveComputersService.configure. - It fails on
maintoo: an isolated dispatch on fb665a08d49 failed, and the same dispatch on this head passed. - It has also failed on other PRs' heads: 36220880908, 36212863312, 36212517711.
- Attempts 1 and 2 failed in one inherited test,
-
UI test (
cmuxUITests/SettingsComputersBehaviorUITests): wired and dispatched on this head, but its assertions have not run, because the runner fleet can't activate the app (#8588). The five tests cover:- Devices directly after Cloud, with both switches and Refresh;
- Mobile without them;
- search landing on Devices;
cmux settings open computerslanding on Devices;- the switches disabled while Cloud Machines is off.
Run on 173a2cd Runner Result 36220779809, video 6vcpu macOS 26 Stopped before tests: "Screen capture unavailable before E2E dependency setup. sudo exited 1: could not create image from display" 36220784302, video 6vcpu macOS latest Same precheck failure 36220788529, video 12vcpu macOS 26 Built and ran, but every launch hit "Failed to activate application 'com.cmuxterm.app.debug …' (current state: Running Background)". The guard rejected it: "selected test recorded an app activation failure; refusing to treat the expected failure as a pass" 36223049831, no video 6vcpu macOS 26 Same activation failure and guard rejection - The macOS 15 pool fails the same way (on 486cadf, 36219417844).
- It isn't this test: other authors' UI dispatches in the same window fail identically: CloudSectionHeaderActionsUITests, WorkspaceSidebarScrollUITests, RemoteTmuxSizingUITests, TerminalCmdClickUITests.
- The owned
glaedaMacs, which record no video, fail with "Failed to create CGVirtualDisplay" (36215264203). - The last green UI dispatch on any pool was on 2026-09-24.
-
Tagged build dogfood of the final head. Controller-fleet job
b59fd98f70de70eb05577bedbuiltcmux DEV issue-14771-settings-devices-sectionfrom exactly 173a2cd429c. It ran with the tag's own defaults domain and socket, so the stable app was not touched, and with Cloud Machines on (Beta Features plus the DEBUG feature-flag override).Settings sidebar, with Devices selected directly under Cloud:

The Devices page:

cmux settings open computers, run over the tag socket, opened Settings on Devices.- The page shows Make this Mac discoverable, Discover other Macs, Your Macs and Refresh, and Networking follows it.
- Pressing Discover other Macs wrote
devices.discovery.enabled = 1to the tag's defaults domain. The "Turn on Discover other Macs to see your devices." prompt changed to the "No other Macs yet" empty state. Pressing it again wrote0back. - Searching "my devices" put three Devices results first: Make this Mac discoverable, Discover other Macs, and the Devices section.
- Not checked by hand: the Cloud sidebar's My Devices menu in the same build. It reads and writes the same
DevicesPreferencesModel(see Design).
-
Review. A review subagent read the full diff and found no correctness defect. It raised two nits, both fixed:
- 845b53e3bef orders the app-side
SettingsNavigationTargetMobile, Cloud, Devices, like every other source. - 25f426f35b2 passes the Cloud flag override as a plist-typed launch argument instead of writing it into a fixed defaults suite.
- 845b53e3bef orders the app-side
-
Static checks:
python3 scripts/verify-local.py --affected origin/main --swift-changed origin/mainpassed 13/13, covering Swift syntax, xcstrings, localization parity, test wiring, feature-flag policy and project normalization. The Swift file-length budget andsync-test-wiring --checkalso pass.
Localization audit
- Changed strings:
- the section title
settings.section.devices; - the search keywords
settings.devices.keywords; - the unavailable reason
settings.devices.cloudRequired; - the Cloud panel's "Devices Settings…" button (was "Computers Settings…");
- four link guidance strings that now point at "Settings › Devices".
- the section title
- Coverage: these, plus the 22 Devices-section strings that shipped English-only (
settings.computers.*row states and errors,devices.show/hide/hidden/connected/actions/registry.failed), now have all nine required locales (en, de, fr, ar, es, zh-Hant, zh-Hans, ko, ja). - German exceptions: "Online" and "Offline" are the correct German words, so they are listed as identity translations in
localization-allowed-omissions.json. - Catalog changes: edited as text, with no JSON round-trip. The orphaned
settings.section.computerskey is removed. The package catalog is unchanged, because these strings resolve from the app catalog. - Result:
localization_catalog.py checkreports 0 parity errors on both catalogs.
Trade-offs
- Inline switches reverse 0b3a5ee's compact Settings menu. The reason is in the Design section above. The sidebar keeps the menu.
- While Cloud Machines is off, both switches read off and can't be flipped, like the MDM-managed state. The stored preferences are untouched and come back when Cloud is turned on. Before this PR, the switches read their stored value and appeared to work but did nothing.
devices.link.error.notDiscoverablestill says "Settings › Computers". Open PR #14420 rewrites the runtime in that file. Here,Sources/Devicesonly gets string default values and comments, so #14420 rebases cleanly. That one string is a follow-up for #14420.- "Pair this Mac in Settings › Devices" has no pairing input in Settings. Pairing happens from each Mac row's actions. The wording points at the right section but not at a specific control.
- Many My Devices sidebar strings are still English-only (for example
cloudTree.*,devices.status.*,devices.link.error.*). They're outside the Settings surface and were left for a separate localization pass. - The curated Devices search entries live in their own file and are appended to
cmuxDefault, not placed in sidebar order inside it.CuratedSettingEntry+Default.swiftis at its 523-line length budget and may not grow. - CI still doesn't lint
cmuxUITestswiring. Adding./scripts/lint-pbxproj-test-wiring.sh --target cmuxUITests --tests-dir cmuxUITeststoci-guard.shwould have caught the dropped entries. It's a CI change, so it's left for a separate PR rather than folded into this settings fix. - No green UI test run and no video. Every
test-e2e.ymlpool currently fails before the app reaches the foreground (#8588; runs listed under Verification). The UI test is wired, builds and is selected, but its assertions haven't run in CI. The tagged-build dogfood above covers the same paths by hand. No PR job runscmuxUITestsat all, so this test only runs through a dispatch. - No HQ click-to-open link.
cmux-ci publish-hq b59fd98f70de70eb05577bedfails with "Development backend is unreachable or returned an HTTP error". The shared dev-backend registry is at its 320-instance cap. The tagged app came from the job's artifact. - The fleet build needed reload.sh's emit-module escape hatch. Four earlier fleet jobs for this branch exited 65 in the app compile: #14507's
SWIFT_USE_INTEGRATED_DRIVER=NOplus-no-emit-module-separatelyfails on the worker's Xcode 26.3.- The green job set
CMUX_RELOAD_APP_EMIT_MODULE=1. - That means submitting with
cmux-ci submit, becausecmux-ci buildhas no environment passthrough. - This is a fleet/toolchain problem outside this PR.
- The green job set
- The inherited
transientWindowReparentingPreservesChecklistPopoverflake is not fixed here. It's timing-dependent in the checklist popover re-present path and red onmainas well. It passed on the third attempt and needs its own fix. - The branch is 6 commits behind
main, with no conflicts; GitHub reports it MERGEABLE and CLEAN.- The six commits are SSH fixes and a session-snapshot test.
- The only files shared with this PR are
project.pbxprojandLocalizable.xcstrings, andgit merge-treemerges them cleanly. - Following the repo rule,
mainisn't merged in by hand. Doing so would also move the head off the build that was tested above.
🤖 Generated with Claude Code
Summary by CodeRabbit
- New Features
- Devices now has its own section under Remote & Devices, with separate controls for discovering other Macs and allowing access to this Mac.
- Settings search and
cmux settings open computerscan navigate to Devices. - When device settings are unavailable, the section explains why and shows relevant discovery or Cloud Machines guidance.
- Updates
- Pairing, discovery, and device-access instructions now point to Settings › Devices.
- Device discovery and incoming access switches are disabled when unavailable or restricted by an administrator.
- The previous device-access options menu is no longer available.