Skip to content

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.

Swarm local models: polish the Manage models window and machine model lines

bitcoinbuilder1a769131554c
diff --git a/desktop/lib/super_tabs/local_models.dart b/desktop/lib/super_tabs/local_models.dart
index adfdd4dea..e518acb65 100644
--- a/desktop/lib/super_tabs/local_models.dart
+++ b/desktop/lib/super_tabs/local_models.dart
@@ -15,7 +15,6 @@ import '../widgets/swarm_resource_preview.dart';
import '../widgets/swarm_switcher.dart';
import 'controller.dart';
import 'dialog_scope.dart';
-import 'identity.dart';
import 'model.dart';
/// The Swarm's Local models (docs/plans/2026-10-23-swarm-local-models.md): the owner's switch for the add-on, off until
@@ -57,16 +56,6 @@ class _SwarmModelsWindow extends StatelessWidget {
final local = c.snapshot?.localModels;
final on = local?.enabled == true;
final picker = on && local?.ready == true && app != null;
- final served = [
- if (local != null)
- for (final pool in c.snapshot?.machines ?? const [])
- for (final m in superTabServedModels(
- pool,
- local.grid,
- now: now(),
- ))
- '${m.name} on ${superTabMachineName(pool['name'] as String? ?? 'a machine')}',
- ];
final header = Padding(
padding: const EdgeInsets.fromLTRB(24, 20, 16, 12),
child: Column(
@@ -77,7 +66,7 @@ class _SwarmModelsWindow extends StatelessWidget {
children: [
Expanded(
child: Text(
- 'Local models',
+ 'Manage models',
style: DesktopChrome.text(size: 15, medium: true),
),
),
@@ -120,14 +109,6 @@ class _SwarmModelsWindow extends StatelessWidget {
: null,
),
),
- if (on && served.isNotEmpty) ...[
- const SizedBox(height: 4),
- Text(
- key: const ValueKey('super-local-models-running'),
- 'Running now: ${served.join(', ')}',
- style: DesktopChrome.metadata(),
- ),
- ],
],
),
);
@@ -253,8 +234,16 @@ class _SwarmModelsPickerState extends State<_SwarmModelsPicker> {
_choose(_search.submit());
_focus.requestFocus();
},
- decoration: const InputDecoration.collapsed(
+ // As ⌘I's search field: no box of its own, the panel's divider is its edge.
+ decoration: InputDecoration(
hintText: 'Search models',
+ hintStyle: DesktopChrome.text(color: DesktopChrome.muted),
+ isDense: true,
+ contentPadding: EdgeInsets.zero,
+ border: InputBorder.none,
+ enabledBorder: InputBorder.none,
+ focusedBorder: InputBorder.none,
+ filled: false,
),
style: DesktopChrome.text(),
),
diff --git a/desktop/lib/super_tabs/machines.dart b/desktop/lib/super_tabs/machines.dart
index 9052bcde7..0f7456cca 100644
--- a/desktop/lib/super_tabs/machines.dart
+++ b/desktop/lib/super_tabs/machines.dart
@@ -2105,11 +2105,13 @@ class _MachineReadings extends StatelessWidget {
),
],
);
+ // Model names are long and full of dashes: a quiet dot between them keeps two from reading as one.
Widget models(List<_ServedModel> models, String kind) => Wrap(
- spacing: 10,
+ spacing: 6,
runSpacing: 2,
children: [
- for (final model in models)
+ for (final (index, model) in models.indexed) ...[
+ if (index > 0) Text('·', style: label),
Tooltip(
message: model.tip,
child: Text(
@@ -2118,6 +2120,7 @@ class _MachineReadings extends StatelessWidget {
style: style,
),
),
+ ],
],
);
final hardware = [...usage, ...capacity];