Repository navigation
perf(model-info): incrementally aggregate session metrics - #210
Merged
somewan820 merged 6 commits intoAug 29, 2026
Merged
somewan820 merged 6 commits into
somewan820 merged 6 commits into
Conversation
Contributor
Author
|
Hi maintainers — this PR is ready for review. It addresses #188 by incrementally aggregating When you have time, I’d appreciate a maintainer review, particularly of the cache invalidation and lifecycle synchronization design. Thank you! |
somewan820
approved these changes
Aug 29, 2026
somewan820
left a comment
Collaborator
There was a problem hiding this comment.
已完成静态审查。incremental session metrics tracker 覆盖初始化、suffix append、branch/sibling/ancestor 切换、compaction、reset 和 session id reuse,并保持 usage 类型范围;未发现 P0-P2 或死代码问题。P3:可补真实 SessionManager/AgentSession 生命周期集成测试。未运行测试。
somewan820
force-pushed
the
fix/issue-188-model-info-incremental-metrics
branch
from
August 29, 2026 12:35
9c1cc46 to
d581f89
Compare
somewan820
force-pushed
the
fix/issue-188-model-info-incremental-metrics
branch
from
August 29, 2026 12:45
d581f89 to
78ee4f1
Compare
agnitum2009
pushed a commit
to agnitum2009/openpi
that referenced
this pull request
Aug 29, 2026
…#210) * feat(model-info): add session metrics tracker * test(model-info): cover cached prefix traversal * feat(model-info): sync metrics on lifecycle edges * test(model-info): cover repeated ordinary refreshes * bench(model-info): compare session metric scans * fix(bench): model each tool loop as a turn (cherry picked from commit 5cb19c5)
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.
Summary
Verification
node --test --experimental-strip-types tests/extensions/model-info/session-metrics.test.ts tests/extensions/model-info/index.test.ts— 13 passedbun run check— passedbun run test— 917 Node tests and 30 Vitest tests passedbun benchmarks/model-info-session-metrics.ts— full default matrix completedManual TUI smoke was not run because the local
pi listhad no package installed; no unconfigured model call was made.Closes #188