Skip to content

Diff panel shows ~3 million changed lines, causes severe performance issues and freezes on macOS #11179

Open

Description

@menesekinci

What version of the Codex App are you using (From “About Codex” dialog)?

260208.1016 (571)

What subscription do you have?

Plus

What issue are you seeing?

Image

I’m experiencing a serious performance issue with the Codex macOS desktop app. The Diff panel incorrectly shows around 3 million modified lines of code, even though the actual changes are nowhere near that size.

Because of this:

  • The app becomes extremely slow and unresponsive
  • CPU and memory usage spike heavily
  • The UI frequently freezes
  • The issue does not resolve itself and persists across usage

The Diff panel seems to get into a broken state where it thinks millions of lines have changed, and once this happens, the application becomes almost unusable.

Expected behavior:

  • Diff panel should accurately reflect the actual number of changed lines
  • App should remain responsive and performant

Actual behavior:

  • Diff panel shows millions of changed lines incorrectly
  • App becomes very heavy, slow, and frequently freezes

Environment:

  • OS: macOS (Apple Silicon)
  • App: Codex macOS desktop app
  • Happens consistently once triggered

This is very frustrating and makes the app difficult to use for real development work. Any guidance or fix would be appreciated.

What steps can reproduce the bug?

  1. Open a project in the Codex macOS desktop app
  2. Make normal code changes (small or medium sized)
  3. Open the Diff panel
  4. The Diff panel reports ~3,000,000 changed lines
  5. App starts lagging badly and often freezes

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on Feb 9, 2026
  2. robertmsale commented on Feb 9, 2026

    @robertmsale

    I'd like to add to this. Not experiencing the same issue but related.

    Image

    As the conversation fills up with these diffs, the Electron Renderer process balloons in memory usage and the app becomes extremely sluggish over time. If you restart the app, load the same conversation, all of those cards are gone and memory usage returns to normal. I think if y'all make these cards disappear from the convo if the user doesn't press review or undo it will drastically improve performance.

  3. JazZyzJ commented on Feb 10, 2026

    @JazZyzJ

    the same:

    Image

    when i start a new project, this happens and i can not use this app because of high performance issues(nearly freezing)

    also put my activity monitor screenshot:

    Image

    note: different with @robertmsale issue, i just opened a new git repo. After I delete this project the issue disappeared

  4. etraut-openai commented on Feb 14, 2026

    @etraut-openai
    Contributor

    We've fixed a bunch of perf issues over the past week. Are you still seeing this problem with the latest version?

  5. robertmsale commented on Feb 14, 2026

    @robertmsale

    Are you still seeing this problem with the latest version?

    For me, all performance issues are gone :) memory usage is not growing out of control with any conversations.

  6. szabizs commented on Feb 15, 2026

    @szabizs

    Indeed; I see significant improvements regarding this issue.

  7. pllopis commented on Feb 26, 2026

    @pllopis

    I'd like to re-open as this is still an issue on the latest version as of today: Version 26.224.1209 (697)

    Image

    Not sure if that's the reason but app freezes/scrolls at ~1fps sometimes and generally feels super sluggish.

  8. pllopis commented on Feb 26, 2026

    @pllopis

    I also think that Codex is causing syspolicyd to go crazy and use 100% cpu which is likely contributing to the sluggishness. Looking at open files of syspolicyd shows a very long list involving "Codex" when the cpu spikes happen.

    Image

    And if I run: sudo fs_usage -w -f exec

    Then I see a gazillion lines of posix_spawn referencing my project directory. To clarify, the path below is NOT a binary, it's the directory at the root of my project.

    12:15:23.856097 posix_spawn [ 2] </path/to/my/project>

    It seems that Codex is doing this in a loop many times per second which triggers syspolicyd to scan and cause high cpu usage?

  9. eddiesanjuan commented on Mar 18, 2026

    @eddiesanjuan

    Has anyone found a solution to this? I'm sitting here on March 17th still having this exact same issue where it's showing a crazy line diff in one of my repos and when I try to work in that repo it's running incredibly laggy and slow.

  10. lukaszciastko commented on Apr 15, 2026

    @lukaszciastko
    Image

    April 15, the issues is still there. And codex made it even worse now, because clicking on a file link opens the side panel instead of VS Code like before, and that's when the whole app freezes.

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

    appIssues related to the Codex desktop appbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions