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): the sample announces a permission as the daemon does — what, not "proceed?"

dee45d8dee1327a
diff --git a/mobile/lib/demo/sample_runtime.dart b/mobile/lib/demo/sample_runtime.dart
index d60675069..63de309c7 100644
--- a/mobile/lib/demo/sample_runtime.dart
+++ b/mobile/lib/demo/sample_runtime.dart
@@ -209,8 +209,8 @@ class SampleRuntime implements SampleHarnessHost {
machineId: harness.machineId,
agentId: harness.agentId,
requestId: 'sample-question-${++_questions}',
- answerKey: ask.question,
- prompt: ask.question,
+ answerKey: ask.announced,
+ prompt: ask.announced,
options: ask.options,
multi: false,
since: DateTime.now(),
diff --git a/mobile/lib/demo/sample_screen.dart b/mobile/lib/demo/sample_screen.dart
index 0b6a0a887..e226d92bc 100644
--- a/mobile/lib/demo/sample_screen.dart
+++ b/mobile/lib/demo/sample_screen.dart
@@ -100,7 +100,13 @@ class SampleAsk {
/// The rows, in order — `1.` is the first.
final List<String> options;
+ /// The dialog's own line, drawn in the pane.
String get question => 'Do you want to proceed?';
+
+ /// What the daemon announces for it (`permissionTitle` in the CLI's askQuestion.ts): the header
+ /// and the command, `Approve Bash command: psql -f …`. It is what Find quotes under a harness that
+ /// needs you — the pane's stock "Do you want to proceed?" said nothing about what.
+ String get announced => 'Approve $title: $command';
}
enum LiveMode { idle, working, asking }
diff --git a/mobile/test/sample_mode_test.dart b/mobile/test/sample_mode_test.dart
index 6903bbe25..c0cfc9c1a 100644
--- a/mobile/test/sample_mode_test.dart
+++ b/mobile/test/sample_mode_test.dart
@@ -127,7 +127,7 @@ void main() {
}
expect(
notifier.questionFor(_studio, 'sample-refactor-db')?.prompt,
- 'Do you want to proceed?',
+ startsWith('Approve Bash command: '),
);
await closeDown(tester);
});