Merge current main and preserve Material chat cleanup

This commit is contained in:
2026-11-11 20:53:58 +00:00
116 changed files with 1163 additions and 1089 deletions
@@ -135,6 +135,20 @@ void main() {
expect(find.text('model-b'), findsOneWidget);
});
testWidgets('choosing the current model only dismisses the chooser', (
tester,
) async {
final gateway = _ModelGateway()..modelsReply = _catalog;
await _openThread(tester, gateway);
await _openChooser(tester);
await tester.tap(find.text('Model Alpha'));
await tester.pumpAndSettle();
expect(find.byKey(const Key('chat-model-chooser')), findsNothing);
expect(gateway.lastFields('chat_model'), isNull);
});
testWidgets('a refusal keeps the previous model and shows the reason', (
tester,
) async {