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
Unify the New Tab entry row and restore update checks
deef5d293c9fbcb
diff --git a/desktop/lib/widgets/harness_start_page.dart b/desktop/lib/widgets/harness_start_page.dartindex 66a0834e1..6a64d710e 100644--- a/desktop/lib/widgets/harness_start_page.dart+++ b/desktop/lib/widgets/harness_start_page.dart@@ -1,4 +1,5 @@import 'package:flutter/material.dart';+import 'package:lucide_icons_flutter/lucide_icons.dart';import 'package:url_launcher/url_launcher.dart';import '../shared/theme/app_theme.dart' as grid;@@ -33,7 +34,7 @@ class _HarnessStartPageState extends State<HarnessStartPage> {canRequestFocus: false,);final _searchGroup = Object();- final _entryActions = GlobalKey();+ final _searchSurface = GlobalKey();bool _revealScheduled = false;SwarmSearchController? _search;SwarmSearchDraft? _draft;@@ -45,10 +46,10 @@ class _HarnessStartPageState extends State<HarnessStartPage> {WidgetsBinding.instance.addPostFrameCallback((_) {_revealScheduled = false;if (!mounted || !_showResults || !_pickerFocus.hasFocus) return;- // Keep the actions below the expanded picker reachable. Its bounded- // viewport and internal list scrolling keep the highlighted row visible.+ // Reveal the full search panel. The actions share its row while closed,+ // and the activated field takes their space without moving the row edges.Scrollable.ensureVisible(- _entryActions.currentContext!,+ _searchSurface.currentContext!,alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd,);});@@ -88,6 +89,53 @@ class _HarnessStartPageState extends State<HarnessStartPage> {widget.onNew();}+ Widget _action({required bool create, required bool compact}) {+ final label = create ? 'New Harness' : 'Open Harness';+ final content = compact+ ? Icon(create ? LucideIcons.plus300 : LucideIcons.search300, size: 20)+ : Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ if (create) ...[+ const Icon(LucideIcons.plus300, size: 18),+ const SizedBox(width: 8),+ ],+ Text(label),+ ],+ );+ final size = Size(compact ? 56 : 160, 56);+ final padding = EdgeInsets.symmetric(horizontal: compact ? 16 : 24);+ final button = create+ ? FilledButton(+ key: const ValueKey('harness-start-new'),+ onPressed: _new,+ style: FilledButton.styleFrom(+ enabledMouseCursor: SystemMouseCursors.click,+ minimumSize: size,+ padding: padding,+ backgroundColor: grid.AppPalette.swarmAccent,+ foregroundColor: grid.AppPalette.swarmTabBar,+ shape: const StadiumBorder(),+ ),+ child: content,+ )+ : OutlinedButton(+ key: const ValueKey('harness-start-open'),+ onPressed: _open,+ style: OutlinedButton.styleFrom(+ enabledMouseCursor: SystemMouseCursors.click,+ minimumSize: size,+ padding: padding,+ backgroundColor: Colors.transparent,+ foregroundColor: Colors.white,+ side: const BorderSide(color: Colors.white24),+ shape: const StadiumBorder(),+ ),+ child: content,+ );+ return compact ? Tooltip(message: label, child: button) : button;+ }+@overridevoid dispose() {_search?.dispose();@@ -124,117 +172,105 @@ class _HarnessStartPageState extends State<HarnessStartPage> {),),const SizedBox(height: 32),- TextFieldTapRegion(- groupId: _searchGroup,- child: Focus(- focusNode: _pickerFocus,- child: Material(- color: _showResults- ? grid.AppPalette.swarmSearchSurface- : Colors.transparent,- elevation: _showResults ? 12 : 0,- shadowColor: Colors.black54,- shape: RoundedRectangleBorder(- borderRadius: BorderRadius.circular(- _showResults ? 12 : 30,- ),- side: _showResults- ? const BorderSide(color: Colors.white24)- : BorderSide.none,- ),- clipBehavior: Clip.antiAlias,- child: SwarmSearchKeys(- search: _search,- editing: _query,- onChoose: _choose,- onClose: _close,- onOpen: _open,- onNewAgent: _new,- onRefocus: _focus.requestFocus,- child: Column(- children: [- Semantics(- label: 'Find a harness',- child: SwarmSearchInput(- inputKey: const ValueKey(- 'harness-start-search',- ),- controller: _query,- focusNode: _focus,- search: _search,- onClose: _close,- onChanged: (_) => _open(),- onOpen: _open,- onTapOutside: _close,- groupId: _searchGroup,- autofocus: true,- showClose: _showResults,- hintText: '',- rounded: true,- ),- ),- if (_showResults) ...[- const Divider(- height: 1,- color: Colors.white12,- ),- SizedBox(- height: (constraints.maxHeight * 0.54)- .clamp(260, 480),- child: SwarmSearchResults(- key: const ValueKey(- 'harness-start-results',+ LayoutBuilder(+ builder: (context, rowConstraints) {+ final compactActions =+ rowConstraints.maxWidth <+ 700 *+ MediaQuery.textScalerOf(context).scale(14) /+ 14;+ return Row(+ children: [+ Expanded(+ child: TextFieldTapRegion(+ groupId: _searchGroup,+ child: Focus(+ focusNode: _pickerFocus,+ child: Material(+ key: _searchSurface,+ color: _showResults+ ? grid.AppPalette.swarmSearchSurface+ : Colors.transparent,+ elevation: _showResults ? 12 : 0,+ shadowColor: Colors.black54,+ shape: RoundedRectangleBorder(+ borderRadius: BorderRadius.circular(+ _showResults ? 12 : 30,),- search: _search!,+ side: _showResults+ ? const BorderSide(+ color: Colors.white24,+ )+ : BorderSide.none,+ ),+ clipBehavior: Clip.antiAlias,+ child: SwarmSearchKeys(+ search: _search,+ editing: _query,onChoose: _choose,+ onClose: _close,+ onOpen: _open,+ onNewAgent: _new,onRefocus: _focus.requestFocus,+ child: Column(+ children: [+ Semantics(+ label: 'Find a harness',+ child: SwarmSearchInput(+ inputKey: const ValueKey(+ 'harness-start-search',+ ),+ controller: _query,+ focusNode: _focus,+ search: _search,+ onClose: _close,+ onChanged: (_) => _open(),+ onOpen: _open,+ onTapOutside: _close,+ groupId: _searchGroup,+ autofocus: true,+ showClose: _showResults,+ hintText: '',+ rounded: true,+ ),+ ),+ if (_showResults) ...[+ const Divider(+ height: 1,+ color: Colors.white12,+ ),+ SizedBox(+ height:+ (constraints.maxHeight * 0.54)+ .clamp(260, 480),+ child: SwarmSearchResults(+ key: const ValueKey(+ 'harness-start-results',+ ),+ search: _search!,+ onChoose: _choose,+ onRefocus: _focus.requestFocus,+ ),+ ),+ ],+ ],+ ),),),- ],- ],+ ),+ ),),- ),- ),- ),- ),- const SizedBox(height: 20),- Wrap(- key: _entryActions,- alignment: WrapAlignment.center,- spacing: 12,- runSpacing: 12,- children: [- OutlinedButton(- key: const ValueKey('harness-start-open'),- onPressed: _open,- style: OutlinedButton.styleFrom(- enabledMouseCursor: SystemMouseCursors.click,- minimumSize: const Size(160, 44),- padding: const EdgeInsets.symmetric(horizontal: 24),- backgroundColor: Colors.transparent,- foregroundColor: Colors.white,- side: const BorderSide(color: Colors.white24),- shape: const StadiumBorder(),- ),- child: const Text('Open Harness'),- ),- FilledButton.icon(- key: const ValueKey('harness-start-new'),- onPressed: _new,- icon: const Icon(Icons.add, size: 18),- label: const Text('New Harness'),- style: FilledButton.styleFrom(- enabledMouseCursor: SystemMouseCursors.click,- minimumSize: const Size(160, 44),- padding: const EdgeInsets.symmetric(horizontal: 24),- backgroundColor: grid.AppPalette.swarmAccent,- foregroundColor: grid.AppPalette.swarmTabBar,- shape: const StadiumBorder(),- ),- ),- ],+ if (!_showResults) ...[+ const SizedBox(width: 12),+ _action(create: false, compact: compactActions),+ const SizedBox(width: 12),+ _action(create: true, compact: compactActions),+ ],+ ],+ );+ },),- const SizedBox(height: 160),+ const SizedBox(height: 224),Semantics(link: true,child: InkWell(diff --git a/desktop/macos/Runner/MainFlutterWindow.swift b/desktop/macos/Runner/MainFlutterWindow.swiftindex 75d818f4c..d148a6999 100644--- a/desktop/macos/Runner/MainFlutterWindow.swift+++ b/desktop/macos/Runner/MainFlutterWindow.swift@@ -82,7 +82,7 @@ class MainFlutterWindow: NSWindow {NSApp.orderFrontStandardAboutPanel(options: [.version: ""])}- /// Puts the app's own two commands in the application menu, below Show All.+ /// Puts the app's own commands in the application menu, below Show All.////// Added here rather than in MainMenu.xib so the whole menu bar keeps coming/// from the nib — declaring it in Dart with PlatformMenuBar would replace the@@ -110,6 +110,15 @@ class MainFlutterWindow: NSWindow {at: at)appMenu.insertItem(NSMenuItem.separator(), at: at + 1)+ appMenu.insertItem(+ menuItem(+ title: "Check for Updates…",+ action: #selector(checkForUpdates(_:)),+ symbol: "arrow.triangle.2.circlepath",+ tag: updateMenuItemTag+ ),+ at: at + 2+ )appMenu.insertItem(menuItem(title: "Flash Firmware…",@@ -117,7 +126,7 @@ class MainFlutterWindow: NSWindow {symbol: "bolt.circle",tag: flashMenuItemTag),- at: at + 2+ at: at + 3)}diff --git a/desktop/test/first_workspace_test.dart b/desktop/test/first_workspace_test.dartindex 564c82d08..266ac7cfd 100644--- a/desktop/test/first_workspace_test.dart+++ b/desktop/test/first_workspace_test.dart@@ -274,6 +274,8 @@ void main() {app.dismissError();await tester.pump();expect(tester.widget<TextField>(_startInput).focusNode!.hasFocus, isTrue);+ await tester.sendKeyEvent(LogicalKeyboardKey.escape);+ await tester.pump();await tester.tap(_newHarness);await tester.pump();expect(picker.opened, 0);diff --git a/desktop/test/swarm_entry_picker_test.dart b/desktop/test/swarm_entry_picker_test.dartindex 3895ef546..94ed888a1 100644--- a/desktop/test/swarm_entry_picker_test.dart+++ b/desktop/test/swarm_entry_picker_test.dart@@ -102,7 +102,12 @@ void main() {expect(_results, findsNothing);expect(_startInput, findsOneWidget);expect(find.byType(FloatingActionButton), findsNothing);- expect(tester.getSize(_startInput).width, lessThanOrEqualTo(640));+ expect(+ tester.getRect(_startInput).right,+ lessThan(+ tester.getRect(find.byKey(const ValueKey('harness-start-open'))).left,+ ),+ );expect(tester.widget<TextField>(_startInput).decoration!.hintText,isEmpty,diff --git a/desktop/test/welcome_entry_layout_test.dart b/desktop/test/welcome_entry_layout_test.dartindex c49779800..14f066f24 100644--- a/desktop/test/welcome_entry_layout_test.dart+++ b/desktop/test/welcome_entry_layout_test.dart@@ -20,6 +20,12 @@ void main() {await (FontLoader('MaterialIcons',)..addFont(rootBundle.load('fonts/MaterialIcons-Regular.otf'))).load();+ await (FontLoader('packages/lucide_icons_flutter/Lucide300')..addFont(+ rootBundle.load(+ 'packages/lucide_icons_flutter/assets/build_font/LucideVariable-w300.ttf',+ ),+ ))+ .load();});for (final (width, height, scale) in [(1280.0, 800.0, 1.0),@@ -95,10 +101,11 @@ void main() {final fieldRect = tester.getRect(field);final createRect = tester.getRect(create);final openRect = tester.getRect(open);- expect(createRect.top, greaterThanOrEqualTo(fieldRect.bottom + 16));- expect(openRect.top, greaterThanOrEqualTo(fieldRect.bottom + 16));- expect(fieldRect.center.dx, closeTo(width / 2, 1));- expect(fieldRect.width, closeTo((width - 48).clamp(0, 640), 1));+ expect(createRect.center.dy, closeTo(fieldRect.center.dy, 1));+ expect(openRect.center.dy, closeTo(fieldRect.center.dy, 1));+ expect(openRect.left, greaterThan(fieldRect.right));+ expect(createRect.left, greaterThan(openRect.right));+ expect((fieldRect.left + createRect.right) / 2, closeTo(width / 2, 1));expect(create.hitTestable(), findsOneWidget);expect(open.hitTestable(), findsOneWidget);expect(createRect.bottom, lessThanOrEqualTo(height));@@ -132,6 +139,13 @@ void main() {expect(results, findsOneWidget);expect(tester.getRect(results).height, greaterThan(140));expect(tester.getRect(results).width, tester.getRect(field).width);+ expect(tester.getRect(field).left, closeTo(fieldRect.left, 1));+ expect(tester.getRect(field).right, closeTo(createRect.right, 1));+ expect(create, findsNothing);+ expect(open, findsNothing);+ await tester.sendKeyEvent(LogicalKeyboardKey.escape);+ await tester.pump();+ expect(tester.getRect(field).width, closeTo(fieldRect.width, 1));await tester.ensureVisible(create);expect(create.hitTestable(), findsOneWidget);await tester.tap(create);diff --git a/docs/harness-agent-first-tabs.md b/docs/harness-agent-first-tabs.mdindex 9fcd88bb0..120159fae 100644--- a/docs/harness-agent-first-tabs.md+++ b/docs/harness-agent-first-tabs.md@@ -9,9 +9,12 @@ proposals in the progress log.**Cmd-T / New Tab** and the tab-bar plus open the Harness start page. Its solidbackground matches the selected tab. The centered title and search controls sit-lower with generous empty space. The search field keeps the same responsive width-whether results are closed or open, capped at 1120 logical pixels,-with **Open Harness** and accented **+ New Harness** buttons underneath.+lower with generous empty space. A single row, capped at 1120 logical pixels,+contains a compact search field, **Open Harness**, and accented **+ New Harness**.+Activating search expands the field into the buttons' space and hides the buttons;+the overall row edges remain fixed. Results and preview appear side by side.+Escape restores the compact field and both actions. At narrow widths or large text+sizes, the actions use labeled icons so the search field remains usable.The field starts empty and focused so typing works immediately. Typing, clickingit or Open Harness, or pressing an arrow reveals the same input, results,@@ -67,7 +70,7 @@ results and 90% black backdrop. Only the highlighted row shows **Open Harness**,Both Open and inline start-page search show the same session preview. The opensurface can grow to 1120 logical pixels, placing the list and preview side byside. Narrow windows stack them with a compact preview heading. Both sections-scroll independently; the start-page actions stay reachable. Hover selects a+scroll independently; the expanded panel stays within view. Hover selects apreview without taking typing focus. Enter opens the highlighted result.Page Up/Down scrolls the preview while retaining the query, focus and selection.The bindings are configurable in the same Search keymap as result navigation.diff --git a/docs/harness-search-preview.md b/docs/harness-search-preview.mdindex e11caa218..c9f4f58bb 100644--- a/docs/harness-search-preview.md+++ b/docs/harness-search-preview.md@@ -4,8 +4,10 @@ Both Open Harness and inline start-page search now display existing sessioncontent in a shared preview. This document records the content rules, data path,and remaining coverage limits.-The start-page search stays at one responsive width, capped at 1120 logical pixels;-opening results reveals content below without widening or recentering the field.+The start page keeps one row, capped at 1120 logical pixels: a compact search field,+Open Harness, and New Harness. Activating search expands the field into the actions'+space; the outer edges stay fixed while results and preview appear side by side.+Escape restores the original row and retains the query.Page Up/Down scrolls the preview with overlap while the query keeps keyboard focus.Arrow keys still choose results, and Enter opens the selection. The two previewpaging commands can be remapped or unbound in the Search keymap. Paging only movesdiff --git a/docs/harness-v2-handoff.md b/docs/harness-v2-handoff.mdindex c1dbea084..38084bc32 100644--- a/docs/harness-v2-handoff.md+++ b/docs/harness-v2-handoff.md@@ -46,13 +46,15 @@ are:precedence. Cmd-R splits right and Cmd-D splits down. Native menus, help and actualdispatch must agree; native menu and titlebar hover hints are removed.- New Tab uses the Google-like page with a **solid selected-tab background**,- lower centered controls and generous whitespace. Search is blank and focused- initially, retaining one responsive width (at most 1120 logical pixels) as- results and preview open beneath it.+ lower centered controls and generous whitespace. A single row (at most 1120+ logical pixels) contains search, Open Harness, and New Harness. Search starts+ blank and focused, with results hidden. Activating search expands the field+ into the buttons' space; the row edges stay fixed and results/preview appear+ side by side. Escape restores the original row and query.Typing, clicking, or pressing an arrowreveals the same results, selection, arrows and Enter behavior as Cmd-O.Focus alone leaves results hidden and builds no catalog. Open Harness and- accented **+ New Harness** sit below it; a small official device image and+ accented **+ New Harness** share the row; a small official device image andintroduction sit well below, linking to autonomous.ai/harness-device.The five recent-agent rows are removed. Both pairs of actions are roundedpills, with transparent outlined Open buttons and hand cursors. The official@@ -71,6 +73,8 @@ are:retain saved text without claiming a live working/waiting state.Page Up/Down scrolls preview content without changing selection or typing focus;both actions participate in the configurable Search keymap.+- The Harness application menu includes **Check for Updates…**, using the+ existing manual update-check dialog, directly above Flash Firmware.- Creation uses **New Harness** for its title and CTA, with no ordinary Cancel.Escape or one outside click dismisses it directly. A pending launch cannot bedismissed accidentally; an uncertain outcome retains Close and Check status.