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
Mobile: record builds 1.0.12 (76) to (79) for iOS and Play; Swarm Home always shows While you were away (#2709)
tony496scded7c2506b1
diff --git a/mobile/RELEASE.md b/mobile/RELEASE.mdindex 88a55d877..e2a2301bd 100644--- a/mobile/RELEASE.md+++ b/mobile/RELEASE.md@@ -144,9 +144,13 @@ may lack symbolicated stacks until the matching symbols are supplied.| `1.0.10 (73)` | 2026-10-23 | TestFlight. The phone's first session: task chips, one suggestion with a Send button, the keyboard over its task and a mic that sends the prompt, and Desktop's engine choice; a Harness OS computer signed out, its password changed, SSH turned on; Version lists releases and takes a newer OS release only; a pasted image waits for its transcode before uploading. 1.0.9 had been submitted, so it went up as 1.0.10. Built from `feat/mobile-ios-android` at `3c024672` || `1.0.11 (74)` | 2026-10-26 | TestFlight. Claude Code scroll keeps up with the finger. 1.0.10 is approved, so it went up as 1.0.11 to carry refreshed App Store screenshots. Built from `feat/mobile-ios-android` at `13b9b38b` || `1.0.12 (75)` | 2026-10-30 | TestFlight. A Harness OS computer signs in to GitHub, checks for updates, sets up Intern 3 and offers Computer use; Settings ▸ Experimental with Swarm, off by default; WebSocket reconnects back off; terminal uploads no longer freeze. 1.0.11 had been submitted, so it went up as 1.0.12. Built from `feat/mobile-ios-android` at `3a258bb8` |+| `1.0.12 (76)` | 2026-10-30 | TestFlight. Set up Intern 3 from Computers goes back to that list when done; in Swarm, a calmer Home, a simpler chat, Not delivered yet and Jump to first unread. Built from `feat/mobile-ios-android` at `3ab12ed5` |+| `1.0.12 (77)` | 2026-11-02 | TestFlight. Start opens the new computer's harness, with a keep-on warning while updating and a bar while an agent installs; in Swarm, the floating chat composer, invitations, task steps and chat files up to 256 MB. Built from `feat/mobile-ios-android` at `78c63a84` |+| `1.0.12 (78)` | 2026-11-02 | TestFlight. In Swarm only, nothing else in `mobile/lib` changed since 77: the Buddy tab opens your one Swarm Buddy chat, Home's Sort by and Filter menu and always-on While you were away, a long press on a machine opens its menu. Built from `feat/mobile-ios-android` at `2c6939e6` |+| `1.0.12 (79)` | 2026-11-03 | TestFlight. In Swarm only, nothing else in `mobile/lib` changed since 78: invitations on Home with Join and Not now, Older chats from Home, a project's number counts only its own chat, the Buddy picker says when a machine is paused. Built from `feat/mobile-ios-android` at `e8620dbe` |-`pubspec.yaml` is now at `1.0.12+76`, the next build number. Build 75 (1.0.12) is the last build, for both-TestFlight and Play (54 went up outside this record, 53 went to Play only); do not upload any of them again. 1.0.1 to 1.0.10 are approved and 1.0.11 is submitted or approved, so new builds go up as 1.0.12 until it is submitted or approved too. Check App Store Connect before uploading if another release has happened meanwhile.+`pubspec.yaml` is now at `1.0.12+80`, the next build number. Build 79 (1.0.12) is the last TestFlight build and+the last Play build (54 went up outside this record, 53 went to Play only); do not upload any of them again. 1.0.1 to 1.0.10 are approved and 1.0.11 is submitted or approved, so new builds go up as 1.0.12 until it is submitted or approved too. Check App Store Connect before uploading if another release has happened meanwhile.### Why the app is iPhone-only@@ -377,3 +381,5 @@ account (Autonomous Inc.) is exempt — check which kind the account is before p| `73` (1.0.10) | 2026-10-23 | Built, same code as iOS 1.0.10 (73); to be uploaded by hand || `74` (1.0.11) | 2026-10-26 | Built at a pulled-back pubspec number, same `mobile/` code as iOS 1.0.11 (74); whether it was uploaded is not recorded, so do not reuse 74 || `75` (1.0.12) | 2026-10-30 | Built, same code as iOS 1.0.12 (75); to be uploaded by hand |+| `78` (1.0.12) | 2026-11-02 | Built, same code as iOS 1.0.12 (78); to be uploaded by hand |+| `79` (1.0.12) | 2026-11-03 | Built, same code as iOS 1.0.12 (79), from `e8620dbe`; to be uploaded by hand |diff --git a/mobile/lib/swarm/swarm_page.dart b/mobile/lib/swarm/swarm_page.dartindex f87e38817..a6e773917 100644--- a/mobile/lib/swarm/swarm_page.dart+++ b/mobile/lib/swarm/swarm_page.dart@@ -61,8 +61,8 @@ bool swarmHomeListed(SwarmInbox inbox, String swarmId, String projectId) {/// Swarm Home, direction C (Tony's prototype C1, 2026-10-30), the Home tab:/// its title the Swarm shown, with a switcher to every Swarm, All Swarms and-/// Join or create ([showSwarmSwitcher]); While you were away, once the person-/// has been gone a while ([SwarmAwayCard]); then Threads; then the projects+/// Join or create ([showSwarmSwitcher]); While you were away, whenever there is+/// a Swarm to report on ([SwarmAwayCard]); then Threads; then the projects/// they pinned on this phone, then the others by their latest activity,/// those quiet for a day folded under "Other projects" ([swarmHomeLists])./// Every Swarm's, or the one picked ([SwarmHomePrefs.swarmId]). A round +@@ -85,7 +85,7 @@ class SwarmPage extends StatefulWidget {/// What a project's last move, and the time away, is measured from.final DateTime Function() now;- /// Gone for less is no time away: no card.+ /// Gone for less, While you were away stays on the time away it was showing.static const awayAfter = Duration(minutes: 5);@override@@ -128,12 +128,30 @@ class _SwarmPageState extends State<SwarmPage> {_lifecycle = AppLifecycleListener(onHide: () => _session?.home.seen(widget.now()),onShow: () => setState(() {+ final now = widget.now();+ final left = _session?.home.seenAt;+ // A moment away ends nothing: a phone locked or an app glanced at must+ // not turn "2h, 9 done" into "now, 0 done" for someone still reading it.+ if (_awaySpansTime &&+ left != null &&+ now.difference(left) < SwarmPage.awayAfter) {+ return;+ }_awayRead = false;- _back = widget.now();+ _back = now;}),);}+ /// Whether the time away read last was a real one ([SwarmPage.awayAfter]).+ bool get _awaySpansTime {+ final since = _away, back = _back;+ return _awayRead &&+ since != null &&+ back != null &&+ back.difference(since) >= SwarmPage.awayAfter;+ }+@overridevoid didChangeDependencies() {super.didChangeDependencies();@@ -490,10 +508,11 @@ class _SwarmPageState extends State<SwarmPage> {];}- /// While you were away, once the person has been gone [SwarmPage.awayAfter]- /// or more: the work done since in the Swarms shown and what needs them+ /// While you were away: the work done in the Swarms shown since the person+ /// last left the app, or on a first open since it opened, and what needs them/// there now, each a skeleton while the Swarms, or what waits in them, are- /// not read. A tap opens Activity.+ /// not read. Always there, unless no Swarm is left to report on. A tap opens+ /// Activity.Widget? _awayCard(BuildContext context,SwarmSession session,@@ -506,14 +525,14 @@ class _SwarmPageState extends State<SwarmPage> {_away = home.seenAt;_awayRead = true;}- final since = _away;+ // Not known yet: drawn as "now" for a moment, it would then jump.+ if (!home.loaded) return null;// Decided at the return: time in the foreground is no time away.final back = _back ?? now;- if (since == null || back.difference(since) < SwarmPage.awayAfter) {- return null;- }+ final since = _away ?? back;final inbox = session.inbox;final listing = swarmHomeListing(inbox);+ if (!listing && shown.isEmpty) return null;// A Swarm not read leaves the work done unknown; one no read will bring is// left out, or its skeleton would never end.int? done = listing ? null : 0;diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yamlindex 94af37eb2..5dac5a7d4 100644--- a/mobile/pubspec.yaml+++ b/mobile/pubspec.yaml@@ -2,7 +2,7 @@ name: harness_mobiledescription: "Harness viewer for iOS and Android."publish_to: 'none'-version: 1.0.12+76+version: 1.0.12+80environment:sdk: ^3.13.0diff --git a/mobile/test/swarm/swarm_home_test.dart b/mobile/test/swarm/swarm_home_test.dartindex 33319d806..7bf52cdc8 100644--- a/mobile/test/swarm/swarm_home_test.dart+++ b/mobile/test/swarm/swarm_home_test.dart@@ -393,7 +393,7 @@ void main() {expect(find.text('Jump to…'), findsNothing);expect(find.text('Needs you'), findsNothing, reason: "Activity's now");expect(find.text('Ship it behind a flag?'), findsNothing);- expect(key('swarm-away'), findsNothing, reason: 'the person never left');+ expect(key('swarm-away'), findsOneWidget, reason: 'always there');expect(find.text('Buddies'), findsNothing);expect(key('swarm-home-buddy-$tab-$project'), findsNothing);expect(find.text('Chat with PM'), findsNothing);@@ -600,16 +600,25 @@ void main() {},};- testWidgets('none on a first open, nor back within five minutes; back '+ testWidgets('there on a first open and back within five minutes; back ''later, how long, the work done since and what needs you; a tap ''opens what needs you', (tester) async {var now = _halfHourIn();final fake = backend();final host = await pump(tester, fake, now: () => now);- expect(key('swarm-away'), findsNothing, reason: 'never left');+ expect(+ inside('swarm-away', find.text('now')),+ findsOneWidget,+ reason: 'never left: no time away yet',+ );+ expect(inside('swarm-away-done', find.text('0')), findsOneWidget);await away(tester, const Duration(minutes: 4), (d) => now = now.add(d));- expect(key('swarm-away'), findsNothing, reason: 'four minutes');+ expect(+ inside('swarm-away', find.text('4m')),+ findsOneWidget,+ reason: 'four minutes',+ );final left = now;moveOn(fake, {@@ -645,24 +654,24 @@ void main() {expect(find.byType(SwarmActivityPage), findsOneWidget);});- testWidgets('back within five minutes and using the app on: still no '- 'card, as only time in the background is time away', (tester) async {+ testWidgets('back within five minutes and using the app on: the time stays, '+ 'as only time in the background is time away', (tester) async {var now = _halfHourIn();await pump(tester, backend(), now: () => now);await away(tester, const Duration(minutes: 4), (d) => now = now.add(d));- expect(key('swarm-away'), findsNothing);+ expect(inside('swarm-away', find.text('4m')), findsOneWidget);now = now.add(const Duration(minutes: 2));await tester.pump(const Duration(minutes: 2));expect(- key('swarm-away'),- findsNothing,+ inside('swarm-away', find.text('4m')),+ findsOneWidget,reason: 'two minutes in the foreground are no time away',);});testWidgets('opened four minutes after the app was last left, and used '- 'on: no card', (tester) async {+ 'on: four minutes', (tester) async {var now = _halfHourIn();final store = MemoryKeyValueStore()..values['swarm_home.$me'] = jsonEncode({@@ -672,11 +681,62 @@ void main() {.millisecondsSinceEpoch,});await pump(tester, backend(), now: () => now, store: store);- expect(key('swarm-away'), findsNothing);+ expect(inside('swarm-away', find.text('4m')), findsOneWidget);now = now.add(const Duration(minutes: 2));await tester.pump(const Duration(minutes: 2));+ expect(inside('swarm-away', find.text('4m')), findsOneWidget);+ });++ testWidgets('waits for when the app was last left, so it never shows a '+ 'first open and then jumps', (tester) async {+ final now = _halfHourIn();+ final store = _HeldStore()+ ..values['swarm_home.$me'] = jsonEncode({+ 'pins': <Object>[],+ 'seen': now+ .subtract(const Duration(minutes: 20))+ .millisecondsSinceEpoch,+ });+ await pump(tester, backend(), now: () => now, store: store, settle: false);expect(key('swarm-away'), findsNothing);++ store.release.complete();+ await tester.pumpAndSettle();++ expect(inside('swarm-away', find.text('20m')), findsOneWidget);+ });++ testWidgets('with no Swarm to report on, there is none', (tester) async {+ final fake = backend();+ fake.routes['/api/super-tabs/list'] = (_) => {+ 'tabs': <Object>[],+ 'next': null,+ };+ await pump(tester, fake);++ expect(key('swarm-away'), findsNothing);+ });++ testWidgets('a moment away leaves the card as it was; a long time away '+ 'starts it over', (tester) async {+ var now = _halfHourIn();+ await pump(tester, backend(), now: () => now);+ await away(tester, const Duration(hours: 1), (d) => now = now.add(d));+ expect(inside('swarm-away', find.text('1h')), findsOneWidget);++ await away(tester, const Duration(seconds: 30), (d) => now = now.add(d));+ expect(+ inside('swarm-away', find.text('1h')),+ findsOneWidget,+ reason: 'a phone locked for a moment takes nothing away',+ );+ await away(tester, const Duration(minutes: 4), (d) => now = now.add(d));+ expect(inside('swarm-away', find.text('1h')), findsOneWidget);++ await away(tester, const Duration(minutes: 6), (d) => now = now.add(d));+ expect(inside('swarm-away', find.text('6m')), findsOneWidget);+ expect(inside('swarm-away', find.text('1h')), findsNothing);});testWidgets('its time is how long the person was away, not how long since '@@ -2782,7 +2842,7 @@ void main() {expect(find.text('Buddies'), findsNothing);expect(find.text('Projects'), findsOneWidget);expect(find.textContaining('Reading'), findsNothing);- expect(key('swarm-away'), findsNothing);+ expect(key('swarm-away'), findsOneWidget, reason: 'its figures skeletons');listed.complete();await tester.pumpAndSettle();@@ -2930,3 +2990,14 @@ void main() {});});}++/// A store whose reads wait for [release]: the phone's disk, slower than Home.+class _HeldStore extends MemoryKeyValueStore {+ final release = Completer<void>();++ @override+ Future<String?> read(String key) async {+ await release.future;+ return super.read(key);+ }+}diff --git a/mobile/test/swarm/swarm_home_view_test.dart b/mobile/test/swarm/swarm_home_view_test.dartindex c10e153d1..a7ae558df 100644--- a/mobile/test/swarm/swarm_home_view_test.dart+++ b/mobile/test/swarm/swarm_home_view_test.dart@@ -8,6 +8,7 @@ import 'package:lucide_icons_flutter/lucide_icons.dart';import 'package:harness_mobile/notify/system_notices.dart';import 'package:harness_mobile/settings/experimental_features.dart';+import 'package:harness_mobile/shared/widgets/skeleton.dart';import 'package:harness_mobile/swarm/model.dart';import 'package:harness_mobile/swarm/swarm_home_list.dart';import 'package:harness_mobile/swarm/swarm_home_prefs.dart';@@ -642,16 +643,25 @@ void main() {);final store = MemoryKeyValueStore()..values['swarm_home.$me'] = jsonEncode({'filter': 'mentions'});- final host = await pump(tester, fake, store: store);+ // While you were away keeps what needs the person a skeleton while the+ // read is retried, so the screen never settles until it answers.+ final host = await pump(tester, fake, store: store, settle: false);+ await tester.pump(const Duration(milliseconds: 100));expect(find.text('Mentions could not be read.'), findsOneWidget);expect(find.text('No mentions.'), findsNothing);expect(key('swarm-filter-show-all'), findsOneWidget);+ Finder needs(Finder matching) =>+ find.descendant(of: key('swarm-away-needs'), matching: matching);+ expect(needs(find.byType(SkeletonText)), findsOneWidget);+ expect(needs(find.text('0')), findsNothing);fail = false;await host.session!.inbox.asks(tab)!.load();await tester.pumpAndSettle();expect(project_(web), findsOneWidget);expect(find.text('Mentions could not be read.'), findsNothing);+ expect(needs(find.byType(SkeletonText)), findsNothing);+ expect(needs(find.text('1')), findsOneWidget);});/// [fake] with a second Swarm, whose mentions [read] answers.