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
Desktop: the Models list leaves out records with no reported model (Scholes) (#2510)
0xken159d633fff3b88
diff --git a/desktop/lib/super_tabs/leaderboard/models_section.dart b/desktop/lib/super_tabs/leaderboard/models_section.dartindex b4004ac63..46e9ed97c 100644--- a/desktop/lib/super_tabs/leaderboard/models_section.dart+++ b/desktop/lib/super_tabs/leaderboard/models_section.dart@@ -29,8 +29,7 @@ class LeaderboardModelShare {required this.passed,});- /// "Opus 5.5", "GPT-6.1 Sol"; "Codex, model not reported" when the agent- /// reported none.+ /// "Opus 5.5", "GPT-6.1 Sol".final String name;/// The engine that ran most of its tasks: its icon leads the row.@@ -51,7 +50,9 @@ class LeaderboardModelShare {/// The models that ran tasks in the last 7 days, or the board's week from a/// server before those, the largest share first, then by name. Shares round/// by largest remainder: the floors, then one more point each to the largest-/// remainders until they add up to 100.+/// remainders until they add up to 100. A record with no reported model is+/// left out, and out of the shares (Scholes, 2026-11-02): it cannot be named,+/// and older servers still send the ones written before the 10-31 fix.List<LeaderboardModelShare> leaderboardModelShares(SuperTabLeaderboard board) {final merged =<@@ -59,10 +60,9 @@ List<LeaderboardModelShare> leaderboardModelShares(SuperTabLeaderboard board) {({Map<String, int> engines, int attempts, int reviewed, int passed})>{};for (final score in board.recentModels ?? board.byModel) {- final name = switch (score.model) {- final String model => modelDisplayName(model),- null => '${engineIdentity(score.engine).label}, model not reported',- };+ final model = score.model;+ if (model == null || model.trim().isEmpty) continue;+ final name = modelDisplayName(model);// One row per model, whichever engine ran it at whichever effort:// rows are keyed by name.final before = merged[name];diff --git a/desktop/test/super_tab_members_list_test.dart b/desktop/test/super_tab_members_list_test.dartindex cf1013b2f..f8297209d 100644--- a/desktop/test/super_tab_members_list_test.dart+++ b/desktop/test/super_tab_members_list_test.dart@@ -247,7 +247,7 @@ void main() {);await tester.pumpAndSettle();expect(tester.takeException(), isNull);- for (final number in ['21', '84%']) {+ for (final number in ['21', '87%']) {expect(find.text(number), findsOneWidget, reason: number);final paragraph = tester.renderObject<RenderParagraph>(find.text(number));expect(paragraph.didExceedMaxLines, isFalse, reason: number);diff --git a/desktop/test/super_tab_sidebar_models_test.dart b/desktop/test/super_tab_sidebar_models_test.dartindex d59ee45d7..9cc922643 100644--- a/desktop/test/super_tab_sidebar_models_test.dart+++ b/desktop/test/super_tab_sidebar_models_test.dart@@ -12,7 +12,8 @@ import 'support/super_tab_fixture.dart';/// Models in the left sidebar, after Machines (Dee, 2026-10-29 and 10-30):/// every model by its exact name with its share of the agents' tasks of the/// last 7 days, largest first, rounded so the rows add up to 100%, behind its-/// engine's icon. Its chevron collapses it like every other section; the+/// engine's icon. A record with no reported model is not listed and not in+/// the shares (Scholes, 2026-11-02). Its chevron collapses it like every other section; the/// counts and first-review pass rate are in words on hover and for a screen/// reader.void main() {@@ -71,6 +72,12 @@ void main() {name,find.byWidgetPredicate((w) => w is EngineMark && w.engine == engine),);+ // Nothing in the list, its tooltips or its words says "not reported".+ final notReported = find.byWidgetPredicate(+ (w) =>+ (w is Tooltip && (w.message ?? '').contains('not reported')) ||+ (w is Text && (w.data ?? '').contains('not reported')),+ );List<String> names(WidgetTester tester) {final found = rows.evaluate().toList()..sort(@@ -104,24 +111,17 @@ void main() {tester.getTopLeft(heading).dy,greaterThan(tester.getTopLeft(find.text('Machines')).dy),);- // The approved mockup: 100 tasks, no Other row, nothing left out.- expect(names(tester), [- 'Opus 5.5',- 'Sonnet 5.5',- 'Codex, model not reported',- 'GPT-6.1 Sol',- ]);+ // 97 tasks of named models (the fixture's 3 with no model are left+ // out): no Other row, the rest add up to 100.+ expect(names(tester), ['Opus 5.5', 'Sonnet 5.5', 'GPT-6.1 Sol']);expect(find.text('Other'), findsNothing);- expect(inRow('Opus 5.5', find.text('84%')), findsOneWidget);+ expect(find.textContaining('not reported'), findsNothing);+ expect(inRow('Opus 5.5', find.text('87%')), findsOneWidget);expect(inRow('Sonnet 5.5', find.text('11%')), findsOneWidget);- expect(- inRow('Codex, model not reported', find.text('3%')),- findsOneWidget,- );expect(inRow('GPT-6.1 Sol', find.text('2%')), findsOneWidget);// The percentages line up at their trailing edge.expect(- tester.getTopRight(find.text('84%')).dx,+ tester.getTopRight(find.text('87%')).dx,tester.getTopRight(find.text('2%')).dx,);await close(tester, controller);@@ -172,7 +172,6 @@ void main() {final controller = await show(tester, modelsSwarm());for (final (name, engine) in [('Opus 5.5', 'claude'),- ('Codex, model not reported', 'codex'),('GPT-6.1 Sol', 'codex'),]) {expect(mark(name, engine), findsOneWidget, reason: name);@@ -196,15 +195,10 @@ void main() {final semantics = tester.ensureSemantics();final controller = await show(tester, modelsSwarm());const opus =- 'Opus 5.5: 84 of 100 tasks in the last 7 days · 92% passed first review';+ 'Opus 5.5: 84 of 97 tasks in the last 7 days · 92% passed first review';expect(find.byTooltip(opus), findsOneWidget);expect(find.bySemanticsLabel(opus), findsOneWidget);- expect(- find.byTooltip(- 'Codex, model not reported: 3 of 100 tasks in the last 7 days · no first review yet',- ),- findsOneWidget,- );+ expect(notReported, findsNothing);semantics.dispose();await close(tester, controller);},@@ -221,7 +215,7 @@ void main() {// Collapsed: the heading stays, nothing below it.expect(headingText, findsOneWidget);expect(rows, findsNothing);- expect(find.text('84%'), findsNothing);+ expect(find.text('87%'), findsNothing);await controller.flush();expect(server.saved!['modelsGroupOpen'], isFalse);await close(tester, controller);@@ -232,8 +226,8 @@ void main() {expect(rows, findsNothing);await tester.tap(headingText);await tester.pumpAndSettle();- expect(names(tester), hasLength(4));- expect(inRow('Opus 5.5', find.text('84%')), findsOneWidget);+ expect(names(tester), hasLength(3));+ expect(inRow('Opus 5.5', find.text('87%')), findsOneWidget);await close(tester, reopened);},);@@ -329,7 +323,7 @@ void main() {expect(server.leaderboardReads.last, contains('&week='));expect(headingText, findsOneWidget);expect(find.textContaining('last week'), findsNothing);- expect(inRow('Opus 5.5', find.text('84%')), findsOneWidget);+ expect(inRow('Opus 5.5', find.text('87%')), findsOneWidget);await close(tester, controller);});@@ -361,6 +355,73 @@ void main() {},);+ testWidgets(+ 'leaves records with no reported model out of the list and the shares',+ (tester) async {+ // Records written before the 10-31 fix: Codex, and Claude, with no+ // model, in any of the shapes a server sends it.+ final server = modelsSwarm();+ server.leaderboard!['recentModels'] = [+ recentModel('claude', 'claude-opus-5-5', attempts: 1),+ recentModel('codex', null, attempts: 5, reviewed: 2, passed: 1),+ recentModel('claude', null, attempts: 7),+ recentModel('codex', '', attempts: 3),+ recentModel('codex', ' ', attempts: 4),+ recentModel('codex', 'gpt-6.1-sol', attempts: 2),+ ];+ final controller = await show(tester, server);+ expect(names(tester), ['GPT-6.1 Sol', 'Opus 5.5']);+ expect(notReported, findsNothing);+ // 1 and 2 of the 3 tasks that named a model: the rows add up to 100.+ expect(inRow('GPT-6.1 Sol', find.text('67%')), findsOneWidget);+ expect(inRow('Opus 5.5', find.text('33%')), findsOneWidget);+ expect(+ find.byTooltip(+ 'Opus 5.5: 1 of 3 tasks in the last 7 days · no first review yet',+ ),+ findsOneWidget,+ );+ await close(tester, controller);+ },+ );++ testWidgets('hides Models when only records with no model ran tasks', (+ tester,+ ) async {+ final server = modelsSwarm();+ server.leaderboard!['recentModels'] = [+ recentModel('codex', null, attempts: 3),+ recentModel('claude', null, attempts: 9),+ ];+ final controller = await show(tester, server);+ expect(heading, findsNothing);+ expect(rows, findsNothing);+ expect(notReported, findsNothing);+ await close(tester, controller);+ });++ testWidgets(+ 'leaves records with no model out of the week\'s models from a server before the last 7 days',+ (tester) async {+ final server = modelsSwarm();+ server.leaderboard!.remove('recentModels');+ (server.leaderboard!['byModel'] as List).add(+ modelScore('codex', null, null, attempts: 20),+ );+ final controller = await show(tester, server);+ // The same 32 tasks of named models as without the record.+ expect(names(tester), [+ 'Opus 5.5',+ 'GPT-6.1 Sol',+ 'Sonnet 5.5',+ 'Haiku 5.5',+ ]);+ expect(inRow('Opus 5.5', find.text('44%')), findsOneWidget);+ expect(notReported, findsNothing);+ await close(tester, controller);+ },+ );+testWidgets('hides Models when no model ran a task in the last 7 days', (tester,) async {@@ -400,7 +461,7 @@ void main() {await controller.refresh();await tester.pump(const Duration(minutes: 5));await tester.pumpAndSettle();- expect(inRow('Opus 5.5', find.text('84%')), findsOneWidget);+ expect(inRow('Opus 5.5', find.text('87%')), findsOneWidget);await close(tester, controller);},);@@ -415,7 +476,7 @@ void main() {await controller.refresh();await tester.pumpAndSettle();expect(heading, findsNothing);- expect(find.text('84%'), findsNothing);+ expect(find.text('87%'), findsNothing);await close(tester, controller);});diff --git a/desktop/test/support/humans_fixture.dart b/desktop/test/support/humans_fixture.dartindex 9c36991c7..01ea7b1b1 100644--- a/desktop/test/support/humans_fixture.dart+++ b/desktop/test/support/humans_fixture.dart@@ -273,7 +273,8 @@ Map<String, dynamic> recentModel(};/// The last 7 days of [modelsSwarm] (the approved mockup, 10-30): 100 tasks,-/// 84 on Opus, 11 on Sonnet, 3 on Codex with no model reported, 2 on Sol.+/// 84 on Opus, 11 on Sonnet, 3 on Codex with no model reported (the sidebar+/// leaves those out), 2 on Sol.List<Map<String, dynamic>> recentModels() => [recentModel('claude',