Commit c386669
committed
fix(memory): align session file counter denominator with indexer filter
scanSessionFiles used .endsWith('.jsonl') for the denominator, but the
indexer (listSessionFilesForAgent) uses isUsageCountedSessionTranscriptFileName
which also includes .jsonl.reset.* and .jsonl.deleted.* archive artifacts.
This filter divergence caused the sessions counter to show N > M (numerator
exceeds denominator) when archive files exist.
Switch the denominator filter to isUsageCountedSessionTranscriptFileName
to match the indexer's enumeration.
Fixes #773381 parent 3563850 commit c386669
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
529 | | - | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| |||
0 commit comments