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.

Restore wallpaper and align New Tab search to the left

dee1dd7c4b66297
diff --git a/desktop/lib/screens/swarm_screen.dart b/desktop/lib/screens/swarm_screen.dart
index 9d88d805a..5faf9daf7 100644
--- a/desktop/lib/screens/swarm_screen.dart
+++ b/desktop/lib/screens/swarm_screen.dart
@@ -41,6 +41,7 @@ import '../widgets/swarm_dialogs.dart';
import '../widgets/swarm_search_input.dart';
import '../widgets/swarm_attention.dart';
import '../widgets/swarm_switcher.dart';
+import '../widgets/swarm_wallpaper.dart';
import '../widgets/swarm_icon.dart';
import '../widgets/task_palette.dart';
@@ -1311,9 +1312,9 @@ class _SwarmScreenState extends State<SwarmScreen> {
fit: StackFit.expand,
children: [
if (app.panes.isEmpty)
- ColoredBox(
- color: grid.AppPalette.swarmField,
- key: const ValueKey('harness-start-background'),
+ const RepaintBoundary(
+ key: ValueKey('harness-start-background'),
+ child: SwarmWallpaper(),
),
Padding(
padding: app.panes.isEmpty
diff --git a/desktop/lib/widgets/harness_start_page.dart b/desktop/lib/widgets/harness_start_page.dart
index ca161af40..c4603d145 100644
--- a/desktop/lib/widgets/harness_start_page.dart
+++ b/desktop/lib/widgets/harness_start_page.dart
@@ -46,8 +46,7 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
WidgetsBinding.instance.addPostFrameCallback((_) {
_revealScheduled = false;
if (!mounted || !_showResults || !_pickerFocus.hasFocus) return;
- // Reveal the full search panel. The actions share its row while closed,
- // and the activated field takes their space without moving the row edges.
+ // Keep the full search panel visible without changing its width.
Scrollable.ensureVisible(
_searchSurface.currentContext!,
alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd,
@@ -89,23 +88,21 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
widget.onNew();
}
- Widget _action({required bool create, required bool compact}) {
+ Widget _action({required bool create}) {
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 ? 48 : 140, 48);
- final padding = EdgeInsets.symmetric(horizontal: compact ? 12 : 20);
- final button = create
+ final content = Row(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ if (create) ...[
+ const Icon(LucideIcons.plus300, size: 18),
+ const SizedBox(width: 8),
+ ],
+ Text(label),
+ ],
+ );
+ const size = Size(140, 48);
+ const padding = EdgeInsets.symmetric(horizontal: 20);
+ return create
? FilledButton(
key: const ValueKey('harness-start-new'),
onPressed: _new,
@@ -133,9 +130,75 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
),
child: content,
);
- return compact ? Tooltip(message: label, child: button) : button;
}
+ Widget _searchPanel(BoxConstraints constraints) => 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),
+ 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: 'Find a harness',
+ rounded: true,
+ compact: 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!,
+ sideBySideMinWidth: 700,
+ onChoose: _choose,
+ onRefocus: _focus.requestFocus,
+ ),
+ ),
+ ],
+ ],
+ ),
+ ),
+ ),
+ ),
+ );
+
@override
void dispose() {
_search?.dispose();
@@ -160,119 +223,23 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
),
child: Center(
child: ConstrainedBox(
- constraints: const BoxConstraints(maxWidth: 784),
+ constraints: const BoxConstraints(maxWidth: 1120),
child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
- const Text(
- 'Harness',
- style: TextStyle(
- fontSize: 48,
- fontWeight: FontWeight.w600,
- letterSpacing: -1.5,
+ _searchPanel(constraints),
+ if (!_showResults) ...[
+ const SizedBox(height: 20),
+ Wrap(
+ spacing: 12,
+ runSpacing: 12,
+ children: [
+ _action(create: false),
+ _action(create: true),
+ ],
),
- ),
- const SizedBox(height: 32),
- 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,
- ),
- 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,
- compact: 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!,
- sideBySideMinWidth: 700,
- onChoose: _choose,
- onRefocus: _focus.requestFocus,
- ),
- ),
- ],
- ],
- ),
- ),
- ),
- ),
- ),
- ),
- if (!_showResults) ...[
- const SizedBox(width: 10),
- _action(create: false, compact: compactActions),
- const SizedBox(width: 10),
- _action(create: true, compact: compactActions),
- ],
- ],
- );
- },
- ),
- const SizedBox(height: 224),
+ ],
+ const SizedBox(height: 160),
Semantics(
link: true,
child: InkWell(
@@ -283,9 +250,10 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
mode: LaunchMode.externalApplication,
),
borderRadius: BorderRadius.circular(12),
- child: Padding(
- padding: const EdgeInsets.all(12),
+ child: SizedBox(
+ width: 256,
child: Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
children: [
ClipRRect(
borderRadius: BorderRadius.circular(10),
@@ -307,11 +275,13 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
const Row(
mainAxisSize: MainAxisSize.min,
children: [
- Text(
- 'The ultimate Harness setup',
- style: TextStyle(
- fontSize: 13,
- color: Colors.white70,
+ Flexible(
+ child: Text(
+ 'The ultimate Harness setup',
+ style: TextStyle(
+ fontSize: 13,
+ color: Colors.white70,
+ ),
),
),
SizedBox(width: 4),
@@ -325,7 +295,7 @@ class _HarnessStartPageState extends State<HarnessStartPage> {
const SizedBox(height: 6),
const Text(
'Scroll, switch panes, and give voice commands.',
- textAlign: TextAlign.center,
+ textAlign: TextAlign.start,
style: TextStyle(
fontSize: 12,
color: Colors.white54,
diff --git a/desktop/test/swarm_entry_picker_test.dart b/desktop/test/swarm_entry_picker_test.dart
index 94ed888a1..8ac36aeb7 100644
--- a/desktop/test/swarm_entry_picker_test.dart
+++ b/desktop/test/swarm_entry_picker_test.dart
@@ -103,14 +103,14 @@ void main() {
expect(_startInput, findsOneWidget);
expect(find.byType(FloatingActionButton), findsNothing);
expect(
- tester.getRect(_startInput).right,
+ tester.getRect(_startInput).bottom,
lessThan(
- tester.getRect(find.byKey(const ValueKey('harness-start-open'))).left,
+ tester.getRect(find.byKey(const ValueKey('harness-start-open'))).top,
),
);
expect(
tester.widget<TextField>(_startInput).decoration!.hintText,
- isEmpty,
+ 'Find a harness',
);
expect(tester.widget<TextField>(_startInput).focusNode!.hasFocus, isTrue);
expect(find.byKey(const ValueKey('harness-device-link')), findsOneWidget);
diff --git a/desktop/test/welcome_entry_layout_test.dart b/desktop/test/welcome_entry_layout_test.dart
index 14f066f24..0fc62bd1d 100644
--- a/desktop/test/welcome_entry_layout_test.dart
+++ b/desktop/test/welcome_entry_layout_test.dart
@@ -94,18 +94,22 @@ void main() {
final create = find.byKey(const ValueKey('harness-start-new'));
final open = find.byKey(const ValueKey('harness-start-open'));
final device = find.byKey(const ValueKey('harness-device-link'));
- expect(find.text('Harness'), findsOneWidget);
- expect(tester.widget<TextField>(field).decoration!.hintText, isEmpty);
+ expect(find.text('Harness'), findsNothing);
+ expect(
+ tester.widget<TextField>(field).decoration!.hintText,
+ 'Find a harness',
+ );
expect(tester.widget<TextField>(field).focusNode!.hasFocus, isTrue);
expect(find.byType(ListTile), findsNothing);
final fieldRect = tester.getRect(field);
final createRect = tester.getRect(create);
final openRect = tester.getRect(open);
- 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.center.dy, closeTo(openRect.center.dy, 1));
+ expect(openRect.top, greaterThan(fieldRect.bottom));
+ expect(openRect.left, closeTo(fieldRect.left, 1));
expect(createRect.left, greaterThan(openRect.right));
- expect((fieldRect.left + createRect.right) / 2, closeTo(width / 2, 1));
+ expect(fieldRect.center.dx, closeTo(width / 2, 1));
+ expect(tester.getRect(device).left, closeTo(fieldRect.left, 1));
expect(create.hitTestable(), findsOneWidget);
expect(open.hitTestable(), findsOneWidget);
expect(createRect.bottom, lessThanOrEqualTo(height));
@@ -140,7 +144,7 @@ void main() {
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(tester.getRect(field).right, closeTo(fieldRect.right, 1));
expect(create, findsNothing);
expect(open, findsNothing);
await tester.sendKeyEvent(LogicalKeyboardKey.escape);
diff --git a/docs/harness-agent-first-tabs.md b/docs/harness-agent-first-tabs.md
index 897e7a198..199191452 100644
--- a/docs/harness-agent-first-tabs.md
+++ b/docs/harness-agent-first-tabs.md
@@ -7,16 +7,17 @@ proposals in the progress log.
## Open and New Harness
-**Cmd-T / New Tab** and the tab-bar plus open the Harness start page. Its solid
-background matches the selected tab. The centered title and search controls sit
-lower with generous empty space. A single row, capped at 784 logical pixels,
-contains a compact search field, **Open Harness**, and accented **+ New Harness**.
-The pill buttons use a smaller 48-pixel height, with reduced input padding. The New Tab
-preview stays beside its results at widths of 700 logical pixels and above.
-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.
+**Cmd-T / New Tab** and the tab-bar plus open the Harness start page over its
+restored soft mesh wallpaper. A long search field, capped at 1120 logical pixels,
+shows **Find a harness** in place of a large heading. **Open Harness** and accented
+**+ New Harness** sit underneath, aligned with the field's left edge. The pill
+buttons retain their smaller 48-pixel height and wrap at narrow widths or large
+text sizes. The device image and its caption share that same left edge farther
+down the page.
+
+Activating search keeps the field's width fixed and reveals results and preview
+side by side at widths of 700 logical pixels and above. The actions hide while
+searching. Escape restores both actions and retains the query.
The field starts empty and focused so typing works immediately. Typing, clicking
it or Open Harness, or pressing an arrow reveals the same input, results,
diff --git a/docs/harness-search-preview.md b/docs/harness-search-preview.md
index f25961492..c1d55323a 100644
--- a/docs/harness-search-preview.md
+++ b/docs/harness-search-preview.md
@@ -4,12 +4,13 @@ Both Open Harness and inline start-page search now display existing session
content in a shared preview. This document records the content rules, data path,
and remaining coverage limits.
-The start page keeps one row, capped at 784 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.
-The pill buttons use a compact 48-pixel height, with reduced input padding. The New Tab preview
-stays beside the results from 700 pixels wide; Cmd-O retains its existing size.
-Escape restores the original row and retains the query.
+The start page uses a long field capped at 1120 logical pixels, with **Find a
+harness** as its hint. Open Harness and New Harness sit underneath, aligned left,
+and the device card shares that left edge over the restored mesh wallpaper.
+The field keeps its width when search opens; results and preview appear side by
+side from 700 pixels wide. The actions hide while searching. The pill buttons
+retain their compact 48-pixel height, with reduced input padding. Cmd-O retains
+its existing size. Escape restores the actions 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 preview
paging commands can be remapped or unbound in the Search keymap. Paging only moves
diff --git a/docs/harness-v2-handoff.md b/docs/harness-v2-handoff.md
index 8fbb8951e..d55dd10cd 100644
--- a/docs/harness-v2-handoff.md
+++ b/docs/harness-v2-handoff.md
@@ -45,19 +45,20 @@ are:
Cmd-H/J/K/L and Cmd-arrows focus panes; Cmd-1…9 select tabs. User bindings take
precedence. Cmd-R splits right and Cmd-D splits down. Native menus, help and actual
dispatch 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. A single row (at most 784
- 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 from 700 pixels wide. The pill buttons use a compact 48-pixel
- height, with reduced input padding; Cmd-O retains its existing width. Escape restores the original
- row and query.
+- New Tab uses the **restored soft mesh wallpaper**, a long search field capped
+ at 1120 logical pixels, and no large Harness heading. The hint is **Find a
+ harness**. Search starts blank and focused, with results hidden. Open Harness
+ and New Harness sit underneath, aligned with the search field's left edge.
+ Activating search preserves the field width; results and preview appear side
+ by side from 700 pixels wide, and the actions hide. The pill buttons retain
+ their compact 48-pixel height and wrap when needed; Cmd-O retains its existing
+ width. Escape restores the actions and query.
Typing, clicking, or pressing an arrow
reveals 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** share the row; a small official device image and
- introduction sit well below, linking to autonomous.ai/harness-device.
+ accented **+ New Harness** share a row below search; a small official device
+ image and introduction sit well below, aligned to the same left edge and
+ linking to autonomous.ai/harness-device.
The five recent-agent rows are removed. Both pairs of actions are rounded
pills, with transparent outlined Open buttons and hand cursors. The official
`2.webp` device photo is cropped and centered in its viewport, with a hand cursor.
@@ -333,7 +334,7 @@ post-inspired implementation:
### Visual quality and first impression
- The start page, titlebar, modal result rows and pane controls follow the current
- entry/pane contract. Flat backgrounds, whitespace, title/metadata hierarchy,
+ entry/pane contract. The start-page mesh, whitespace, title/metadata hierarchy,
single/group icons, labels and native/Flutter button contrast are consistent.
- All six coordinated palettes, real fonts/content, larger text, narrow windows,
keyboard focus indicators and accessibility labels remain legible and usable.