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.

chore(mobile): analyzer clean outside third_party

deeb5366bfeebbe
diff --git a/mobile/integration_test/perf/scenarios.dart b/mobile/integration_test/perf/scenarios.dart
index 3235edd60..e03bb9f51 100644
--- a/mobile/integration_test/perf/scenarios.dart
+++ b/mobile/integration_test/perf/scenarios.dart
@@ -344,8 +344,9 @@ class PerfSuite {
while (true) {
final frame = await nextFrame();
if (done()) return frame;
- if (watch.elapsed > limit)
+ if (watch.elapsed > limit) {
throw StateError('Timed out waiting for $what');
+ }
}
}
diff --git a/mobile/lib/phone/find_models.dart b/mobile/lib/phone/find_models.dart
index d7e8d544a..40853f5bd 100644
--- a/mobile/lib/phone/find_models.dart
+++ b/mobile/lib/phone/find_models.dart
@@ -132,8 +132,9 @@ class _FindModelsState extends State<FindModels> {
];
if (section.models.isEmpty && needle.isEmpty) {
final empty = modelSheetEmptySentence(answer, section);
- if (empty != null)
+ if (empty != null) {
rows.add(note('$where: ${empty.toLowerCase()}'));
+ }
}
if (shown.isNotEmpty) rows.add(FindHeader(where));
for (final model in shown) {
diff --git a/mobile/lib/phone/new_agent_page.dart b/mobile/lib/phone/new_agent_page.dart
index 4bfcc35e6..2fef825d1 100644
--- a/mobile/lib/phone/new_agent_page.dart
+++ b/mobile/lib/phone/new_agent_page.dart
@@ -218,8 +218,9 @@ class _NewAgentPageState extends State<NewAgentPage> {
);
return;
}
- if (voice.status == VoiceInputStatus.idle)
+ if (voice.status == VoiceInputStatus.idle) {
unawaited(voice.startListening());
+ }
}
/// Takes back what the form was left holding — see [NewAgentDraft].
@@ -1207,8 +1208,7 @@ class _NewAgentPageState extends State<NewAgentPage> {
for (final folder in [
...notifier.projectHistory.recent(id),
for (final agent in machine.agents)
- if (agent.project?.root ?? agent.project?.cwd case final path?)
- path,
+ ?(agent.project?.root ?? agent.project?.cwd),
])
if (folder.isNotEmpty && !_isHarnessWorktree(folder)) folder,
};
diff --git a/mobile/test/phone_edge/welcome_behavior_test.dart b/mobile/test/phone_edge/welcome_behavior_test.dart
index 229f5f8fc..e6bd82604 100644
--- a/mobile/test/phone_edge/welcome_behavior_test.dart
+++ b/mobile/test/phone_edge/welcome_behavior_test.dart
@@ -6,7 +6,6 @@ import 'package:harness_mobile/phone/phone_shell_scope.dart';
import 'package:harness_mobile/phone/welcome/connect_code.dart';
import 'package:harness_mobile/phone/welcome/connect_computer.dart';
import 'package:harness_mobile/phone/welcome/focus_hints.dart';
-import 'package:harness_mobile/phone/welcome/how_it_works.dart';
import 'package:harness_mobile/phone/welcome/phone_welcome.dart';
import 'package:harness_mobile/phone/welcome/pick_up_page.dart';
import 'package:harness_mobile/phone/welcome/scan_to_connect.dart';