Skip to content

Codex inference dedup bypassed when entry.ID is empty #6

Description

@rajfirke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparserParser related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions