Repository navigation
Commit 1560c7a
committed
fix(usage): retain reset history and unify accounting
Keep family selection within the recorded agent and assign each instance once.
Carry discovered SQLite or JSONL sources into batched loading, including empty
current sessions and history encountered before a current artifact.
Share Gateway and Control UI aggregation and total arithmetic, use canonical
pricing for detail logs, and invalidate both result caches on config changes.
Split calendar, cache, selection, and loading owners out of the usage handler.
Add failing-before regressions for reset history, overlapping families, mixed
sources, config replacement, missing-price exports, and log pricing.1 parent 4ec40f1 commit 1560c7a
23 files changed
Lines changed: 2282 additions & 1976 deletions
File tree
- config
- docs/reference
- scripts
- src
- gateway/server-methods
- infra
- ui/src
- e2e
- pages/usage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2990 | 2990 | | |
2991 | 2991 | | |
2992 | 2992 | | |
2993 | | - | |
2994 | 2993 | | |
2995 | 2994 | | |
2996 | 2995 | | |
| |||
3239 | 3238 | | |
3240 | 3239 | | |
3241 | 3240 | | |
3242 | | - | |
| 3241 | + | |
3243 | 3242 | | |
3244 | 3243 | | |
3245 | 3244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
| |||
884 | 883 | | |
885 | 884 | | |
886 | 885 | | |
887 | | - | |
888 | 886 | | |
889 | 887 | | |
890 | 888 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| |||
0 commit comments