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
feat(super-tabs): machine rows show subscription allowances, not owners
bitcoinbuildercd9cad3a6a2e
diff --git a/desktop/integration_test/super_tab_native_test.dart b/desktop/integration_test/super_tab_native_test.dartindex c9ee6d54f..ae77b1183 100644--- a/desktop/integration_test/super_tab_native_test.dart+++ b/desktop/integration_test/super_tab_native_test.dart@@ -139,7 +139,7 @@ void main() {'runningHarnessIds': [f.connection.native!['id']],},},- // A second Studio Mac, so the list tells the two apart by owner, and one long offline, under its+ // A second Studio Mac, owned by someone else, and one long offline, under its// closed "Offline · 1".{'machineId': 'm-twin',@@ -268,10 +268,22 @@ void main() {expect(find.text('CHATS'), findsNothing);expect(find.text('New group'), findsNothing);expect(find.byTooltip('New project'), findsOneWidget);- // Left sidebar: both Projects and Machines groups start open, one line a machine, the two Studio Macs told- // apart by owner, and the offline machine under its closed disclosure.- expect(find.text('Studio Mac · owner'), findsOneWidget);- expect(find.text('Studio Mac · person0'), findsOneWidget);+ // Left sidebar: both Projects and Machines groups start open, one line a machine: its name, its Claude and+ // Codex allowances and its agents, never its owner, and the offline machine under its closed disclosure.+ expect(find.text('Studio Mac'), findsNWidgets(2));+ expect(find.textContaining('owner'), findsNothing);+ // Claude's chip always shows here; Codex's is the first to give way when the sidebar is narrow.+ Finder chip(String engine, String figure) => find.descendant(+ of: find.byKey(ValueKey('super-machine-allowance-m-$engine')),+ matching: find.text(figure),+ );+ expect(chip('claude', '50%'), findsOneWidget);+ if (find+ .byKey(const ValueKey('super-machine-allowance-m-codex'))+ .evaluate()+ .isNotEmpty) {+ expect(chip('codex', '88%'), findsOneWidget);+ }expect(find.text('Offline · 1'), findsOneWidget);expect(find.byKey(const ValueKey('super-machine-m-old')), findsNothing);expect(find.textContaining('CPU'), findsNothing);diff --git a/desktop/lib/super_tabs/machine_status.dart b/desktop/lib/super_tabs/machine_status.dartindex 39c5f4ac8..44ab44bcb 100644--- a/desktop/lib/super_tabs/machine_status.dart+++ b/desktop/lib/super_tabs/machine_status.dart@@ -56,7 +56,7 @@ SuperTabMachineStatus superTabMachineStatus({: SuperTabMachineStatus.live;}-/// How long ago, as a machine's tooltip says it: "just now", "4s ago", "3 min ago", "2 h ago".+/// How long ago: "just now", "4s ago", "3 min ago", "2 h ago".String superTabAgo(Duration age) {final seconds = age.inSeconds;if (seconds < 1) return 'just now';@@ -74,21 +74,14 @@ String superTabAgoShort(Duration age) {return '${age.inDays}d';}-/// What hovering or focusing a machine's row says.-String superTabMachineTip(SuperTabMachineStatus status, Duration? age) {- final ago = age == null ? null : superTabAgo(age);- return switch (status) {- SuperTabMachineStatus.refreshing => 'Refreshing…',- SuperTabMachineStatus.unknown =>- ago == null- ? "Can't reach Harness"- : "Can't reach Harness · data from $ago",- SuperTabMachineStatus.offline =>- ago == null ? 'Offline' : 'Offline · last seen $ago',- SuperTabMachineStatus.live ||- SuperTabMachineStatus.late => ago == null ? 'Updated' : 'Updated $ago',- };-}+/// What hovering or focusing a machine's row says of its state, before its owner and hardware: nothing while+/// it is online (the dot says so), and never how old the reading is.+String? superTabMachineTip(SuperTabMachineStatus status) => switch (status) {+ SuperTabMachineStatus.refreshing => 'Refreshing…',+ SuperTabMachineStatus.unknown => "Can't reach Harness",+ SuperTabMachineStatus.offline => 'Offline',+ SuperTabMachineStatus.live || SuperTabMachineStatus.late => null,+};/// The state in words, so that colour is never the only signal.String superTabMachineStateLabel(SuperTabMachineStatus status) =>diff --git a/desktop/lib/super_tabs/machines.dart b/desktop/lib/super_tabs/machines.dartindex dce5eb178..2728d45f6 100644--- a/desktop/lib/super_tabs/machines.dart+++ b/desktop/lib/super_tabs/machines.dart@@ -9,6 +9,7 @@ import '../core/models.dart';import '../core/test_run.dart';import '../shared/theme/app_icons.dart';import '../shared/theme/app_theme.dart' as grid;+import '../shared/theme/status_line_style.dart';import '../shared/widgets/app_dialog.dart';import '../shared/widgets/app_icon_button.dart';import '../shared/widgets/app_menu.dart';@@ -634,8 +635,8 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {: '${minutes ~/ 1440}d';}- /// Below this share of an allowance left, a machine's row shows its one warning.- static const _lowAllowance = 10;+ /// The engines whose allowance a machine row shows, in this order.+ static const _chipEngines = ['claude', 'codex'];/// Everything a machine's row, its tooltip and its details say of it, read once per build._MachineView _view(String id) {@@ -750,17 +751,42 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {);String available(double used) =>resourcePercent((100 - used).clamp(0, 100));- // An old reading's allowance is not a warning about now.- final low = dim- ? const <String>[]+ // Each engine with a known, unexpired allowance, Claude first. Offline or out of reach, an allowance is an+ // old reading and no chip shows it as now.+ final allowances =+ status == SuperTabMachineStatus.offline ||+ status == SuperTabMachineStatus.unknown+ ? const <_Allowance>[]: [- for (final row in accounts)- if (row['remainingPercent'] case final num left- when left < _lowAllowance)+ for (final engine in _chipEngines)+ if (accounts+ .where(+ (row) =>+ row['engine'] == engine &&+ row['remainingPercent'] is num,+ )+ .firstOrNull+ case final row?)for (final account in WorkspaceSubscriptionUsage.fromRows([row,- ]).accounts)- '${account.name}: ${account.figure} left',+ ]).accounts.take(1))+ _Allowance(+ engine: engine,+ name: account.name,+ figure: account.figure,+ left: (row['remainingPercent'] as num).toDouble().clamp(+ 0,+ 100,+ ),+ detail: [+ account.name,+ ...switch (row['details']) {+ final List lines when lines.isNotEmpty =>+ lines.whereType<String>(),+ _ => ['${account.figure} remaining'],+ },+ ].join('\n'),+ ),];return _MachineView(id: id,@@ -785,11 +811,12 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {resources: value,accounts: accounts,engines: allowed,- low: low,- // What the line leaves out, for hover, focus and a screen reader: how old the reading is, the numbers- // behind it and an allowance running out. Old numbers are kept here, never blanked.+ allowances: allowances,+ // What the line leaves out, for hover, focus and a screen reader: whose machine it is and its hardware,+ // after its state when that is not online. Never an age. Old numbers are kept here, never blanked.tip: [- superTabMachineTip(status, age),+ ?superTabMachineTip(status),+ if (person != null) 'Owned by ${superTabPersonName(person.email)}',if (paused) 'New work paused',if (value?.cpuPercent case final cpu?) 'CPU ${available(cpu)} free',if (value?.busiestGpu?.utilizationPercent case final gpu?)@@ -797,7 +824,6 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {if (memoryFree != null)'RAM ${resourceBytes(memoryFree.toDouble())} free',if (diskFree != null) 'SSD ${resourceBytes(diskFree)} free',- ...low,].join(' · '),);}@@ -874,7 +900,7 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {/// One machine on one line: its state's dot in the icon column, its name on the text column, its agents at/// the end. Everything else is in its tooltip and its details.- Widget _machine(_MachineView v, {String? owner, int level = 1}) {+ Widget _machine(_MachineView v, {int level = 1}) {final tipKey = _tips.putIfAbsent(v.id, GlobalKey<TooltipState>.new);final name = superTabMachineName(v.name);final row = Padding(@@ -899,27 +925,24 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {Tooltip.dismissAllToolTips();}},- child: _MachineLine(- view: v,- owner: owner,- anchor: _anchor,- level: level,- ),+ child: _MachineLine(view: v, anchor: _anchor, level: level),),),);// One label for the row, so that colour is never the only signal: the machine, its state in words, and- // what hovering it says.+ // what hovering it says. Its allowances and agents follow, each in its own words.return Semantics(// Rows move as states change; each keeps its own element, tooltip and all.key: ValueKey('super-machine-entry-${v.id}'),container: true,- label:- '$name${owner == null ? '' : ' · $owner'}, '- '${superTabMachineStateLabel(v.status)}, ${v.tip}',+ label: [+ name,+ superTabMachineStateLabel(v.status),+ if (v.tip.isNotEmpty) v.tip,+ ].join(', '),child: Tooltip(key: tipKey,- message: v.tip,+ message: v.tip.isEmpty ? superTabMachineStateLabel(v.status) : v.tip,excludeFromSemantics: true,child: row,),@@ -994,15 +1017,7 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {/// Online machines first, then "Offline · N" with the offline ones under it; each part by name.List<Widget> _machines() {final views = [for (final id in _ids) _view(id)];- // A name two machines share is told apart by whose each is.String key(_MachineView v) => superTabMachineName(v.name).toLowerCase();- final named = <String, int>{};- for (final v in views) {- named.update(key(v), (n) => n + 1, ifAbsent: () => 1);- }- String? owner(_MachineView v) => named[key(v)]! > 1 && v.owner != null- ? superTabPersonName(v.owner!.email)- : null;// A machine being refreshed keeps its place; one whose state cannot be read follows the ones that report.int rank(_MachineView v) => switch (v.status) {SuperTabMachineStatus.unknown => 1,@@ -1021,12 +1036,11 @@ class _SuperTabMachinesState extends State<SuperTabMachines> {.toList();return [for (final v in views)- if (v.status != SuperTabMachineStatus.offline)- _machine(v, owner: owner(v)),+ if (v.status != SuperTabMachineStatus.offline) _machine(v),if (offline.isNotEmpty) ...[_offlineToggle(offline.length),if (c.offlineMachinesOpen)- for (final v in offline) _machine(v, owner: owner(v), level: 2),+ for (final v in offline) _machine(v, level: 2),],];}@@ -1103,7 +1117,7 @@ class _MachineView {required this.resources,required this.accounts,required this.engines,- required this.low,+ required this.allowances,required this.tip,});@@ -1124,26 +1138,49 @@ class _MachineView {final List<Map<String, Object?>> accounts;final List<String>? engines;- /// Each allowance under [_SuperTabMachinesState._lowAllowance], as "Claude Code: 2% left".- final List<String> low;+ /// What the row's chips show, Claude first; empty while offline or out of reach.+ final List<_Allowance> allowances;+}++/// One engine's allowance on a machine: its mark and remaining share on the row, its windows on hover.+class _Allowance {+ const _Allowance({+ required this.engine,+ required this.name,+ required this.figure,+ required this.left,+ required this.detail,+ });++ final String engine, name, figure, detail;++ /// The share left, 0–100.+ final double left;++ /// Amber below 20%, red below 10%, otherwise the row's quiet metadata ink.+ Color get ink => statusLineInkOnSurface(+ left < 10+ ? grid.AppPalette.usageCritical+ : left < 20+ ? grid.AppPalette.usageLow+ : DesktopChrome.muted,+ DesktopChrome.surface,+ );}/// A machine's line, at the height and on the columns of a project row: the dot centered in the icon column,-/// the name on the text column, and at the end the allowance warning when there is one and up to three agents-/// overlapping, then +N. The last mark centers on [anchor], the heading +'s column.+/// the name on the text column, then each engine's allowance and up to three agents overlapping, then +N. The+/// last agent mark centers on [anchor], the heading +'s column. When the line runs short, the name keeps+/// [_minName]: the agents become +N first, then the Codex chip goes, then the Claude one.class _MachineLine extends StatelessWidget {const _MachineLine({required this.view,- required this.owner,required this.anchor,required this.level,});final _MachineView view;- /// Whose machine it is, when another has the same name.- final String? owner;-/// From the row's right edge to the center of its last mark.final double anchor;@@ -1152,16 +1189,19 @@ class _MachineLine extends StatelessWidget {static const iconColumn = SuperTabSectionHeading.actionWidth;- /// Half the project rows' dot, so that a row with nothing at its end stops where theirs do.+ /// Half the project rows' dot, so that a row with no agents stops where theirs do.static const dotHalf = 3.0;static const _avatar = 16.0;static const _ring = 1.0;static const _overlap = 5.0;static const _maxAvatars = 3;- static const _warning = 14.0;+ static const _mark = 14.0;+ static const _markGap = 4.0;+ static const _chipGap = 8.0;+ static const _gap = 8.0;- /// Agents give way to the name, down to +N, until it fits or has this share of the line.- static const _nameShare = .5;+ /// What the name keeps, at the default text size, before anything at the end gives way.+ static const _minName = 56.0;static double get _ringed => _avatar + 2 * _ring;@@ -1212,72 +1252,94 @@ class _MachineLine extends StatelessWidget {padding: const EdgeInsets.symmetric(vertical: 8),child: LayoutBuilder(builder: (context, constraints) {- final warning = v.low.isNotEmpty;- ({double width, double end}) end(int shown) {- final hidden = v.agents.length - shown;- final last = hidden > 0- ? measure('+$hidden')- : shown > 0- ? _ringed- : warning- ? _warning- : 2 * dotHalf;- final width =- (warning ? _warning : 0) +- (warning && v.agents.isNotEmpty ? 6 : 0) +- (shown > 0- ? _ringed + (_ringed - _overlap) * (shown - 1)- : 0) +- (hidden > 0 ? (shown > 0 ? 4 : 0) + last : 0);+ final agents = v.agents.length;+ double chipWidth(_Allowance a) =>+ _mark + _markGap + measure(a.figure);++ /// How much the end takes with [shown] avatars and the first [chips] chips, and the space after+ /// it that puts its last mark on the anchor.+ ({double width, double end}) end(int shown, int chips) {+ final hidden = agents - shown;+ final more = hidden > 0 ? measure('+$hidden') : 0.0;+ final stack = shown > 0+ ? _ringed + (_ringed - _overlap) * (shown - 1)+ : 0.0;+ final double agentsWidth =+ stack + (hidden > 0 ? (shown > 0 ? 4 : 0) + more : 0);+ var chipsWidth = 0.0;+ for (var i = 0; i < chips; i++) {+ chipsWidth +=+ chipWidth(v.allowances[i]) + (i > 0 ? _chipGap : 0);+ }+ final double width =+ (chips > 0 ? _gap + chipsWidth : 0) ++ (agents > 0 ? _gap + agentsWidth : 0);+ final last = hidden > 0 ? more : _ringed;return (- width: width == 0 ? 0 : width + 8,- end: (anchor - last / 2).clamp(0.0, anchor),+ width: width,+ end: agents > 0+ ? (anchor - last / 2).clamp(0.0, anchor)+ : anchor - dotHalf,);}final name = superTabMachineName(v.name);- final suffix = owner == null ? null : ' · $owner';final wanted = math.min(- measure(name, style) +- (suffix == null ? 0 : measure(suffix, style)),- constraints.maxWidth * _nameShare,+ measure(name, style),+ MediaQuery.textScalerOf(context).scale(_minName),);- var shown = v.agents.length.clamp(0, _maxAvatars);- while (shown > 0) {- final e = end(shown);+ // Agents to +N first, then chips from the end: Codex, then Claude.+ final steps = [+ for (var s = math.min(agents, _maxAvatars); s >= 0; s--)+ (s, v.allowances.length),+ for (var k = v.allowances.length - 1; k >= 0; k--) (0, k),+ ];+ var (shown, chips) = steps.last;+ for (final (s, k) in steps) {+ final e = end(s, k);if (constraints.maxWidth - e.width - e.end >= wanted) {+ (shown, chips) = (s, k);break;}- shown--;}- final hidden = v.agents.length - shown;+ final hidden = agents - shown;final room =- constraints.maxWidth - end(shown).width - end(shown).end;+ constraints.maxWidth -+ end(shown, chips).width -+ end(shown, chips).end;final roles = v.agents.map((a) => '${a.name} — ${a.role}').join('\n');return Row(children: [- Expanded(- child: _name(context, name, suffix, style, room),- ),- if (warning) ...[- const SizedBox(width: 8),+ Expanded(child: _name(context, name, style, room)),+ for (final (i, a)+ in v.allowances.take(chips).indexed) ...[+ SizedBox(width: i == 0 ? _gap : _chipGap),Tooltip(- message: v.low.join('\n'),+ message: a.detail,child: Semantics(- label: v.low.join(', '),- child: Icon(- AppIcons.triangleAlert,- key: ValueKey('super-machine-attention-${v.id}'),- size: _warning,- color: grid.AppPalette.warn,+ label: '${a.name} ${a.figure} remaining',+ excludeSemantics: true,+ child: Row(+ key: ValueKey(+ 'super-machine-allowance-${v.id}-${a.engine}',+ ),+ mainAxisSize: MainAxisSize.min,+ children: [+ EngineMark(engine: a.engine, size: _mark),+ const SizedBox(width: _markGap),+ Text(+ a.figure,+ style: countStyle.copyWith(color: a.ink),+ ),+ ],),),),],- if (v.agents.isNotEmpty) ...[- SizedBox(width: warning ? 6 : 8),+ if (agents > 0) ...[+ const SizedBox(width: _gap),Tooltip(message: roles,child: Semantics(@@ -1299,7 +1361,7 @@ class _MachineLine extends StatelessWidget {),),],- SizedBox(width: end(shown).end),+ SizedBox(width: end(shown, chips).end),],);},@@ -1311,12 +1373,10 @@ class _MachineLine extends StatelessWidget {);}- /// The name, then a shared name's owner in muted ink. The name gives way first, since the owner is what- /// tells it apart, and a name cut short shows itself whole on hover.+ /// The name, fitted to [room]; a name cut short shows itself whole on hover.Widget _name(BuildContext context,String name,- String? suffix,TextStyle style,double room,) {@@ -1332,18 +1392,13 @@ class _MachineLine extends StatelessWidget {return result;}- // Up to half the room for the owner, so a long address cannot crowd the name out.- final ownerWidth = suffix == null- ? 0.0- : math.min(measure(suffix), room / 2);- final fits = room - ownerWidth;var shown = name;- if (measure(name) > fits) {+ if (measure(name) > room) {final chars = name.characters.toList();var keep = 0;for (var lo = 1, hi = chars.length - 1; lo <= hi;) {final mid = (lo + hi) ~/ 2;- if (measure('${chars.take(mid).join().trimRight()}…') <= fits) {+ if (measure('${chars.take(mid).join().trimRight()}…') <= room) {keep = mid;lo = mid + 1;} else {@@ -1352,17 +1407,8 @@ class _MachineLine extends StatelessWidget {}shown = '${chars.take(keep).join().trimRight()}…';}- final text = Text.rich(- TextSpan(- children: [- TextSpan(text: shown),- if (suffix != null)- TextSpan(- text: suffix,- style: TextStyle(color: DesktopChrome.muted),- ),- ],- ),+ final text = Text(+ shown,maxLines: 1,overflow: TextOverflow.ellipsis,style: style,diff --git a/desktop/test/super_tab_machine_freshness_test.dart b/desktop/test/super_tab_machine_freshness_test.dartindex e2b1683ed..9013f8546 100644--- a/desktop/test/super_tab_machine_freshness_test.dart+++ b/desktop/test/super_tab_machine_freshness_test.dart@@ -202,27 +202,19 @@ void main() {);});- test('hover and focus say each state in its own words', () {- String tip(SuperTabMachineStatus s, [Duration? age]) =>- superTabMachineTip(s, age);+ test('hover and focus say a state that is not online in its own words, never an age', () {+ // Online says nothing: the dot does. No state says how old its reading is.+ expect(superTabMachineTip(SuperTabMachineStatus.live), isNull);+ expect(superTabMachineTip(SuperTabMachineStatus.late), isNull);+ expect(superTabMachineTip(SuperTabMachineStatus.offline), 'Offline');expect(- tip(SuperTabMachineStatus.live, const Duration(seconds: 4)),- 'Updated 4s ago',+ superTabMachineTip(SuperTabMachineStatus.unknown),+ "Can't reach Harness",);expect(- tip(SuperTabMachineStatus.late, const Duration(seconds: 28)),- 'Updated 28s ago',+ superTabMachineTip(SuperTabMachineStatus.refreshing),+ 'Refreshing…',);- expect(- tip(SuperTabMachineStatus.offline, const Duration(minutes: 3)),- 'Offline · last seen 3 min ago',- );- expect(- tip(SuperTabMachineStatus.unknown, const Duration(minutes: 1)),- "Can't reach Harness · data from 1 min ago",- );- expect(tip(SuperTabMachineStatus.refreshing), 'Refreshing…');- expect(tip(SuperTabMachineStatus.offline), 'Offline');expect(superTabMachineStateLabel(SuperTabMachineStatus.unknown),'Status unknown',@@ -249,11 +241,11 @@ void main() {findsOneWidget,);const tip =- 'Updated 4s ago · CPU 80% free · RAM 16 GB free · SSD 500 GB free';+ 'Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free';expect(tipOf(tester, 'm'), tip);expect(labelOf(tester, 'm'), 'Studio Mac, Live, $tip');- // One line: the name, and no number or age beside it.- expect(textsOf('m'), ['Studio Mac']);+ // One line: the name and its Codex allowance; no hardware number, no age.+ expect(textsOf('m'), ['Studio Mac', '90%']);expect(nameInkOf(tester, 'm'), isNot(DesktopChrome.muted));expect(find.byType(SuperTabMachinesPill), findsNothing);@@ -273,12 +265,12 @@ void main() {await show(tester, c);expect(statusOf(tester, 'm'), SuperTabMachineStatus.late);- expect(tipOf(tester, 'm'), startsWith('Updated 28s ago · CPU 80% free'));+ expect(tipOf(tester, 'm'), startsWith('Owned by owner · CPU 80% free'));expect(labelOf(tester, 'm'),- startsWith('Studio Mac, Late, Updated 28s ago'),+ startsWith('Studio Mac, Late, Owned by owner'),);- expect(textsOf('m'), ['Studio Mac']);+ expect(textsOf('m'), ['Studio Mac', '90%']);semantics.dispose();await tester.pumpWidget(const SizedBox());@@ -326,9 +318,9 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.offline);expect(nameInkOf(tester, 'm'), DesktopChrome.muted);- // Never blanked: its last numbers stay, after when it was last seen. The allowance is old, so no warning.+ // Never blanked: its last numbers stay. Its allowance is old, so it has no chip.const tip =- 'Offline · last seen 3 min ago · CPU 80% free · RAM 16 GB free · SSD 500 GB free';+ 'Offline · Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free';expect(tipOf(tester, 'm'), tip);expect(labelOf(tester, 'm'), 'Studio Mac, Offline, $tip');expect(textsOf('m'), ['Studio Mac']);@@ -344,7 +336,7 @@ void main() {);testWidgets(- 'unknown while the Swarm cannot be read: not offline, its data from a minute ago kept in its tooltip',+ 'unknown while the Swarm cannot be read: not offline, its last numbers kept in its tooltip',(tester) async {final server = ConversationServer();server.state['machines'] = [@@ -370,7 +362,7 @@ void main() {findsNothing,);const tip =- "Can't reach Harness · data from 1 min ago · CPU 80% free · RAM 16 GB free · SSD 500 GB free";+ "Can't reach Harness · Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free";expect(tipOf(tester, 'm'), tip);expect(labelOf(tester, 'm'), 'Studio Mac, Status unknown, $tip');@@ -402,7 +394,7 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.unknown);expect(tipOf(tester, 'm'),- startsWith("Can't reach Harness · data from 10 min ago"),+ startsWith("Can't reach Harness · Owned by owner"),);await tester.pumpWidget(const SizedBox());},@@ -440,16 +432,16 @@ void main() {await show(tester, c, app: f.app, readLocal: (_) async => null);expect(statusOf(tester, 'far'), SuperTabMachineStatus.refreshing);const tip =- 'Refreshing… · CPU 80% free · RAM 16 GB free · SSD 500 GB free';+ 'Refreshing… · Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free';expect(tipOf(tester, 'far'), tip);expect(labelOf(tester, 'far'), 'Far Mac, Refreshing, $tip');- expect(textsOf('far'), ['Far Mac']);+ expect(textsOf('far'), ['Far Mac', '90%']);gate.complete();await landed(tester);await show(tester, c, app: f.app, readLocal: (_) async => null);expect(statusOf(tester, 'far'), SuperTabMachineStatus.live);- expect(tipOf(tester, 'far'), startsWith('Updated 10s ago · '));+ expect(tipOf(tester, 'far'), startsWith('Owned by owner · '));semantics.dispose();await tester.pumpWidget(const SizedBox());@@ -503,7 +495,7 @@ void main() {await c.refresh();await show(tester, c);const tip =- 'Updated 4s ago · CPU 80% free · RAM 16 GB free · SSD 500 GB free';+ 'Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free';expect(find.text(tip), findsNothing);final mouse = await tester.createGesture(kind: PointerDeviceKind.mouse);await mouse.addPointer(location: Offset.zero);@@ -522,7 +514,7 @@ void main() {c.offlineMachinesOpen = true;await show(tester, c);const tip =- 'Offline · last seen 3 min ago · CPU 80% free · RAM 16 GB free · SSD 500 GB free';+ 'Offline · Owned by owner · CPU 80% free · RAM 16 GB free · SSD 500 GB free';expect(find.text(tip), findsNothing);// The disclosure first, then the machine under it.await tester.sendKeyEvent(LogicalKeyboardKey.tab);@@ -693,7 +685,7 @@ void main() {await landed(tester);expect(tipOf(tester, 'm'),- 'Updated just now · CPU 70% free · RAM 0 MB free',+ 'Owned by owner · CPU 70% free · RAM 0 MB free',);expect(statusOf(tester, 'm'), SuperTabMachineStatus.live);@@ -707,7 +699,7 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.refreshing);expect(tipOf(tester, 'm'),- 'Refreshing… · CPU 70% free · RAM 0 MB free',+ 'Refreshing… · Owned by owner · CPU 70% free · RAM 0 MB free',);reads.last.complete(cpu(90));@@ -715,7 +707,7 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.live);expect(tipOf(tester, 'm'),- 'Updated just now · CPU 10% free · RAM 0 MB free',+ 'Owned by owner · CPU 10% free · RAM 0 MB free',);await done(tester, f, c);@@ -746,7 +738,7 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.late);expect(tipOf(tester, 'm'),- 'Updated 25s ago · CPU 70% free · RAM 0 MB free',+ 'Owned by owner · CPU 70% free · RAM 0 MB free',);now = base.add(const Duration(minutes: 5));await show(tester, c, app: f.app, readLocal: read);@@ -770,7 +762,7 @@ void main() {expect(statusOf(tester, 'm'), SuperTabMachineStatus.offline);expect(tipOf(tester, 'm'),- 'Offline · last seen just now · CPU 70% free · RAM 0 MB free',+ 'Offline · Owned by owner · CPU 70% free · RAM 0 MB free',);await done(tester, f, c);@@ -821,10 +813,7 @@ void main() {await landed(tester);// This computer is read directly: live, and not dimmed. The other is only known through the Swarm.expect(statusOf(tester, 'm'), SuperTabMachineStatus.live);- expect(- tipOf(tester, 'm'),- startsWith('Updated just now · CPU 70% free'),- );+ expect(tipOf(tester, 'm'), startsWith('Owned by owner · CPU 70% free'));expect(statusOf(tester, 'far'), SuperTabMachineStatus.unknown);expect(find.byType(SuperTabMachinesPill), findsOneWidget);expect(pill('Live'), findsNothing);diff --git a/desktop/test/super_tab_machines_test.dart b/desktop/test/super_tab_machines_test.dartindex 4ee575b8e..5a857e682 100644--- a/desktop/test/super_tab_machines_test.dart+++ b/desktop/test/super_tab_machines_test.dart@@ -7,6 +7,7 @@ import 'package:flutter/services.dart';import 'package:flutter_test/flutter_test.dart';import 'package:harness/core/models.dart';import 'package:harness/shared/theme/app_icons.dart';+import 'package:harness/shared/theme/status_line_style.dart';import 'package:harness/state/app_state.dart';import 'package:harness/super_tabs/machines.dart';import 'package:harness/super_tabs/machine_details.dart';@@ -151,18 +152,26 @@ void main() {await tester.pumpAndSettle();final offline = find.byKey(const ValueKey('super-machine-offline'));final online = find.byKey(const ValueKey('super-machine-online'));- // The list says no number, age or allowance; the row's tooltip does.+ // The line shows the one known allowance, Codex's, and no hardware number or age; the row's tooltip+ // says whose machine it is and its hardware.expect(find.textContaining('CPU'), findsNothing);expect(find.textContaining('GB'), findsNothing);expect(find.textContaining('ago'), findsNothing);- expect(find.byType(EngineMark), findsNothing);+ expect(+ tester+ .widget<EngineMark>(+ find.descendant(of: online, matching: find.byType(EngineMark)),+ )+ .engine,+ 'codex',+ );+ expect(+ find.descendant(of: online, matching: find.text('100%')),+ findsOneWidget,+ );expect(_tipOf(tester, online),- matches(- RegExp(- r'^Updated (just now|\ds ago) · CPU 100% free · RAM 0 GB free · SSD 141 GB free$',- ),- ),+ 'Owned by owner · CPU 100% free · RAM 0 GB free · SSD 141 GB free',);expect(tester.getSize(online).height, 36);// Offline machines start out of sight, under their disclosure.@@ -171,9 +180,14 @@ void main() {await tester.tap(find.byKey(const ValueKey('super-machines-offline')));await tester.pumpAndSettle();expect(c.offlineMachinesOpen, isTrue);+ // Offline: its state in words, never when it was last seen, and no allowance chip.expect(_tipOf(tester, offline),- 'Offline · last seen 1 min ago · CPU 100% free · RAM 0 GB free · SSD 141 GB free',+ 'Offline · Owned by owner · CPU 100% free · RAM 0 GB free · SSD 141 GB free',+ );+ expect(+ find.descendant(of: offline, matching: find.byType(EngineMark)),+ findsNothing,);expect(tester.getTopLeft(offline).dy,@@ -303,7 +317,7 @@ void main() {);testWidgets(- 'a name two machines share is told apart by its owner, and only then',+ 'a row never names its owner, even when another machine has the same name; its tooltip does',(tester) async {final server = ConversationServer();final now = DateTime.now().millisecondsSinceEpoch;@@ -320,7 +334,6 @@ void main() {server.state['machines'] = [machine('t', 'MacBooks-MacBook-Pro-9.local', 'tony'),machine('d', 'MacBook Pro', 'dee'),- machine('s', 'Studio', 'dee'),];final c = server.controller();await c.refresh();@@ -333,29 +346,15 @@ void main() {),);await tester.pumpAndSettle();- expect(_lineOf(tester, 't'), 'MacBook Pro · tony');- expect(_lineOf(tester, 'd'), 'MacBook Pro · dee');- expect(_lineOf(tester, 's'), 'Studio');- // The owner is in muted ink, after the name.- final span = tester- .widget<RichText>(- find.descendant(- of: find.byKey(const ValueKey('super-machine-t')),- matching: find.byType(RichText),- ),- )- .text;- TextSpan? owner;- span.visitChildren((child) {- if (child is TextSpan && child.text == ' · tony') owner = child;- return owner == null;- });- expect(owner!.style!.color, DesktopChrome.muted);+ expect(_lineOf(tester, 't'), 'MacBook Pro');+ expect(_lineOf(tester, 'd'), 'MacBook Pro');+ expect(find.textContaining('tony'), findsNothing);+ expect(find.textContaining('dee'), findsNothing);+ final row = find.byKey(const ValueKey('super-machine-t'));+ expect(_tipOf(tester, row), 'Owned by tony');expect(- tester- .getSemantics(find.byKey(const ValueKey('super-machine-t')))- .label,- startsWith('MacBook Pro · tony, Live, Updated'),+ tester.getSemantics(row).label,+ startsWith('MacBook Pro, Live, Owned by tony'),);semantics.dispose();await tester.pumpWidget(const SizedBox());@@ -469,36 +468,57 @@ void main() {);testWidgets(- 'an allowance under 10% is the one warning a row shows, and says which',+ 'each known, unexpired allowance is a chip, Claude first: amber under 20%, red under 10%, its windows on hover',(tester) async {final server = ConversationServer();- final now = DateTime.now().millisecondsSinceEpoch;- Map<String, dynamic> machine(String id, int used, {int age = 0}) => {+ final now = DateTime.now();+ final at = now.millisecondsSinceEpoch;+ Map<String, dynamic> quota(+ String engine,+ int used, {+ bool known = true,+ DateTime? resetsAt,+ }) => {+ 'engine': engine,+ 'known': known,+ 'windows': [+ {+ 'name': '5-hour',+ 'usedPercent': used,+ 'resetsAt': (resetsAt ?? now.add(const Duration(hours: 2)))+ .millisecondsSinceEpoch,+ },+ ],+ };+ Map<String, dynamic> machine(+ String id,+ List<Map<String, dynamic>> quotas, {+ int age = 0,+ }) => {'machineId': id,'name': id,'contributorId': 'owner',- 'observation': {- 'receivedAt': now - age,- 'quotas': [- {- 'engine': 'codex',- 'known': true,- 'windows': [- {'name': '5-hour', 'usedPercent': used},- ],- },- ],- },+ 'observation': {'receivedAt': at - age, 'quotas': quotas},};server.state['machines'] = [- machine('low', 98),- machine('fine', 90),- // An old reading's allowance is no warning about now.- machine('gone', 99, age: 600000),+ // Listed Codex first; shown Claude first.+ machine('both', [quota('codex', 95), quota('claude', 85)]),+ machine('fine', [quota('claude', 50)]),+ machine('expired', [+ quota(+ 'codex',+ 10,+ resetsAt: now.subtract(const Duration(minutes: 1)),+ ),+ ]),+ machine('unknown', [quota('claude', 10, known: false)]),+ // An old reading's allowance is not shown as now.+ machine('gone', [quota('claude', 50)], age: 600000),];final c = server.controller();await c.refresh();c.offlineMachinesOpen = true;+ final semantics = tester.ensureSemantics();await tester.pumpWidget(MaterialApp(home: Scaffold(@@ -507,26 +527,216 @@ void main() {),);await tester.pumpAndSettle();- final warning = find.byKey(const ValueKey('super-machine-attention-low'));- expect(warning, findsOneWidget);- expect(find.byTooltip('Codex: 2% left'), findsOneWidget);+ Finder chip(String id, String engine) =>+ find.byKey(ValueKey('super-machine-allowance-$id-$engine'));+ Color? ink(Finder chip, String figure) => tester+ .widget<Text>(find.descendant(of: chip, matching: find.text(figure)))+ .style+ ?.color;+expect(- _tipOf(tester, find.byKey(const ValueKey('super-machine-low'))),- endsWith(' · Codex: 2% left'),+ tester.getTopLeft(chip('both', 'claude')).dx,+ lessThan(tester.getTopLeft(chip('both', 'codex')).dx),);expect(- find.byKey(const ValueKey('super-machine-attention-fine')),- findsNothing,+ tester+ .widget<EngineMark>(+ find.descendant(+ of: chip('both', 'claude'),+ matching: find.byType(EngineMark),+ ),+ )+ .size,+ 14,);+ final surface = DesktopChrome.surface;expect(- find.byKey(const ValueKey('super-machine-attention-gone')),- findsNothing,+ ink(chip('both', 'claude'), '15%'),+ statusLineInkOnSurface(grid.AppPalette.usageLow, surface),);- // At the end, centered on the + column when nothing follows it.- final row = tester.getRect(- find.byKey(const ValueKey('super-machine-low')),+ expect(+ ink(chip('both', 'codex'), '5%'),+ statusLineInkOnSurface(grid.AppPalette.usageCritical, surface),);- expect(tester.getCenter(warning).dx, closeTo(row.right - 28, .5));+ expect(+ ink(chip('fine', 'claude'), '50%'),+ statusLineInkOnSurface(DesktopChrome.muted, surface),+ );+ expect(+ tester+ .widget<Text>(+ find.descendant(+ of: chip('fine', 'claude'),+ matching: find.text('50%'),+ ),+ )+ .style+ ?.fontFeatures,+ contains(const FontFeature.tabularFigures()),+ );+ // Each chip says its windows on hover, and its share in words to a screen reader.+ final claudeTip = tester+ .widget<Tooltip>(+ find+ .ancestor(+ of: chip('both', 'claude'),+ matching: find.byType(Tooltip),+ )+ .first,+ )+ .message!;+ expect(+ claudeTip,+ startsWith('Claude Code\n5-hour: 15% remaining · resets in '),+ );+ expect(+ find.bySemanticsLabel(RegExp('Claude Code 15% remaining')),+ findsOneWidget,+ );+ expect(find.bySemanticsLabel(RegExp('Codex 5% remaining')), findsOneWidget);+ // No chip for an expired or unknown allowance, nor for an offline machine; no warning icon anywhere.+ expect(find.byKey(const ValueKey('super-machine-gone')), findsOneWidget);+ for (final id in ['expired', 'unknown', 'gone']) {+ expect(+ find.descendant(+ of: find.byKey(ValueKey('super-machine-$id')),+ matching: find.byType(EngineMark),+ ),+ findsNothing,+ reason: id,+ );+ }+ expect(find.byIcon(AppIcons.triangleAlert), findsNothing);+ semantics.dispose();+ await tester.pumpWidget(const SizedBox());+ await c.flush();+ c.dispose();+ },+ );++ testWidgets(+ 'as the line narrows the name keeps its minimum: agents become +N, then Codex goes, then Claude',+ (tester) async {+ final server = ConversationServer();+ final now = DateTime.now();+ server.state['agents'] = [+ for (var i = 0; i < 5; i++)+ {+ 'id': 'agent-$i',+ 'name': 'Harness $i',+ 'displayName': 'Engineer $i',+ 'machineId': 'm',+ 'harnessId': 'native-$i',+ 'contributorId': 'owner',+ 'configuration': {'engine': 'claude'},+ },+ ];+ server.state['machines'] = [+ {+ 'machineId': 'm',+ 'name': "Diego's Mac Studio",+ 'contributorId': 'owner',+ 'observation': {+ 'receivedAt': now.millisecondsSinceEpoch,+ 'quotas': [+ for (final (engine, used) in [('claude', 52), ('codex', 8)])+ {+ 'engine': engine,+ 'known': true,+ 'windows': [+ {'name': '5-hour', 'usedPercent': used},+ ],+ },+ ],+ },+ },+ ];+ final c = server.controller();+ await c.refresh();+ for (final scale in [1.0, 2.0]) {+ // What the end shows at each width, widest first: avatars, then the chips.+ final states = <(int, bool, bool)>[];+ for (var width = 460.0; width >= 180; width -= 10) {+ await tester.pumpWidget(+ MaterialApp(+ builder: (context, child) => MediaQuery(+ data: MediaQuery.of(context)+ .copyWith(textScaler: TextScaler.linear(scale)),+ child: child!,+ ),+ home: Scaffold(+ body: Align(+ alignment: Alignment.topLeft,+ child: SizedBox(+ width: width,+ child: SuperTabMachines(+ controller: c,+ embedded: true,+ onAddAgent: (_) {},+ ),+ ),+ ),+ ),+ ),+ );+ final reason = 'at width $width, scale $scale';+ expect(tester.takeException(), isNull, reason: reason);+ final row = find.byKey(const ValueKey('super-machine-m'));+ final avatars = find+ .descendant(of: row, matching: find.byType(SuperTabAvatar))+ .evaluate()+ .length;+ bool shows(String engine) => find+ .byKey(ValueKey('super-machine-allowance-m-$engine'))+ .evaluate()+ .isNotEmpty;+ final state = (avatars, shows('claude'), shows('codex'));+ states.add(state);+ // The count always stays; with fewer avatars it says the rest.+ expect(+ find.descendant(of: row, matching: find.text('+${5 - avatars}')),+ avatars == 5 ? findsNothing : findsOneWidget,+ reason: reason,+ );+ // A chip goes only once the avatars have, Codex before Claude.+ if (!state.$3) expect(avatars, 0, reason: reason);+ if (!state.$2) expect(state.$3, isFalse, reason: reason);+ // The name keeps its minimum while anything at the end remains.+ final name = tester.getSize(+ find.descendant(of: row, matching: find.byType(RichText)).first,+ );+ if (state.$2 || avatars > 0) {+ expect(+ name.width,+ greaterThanOrEqualTo(56 * scale - 1),+ reason: reason,+ );+ }+ }+ // Widest: everything; and every step after only takes away.+ expect(states.first, (3, true, true), reason: 'scale $scale');+ int rank((int, bool, bool) s) =>+ s.$1 * 4 + (s.$2 ? 2 : 0) + (s.$3 ? 1 : 0);+ for (var i = 1; i < states.length; i++) {+ expect(+ rank(states[i]),+ lessThanOrEqualTo(rank(states[i - 1])),+ reason: 'scale $scale, step $i',+ );+ }+ // Each stage is reached on the way down.+ expect(+ states.any((s) => s == (0, true, true)),+ isTrue,+ reason: 'scale $scale',+ );+ expect(+ states.any((s) => s == (0, true, false)),+ isTrue,+ reason: 'scale $scale',+ );+ expect(states.last, (0, false, false), reason: 'scale $scale');+ }await tester.pumpWidget(const SizedBox());await c.flush();c.dispose();@@ -755,19 +965,29 @@ void main() {),findsOneWidget,);- // Paused, the numbers and the age are in the row's tooltip, not on the line.+ // The owner, paused and the numbers are in the row's tooltip, not on the line, and never an age.expect(_tipOf(tester, row),- matches(- RegExp(- r'^Updated (just now|\ds ago) · New work paused · CPU 73% free · GPU 93% free · RAM 28 GB free · SSD 141 GB free$',- ),- ),+ 'Owned by dee · New work paused · CPU 73% free · GPU 93% free · RAM 28 GB free · SSD 141 GB free',);expect(find.byIcon(AppIcons.pause), findsNothing);- for (final value in ['CPU', 'GPU', 'RAM', 'SSD', '70%', 'dee']) {+ for (final value in ['CPU', 'GPU', 'RAM', 'SSD', 'dee', 'ago']) {expect(find.textContaining(value), findsNothing);}+ // Codex's tightest window, when the line has room for it; Claude's allowance is unknown.+ final codex = find.byKey(+ const ValueKey('super-machine-allowance-m-codex'),+ );+ if (codex.evaluate().isNotEmpty) {+ expect(+ find.descendant(of: codex, matching: find.text('70%')),+ findsOneWidget,+ );+ }+ expect(+ find.byKey(const ValueKey('super-machine-allowance-m-claude')),+ findsNothing,+ );final ink = find.descendant(of: row,matching: find.byType(InkWell),@@ -1375,8 +1595,13 @@ void main() {),);await tester.pumpAndSettle();- // The list shows no allowance at all; the details show the known one.- expect(find.byType(EngineMark), findsNothing);+ // Only the known allowance of the two the list shows, Claude's, has a chip; so do the details.+ expect(+ tester+ .widgetList<EngineMark>(find.byType(EngineMark))+ .map((mark) => mark.engine),+ ['claude'],+ );await tester.tap(find.byKey(const ValueKey('super-machine-m')));await tester.pumpAndSettle();expect(diff --git a/desktop/test/super_tab_sidebar_test.dart b/desktop/test/super_tab_sidebar_test.dartindex 112ad6574..2e74cdbc5 100644--- a/desktop/test/super_tab_sidebar_test.dart+++ b/desktop/test/super_tab_sidebar_test.dart@@ -329,7 +329,8 @@ void main() {// Enlarged text wider than the column ends at the row's edge instead.expect(moreRect.right, closeTo(studio.right, 0.5), reason: reason);}- // A shared name gives way before its owner, and a name cut short shows itself whole on hover.+ // The row never names the owner, even when another machine shares the name; a name cut short shows itself+ // whole on hover.final shared = find.descendant(of: find.byKey(const ValueKey('super-machine-mbp-b')),@@ -338,8 +339,8 @@ void main() {.evaluate().map((e) => (e.widget as RichText).text.toPlainText()).join();- expect(shared, contains(' · tony'), reason: reason);- if (!shared.startsWith('MacBook Pro ·')) {+ expect(shared, isNot(contains('tony')), reason: reason);+ if (!shared.startsWith('MacBook Pro')) {expect(find.descendant(of: find.byKey(const ValueKey('super-machine-mbp-b')),@@ -610,11 +611,28 @@ void main() {closeTo(add, .01),reason: reason,);- expect(- centerX(inRow('super-machine-on', find.byType(SuperTabAvatar))),- closeTo(add, .5),- reason: reason,+ // The last agent mark: the avatar, or +1 once the name needs its room.+ // Enlarged text wider than the column ends at the row's edge instead.+ final more = inRow('super-machine-on', find.text('+1'));+ final last = tester.getRect(+ more.evaluate().isNotEmpty+ ? more+ : inRow('super-machine-on', find.byType(SuperTabAvatar)),);+ if (last.width <= SuperTabSectionHeading.actionWidth) {+ expect(last.center.dx, closeTo(add, .5), reason: reason);+ } else {+ expect(+ last.right,+ closeTo(+ tester+ .getRect(find.byKey(const ValueKey('super-machine-on')))+ .right,+ .5,+ ),+ reason: reason,+ );+ }// Every row's fill spans the full row, whatever its level.final rows = [diff --git a/docs/naming-system.md b/docs/naming-system.mdindex 142c66a05..ab7f5f3fa 100644--- a/docs/naming-system.md+++ b/docs/naming-system.md@@ -91,10 +91,11 @@ Agents have individual display names and the same avatar treatment as people. Thare **PM** and **Dev**; project context appears underneath. Engine names belong in details.Chat headings and quoted replies use the same current agent identity as the roster, includingolder messages. When an agent has left, its recorded author name remains available in history.-Machine rows are one line: a status dot, the name (followed by the owner's name only when-two machines share it) and the agents' avatars. Capacity, reading age and allowances are in-the row's tooltip, a warning appears only below 10% allowance, and the row opens labeled-details. Offline machines are listed under **Offline · N** and omit stale readings from their details.+Machine rows are one line: a status dot, the name, a chip for each known model allowance+(the engine's mark and the share left, amber below 20% and red below 10%) and the agents'+avatars. The owner and hardware are in the row's tooltip, never the reading's age, and the+row opens labeled details. Offline machines are listed under **Offline · N**, without chips,+and omit stale readings from their details.The stored `lead` and `builder` routing roles and native harness names remain compatible.People, agents and machines belong to the Swarm. A project's **Public** visibility means everyonein that Swarm; **Private** means its owner and explicitly invited project members. Swarms arediff --git a/docs/swarms.md b/docs/swarms.mdindex 6037a00aa..d845c2e96 100644--- a/docs/swarms.md+++ b/docs/swarms.md@@ -97,29 +97,33 @@ a report every 15 seconds, so that a silent machine can be told from a quiet onethat fails waits a whole 15 seconds before the next.Each machine in the sidebar is one line, at a project row's height and on its columns: a-status dot where the project chevrons sit, the name where project names start, and at the-end up to three of its agents, overlapping, then +N, the last centered under the heading's +.-When two machines share a name, each is followed by its owner in muted text ("MacBook Pro ·-tony"). The only other mark is a warning before the agents when one of the machine's model-allowances is under 10% ("Claude Code: 2% left" on hover). Online machines come first, by-name; offline ones follow under "Offline · N", closed until opened, which the Desktop-remembers like the groups themselves. Clicking a machine opens its details.+status dot where the project chevrons sit, the name where project names start, then a chip+for each model allowance and up to three of its agents, overlapping, then +N, the last+centered under the heading's +. A chip is the engine's mark and the share left of its tightest+window, Claude first, then Codex; only a known, unexpired allowance gets one, and an offline+or unreachable machine shows none. The share is amber below 20% and red below 10%, and+hovering a chip shows its windows ("5-hour: 48% remaining · resets in 1h 59m"). When the+line runs short, the name keeps about 56 points: the agents become +N first, then the Codex+chip goes, then the Claude one. Online machines come first, by name; offline ones follow+under "Offline · N", closed until opened, which the Desktop remembers like the groups+themselves. Clicking a machine opens its details.| State | When | Dot | Hover begins || --- | --- | --- | --- |-| Live | reading under 20 s old | green, with one short ping as each new reading arrives | `Updated 4s ago` |-| Late | 20 s to 35 s | amber | `Updated 28s ago` |-| Offline | 35 s or more (one named constant) | hollow grey ring; the name is muted | `Offline · last seen 3 min ago` |-| Unknown | the Desktop cannot read the Swarm (contributing machines only) | dashed grey ring; the name is muted; not offline | `Can't reach Harness · data from 1 min ago` |+| Live | reading under 20 s old | green, with one short ping as each new reading arrives | the owner |+| Late | 20 s to 35 s | amber | the owner |+| Offline | 35 s or more (one named constant) | hollow grey ring; the name is muted | `Offline` |+| Unknown | the Desktop cannot read the Swarm (contributing machines only) | dashed grey ring; the name is muted; not offline | `Can't reach Harness` || Refreshing | back from the background, no new reading yet | grey, breathing | `Refreshing…` |-Hovering or focusing a row says the rest in words: its state and age, then its numbers and-any allowance running out ("Updated 13s ago · CPU 37% free · GPU 4% free · RAM 18 GB free ·-SSD 208 GB free"). The row's screen-reader label is the machine's name, its state and that-text, so colour is never the only signal. Old numbers are always kept there for offline,-unknown and refreshing machines, never blanked. While the Swarm cannot be read, the Machines-heading carries a pill, "Reconnecting · 1m"; a live Swarm shows none. The pings and the-breathing stop when the platform asks for reduced motion.+Hovering or focusing a row says the rest in words: its state when it is not online, whose+machine it is, and its hardware ("Owned by diego · CPU 37% free · GPU 4% free · RAM 18 GB+free · SSD 208 GB free"), never how old the reading is. The row's screen-reader label is+the machine's name, its state and that text, then each allowance in words, so colour is+never the only signal. Old numbers are always kept there for offline, unknown and+refreshing machines, never blanked. While the Swarm cannot be read, the Machines heading+carries a pill, "Reconnecting · 1m"; a live Swarm shows none. The pings and the breathing+stop when the platform asks for reduced motion.A machine reports every 15 s, so 35 s is two missed reports plus a margin.This computer is read directly by the Desktop, every 15 seconds, so it stays live while the