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.

polish(mobile): How Harness works says a harness is a session; renders cover every screen

dee6d1271598463
diff --git a/mobile/lib/phone/welcome/how_it_works.dart b/mobile/lib/phone/welcome/how_it_works.dart
index a5d9c97ee..27ec43cd2 100644
--- a/mobile/lib/phone/welcome/how_it_works.dart
+++ b/mobile/lib/phone/welcome/how_it_works.dart
@@ -22,9 +22,9 @@ class HowItWorksPage extends StatelessWidget {
('Agent', 'The AI that does the work: Claude Code, Codex, and others.'),
(
'Harness',
- 'One agent working in one project on one computer — a live terminal you '
- 'can watch and talk to. Start as many as you like; they keep going '
- 'when you close the app.',
+ 'One session of an agent — Claude Code, say, working in one project on '
+ 'one computer, in a live terminal you can watch and talk to. One agent '
+ 'can run many; they keep going when you close the app.',
),
(
'Project',
@@ -33,8 +33,9 @@ class HowItWorksPage extends StatelessWidget {
),
(
'Phone password',
- 'Unlocks one computer from this phone, once. It sets up an end-to-end '
- 'encrypted link and never leaves your devices.',
+ 'For a computer with no Harness app to show a code (a server): unlocks '
+ 'it from this phone, once, over an end-to-end encrypted link. It never '
+ 'leaves your devices. A Mac shows a code to scan instead.',
),
];
diff --git a/mobile/test/render/phone_screens_render_test.dart b/mobile/test/render/phone_screens_render_test.dart
index 2d0fb7c3c..4cf1160ae 100644
--- a/mobile/test/render/phone_screens_render_test.dart
+++ b/mobile/test/render/phone_screens_render_test.dart
@@ -326,20 +326,27 @@ void main() {
await shoot(tester, key, '0-welcome');
});
- testWidgets('welcome, email then code', skip: skip, (tester) async {
- final key = await pumpScreen(
- tester,
- PhoneWelcome(
- notifier: notifier,
- onTrySample: (_) async => null,
- sendCode: (_) async {},
- signIn: (_, _) async {},
- scanCamera: const SizedBox(),
- ),
- );
+ PhoneWelcome welcome() => PhoneWelcome(
+ notifier: notifier,
+ onTrySample: (_) async => null,
+ sendCode: (_) async {},
+ signIn: (_, _) async {},
+ scanCamera: const SizedBox(),
+ loadDownloads: () async => const {},
+ );
+
+ testWidgets('welcome, scan', skip: skip, (tester) async {
+ final key = await pumpScreen(tester, welcome());
await tester.tap(find.text('Yes — scan to connect'));
await tester.pump(const Duration(milliseconds: 300));
+ // [shoot] takes the screen down after it: one capture per test.
await shoot(tester, key, '0a-welcome-scan');
+ });
+
+ testWidgets('welcome, email', skip: skip, (tester) async {
+ final key = await pumpScreen(tester, welcome());
+ await tester.tap(find.text('Yes — scan to connect'));
+ await tester.pump(const Duration(milliseconds: 300));
await tester.tap(find.text('Use email instead'));
await tester.pump(const Duration(milliseconds: 300));
await tester.enterText(
@@ -348,7 +355,6 @@ void main() {
);
await tester.pump();
await shoot(tester, key, '0b-welcome-email');
- await tester.pumpWidget(const SizedBox());
});
testWidgets('welcome, code', skip: skip, (tester) async {
@@ -364,7 +370,7 @@ void main() {
);
await tester.tap(find.text('Yes — scan to connect'));
await tester.pump(const Duration(milliseconds: 300));
- await tester.tap(find.text('Use email instead'));
+ await tester.tap(find.text('Use email instead', findRichText: true));
await tester.pump(const Duration(milliseconds: 300));
await tester.enterText(find.byType(TextField), '[email protected]');
await tester.tap(find.text('Send code'));
@@ -540,7 +546,8 @@ void main() {
testWidgets('focus, actions', skip: skip, (tester) async {
final key = await pumpScreen(tester, focus());
- await tester.tap(find.text('…'));
+ // The title opens the harness's actions — rename, restart, paste…
+ await tester.tap(find.text('hn', findRichText: true).first);
await tester.pump();
await tester.pump(const Duration(milliseconds: 500));
await shoot(tester, key, '1d-focus-actions');