The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
fix(desktop): name the tabs in the system face (#259)
Dee225d13088d7f
diff --git a/desktop/lib/core/desktop_window.dart b/desktop/lib/core/desktop_window.dartindex 960aec0f0..3bd852d71 100644--- a/desktop/lib/core/desktop_window.dart+++ b/desktop/lib/core/desktop_window.dart@@ -4,7 +4,6 @@ import 'package:window_manager/window_manager.dart';import 'package:flutter/services.dart';import '../shared/theme/color_palette.dart';-import '../shared/theme/app_type.dart';import 'build_identity.dart';/// Whether this build runs inside a window the app is allowed to manage.@@ -40,9 +39,6 @@ Future<void> configureDesktopWindow({if (Platform.isMacOS) {await const MethodChannel('harness/swarm_tabs').invokeMethod('configure', {'palette': palette.nativeColors,- 'fontFamily': AppType.monoFamily,- 'fontSize': AppType.chromeSize,- 'fontFallbacks': AppType.monoFallback,});}// Always open filling the screen (owner, 2026-09-15): the tabs, a viewerdiff --git a/desktop/lib/screens/swarm_screen.dart b/desktop/lib/screens/swarm_screen.dartindex 083d00685..369f4bbf2 100644--- a/desktop/lib/screens/swarm_screen.dart+++ b/desktop/lib/screens/swarm_screen.dart@@ -566,11 +566,6 @@ class _SwarmScreenState extends State<SwarmScreen>'enabled': _routeIsCurrent && !_dialogOpen && !_spokenPaletteOpen,'activeId': app.activeSwarmId,'palette': grid.AppTheme.palette.value.nativeColors,- // The tabs wear the terminal's face at the chrome size, not its size:- // ⌘+ and ⌘− zoom the terminal alone.- 'fontFamily': grid.AppType.monoFamily,- 'fontSize': grid.AppType.chromeSize,- 'fontFallbacks': grid.AppType.monoFallback,'canReopen': app.canReopenLastClosed,'canFind': _canFindTerminal,'canClosePane': app.focusedPane != null,diff --git a/desktop/lib/shared/theme/app_type.dart b/desktop/lib/shared/theme/app_type.dartindex 10ae5e860..5ccc23f7c 100644--- a/desktop/lib/shared/theme/app_type.dart+++ b/desktop/lib/shared/theme/app_type.dart@@ -49,9 +49,6 @@ abstract final class AppType {static const double monoLabelSize = 12;static const double monoMetaSize = 11;- /// The size the native title bar's tabs are drawn at; see `SwarmTitlebar.swift`.- static const double chromeSize = monoLabelSize;-/// The system UI face.////// `Ubuntu Sans` (25.04 and later) and `Ubuntu` lead on Linux because theydiff --git a/desktop/macos/Runner/SwarmTitlebar.swift b/desktop/macos/Runner/SwarmTitlebar.swiftindex 59aac64ac..cd69ae9db 100644--- a/desktop/macos/Runner/SwarmTitlebar.swift+++ b/desktop/macos/Runner/SwarmTitlebar.swift@@ -2,38 +2,6 @@ import Cocoaimport FlutterMacOSimport ImageIO-/// The title bar's tabs and Store action wear the terminal's face at the chrome size Flutter-/// sends (`AppType.chromeSize`), never the terminal's own size: ⌘+ and ⌘− zoom the terminal alone.-/// Menus are not chrome — they use the system menu font, like every other Mac app's.-enum HarnessTypography {- private static var families = [".AppleSystemUIFontMonospaced"]- private(set) static var size: CGFloat = 12-- @discardableResult- static func update(_ state: [String: Any]) -> Bool {- let previousFamilies = families- let previousSize = size- if let family = state["fontFamily"] as? String {- families = [family] + (state["fontFallbacks"] as? [String] ?? [])- }- if let value = state["fontSize"] as? NSNumber, value.doubleValue.isFinite, value.doubleValue >= 9, value.doubleValue <= 22 {- size = CGFloat(value.doubleValue)- }- return families != previousFamilies || size != previousSize- }-- /// The tab label's face. [size] defaults to the chrome size; the ⌘1 badge asks one point less.- static func font(weight: NSFont.Weight = .regular, size: CGFloat? = nil) -> NSFont {- let size = size ?? self.size- let base = families.first == ".AppleSystemUIFontMonospaced"- ? NSFont.monospacedSystemFont(ofSize: size, weight: weight)- : families.compactMap { NSFont(name: $0, size: size) }.first- ?? NSFont.monospacedSystemFont(ofSize: size, weight: weight)- return weight == .bold || weight == .semibold- ? NSFontManager.shared.convert(base, toHaveTrait: .boldFontMask) : base- }-}-/// Real AppKit controls in the title bar, beside the system traffic lights./// https://developer.apple.com/documentation/appkit/nstitlebaraccessoryviewcontroller/layoutattributefinal class SwarmTitlebar: NSObject, NSMenuItemValidation, NSMenuDelegate {@@ -76,9 +44,7 @@ final class SwarmTitlebar: NSObject, NSMenuItemValidation, NSMenuDelegate {switch call.method {case "configure":let state = call.arguments as? [String: Any] ?? [:]- HarnessTypography.update(state)self.configure(palette: state["palette"] as? [String: Any])- self.strip.updateTypography()result(true)case "update":let state = call.arguments as? [String: Any] ?? [:]@@ -1417,7 +1383,7 @@ private final class SwarmStoreButton: SwarmIconButton {var palette = SwarmNativePalette() { didSet { needsDisplay = true } }var preferredWidth: CGFloat {ceil((title as NSString).size(withAttributes: [- .font: font ?? HarnessTypography.font(weight: .medium),+ .font: font ?? SwarmTabStrip.uiFont(weight: .medium),]).width) + 48}@@ -1436,7 +1402,7 @@ private final class SwarmStoreButton: SwarmIconButton {from: .zero, operation: .sourceOver, fraction: isEnabled ? 1 : 0.45,respectFlipped: true, hints: [.interpolation: NSImageInterpolation.high])let attributes: [NSAttributedString.Key: Any] = [- .font: font ?? HarnessTypography.font(weight: .medium),+ .font: font ?? SwarmTabStrip.uiFont(weight: .medium),.foregroundColor: palette.accent.withAlphaComponent(isEnabled ? 1 : 0.45),]let text = title as NSString@@ -1509,6 +1475,16 @@ private final class SwarmStripScrollView: NSScrollView {}private final class SwarmTabStrip: NSView {+ /// The title bar's own face: the system one, at the system size.+ ///+ /// The tabs wore the terminal's face until 2026-09-23. It reads as a terminal+ /// costume on furniture that is not the terminal — no other Mac window names+ /// its tabs in mono — and the workspace's own chrome, a pane header and the+ /// command box, carries that face where it belongs (owner).+ static func uiFont(weight: NSFont.Weight = .regular) -> NSFont {+ NSFont.systemFont(ofSize: NSFont.systemFontSize, weight: weight)+ }+private(set) var palette = SwarmNativePalette()var emit: ((String, Any?) -> Void)?private let scroll = SwarmStripScrollView()@@ -1572,7 +1548,7 @@ private final class SwarmTabStrip: NSView {storeButton.isBordered = falsestoreButton.palette = palettestoreButton.image = icons.image(engine: "store", asset: "assets/store/polymath.png")- storeButton.font = HarnessTypography.font(weight: .medium)+ storeButton.font = SwarmTabStrip.uiFont(weight: .medium)storeButton.target = selfstoreButton.action = #selector(openStore)storeButton.isEnabled = false@@ -1613,20 +1589,10 @@ private final class SwarmTabStrip: NSView {}}- func updateTypography() {- storeButton.font = HarnessTypography.font(weight: .medium)- for tab in tabs {- tab.labelFont = HarnessTypography.font()- }- needsLayout = true- }-func update(_ state: [String: Any]) {// Workspace teardown clears its controls without changing appearance.if let palette = state["palette"] as? [String: Any] { updatePalette(palette) }actionsEnabled = state["enabled"] as? Bool == true- HarnessTypography.update(state)- storeButton.font = HarnessTypography.font(weight: .medium)let rows = state["tabs"] as? [[String: Any]] ?? []let nextActiveId = state["activeId"] as? String ?? ""revealActiveAfterLayout = revealActiveAfterLayout || nextActiveId != activeId@@ -1640,7 +1606,6 @@ private final class SwarmTabStrip: NSView {guard let id = row["id"] as? String else { return nil }let tab = previous[id] ?? SwarmTabButton(id: id)tab.palette = palette- tab.labelFont = HarnessTypography.font()tab.name = row["name"] as? String ?? "New Tab"let count = row["agentCount"] as? Int ?? 0// The Harness Store tab holds no agents; without its own mark it would wear New Tab's plus.@@ -1814,12 +1779,16 @@ private final class SwarmTabButton: NSView, NSDraggingSource, NSMenuItemValidatiget { iconView.image }set { iconView.image = newValue }}- var labelFont = HarnessTypography.font() {+ /// A tab is named in the system face, like every other Mac window's tabs —+ /// Safari's, Ghostty's, Finder's. The terminal's face belongs to the terminal+ /// and to the chrome drawn around it inside the window (owner, 2026-09-23).+ var labelFont = SwarmTabStrip.uiFont() {didSet { if oldValue != labelFont { invalidateLabel() } }}- /// The ⌘1 badge: the tab's face one point under its label, so the name leads.+ /// The ⌘1 badge: monospaced digits, so 1 and 9 take the same room and the+ /// badges down a strip of tabs line up.private var badgeFont: NSFont {- HarnessTypography.font(size: max(9, labelFont.pointSize - 1))+ NSFont.monospacedDigitSystemFont(ofSize: 11, weight: .medium)}private var cachedLabel: NSAttributedString?var actionsEnabled = true {diff --git a/desktop/test/desktop_window_test.dart b/desktop/test/desktop_window_test.dartindex 158310860..5e11d1d9f 100644--- a/desktop/test/desktop_window_test.dart+++ b/desktop/test/desktop_window_test.dart@@ -1,4 +1,3 @@-import 'package:harness/terminal/terminal_font_store.dart';import 'dart:async';import 'dart:io';@@ -6,7 +5,6 @@ import 'dart:io';import 'package:flutter/services.dart';import 'package:flutter_test/flutter_test.dart';import 'package:harness/core/desktop_window.dart';-import 'package:harness/shared/theme/app_type.dart';import 'package:harness/shared/theme/color_palette.dart';const _windowChannel = MethodChannel('window_manager');@@ -129,9 +127,6 @@ void main() {expect(nativeCalls.single.method, 'configure');expect(nativeCalls.single.arguments, {'palette': HarnessPalette.graphite.nativeColors,- 'fontFamily': terminalFontStore.value.fontFamily,- 'fontSize': AppType.chromeSize,- 'fontFallbacks': terminalFontStore.value.fontFamilyFallback,});expect(calls.indexOf('native:configure'), lessThan(calls.indexOf('show')));}, skip: !Platform.isMacOS);@@ -147,9 +142,6 @@ void main() {await setup;expect(nativeCalls.single.arguments, {'palette': palette.nativeColors,- 'fontFamily': terminalFontStore.value.fontFamily,- 'fontSize': AppType.chromeSize,- 'fontFallbacks': terminalFontStore.value.fontFamilyFallback,});expect(calls.indexOf('native:configure'),diff --git a/desktop/test/terminal_ui_typography_test.dart b/desktop/test/terminal_ui_typography_test.dartindex 20e456d9a..d0140e2b7 100644--- a/desktop/test/terminal_ui_typography_test.dart+++ b/desktop/test/terminal_ui_typography_test.dart@@ -321,7 +321,7 @@ void main() {await tester.pumpWidget(const SizedBox());});- testWidgets('native tabs take the terminal face at the chrome size', (+ testWidgets('the native tabs are told nothing about the terminal font', (tester,) async {final updates = <Map<dynamic, dynamic>>[];@@ -346,8 +346,10 @@ void main() {await mount(tester, app, map, native: true);selectFont(22, TerminalFontChoice.monaco);await tester.pumpAndSettle();- expect(updates.last['fontFamily'], 'Monaco');- expect(updates.last['fontSize'], grid.AppType.chromeSize);+ // They are named in the system face, so the payload carries no font at all.+ expect(updates.last.containsKey('fontFamily'), isFalse);+ expect(updates.last.containsKey('fontSize'), isFalse);+ expect(updates.last.containsKey('fontFallbacks'), isFalse);await tester.pumpWidget(const SizedBox());});}diff --git a/desktop/tool/swarm_titlebar_checks.swift b/desktop/tool/swarm_titlebar_checks.swiftindex ceb9c16ad..ddd46b28e 100644--- a/desktop/tool/swarm_titlebar_checks.swift+++ b/desktop/tool/swarm_titlebar_checks.swift@@ -120,26 +120,23 @@ private extension SwarmTabStrip {}func checkSharedTypography() throws {- defer { HarnessTypography.update(["fontFamily": ".AppleSystemUIFontMonospaced", "fontSize": 12]) }let menuFont = NSFont.menuFont(ofSize: 0)- for size in [CGFloat(12), 14] {- update(["tabs": [["id": "font-tab", "name": "Typography"]], "activeId": "font-tab",- "enabled": true, "fontFamily": "Menlo", "fontSize": size])- let tab = tabs[0]- try checkTitlebar(tab.labelFont.pointSize == size && tab.labelFont.familyName == "Menlo",- "Native tab uses the terminal face at the chrome size Flutter sends")- try checkTitlebar(storeButton.font?.pointSize == size && storeButton.font?.familyName == "Menlo",- "Native store action uses the terminal face at the chrome size")- try checkTitlebar(tab.menu?.font.familyName == menuFont.familyName && tab.menu?.font.pointSize == menuFont.pointSize,- "Native tab menu keeps the system menu font")- let history = SwarmHistoryEntry(["id": "font", "title": "Project", "machineName": "Machine"])!- let font = history.menuTitle().attribute(.font, at: 0, effectiveRange: nil) as! NSFont- try checkTitlebar(font == menuFont, "Native history keeps the system menu font")- let item = NSMenuItem()- let row = SwarmHistoryMenuRow(item: item, entry: history, width: 400)- try checkTitlebar(row.machineFrame.minY >= 0 && row.machineFrame.maxY <= row.bounds.height,- "Native history text fits its row")- }+ let system = NSFont.systemFont(ofSize: NSFont.systemFontSize)+ update(["tabs": [["id": "font-tab", "name": "Typography"]], "activeId": "font-tab", "enabled": true])+ let tab = tabs[0]+ try checkTitlebar(tab.labelFont.pointSize == system.pointSize && tab.labelFont.familyName == system.familyName,+ "A tab is named in the system face, like every other Mac window's tabs")+ try checkTitlebar(storeButton.font?.pointSize == system.pointSize && storeButton.font?.familyName == system.familyName,+ "The Store action beside the tabs takes the same face")+ try checkTitlebar(tab.menu?.font.familyName == menuFont.familyName && tab.menu?.font.pointSize == menuFont.pointSize,+ "Native tab menu keeps the system menu font")+ let history = SwarmHistoryEntry(["id": "font", "title": "Project", "machineName": "Machine"])!+ let font = history.menuTitle().attribute(.font, at: 0, effectiveRange: nil) as! NSFont+ try checkTitlebar(font == menuFont, "Native history keeps the system menu font")+ let item = NSMenuItem()+ let row = SwarmHistoryMenuRow(item: item, entry: history, width: 400)+ try checkTitlebar(row.machineFrame.minY >= 0 && row.machineFrame.maxY <= row.bounds.height,+ "Native history text fits its row")}func checkStartupPalette(_ expected: SwarmNativePalette) throws {@@ -162,7 +159,11 @@ private extension SwarmTabStrip {try checkTitlebar(button.frame.minY >= 6 && bounds.height - button.frame.maxY >= 6 && button.frame.width - labelWidth >= 32,"\(button.title) has vertical breathing room and readable horizontal padding")}- try checkTitlebar(stripFrame.minX >= zoomFrame.maxX + 12, "Tab row leaves room beside native traffic lights")+ // 10, which is where a Mac app starts its first control after the buttons: Safari's sidebar+ // toggle and Chrome's first tab both sit about there. It was 12 while the notifications bell+ // still led the strip.+ try checkTitlebar(stripFrame.minX >= zoomFrame.maxX + 10 && stripFrame.minX <= zoomFrame.maxX + 12,+ "Tab row starts a Mac-standard gap after the native traffic lights")try checkTitlebar(abs(newFrame.midY - closeFrame.midY) <= 1, "Tab controls align vertically with native traffic lights")try checkTitlebar(abs(stripFrame.minY - window.contentLayoutRect.maxY) <= 1, "Tab row meets content without a second toolbar row")try checkActiveVisible()@@ -922,39 +923,33 @@ private extension SwarmTitlebar {["title": "OpenAI", "status": "Not signed in", "engine": "codex","details": ["Sign in to Codex to see usage"]],]- updateModels(modelRows)+ updateModels(modelRows, current: nil)let models = main.item(withTitle: "Models")!.submenu!try checkTitlebar(models.items.filter { !$0.isSeparatorItem }.map(\.title) == [- "Subscription", "Anthropic, aabbcc, 12% remaining", "OpenAI, Not signed in",- "Local", "Want to manage local models?", "Open Grid"+ "Subscriptions", "Anthropic, aabbcc, 12% remaining", "OpenAI, Not signed in",+ "On this Mac", "Manage Local Models in Grid…"], "Models carries the two sections with something behind them, ending on the row that starts a model")- try checkTitlebar(models.items.filter(\.isSeparatorItem).count == 1,- "One native separator, between the sections — the run row is a Local row, not a section")+ try checkTitlebar(models.items.filter(\.isSeparatorItem).count == 2,+ "Two native separators: after the subscriptions, and before the row that manages models")for gone in ["API", "OpenRouter", "fal.ai", "Add Model"] {try checkTitlebar(models.item(withTitle: gone) == nil,"\(gone) is gone — it named nothing this app can reach or do")}- // The caption and button distinguish the manager action from the Local data rows.- // It remains enabled with nothing served and dispatches through the same guarded- // handler as Link Machine… so a modal still swallows it.- let managerCaption = models.items[models.items.count - 2]+ // The manager action closes the menu. It stays enabled with nothing served and dispatches+ // through the same guarded handler as Link Machine…, so a modal still swallows it.let runLocal = models.items.last!- try checkTitlebar(runLocal.title == "Open Grid",+ try checkTitlebar(runLocal.title == "Manage Local Models in Grid…","the last item in Models is the row that runs a local model")- try checkTitlebar(managerCaption.title == "Want to manage local models?" &&- managerCaption.view is SwarmMenuCaptionView && !managerCaption.isEnabled &&- runLocal.view is SwarmMenuButtonView,- "the manager is a button under an inert caption, not another served model")try checkTitlebar(runLocal.isEnabled && runLocal.submenu == nil,- "Open Grid is enabled even when nothing is served, and opens no submenu")+ "the manager row is enabled even when nothing is served, and opens no submenu")try checkTitlebar(runLocal.target === self && runLocal.action == #selector(menuAction(_:))&& runLocal.representedObject as? String == "runLocalModel",- "Open Grid dispatches runLocalModel through the guarded channel handler")+ "the manager row dispatches runLocalModel through the guarded channel handler")try checkTitlebar(runLocal.identifier?.rawValue == HarnessKeymapMenu.actionPrefix + "runLocalModel",- "Open Grid is identified for the keymap like every other Harness command")- try checkTitlebar(validateMenuItem(runLocal), "Open Grid validates with the workspace live")+ "the manager row is identified for the keymap like every other Harness command")+ try checkTitlebar(validateMenuItem(runLocal), "the manager row validates with the workspace live")actionsEnabled = false- try checkTitlebar(!validateMenuItem(runLocal), "Open Grid cannot run behind a modal")+ try checkTitlebar(!validateMenuItem(runLocal), "the manager row cannot run behind a modal")actionsEnabled = truetry checkTitlebar(!runLocal.title.contains("Mac"),"The model manager action does not assume one vendor's computer")@@ -966,7 +961,7 @@ private extension SwarmTitlebar {let picked = main.item(withTitle: "Models")!.submenu!.items.last!// AppKit gives a submenu's parent its own `submenuAction:`; what matters is that it is no longer// the guarded channel handler — nothing is dispatched until a machine is chosen.- try checkTitlebar(picked.title == "Open Grid" && picked.submenu != nil+ try checkTitlebar(picked.title == "Manage Local Models in Grid…" && picked.submenu != nil&& picked.action != #selector(menuAction(_:)) && picked.representedObject == nil,"with two machines the manager row opens a submenu instead of dispatching itself")try checkTitlebar(picked.identifier?.rawValue == HarnessKeymapMenu.actionPrefix + "runLocalModel",@@ -995,7 +990,7 @@ private extension SwarmTitlebar {// The Local section is DATA, not two hardcoded names. A menu naming a model nobody serves is// worse than one admitting it has none, which is what the empty case above asserts.- updateModels(modelRows, local: [+ updateModels(modelRows, current: nil, local: [["id": "Qwen3.6-35B-A3B-UD-Q5_K_XL", "node": "macbook-m1max"],["id": "DeepSeek-V4-Flash", "node": ""],])@@ -1004,10 +999,10 @@ private extension SwarmTitlebar {"a served model names the machine answering it")try checkTitlebar(served.item(withTitle: "DeepSeek-V4-Flash") != nil,"a model with no node named is listed on its own")- try checkTitlebar(served.items.last?.title == "Open Grid"- && !served.items[served.items.count - 2].isSeparatorItem- && served.items.filter(\.isSeparatorItem).count == 1,- "the manager keeps its caption after the Local data rows once models are served")+ try checkTitlebar(served.items.last?.title == "Manage Local Models in Grid…"+ && served.items[served.items.count - 2].isSeparatorItem+ && served.items.filter(\.isSeparatorItem).count == 2,+ "the manager row sits under its own rule, after the Local data rows")// A local row is built by the same view as a subscription row, which is what makes the two// sections read as one menu. A plain disabled NSMenuItem greys its whole title, so a served@@ -1019,24 +1014,31 @@ private extension SwarmTitlebar {"the model id takes the left column and its node the trailing one, as usage does above")try checkTitlebar(localRows.last?.balance.stringValue.isEmpty == true,"a model with no node leaves the trailing column empty rather than inventing one")- try checkTitlebar(localRows.allSatisfy { $0.iconImage != nil && $0.iconTint == .labelColor },- "a local model carries a tinted mark, so its row is not a gap where the brand icons sit")+ // The mark went when the Models menu was reworked: a local row now carries the id and its+ // node alone, and the icon column stays empty rather than inventing a brand for it.+ try checkTitlebar(localRows.allSatisfy { $0.iconImage == nil },+ "a local model is named without a brand mark")let subscriptionWidth = served.items.compactMap { $0.view as? SwarmSubscriptionView }.first!.bounds.widthtry checkTitlebar(localRows.allSatisfy { $0.bounds.width == subscriptionWidth },"both sections share one width, so the trailing column does not step at the section break")try checkTitlebar(localRows.allSatisfy { $0.identity.frame.minX == served.items.compactMap({ $0.view as? SwarmSubscriptionView }).first!.identity.frame.minX },"local and subscription titles start in the same column")- updateModels(modelRows)+ updateModels(modelRows, current: nil)try checkTitlebar(models.item(withTitle: "No models being served") == nil,"an empty Local says nothing — the run row is the answer, not a sentence")let subscription = models.items.first(where: { $0.view is SwarmSubscriptionView })!let row = subscription.view as! SwarmSubscriptionViewtry checkTitlebar(subscription.submenu == nil && subscription.action == nil && !subscription.isEnabled,"Subscription balances have no arrow or fake action")- try checkTitlebar(row.identity.stringValue == "Anthropic aabbcc" && row.balance.stringValue == "12% remaining",+ // The account is elided on the way in — "···aabbcc" — so the row says which account without+ // printing an id nobody reads in full.+ try checkTitlebar(row.identity.stringValue == "Anthropic ···aabbcc" && row.balance.stringValue == "12% remaining","Provider and account are on the left; usage is a separate right column")- try checkTitlebar(row.identity.frame.maxX + 24 <= row.balance.frame.minX && row.balance.frame.maxX == row.bounds.width - 18,- "Account and balance have a clear gap and a consistent trailing inset")+ // The meter sits between the two columns on a metered row, and the tick keeps its own column+ // on the right whether or not this row wears one — so the balance ends short of the rim.+ try checkTitlebar(row.identity.frame.maxX + 12 <= row.balance.frame.minX+ && row.balance.frame.maxX == row.bounds.width - 34,+ "Account and balance have a clear gap, and the balance clears the reserved tick column")try checkTitlebar(row.identity.frame.midY == row.balance.frame.midY,"Both columns share a vertical center")try checkTitlebar(row.accessibilityLabel() == subscription.title,@@ -1051,10 +1053,10 @@ private extension SwarmTitlebar {}try checkTitlebar(secondRow.balance.frame.maxX == row.balance.frame.maxX,"Different balances align on their right edges")- updateModels(modelRows)+ updateModels(modelRows, current: nil)try checkTitlebar(models.items.contains(where: { $0 === subscription }),"Unchanged subscription data reuses native menu items")- updateModels([])+ updateModels([], current: nil)try checkTitlebar(models.items.allSatisfy { !$0.title.contains("12%") && $0.submenu == nil },"Signing out clears cached native account readings")let findItems = find.submenu?.items ?? []