fix(server): usage no longer double-counts forked Codex sessions (#5887)

Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
Theo BrowneandClaude Fable 5 authored and GitHub committed 2026-08-09 15:56:17 -07:00
1 parent f993fa1c5f
commit 0d38866dcf
3 files changed
+159 -3

No files matched your search

+3 -1
View File
@@ -18,7 +18,9 @@ import type { UsageProviderKind } from "@t3tools/contracts";
import type { UsageRecord } from "./usageTranscripts.ts";
export const USAGE_SCAN_CACHE_VERSION = 1 as const;
// v2: Codex fork-copy suppression changed what a file parses to, so v1
// entries would keep serving double-counted records forever.
export const USAGE_SCAN_CACHE_VERSION = 2 as const;
export interface CachedFile {
readonly size: number;