History

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

Theo Browne committed 3 months ago

Commit 0d388661 parent f993fa13 files · +159 −3Browse files

Showing the changes to apps/server/src/usage/usageScanCache.ts (1 of 3 files). Show all

Unified · Split

apps/server/src/usage/usageScanCache.ts+3−1
@@ -18,7 +18,9 @@ import type { UsageProviderKind } from "@t3tools/contracts"; · 17 unmodified lines
1818
1919 import type { UsageRecord } from "./usageTranscripts.ts";
2020
21−export const USAGE_SCAN_CACHE_VERSION = 1 as const;
21+// v2: Codex fork-copy suppression changed what a file parses to, so v1
22+// entries would keep serving double-counted records forever.
23+export const USAGE_SCAN_CACHE_VERSION = 2 as const;
2224
2325 export interface CachedFile {
2426 readonly size: number;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t