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.

Merge pull request #1680 from autonomous-ai/feat/swarm-local-models-v2

scholes-autonomous998e84eb7152
diff --cc desktop/lib/widgets/swarm_resource_preview.dart
index b69c6eb5a,7ade69f21..1099c1cd2
--- a/desktop/lib/widgets/swarm_resource_preview.dart
+++ b/desktop/lib/widgets/swarm_resource_preview.dart
@@@ -718,21 -730,42 +731,45 @@@ class _SwarmResourcePreviewState extend
action.command,
contextKind: KeymapContext.picker,
);
+ if (_swarmCards) {
+ // The one action that does what the row is for is filled; a stop is quiet, in the error colour.
+ final primary = action.command == _actions().firstOrNull?.command;
+ final stop = action.label.startsWith('Stop');
+ return Semantics(
+ liveRegion: action.label == 'Working…',
+ child: DesktopPill(
+ key: ValueKey('resource-action:${action.command}'),
+ focusNode: node,
+ label: row?.isCreate == true && primary
+ ? 'Add connection'
+ : action.label,
+ capsule: false,
+ onPressed: invoke,
+ surfaceColor: primary && !stop ? grid.AppPalette.accent : null,
+ foregroundColor: primary && !stop
+ ? DesktopChrome.onSelection
+ : stop
+ ? Theme.of(context).colorScheme.error
+ : null,
+ tooltip: [action.label, ?shortcut].join(' · '),
+ ),
+ );
+ }
return Semantics(
liveRegion: action.label == 'Working…',
- child: DesktopPill(
- key: ValueKey('resource-action:${action.command}'),
- focusNode: node,
- label: action.label,
- compact: true,
- onPressed: invoke,
- foregroundColor: action.command == 'picker.resource_remove'
- ? Theme.of(context).colorScheme.error
- : null,
- tooltip: [action.label, ?shortcut].join(' · '),
+ child: fingerTarget(
+ enabled: workspaceIsCompact(context),
+ DesktopPill(
+ key: ValueKey('resource-action:${action.command}'),
+ focusNode: node,
+ label: action.label,
+ compact: true,
+ onPressed: invoke,
+ foregroundColor: action.command == 'picker.resource_remove'
+ ? Theme.of(context).colorScheme.error
+ : null,
+ tooltip: [action.label, ?shortcut].join(' · '),
+ ),
),
);
}