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
Refuse a harness create against a CLI that predates harnesses
deedbd94c585516
diff --git a/desktop/lib/widgets/new_agent_dialog.dart b/desktop/lib/widgets/new_agent_dialog.dartindex dbc30b118..34fe6af90 100644--- a/desktop/lib/widgets/new_agent_dialog.dart+++ b/desktop/lib/widgets/new_agent_dialog.dart@@ -415,6 +415,18 @@ class _NewAgentDialogState extends State<_NewAgentDialog> {if (harness != null && !_confirmationPending && _harness(harness) == null) {await _probeHarnesses();if (!mounted) return;+ // A machine whose Harness CLI predates harnesses refuses `dsh_list`+ // and would take `dsh` on `agent_create` in silence — creating a plain+ // Claude Code where Copper was picked. Say so and stop here instead.+ final catalog = widget.notifier.stateOf(_machineId)?.dsh;+ if (catalog != null && !catalog.loaded && catalog.error != null) {+ setState(() {+ _error =+ 'Update Harness CLI on $_machineName to create a '+ '${_labelOf(harness)} agent.';+ });+ return;+ }}if (harness != null &&!_confirmationPending &&diff --git a/desktop/test/new_agent_dsh_test.dart b/desktop/test/new_agent_dsh_test.dartindex a7615cdf9..c6e243741 100644--- a/desktop/test/new_agent_dsh_test.dart+++ b/desktop/test/new_agent_dsh_test.dart@@ -55,9 +55,16 @@ class _Notifier extends AppNotifier {@overrideFuture<void> probeEngines(String machineId, {bool force = false}) async {}+ /// When set, the machine answers `dsh_list` the way a CLI that predates+ /// harnesses does: with a refusal, and no catalog.+ String? probeRefusal;+@overrideFuture<void> probeDsh(String machineId, {bool force = false}) async {harnessProbes++;+ if (probeRefusal case final refusal?) {+ stateOf(machineId)!.dsh.error = refusal;+ }}@override@@ -311,6 +318,24 @@ void main() {},);+ testWidgets('a machine whose CLI predates harnesses is told to update', (+ tester,+ ) async {+ final app = await open(tester, seed: (_) {});+ app.probeRefusal = 'unknown request: dsh_list';+ await pick(tester, 'Copper');+ await create(tester);+ await tester.pump();+ expect(app.installs, isEmpty);+ expect(app.launches, isEmpty, reason: 'never a plain agent in silence');+ expect(+ find.text(+ 'Update Harness CLI on harness-remote-box to create a Copper agent.',+ ),+ findsOneWidget,+ );+ });+testWidgets('More lists the machine\'s harnesses after the engines', (tester,) async {