chore(app): chat probes take platform/theme/tasks queries; note chat chrome fixes

This commit is contained in:
2026-10-31 03:14:35 +00:00
parent 481b1f6fff
commit 92095f8a4e
3 changed files with 155 additions and 11 deletions
+16 -5
View File
@@ -132,11 +132,22 @@ const _probeStyle = String.fromEnvironment(
void main() {
final dark = Uri.base.queryParameters['dark'] == '1';
final unseen = Uri.base.queryParameters['unseen'] == '1';
final home = ChatSessionsScreen(
gateway: _FixtureGateway(bumpAfterFirstRead: unseen),
onOpen: (_) {},
);
if (_probeStyle == 'cupertino') {
final gateway = _FixtureGateway(bumpAfterFirstRead: unseen);
// `?many=1` adds enough chats to scroll the list behind the bar.
if (Uri.base.queryParameters['many'] == '1') {
gateway._sessions.addAll([
for (var i = 0; i < 24; i++)
{
'id': 'probe-many-$i',
'title': 'Fixture chat ${i + 1}',
'directory': '/workspace/demo',
},
]);
}
final home = ChatSessionsScreen(gateway: gateway, onOpen: (_) {});
// `?platform=cupertino` overrides the compile-time style.
final style = Uri.base.queryParameters['platform'] ?? _probeStyle;
if (style == 'cupertino') {
runApp(
CupertinoApp(
theme: CupertinoThemeData(