Stage rows show cached share and cost; Changes explain no_patch_reason
Timeline stage rows add the cached share (when cache_known) and a positive cost: 20.1M tokens · 97% cached · $1.42. The file viewer words each server no_patch_reason, keeping the old truncated/binary text as the fallback.
This commit is contained in:
@@ -211,7 +211,11 @@ class _FileDiffViewerState extends State<FileDiffViewer> {
|
||||
|
||||
Widget _body(BuildContext context, TextStyle mono) {
|
||||
final file = widget.file;
|
||||
if (file.binary) return _message(context, binaryDiffMessage);
|
||||
// A recorded reason is more specific than the generic binary message.
|
||||
final reason = noPatchReasonMessage(file.noPatchReason);
|
||||
if (file.binary && reason == null) {
|
||||
return _message(context, binaryDiffMessage);
|
||||
}
|
||||
if (!file.hasPatch) {
|
||||
return _message(context, patchUnavailableReason(file));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user