Skip to content

codex-results.json is not version-suffixed — mixed-version installs thrash a full re-parse every run #1082

Description

@iamtoruk

Found by upgrade-simulation review of #1078: daily-cache files are version-suffixed (daily-cache.v23.json) so binaries coexist, but codex-results.json is a single unsuffixed file with an internal version field. A v10 and a v11 binary (e.g. desktop app pinned to an older CLI alongside an upgraded brew CLI, or a rollback in flight) clobber each other's file and each re-parses all codex sessions on EVERY invocation — measured 9.2-9.4s vs 5.3s warm (+75%). Correctness is fine on both sides; this is pure cost. Fix: suffix the filename with its version like the daily cache.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions