perf: match cost history fingerprint to visible content - #2067
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 2:12 PM ET / 18:12 UTC. Summary Reproducibility: yes. at source level. Current main compares complete daily entries, so hidden accounting-field changes can invalidate the submenu; the PR body also supplies packaged stress and benchmark evidence for the real menu path. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the render-aligned fingerprint and regression tests after exact-head checks pass, with the repository owner retaining or relocating the unreleased changelog credit through the normal release process. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main compares complete daily entries, so hidden accounting-field changes can invalidate the submenu; the PR body also supplies packaged stress and benchmark evidence for the real menu path. Is this the best way to solve the issue? Yes. The patch uses the same validity helper, ordering, provider filter, field conditions, and row limits as rendering while separately preserving raw empty/nonempty availability. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 300ddee98ec7. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Exact-head proof for
Local screenshots remain private. An installed-tool auto-detection Keychain prompt appeared during isolated app startup; it was denied, no credential was read, and all QA preferences/app-group/widget state were restored exactly. |
Summary
Follow-up to #2063. The original performance fix landed while its deeper review and packaged QA were still running.
Why
The first typed fingerprint still retained complete daily entries, so hidden accounting fields could invalidate the hosted submenu as history grew. This projects the fingerprint onto visible chart/model/project/source data, bounds it to the five rendered projects and two rendered sources, and keeps the raw empty/nonempty state used by submenu availability.
Proof
CostHistoryChartMenuViewTests,StatusMenuCodexCostHistoryRefreshTests, andStatusMenuOpenRefreshTestsmake checkRisk
Low and localized to cost-history hosted-submenu invalidation. No dependencies, persistence, credentials, or provider network behavior changed.