Commit Graph
10 Commits
Author SHA1 Message Date
dsh-ci-bot 70607a9de5 docs(desktop): state that an appended predecessor is skipped, not collected
The dedupe sentence claimed records appended before a rotation stay in
one segment, which implies they are collected. The predecessor is
skipped, so those records are not collected at all. Correct the English
and Chinese guides and the readOperationHistory contract.
2026-11-18 13:02:42 +08:00
dsh-ci-bot 4b77d9c01e fix(desktop): deduplicate history segments by exact file identity
A segment rotated after an append is still one file: comparing size and
modification time split it into two segments and collected its records
twice. Deduplicate by the bigint device and inode only, which stays exact
for a Windows 64-bit file ID, and pin that precision with a test whose
stat mock returns Number identities when called without the bigint option.
Narrow fileIdentity to BigIntStats and inline both segment names.
2026-11-18 11:04:40 +08:00
dsh-ci-bot 3bdf5aa56c fix(desktop): report read segments and keep colliding predecessors
filesRead now counts owned segments that yielded bytes instead of
distinct identities, so two segments read under one colliding file ID
report 2. The rotation predecessor is deduplicated only when its handle
also reports the size and nanosecond modification time of the segment
already read: a reused Windows file ID cannot defeat the rotation check,
and an identity collision alone keeps the segment. The path stat that
could treat a transient failure as a rotation is removed.

Also fix the two oxlint errors in the retry loop and the cancellation
test, clear the open mock between tests so call-count assertions do not
depend on execution order, and document the bounded Windows retry and the
dedupe rule in both desktop diagnostics guides.
2026-11-18 07:40:35 +08:00
winewill 5be33a66d2 test(desktop): isolate diagnostic fixtures and clarify record limits 2026-10-26 11:12:50 +08:00
winewill 36dce6b596 fix(desktop): preserve operation identity and bound diagnostic shutdown 2026-10-23 14:36:04 +08:00
winewill 0c828117f8 fix(desktop): prioritize startup evidence in bounded reports 2026-10-23 13:39:57 +08:00
winewill 77ee0be32d fix(desktop): align diagnostic limits and recovery copy 2026-10-23 13:26:09 +08:00
winewill dd746aa580 fix(desktop): preserve recovery failure while report is unavailable 2026-10-23 13:21:11 +08:00
winewill 1879b32f95 fix(desktop): preserve diagnostics across shipped locales 2026-10-23 13:03:30 +08:00
winewill 2e62e83960 docs(desktop): extract recovery and diagnostics reference 2026-10-22 15:00:45 +08:00