This repository was archived by the owner on Jul 30, 2026. It is now read-only.
fix(tui): unify cached snapshots to bound idle memory - #173
Merged
Conversation
Build Usage and Sessions from one confirmed source fold, persist all public projections in an atomic schema-39 bundle, and release parse accumulators after snapshot publication.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (19)
Walkthrough该变更将 TUI 数据加载改为统一 bundle 流程,新增会话聚合与 source-space 统计,升级 schema-39 多投影视图缓存,并让 TUI 通过缓存或内存投影管理 Group By、会话快照、后台刷新与失败降级。 ChangesTUI bundle pipeline
Estimated code review effort: 5 (Critical) | ~120 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 20, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
TuiAcconly when cache persistence fails, with an explicit warning.TUI behavior
Schema 38 is intentionally an explicit miss, so the first launch after upgrade performs one rebuild. On the measured corpus, the resulting schema-39 bundle is about 8.36 MB.
Verification
cargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo fmt --all -- --checkcargo build --release -p tokscale-cliControlled release-build measurements used an isolated copy of the same local corpus:
These figures describe this corpus and environment rather than a universal memory ceiling.
Summary by CodeRabbit
新功能
改进