mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-16 10:15:10 +00:00
fix(analytics): avoid bridge double counting in native collectors
This commit is contained in:
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);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user