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.

The More menu: no engine note on a harness row, and half again as wide

deeee7b1684df39
diff --git a/desktop/lib/shared/widgets/app_select_field.dart b/desktop/lib/shared/widgets/app_select_field.dart
index f02b714b6..10b7f3889 100644
--- a/desktop/lib/shared/widgets/app_select_field.dart
+++ b/desktop/lib/shared/widgets/app_select_field.dart
@@ -72,6 +72,7 @@ class AppSelectField<T> extends StatefulWidget {
required this.options,
required this.onChanged,
this.width,
+ this.menuWidth,
this.height = AppControl.height,
this.trigger,
this.focusNode,
@@ -87,6 +88,11 @@ class AppSelectField<T> extends StatefulWidget {
/// Fixed width, so a column of these lines up on one right edge. Null lets it
/// take whatever its parent gives.
final double? width;
+
+ /// A floor for the menu's width, when the rows carry more than the field
+ /// does — a name, a second line and a mark want room to be read at a
+ /// glance. Never narrower than the field itself.
+ final double? menuWidth;
final double height;
/// An alternate compact trigger, such as the agent picker's More button.
@@ -362,7 +368,10 @@ class _AppSelectFieldState<T> extends State<AppSelectField<T>> {
menuChildren: [
if (widget.options.isEmpty && widget.emptyLabel != null)
SizedBox(
- width: math.max(panelWidth ?? 0, _minPanelWidth),
+ width: math.max(
+ math.max(panelWidth ?? 0, widget.menuWidth ?? 0),
+ _minPanelWidth,
+ ),
height: AppMenuRowMetrics.roomy.extent,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
@@ -378,7 +387,10 @@ class _AppSelectFieldState<T> extends State<AppSelectField<T>> {
for (final option in widget.options)
_typingRegion(
SizedBox(
- width: math.max(panelWidth ?? 0, _minPanelWidth),
+ width: math.max(
+ math.max(panelWidth ?? 0, widget.menuWidth ?? 0),
+ _minPanelWidth,
+ ),
child: AppMenuItem(
// No glyph of its own: the leading slot belongs to the tick,
// and stays empty (not a blank checkbox) on rows without it.
diff --git a/desktop/lib/widgets/new_agent_dialog.dart b/desktop/lib/widgets/new_agent_dialog.dart
index c0026951d..81977200f 100644
--- a/desktop/lib/widgets/new_agent_dialog.dart
+++ b/desktop/lib/widgets/new_agent_dialog.dart
@@ -752,7 +752,8 @@ class _NewAgentDialogState extends State<_NewAgentDialog> {
SelectOption(
value: harness.id,
label: harness.name,
- note: 'on ${_labelOf(harness.engine)}',
+ // No "on Codex" here: the engine underneath is a backend
+ // detail (owner, 2026-09-15) — the settings row says it.
// What it makes, in a word or two; the machine's word first,
// this build's when the machine has not answered.
detail:
diff --git a/desktop/test/new_agent_dsh_test.dart b/desktop/test/new_agent_dsh_test.dart
index 8c0c69115..78b97e751 100644
--- a/desktop/test/new_agent_dsh_test.dart
+++ b/desktop/test/new_agent_dsh_test.dart
@@ -183,7 +183,9 @@ void main() {
}
Future<void> create(WidgetTester tester) async {
- await tester.ensureVisible(find.byKey(const ValueKey('create-agent-submit')));
+ await tester.ensureVisible(
+ find.byKey(const ValueKey('create-agent-submit')),
+ );
await tester.tap(find.byKey(const ValueKey('create-agent-submit')));
await tester.pump();
}
@@ -202,7 +204,11 @@ void main() {
seed: (state) =>
state.dsh.replace([_circuit.copyWith(installed: true)]),
);
- expect(app.harnessProbes, 0, reason: 'not asked until a harness is chosen');
+ expect(
+ app.harnessProbes,
+ 0,
+ reason: 'not asked until a harness is chosen',
+ );
await pick(tester, 'Copper');
expect(app.harnessProbes, 1);
expect(engineField(tester), 'autonomous/copper');
@@ -218,10 +224,7 @@ void main() {
await tester.tap(find.byKey(const Key('new-agent-advanced')));
await tester.pumpAndSettle();
expect(find.byKey(const Key('new-agent-runs-on')), findsOneWidget);
- expect(
- find.textContaining('Runs on Claude Code.'),
- findsOneWidget,
- );
+ expect(find.textContaining('Runs on Claude Code.'), findsOneWidget);
// Its base engine's bypass flag is the one offered: a harness has no
// flag of its own, and without the base's it would say "Managed by".
await tester.ensureVisible(find.text('Bypass approvals'));
@@ -333,7 +336,7 @@ void main() {
await tester.ensureVisible(find.text('Robot Arm').last);
await tester.pumpAndSettle();
expect(find.text('Robot Arm'), findsWidgets);
- expect(find.text('on Codex'), findsOneWidget);
+ expect(find.text('on Codex'), findsNothing, reason: 'backend detail');
await tester.tap(find.text('Robot Arm').last);
await tester.pumpAndSettle();
expect(engineField(tester), 'someone/robot-arm');