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:
2026-11-04 17:26:31 +00:00
parent b5927505cc
commit d3a2369d1f
9 changed files with 202 additions and 5 deletions
@@ -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));
}