Repository navigation
feat(agents): reuse daily statistics for usage overviews - #251
Merged
Merged
Conversation
27 of 28 tasks
xiaoyumuxi
reviewed
Dec 2, 2026
xiaoyumuxi
left a comment
Contributor
There was a problem hiding this comment.
审了一遍。最需要处理的是缓存写入或解码失败会让整个概览读不出来,而不是回退到精确扫描(第 477、545 行);其余是错误码、契约说明和防御性的小问题,详见行内评论。
WhiteZeek
marked this pull request as ready for review
December 3, 2026 03:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs 1lck/Lithe-IDEA#2594
What changes
Windows x64 verification
At
5a88ef8, a two-connection WAL regression reproduced SQLite 517 when an overview published after record deletion had already read its snapshot. Authoritative record changes now reserve the writer before that read. The overview still returns exact totals and yields publication. An unchanged file list takes no write lock for removals. All 53 session-store tests and affected-crate Clippy passed. The follow-up merge (2f236ab) includes Core feat(tree): 紧凑显示时模块根与标记目录自成一行 #259. The project-tree crate and its shared row fixture match the desktop main pin, and the session-store and project-tree unit suites passed on that merge.At
0c390b3, all 52 session-store tests and 85 runtime tests passed on Windows x64. Regression cases cover damaged price, count and speed data, cache writes refused by SQLite, all-agent store reads, and distinct overview request errors. An empty desktop permission selection still returns no records.Clippy, platform test placement, Rust comments/Rustdoc and plugin documentation checks passed.
Windows x64 release benchmark at
0c390b3, two runs of the checked-in harness. All comparisons with exact totals, breakdowns and time series passed. For 175,000 calls, warm reads took 23.8–42.7 ms and three exact scans took 2.79–3.82 s. For 350,000 calls, warm reads took 104.9–220.9 ms and three exact scans took 6.93–8.73 s. In a separate run of the earlier candidate binary on the same machine, warm reads took 20.4–22.5 ms and 160.4–175.4 ms respectively. These timings cover Core only.Original release benchmark, synthetic 175,000 calls across 175 days. Three detail scans on the original Core took 4.97 s. The candidate took 1.10 s on first overview, 19.8–22.8 ms when warm, and 24.8 ms with 1,000 calls in the current day. Results matched the three independent projections. The benchmark excludes desktop rendering.
Warm overview read zero detail rows and 868,608 bytes of speed samples across all three projections. A late insert rebuilt 1,001 detail rows. With 350,000 calls, warm reads took 99.5–103.0 ms.
Trade-off at 175,000 calls: original synthetic ingestion was 0.85 s and the database was 13.16 MB. The candidate took 2.76 s to ingest, using 27.68 MB before rollups and 29.93 MB after rollups. Text search and changed effective prices can still read historical detail.
Desktop #2630 consumes the candidate for integration and must use a merged Core revision before release. Native macOS verification is pending.