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
+9
View File
@@ -0,0 +1,9 @@
# Changes: why a file has no patch
The server's `FileChange.no_patch_reason` (`binary`, `file_size`, `budget`,
`lines`, `evidence_size`, `git_status`, `baseline`) is parsed into
`FileChange.noPatchReason` and worded by `noPatchReasonMessage` in
`lib/features/changes/domain/change_wording.dart`. The file viewer shows it in
place of the generic truncated/binary message. A missing, blank or unknown
reason (older server) keeps the old wording. Tests:
`test/features/changes/no_patch_reason_test.dart`.