codex - 💡(How to fix) Fix VS Code Codex extension spawns dozens of concurrent ripgrep processes for plugin asset lookups [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#22421Fetched 2026-05-14 03:36:18
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.506.31421

What subscription do you have?

ChatGPT Pro

Which IDE are you using?

VS Code

What platform is your computer?

macOS, Apple Silicon / ARM64

What issue are you seeing?

The Codex/OpenAI VS Code extension spawned dozens of concurrent rg --files processes while resolving Codex plugin/skill asset files under ~/.codex/plugins/cache/openai-curated/.... This caused severe CPU load and made the machine effectively unusable. This has happened a number of times and not initiated by the user. On different occasions 50 and 74 copies, overwhelming the CPUs and making the machine unusable for extended periods.

What steps can reproduce the bug?

  1. Open a large VS Code workspace with the OpenAI/Codex extension enabled.
  2. Start or resume a Codex session in the workspace.
  3. Have Codex load or reference installed plugin/skill metadata/assets, for example GitHub, Linear, Notion, Slack, or Teams skills.
  4. Watch running processes with Activity Monitor or ps.
  5. Observe many concurrent VS Code ripgrep processes spawned with commands like rg --files ... ~/.codex/plugins/cache/openai-curated/.../assets/....

I did not explicitly ask Codex to run rg; these processes were spawned by the VS Code extension/app-server while resolving plugin or skill asset files.

What is the expected behavior?

The Codex VS Code extension should resolve plugin/skill asset files without spawning dozens of concurrent ripgrep processes.

Expected behaviour:

  • Use direct file paths or cached asset metadata where possible.
  • Bound any filesystem search concurrency.
  • Avoid broad rg --files --no-ignore --follow scans for each individual asset.
  • Keep CPU usage low enough that the IDE and local dev/test processes remain responsive.

Additional information

Additional context:

  • The spawned processes used VS Code’s bundled ripgrep binary: /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg

  • The parent process was the VS Code extension host, which also had the Codex app-server child: ~/.vscode/extensions/openai.chatgpt-26.506.31421-darwin-arm64/bin/macos-aarch64/codex app-server --analytics-default-enabled

  • The ripgrep commands targeted Codex plugin/skill asset paths such as: ~/.codex/plugins/cache/openai-curated/github/.../assets/github.png ~/.codex/plugins/cache/openai-curated/linear/.../assets/linear.png ~/.codex/plugins/cache/openai-curated/notion/.../assets/notion.png ~/.codex/plugins/cache/openai-curated/slack/.../assets/slack.png ~/.codex/plugins/cache/openai-curated/teams/.../assets/teams.svg

  • The commands included flags like: --files --hidden --case-sensitive --no-require-git --no-ignore --follow --no-config --no-ignore-global

  • This was not an intentional repo search requested by the user. It appeared to be internal extension/plugin asset resolution.

  • Impact: CPU spiked heavily, and the local development/test workflow became effectively unusable until the processes completed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix VS Code Codex extension spawns dozens of concurrent ripgrep processes for plugin asset lookups [1 comments, 2 participants]