Record chat shell commands with fixture captures and a note

Show Expand only when output can overflow and drop the final newline from
the drawn output. The full-app probe lists shell runs with ?shell=1 so the
cards, Shell mode and Run command dialog can be captured in Chrome.
This commit is contained in:
2026-11-09 16:21:15 +00:00
parent a6f0f0a1cb
commit 5c3248a48d
7 changed files with 405 additions and 3 deletions
@@ -27,7 +27,7 @@ void main() {
expect(find.byKey(const Key('chat-shell-run-running')), findsOneWidget);
gateway.emitOutput('run_a', 'line 2\n', 7);
await tester.pump();
expect(find.text('line 1\nline 2\n'), findsOneWidget);
expect(find.text('line 1\nline 2'), findsOneWidget);
expect(find.byKey(const Key('chat-shell-run-share')), findsNothing);
await tester.tap(find.byKey(const Key('chat-shell-run-stop')));
@@ -43,7 +43,7 @@ void main() {
expect(find.text('Stopped · 2.4 s'), findsOneWidget);
expect(find.byKey(const Key('chat-shell-run-stop')), findsNothing);
// The streamed output stays after the lifecycle frame.
expect(find.text('line 1\nline 2\n'), findsOneWidget);
expect(find.text('line 1\nline 2'), findsOneWidget);
});
testWidgets('$host: finished commands show their exit status', (