fix(analytics): avoid bridge double counting in native collectors

This commit is contained in:
Tam Nhu Tran committed 2026-04-26 18:19:41 -04:00
1 parent fe7cc6f9ba
commit e95b354297
6 files changed
+75 -19

No files matched your search

@@ -173,4 +173,15 @@ describe('codex native usage collector', () => {
expect(entries).toHaveLength(0);
});
it('also skips ccs_runtime-backed codex bridge sessions by default', async () => {
writeCodexRollout(tempRoot, { modelProvider: 'ccs_runtime' });
const entries = await scanCodexNativeUsageEntries({
env: { CODEX_HOME: tempRoot },
homeDir: tempRoot,
});
expect(entries).toHaveLength(0);
});
});