Description
In codex.go, inference dedup only works when entry.ID is non-empty. Events with empty IDs are never checked against seenInference and will double-count tokens/cost.
Fix
Generate a synthetic dedup key for empty-ID events (e.g., hash of model+tokens+timestamp), or skip events without IDs.
Location
internal/parser/codex.go:144-149
Description
In
codex.go, inference dedup only works whenentry.IDis non-empty. Events with empty IDs are never checked againstseenInferenceand will double-count tokens/cost.Fix
Generate a synthetic dedup key for empty-ID events (e.g., hash of model+tokens+timestamp), or skip events without IDs.
Location
internal/parser/codex.go:144-149