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 branch 'main' into feat/mobile-ios-android

Dev jacob3a36c2af6254
diff --cc desktop/test/boot_flow_widget_test.dart
index 66195691d,89de7e2d1..406b1d932
--- a/desktop/test/boot_flow_widget_test.dart
+++ b/desktop/test/boot_flow_widget_test.dart
@@@ -769,30 -765,49 +766,49 @@@ void main()
expect(find.text('Admin prompts stay in Terminal'), findsNothing);
});
- testWidgets('review marks unusable Apple developer tools as missing', (
- tester,
- ) async {
- final app = makeNotifier(AppStatus.preparingEnvironment);
- app.environmentReadiness = const EnvironmentReadiness(
- steps: {
- EnvironmentStep.harness: EnvironmentStepStatus.ready,
- EnvironmentStep.tmux: EnvironmentStepStatus.ready,
- },
- phase: EnvironmentSetupPhase.review,
- systemReady: false,
- );
- await tester.pumpWidget(
- ProviderScope(
- overrides: [appStateProvider.overrideWithValue(app)],
- child: HarnessApp(authenticatedScreen: _swarm),
- ),
- );
- await tester.pump();
+ testWidgets(
+ 'review lists the whole ladder when neither tmux nor Homebrew nor Xcode is there',
+ (tester) async {
+ // The plan is the provisioner's, in ladder order: the developer tools
+ // appear only because Homebrew was found missing, Homebrew only because
+ // tmux was.
+ final app = makeNotifier(AppStatus.preparingEnvironment);
+ app.environmentReadiness = const EnvironmentReadiness(
+ steps: {
+ EnvironmentStep.clipboard: EnvironmentStepStatus.notApplicable,
+ EnvironmentStep.harness: EnvironmentStepStatus.ready,
+ EnvironmentStep.tmux: EnvironmentStepStatus.failed,
+ },
+ phase: EnvironmentSetupPhase.review,
+ plan: [
+ EnvironmentPlanItem.appleDeveloperTools,
+ EnvironmentPlanItem.homebrew,
+ EnvironmentPlanItem.tmuxViaHomebrew,
+ ],
+ );
+ await tester.pumpWidget(
+ ProviderScope(
+ overrides: [appStateProvider.overrideWithValue(app)],
- child: const DesktopApp(),
++ child: HarnessApp(authenticatedScreen: _swarm),
+ ),
+ );
+ await tester.pump();
- expect(find.text('Apple developer tools'), findsOneWidget);
- expect(find.text('Install 1 tool'), findsOneWidget);
- expect(find.text('tmux'), findsNothing);
- });
+ expect(find.text('Apple developer tools'), findsOneWidget);
+ expect(find.text('Homebrew'), findsOneWidget);
+ expect(find.text('tmux'), findsOneWidget);
+ expect(find.text('Install 3 tools'), findsOneWidget);
+ expect(
+ tester.getTopLeft(find.text('Apple developer tools')).dy,
+ lessThan(tester.getTopLeft(find.text('Homebrew')).dy),
+ );
+ expect(
+ tester.getTopLeft(find.text('Homebrew')).dy,
+ lessThan(tester.getTopLeft(find.text('tmux')).dy),
+ );
+ expect(find.text('Apple developer tools'), findsOneWidget);
+ },
+ );
testWidgets('RootShell rebuilds to LoginScreen when status flips after boot', (
tester,