Fix telemetry shutdown noise and improve token usage diagnostics (#444)
Co-authored-by: zuolingxuan <zuolingxuan@bytedance.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
01adc828b5
commit
995a7f070d
@@ -14,6 +14,10 @@ describe('extractSessionIdFromTranscriptFileName', () => {
|
||||
expect(extractSessionIdFromTranscriptFileName('abc-123.jsonl.reset.2026-03-09T03-01-29.968Z')).toBe('abc-123');
|
||||
});
|
||||
|
||||
it('parses deleted reset transcript names', () => {
|
||||
expect(extractSessionIdFromTranscriptFileName('abc-123.deleted.jsonl.reset.2026-03-09T03-01-29.968Z')).toBe('abc-123');
|
||||
});
|
||||
|
||||
it('returns undefined for non-transcript files', () => {
|
||||
expect(extractSessionIdFromTranscriptFileName('sessions.json')).toBeUndefined();
|
||||
expect(extractSessionIdFromTranscriptFileName('abc-123.log')).toBeUndefined();
|
||||
|
||||
Reference in New Issue
Block a user