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(models picker): API model rows say Use again
bitcoinbuilder19685617c0db
diff --git a/desktop/lib/state/swarm_search.dart b/desktop/lib/state/swarm_search.dartindex 491447085..1bb3f84c8 100644--- a/desktop/lib/state/swarm_search.dart+++ b/desktop/lib/state/swarm_search.dart@@ -211,6 +211,9 @@ class SwarmSearchController extends ChangeNotifier {final catalog = models;final entry = catalog?.entries[row.modelId];if (entry == null || catalog == null) return null;+ // An API's model says what Enter does on it — Use, when this pane can run on it, else nothing.+ // Its entry's status is only the API's name, which the row it sits under already shows.+ if (entry.apiModel != null) return modelRowAction(row);final local = entry.local;final owner = entry.controller ?? catalog.manager;return local != nulldiff --git a/desktop/lib/widgets/swarm_switcher.dart b/desktop/lib/widgets/swarm_switcher.dartindex 29b22545e..77577f03a 100644--- a/desktop/lib/widgets/swarm_switcher.dart+++ b/desktop/lib/widgets/swarm_switcher.dart@@ -1447,8 +1447,10 @@ class _SearchRowContentState extends State<_SearchRowContent> {key: ValueKey('model-row-status:${row.id}'),maxLines: 1,style: terminalContentStyle(- color: widget.search.modelRowLive(row) ||- status == 'Suggested'+ color: underApi+ ? theme.foreground+ : widget.search.modelRowLive(row) ||+ status == 'Suggested'? const Color(0xFF86E6A3): muted,),diff --git a/desktop/test/api_model_picker_test.dart b/desktop/test/api_model_picker_test.dartindex e48068b4f..7e58228b0 100644--- a/desktop/test/api_model_picker_test.dart+++ b/desktop/test/api_model_picker_test.dart@@ -277,6 +277,24 @@ void main() {),);expect(picker.modelRowAction(picker.selected!), 'Use');+ // The end of its row says what Enter does on it — never the API's name, which heads it.+ final rowId = apiModelRowId(+ 'openrouter',+ 'anthropic/claude-sonnet-4.6',+ );+ expect(+ tester+ .widget<Text>(find.byKey(ValueKey('model-row-status:$rowId')))+ .data,+ 'Use',+ );+ expect(+ find.descendant(+ of: find.byKey(ValueKey('swarm-search-line:$rowId')),+ matching: find.text('OpenRouter'),+ ),+ findsNothing,+ );expect(find.text('OpenRouter · 1M context'), findsOneWidget);expect(find.text('Anthropic: Claude Sonnet 4.6'), findsOneWidget);expect(app.moves, isEmpty);