fix(settings): place computers under mobile

Merged
AU
2mo ago
+713-93

Fixes #14324

Summary

Computers now appears inside the existing Mobile Settings section, with Computers as its subsection heading. Discovery, refresh, access controls, computer rows, pairing actions, and their state lifecycle keep the existing implementation. Device recovery messages now point to Settings › Mobile › Computers.

The standalone Computers sidebar destination and mount slot are removed. The computers raw navigation target remains an explicit compatibility alias: legacy opens and section/pairing anchors resolve to Mobile's setting:mobile:computers anchor on the heading and controls. Search keeps the Computers alias in its original ranking without spreading computer keywords across unrelated Mobile rows.

Reproduction

  1. Open cmux Settings.
  2. Observe Computers as a separate section at the top.
  3. Open it and observe the Your Macs subsection.

CI repairs

Current head: 01bc05706aa1156926714bb54d182c4e1c2b2c9d, including main through f4b331d15f9d1dadde19913145e822095d500e78. All merge conflicts are resolved, including main's moved Computers slot and the later restore-liveness changes.

The broad CI run exposed failures outside the Settings package. Scoped repairs preserve the existing assertions and keep known-failure allowances unchanged:

  • Reuse #14419's two commits, retaining authorship, so unknown agent liveness remains optional during snapshot/restore. This addresses the deterministic Vault and agent-resume failures across shards 1, 4, and 7.
  • Update the newly merged device-directory test's expected pairing guidance to Settings › Mobile › Computers.
  • Apply the socket-directory fixture repair from 6c84da919e by creating the full runtime path before binding, with no file growth.
  • Reuse 9d276b54ab's method-aware Kiro mock, preserving fail-closed exit assertions and requiring exactly one feed.push. Move the existing test into a 91-line extension file and wire it through sync-test-wiring to respect the Swift file budget. Both adapted fixture repairs retain co-author attribution.

Verification

  • Static checks and portable tooling: all 11 selected checks passed; 26 changed Swift files passed syntax parsing. File-length budgets, test wiring, project normalization, strict localization catalog validation, and diff checks passed. localize-changes --base origin/main completed translations and reported manual review for two pre-existing interpolated strings in Workspace.swift; both calls are unchanged from main and required locale placeholders were manually verified. The Computers heading and four recovery/help messages have real translations across all 20 existing catalog locales. These checks do not compile or execute Swift tests.
  • Regression proof: test-only commit d2dfff2287 failed the six expected mac/tailscale/remote ranking assertions in run 36105980975, attempt 2. Those same cases passed after repair 0f718a3fc9. Subsequent package coverage also checks devices relative ranking, legacy anchors, and the merged no-standalone-Computers mounting rule.
  • Native compilation: current-head CI run 36116998652 is on attempt 3, queued for the hosted macOS compile runner after two owned-pool capacity refusals before execution. The preceding head f4cfbfca4a passed app/test-product compilation and the Swift warning budget on its hosted retry; that is pre-repair evidence.
  • Package and app-host execution: the current-head package job passed all 193 CmuxSettingsUI tests in 35 suites. App-host results are pending behind compilation. At preceding head f4cfbfca4a, CLI product and display/lag checks passed; app-host failures motivated the repairs above and are not reported as passing. Full-ci does not execute cmuxUITests.
  • Actual E2E execution: HQ's targeted run 36080621004, pinned to 6072a446f11dd72e1386853543562d9f1f66e2e4, built successfully but failed screen-capture preflight before executing tests. Zero SettingsComputersBehaviorUITests ran. No duplicate dispatch was made.
  • Retained developer artifact: controller job 2a91cd407db585afa5ac3ec3 succeeded at 6072a446f1 with tag issue-14324-settings-computers-mobile; its receipts and artifact are retained. It is neither current-head nor UI-test evidence. No further developer build or app launch was made.
  • Review: the canonical autoreview --mode branch --base origin/main retry found no actionable code defects and passed the merge-conflict gate. Its policy phase exited nonzero for two XCTest-import findings. The original file only loses the existing test; the new extension retains the same XCTest class/selector, mock-server expectations, and tearDown cleanup. A framework migration would change that lifecycle and expand this CI repair, so those two findings are rejected on that existing ownership constraint. This is a clean code-review result with a nonzero policy result, not a clean canonical-helper exit. The heading-anchor and complete-catalog translation threads were replied to and resolved.

Demo Video

No new recording was made under the requested restriction on further app launches. The existing E2E screen-capture preflight failed before tests ran.

Checklist

  • Behavior changes have regression coverage.
  • Localization was audited across all 20 existing catalog locales.
  • No v2 socket method or mobile RPC contract changed.
  • Valid review threads were replied to and resolved.
  • Final-head code review completed; two existing-XCTest policy findings documented above.
  • Current-head CI completed (running).

Summary by CodeRabbit

  • Changes
    • Computers settings are now grouped under Mobile rather than shown as a separate sidebar section.
    • Searching for “Computers” still finds the subsection, and existing links to Computers continue to open the correct location under Mobile.
    • The subsection now has a single “Computers” heading, with its existing controls available under Mobile settings.