Skip to content

Windows App: WSL agent causes severe lag when running threads (agent restart / high resource usage) #13764

@Eternite-0

Description

@Eternite-0

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

1.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 x64 WSL2 with Ubuntu

What issue are you seeing?

Describe the bug

When using the Codex Windows App with the WSL agent enabled, the system becomes extremely laggy whenever a thread is running.

Normal chat works fine, but as soon as a thread starts executing tasks locally, the machine becomes very slow and unresponsive.

It feels like the agent is repeatedly starting processes inside WSL, causing high CPU / IO usage.

Steps to reproduce

  1. Install Codex Windows App from Microsoft Store
  2. Enable WSL agent mode
  3. Open a project and start a thread
  4. Let the thread run any task (analysis / file edits / commands)

Expected behavior

The agent should run inside WSL smoothly without causing significant system lag.

Actual behavior

While the thread is running:

  • System becomes very laggy
  • CPU / disk usage spikes
  • It feels like the agent repeatedly starts processes in WSL
  • Codex UI becomes slow

Interestingly:

  • Normal chat works fine
  • The lag only happens when a thread is actively running

If I switch the agent back to Windows (PowerShell) mode, the lag disappears immediately.

Environment

  • OS: Windows 11
  • Codex App: Microsoft Store version
  • WSL: WSL2 (Ubuntu)
  • Project type: WeChat Mini Program project
  • Agent mode: WSL

Additional context

Previously I also encountered this error before adjusting permissions:

What steps can reproduce the bug?

  1. Install Codex Windows App from the Microsoft Store
  2. Enable the WSL agent in Codex settings
  3. Open a local project
  4. Create or open a thread
  5. Ask Codex to perform any task that runs locally (e.g. analyze the project, modify files, or run commands)
  6. Let the thread start executing

Result: As soon as the thread begins running, the system becomes very laggy. CPU and/or disk usage spikes and the Codex UI becomes slow.

Note: Normal chat works fine. The lag only occurs while a thread is actively running.

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions