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
test(mobile): fixtures follow the desktop cut — an in-memory viewer, no CLI runner, no skipped update
dee183b4f3b94e9
diff --git a/mobile/test/phone_edge/edge_fixture.dart b/mobile/test/phone_edge/edge_fixture.dartindex 24cfe07d4..8f467cccf 100644--- a/mobile/test/phone_edge/edge_fixture.dart+++ b/mobile/test/phone_edge/edge_fixture.dart@@ -7,16 +7,16 @@ import 'package:flutter_test/flutter_test.dart';import 'package:harness_mobile/api/api_client.dart';import 'package:harness_mobile/auth/auth_session.dart';import 'package:harness_mobile/auth/cli_link.dart';-import 'package:harness_mobile/auth/cli_login.dart';import 'package:harness_mobile/auth/peer_link_client.dart';import 'package:harness_mobile/core/config.dart';-import 'package:harness_mobile/core/harness_cli_runner.dart';import 'package:harness_mobile/core/models.dart';import 'package:harness_mobile/demo/sample_mode.dart';import 'package:harness_mobile/phone/voice_input_controller.dart';import 'package:harness_mobile/shared/theme/app_theme.dart' as grid;import 'package:harness_mobile/state/app_state.dart';import 'package:harness_mobile/terminal/terminal_session.dart';+import 'package:harness_mobile/viewer/viewer_key_store.dart';+import 'package:harness_mobile/viewer/viewer_services.dart';import 'package:harness_mobile/ws/ws_conn.dart';import '../agent_pager_fixture.dart' show goLive;@@ -226,8 +226,11 @@ AppNotifier edgeApp({configStore: null,connectionForTest: (_) => conn ?? EdgeConn(),peerLinks: links ?? EdgeLinks(),- cliLink: CliLink(runner: _noCli()),- cliLogin: CliLogin(runner: _noCli()),+ viewer: ViewerServices(+ config: AppConfig.dev,+ session: session,+ keys: ViewerKeyStore(storage: MemoryKeyValueStore()),+ ),);app.api = EdgeApi(app, session);if (noMachines) return app;@@ -321,15 +324,6 @@ class EdgeLinks implements PeerLinkClient {Future<String?> unlink(String machineId) async => null;}-/// A `harness` CLI that is never there: every run fails as a binary that could not be started-/// would, and nothing is spawned.-HarnessCliRunner _noCli() => HarnessCliRunner(- runProcess: (executable, arguments, {environment}) =>- throw const ProcessException('harness', [], 'not in tests'),- startProcess: (executable, arguments, {environment}) =>- throw const ProcessException('harness', [], 'not in tests'),-);-/// [count] agents, `a0`…, the first named [firstName] when given.List<Agent> manyAgents(int count, {String? firstName}) => [for (var i = 0; i < count; i++)diff --git a/mobile/test/settings/config_store_test.dart b/mobile/test/settings/config_store_test.dartindex 8e7ee858b..29ed5a128 100644--- a/mobile/test/settings/config_store_test.dart+++ b/mobile/test/settings/config_store_test.dart@@ -16,27 +16,24 @@ void main() {expect(config.autonomousEnv, 'prod');});- test('nothing saved: production, and no skipped update', () async {+ test('nothing saved: production', () async {final store = ConfigStore(storage: _Store({}));final config = await store.load();expect(config.apiBaseUrl, ConfigStore.defaultBaseUrl);expect(config.autonomousEnv, 'prod');- expect(store.skippedDesktopUpdateVersion, isNull);});test('what was saved comes back, in one batched read', () async {final storage = _Store({'app_api_base_url': 'https://staging.example','app_autonomous_environment': 'stag',- 'skipped_desktop_update_version': ' 1.4.0 ',});final store = ConfigStore(storage: storage);final config = await store.load();expect(config.apiBaseUrl, 'https://staging.example');expect(config.autonomousEnv, 'stag');- expect(store.skippedDesktopUpdateVersion, '1.4.0');expect(store.config.apiBaseUrl, 'https://staging.example');- // `readMany`, never three reads: each read on the real store takes the+ // `readMany`, never two reads: each read on the real store takes the// file lock and re-parses `state.json` on the launch path.expect(storage.batches, 1);expect(storage.reads, 0);@@ -44,14 +41,10 @@ void main() {test('an environment that is not staging is production', () async {final store = ConfigStore(- storage: _Store({- 'app_autonomous_environment': 'Stag ',- 'skipped_desktop_update_version': ' ',- }),+ storage: _Store({'app_autonomous_environment': 'Stag '}),);final config = await store.load();expect(config.autonomousEnv, 'prod');- expect(store.skippedDesktopUpdateVersion, isNull);});}