Make chat reasoning a footer chip that opens a live sheet like tools

This commit is contained in:
2026-10-24 18:13:03 +01:00
parent ef575898f2
commit 5cb43b6dc8
11 changed files with 646 additions and 165 deletions
@@ -168,8 +168,8 @@ void main() {
);
await tester.pumpAndSettle();
// The turn's reasoning is one disclosure below its answer; it counts the
// steps of every message folded into the turn.
// The turn's reasoning is one footer chip below its answer; it counts
// the steps of every message folded into the turn.
expect(find.text('Reasoning · 2 steps'), findsOneWidget);
await tester.tap(find.text('Load older'));
@@ -182,10 +182,18 @@ void main() {
'NEWEST folded reasoning body.',
'OLDEST folded reasoning body.',
]) {
expect(find.text(body), findsOneWidget, reason: body);
expect(
find.descendant(
of: find.byKey(const Key('chat-reasoning-sheet')),
matching: find.text(body),
),
findsOneWidget,
reason: body,
);
}
await tester.tap(find.text('Reasoning · 4 steps'));
await tester.tapAt(const Offset(10, 10));
await tester.pumpAndSettle();
expect(find.text('OLDEST folded reasoning body.'), findsNothing);
expect(
find.text('Load older'),
keepsControl ? findsOneWidget : findsNothing,