Skip to content

Codex implementation marks newly created files as 100% human-edited #544

@xavierutox

Description

@xavierutox

When a new file is generated using Codex, the file is incorrectly reported as 100% human-edited.
The AI/Human contribution percentage is only correctly calculated for existing files that are modified, but not for newly created files.

In contrast, with the Copilot implementation, newly generated files are correctly labeled with the appropriate AI contribution percentage.

Steps to Reproduce

  • Ask Codex to generate a new file.
  • Run git-ai status.

Expected Behavior

  • Newly generated files should be reported as 100% AI-generated, or reflect the correct AI contribution percentage.

Actual Behavior

  • Newly generated files are marked as 100% human-edited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-supportSupport for an AI coding agentquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions