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): round-2 panel fixes — the sample stops parroting, the guide stops covering history

dee9e84d7d26456
diff --git a/mobile/lib/demo/sample_runtime.dart b/mobile/lib/demo/sample_runtime.dart
index 252cc09b1..d60675069 100644
--- a/mobile/lib/demo/sample_runtime.dart
+++ b/mobile/lib/demo/sample_runtime.dart
@@ -380,8 +380,16 @@ class SampleRuntime implements SampleHarnessHost {
'name': 'home',
'own': true,
'models': [
- {'id': 'qwen3-coder-30b', 'node': machineId},
- {'id': 'gpt-oss-20b', 'node': machineId},
+ // A node by the name the computer goes by, as a real one reports it — the
+ // sample's machine ids (`sample-studio`) are fixture plumbing, not names.
+ {
+ 'id': 'qwen3-coder-30b',
+ 'node': machineId.replaceFirst('sample-', ''),
+ },
+ {
+ 'id': 'gpt-oss-20b',
+ 'node': machineId.replaceFirst('sample-', ''),
+ },
{'id': 'devstral-small', 'node': 'laptop'},
],
},
diff --git a/mobile/lib/demo/sample_scripts.dart b/mobile/lib/demo/sample_scripts.dart
index 2db6215fa..b5e3ed452 100644
--- a/mobile/lib/demo/sample_scripts.dart
+++ b/mobile/lib/demo/sample_scripts.dart
@@ -646,7 +646,9 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
final lower = text.toLowerCase();
final branch =
(harness.agent['project'] as Map?)?['branch'] as String? ?? 'main';
- final onIt = [verb('Thinking', 200), say('On it — ${text.trim()}', 900)];
+ // What it is on, in a few words of its own — never the person's words said back to them. An
+ // agent repeating what it was told read as a script, the one thing the sample must not.
+ List<SampleStep> onIt(String line) => [verb('Thinking', 200), say(line, 900)];
if (_mentions(lower, ['stop', 'wait', 'pause', 'cancel', 'hold'])) {
// Asked to stop, the busy harness stops being busy too.
@@ -661,7 +663,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
}
if (_mentions(lower, ['diff', 'changes', 'changed'])) {
return [
- ...onIt,
+ ...onIt('Here is what changed.'),
tool('Bash', 'git diff --stat', [
'${place.file} | 9 ++++++---',
'${place.testFile} | 14 ++++++++++++++',
@@ -680,7 +682,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
}
if (_mentions(lower, ['commit', 'push'])) {
return [
- ...onIt,
+ ...onIt('Committing it.'),
tool('Bash', 'git add -A && git commit -m "Refresh before expiry"', [
'[$branch 3f9c2e1] Refresh before expiry',
'2 files changed, 20 insertions(+), 3 deletions(-)',
@@ -690,7 +692,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
}
if (_mentions(lower, ['left', 'status', 'remaining', 'progress', 'next'])) {
return [
- ...onIt,
+ ...onIt('Here is where it stands.'),
todos(const [
Todo('Reproduce the bug', done: true),
Todo('Fix it', done: true),
@@ -707,7 +709,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
final adding = _mentions(lower, ['add', 'write', 'new']);
if (adding) {
return [
- ...onIt,
+ ...onIt('Adding tests for it.'),
tool('Read', place.file, ['Read 96 lines']),
tool('Write', place.testFile, ['Wrote 34 lines to ${place.testFile}']),
verb('Testing', 300),
@@ -716,7 +718,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
];
}
return [
- ...onIt,
+ ...onIt('Running the tests first.'),
verb('Testing', 300),
tool(
'Bash',
@@ -750,7 +752,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
)
.join();
return [
- ...onIt,
+ ...onIt('Building `$slug`.'),
tool('Read', place.file, ['Read 96 lines']),
tool('Write', file, ['Wrote 42 lines to $file']),
diff(place.file, [DiffLine(3, '+', "import { $camel } from './$slug';")]),
@@ -763,7 +765,7 @@ List<SampleStep> sampleReply(SampleHarness harness, String text) {
];
}
return [
- ...onIt,
+ ...onIt('On it.'),
tool('Read', place.file, ['Read 96 lines']),
diff(place.file, place.edit),
verb('Testing', 300),
diff --git a/mobile/lib/phone/settings_page.dart b/mobile/lib/phone/settings_page.dart
index 2ba633c8f..f12dbd743 100644
--- a/mobile/lib/phone/settings_page.dart
+++ b/mobile/lib/phone/settings_page.dart
@@ -238,7 +238,7 @@ class _Body extends StatelessWidget {
if (sample != null) {
return SettingsRow(
key: const ValueKey('settings-leave-sample'),
- title: 'Leave sample',
+ title: 'Leave the sample',
onTap: () => sample.leave(),
);
}
diff --git a/mobile/lib/phone/terminal_page.dart b/mobile/lib/phone/terminal_page.dart
index 448f10ae3..deb75bac0 100644
--- a/mobile/lib/phone/terminal_page.dart
+++ b/mobile/lib/phone/terminal_page.dart
@@ -976,6 +976,9 @@ class _TerminalPageState extends State<TerminalPage>
if (view != null && _answerKeys(view) == null) {
return _StatusLine(text: 'answer on screen', color: tty.yellow);
}
+ // Not while reading back through the history: the line sat on the rows being read, halving
+ // one ("FAIL src/auth/…"). It is back the moment the reader is at the end again.
+ if (_scrollback.value != null) return null;
if (_sampleGuide() case final guide?) {
return _StatusLine(text: guide.text, glide: guide.glide, dot: true);
}
@@ -2164,6 +2167,7 @@ class _TerminalPageState extends State<TerminalPage>
listenable: Listenable.merge([
widget.voice,
_barMessage,
+ _scrollback,
]),
builder: (context, _) =>
_statusLine() ?? const SizedBox.shrink(),
diff --git a/mobile/lib/phone/welcome/pick_up_page.dart b/mobile/lib/phone/welcome/pick_up_page.dart
index ebf4a2336..fcd61ac77 100644
--- a/mobile/lib/phone/welcome/pick_up_page.dart
+++ b/mobile/lib/phone/welcome/pick_up_page.dart
@@ -44,12 +44,12 @@ class _PickUpPageState extends State<PickUpPage> {
super.dispose();
}
- /// `12 sessions on MacBook Pro`, or `on 2 computers`.
+ /// `12 harnesses on MacBook Pro`, or `on 2 computers` — the app's word for one, not "session".
String _where() {
final entries = visibleAgents(agentIndex(widget.notifier));
final computers = {for (final entry in entries) entry.machineName};
final sessions =
- '${entries.length} ${entries.length == 1 ? 'session' : 'sessions'}';
+ '${entries.length} ${entries.length == 1 ? 'harness' : 'harnesses'}';
return computers.length == 1
? '$sessions on ${computers.single}'
: '$sessions on ${computers.length} computers';
diff --git a/mobile/test/sample_mode_test.dart b/mobile/test/sample_mode_test.dart
index c8db0b48a..6903bbe25 100644
--- a/mobile/test/sample_mode_test.dart
+++ b/mobile/test/sample_mode_test.dart
@@ -146,7 +146,9 @@ void main() {
final screen = screenOf(notifier, 'sample-docs-site', 'sample-laptop');
expect(screen, contains('> add a search box'));
- expect(screen, contains('⏺ On it — add a search box'));
+ // Says what it is on, in its own words — never the request said back.
+ expect(screen, contains('⏺ Building'));
+ expect(screen, isNot(contains('On it — add a search box')));
expect(screen, contains('Update(src/components/Header.astro)'));
expect(screen, contains('Done —'));
await closeDown(tester);
@@ -163,7 +165,8 @@ void main() {
final screen = screenOf(notifier, 'sample-mobile-ui', 'sample-laptop');
expect(screen, contains('› run the tests and fix whatever fails'));
- expect(screen, contains('• On it — run the tests and fix whatever fails'));
+ expect(screen, contains('• Running the tests first.'));
+ expect(screen, isNot(contains('On it — run the tests')));
expect(screen, contains('Ran flutter test'));
await closeDown(tester);
});
@@ -255,7 +258,8 @@ void main() {
await settle(tester, const Duration(seconds: 6));
final screen = screenOf(notifier, id);
expect(screen, contains('› add rate limiting to the login route'));
- expect(screen, contains('• On it — add rate limiting to the login route'));
+ expect(screen, contains('• Building'));
+ expect(screen, isNot(contains('On it — add rate limiting')));
await closeDown(tester);
});
@@ -302,7 +306,7 @@ void main() {
await tester.tap(find.text('Settings'));
await settle(tester, const Duration(seconds: 1));
expect(find.text('Sign out'), findsNothing);
- await tester.tap(find.text('Leave sample'));
+ await tester.tap(find.text('Leave the sample'));
await settle(tester, const Duration(seconds: 2));
expect(find.byType(PhoneShell), findsNothing);