Show a chat turn's changed files as a chip that opens its diff

The answer footer shows '3 files changed +9 -2'; tapping opens the turn's
files in the sheet (wide) or a full-screen page (narrow), and a file opens
the run Changes diff viewer. Patches load through the chat's own gateway.
This commit is contained in:
2026-11-09 16:08:35 +00:00
parent 0696ab849a
commit 3374bea2ef
15 changed files with 1155 additions and 36 deletions
+5
View File
@@ -21,6 +21,7 @@
import 'package:pipelines_app/core/api_gateway.dart';
import 'chat_new_session_fixture.dart';
import 'chat_turn_diff_fixture.dart';
import 'chat_question_fixture.dart';
import 'chat_scroll_fixture.dart';
@@ -374,7 +375,11 @@ JsonMap? perfChatReply(JsonMap request) {
'next_cursor': '',
'has_more': false,
},
if (_params['turndiffs'] == '1')
'chat_turn_diffs': chatTurnDiffFixtureList(session),
};
case 'chat_turn_diff':
return chatTurnDiffFixtureReply(id, request);
}
return null;
}