Skip to content

[extension] Runaway rg processes + high CPU/RAM after extension update #13717

@juandediosyanez

Description

@juandediosyanez

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

26.5304.20706

What subscription do you have?

ChatGPT PRO

What platform is your computer?

Linux 6.17.0-14-generic x86_64 x86_64; VS Code 1.110.0 (Snap); Ubuntu 24.04.4 LTS

What issue are you seeing?

Summary

After updating the Codex VS Code extension to 26.5304.20706, VS Code intermittently spawns runaway ripgrep (rg) processes and CPU usage becomes very high. In severe cases, RAM usage grows and VS Code can crash.

Environment

  • VS Code: 1.110.0 (Snap)
  • Codex extension: 26.5304.20706
  • OS: Ubuntu 24.04.4 LTS
  • Kernel: Linux 6.17.0-14-generic x86_64

Reproduction steps

  1. Open VS Code with a normal workspace (~10k files).
  2. Work normally with the Codex extension enabled.
  3. After some time, CPU rises and many rg processes appear.

Observed behavior

  • Repeated rg command launched by extension-host:
    /snap/code/.../@vscode/ripgrep/bin/rg --files --hidden --case-sensitive --no-require-git --glob-case-insensitive --ignore-file-case-insensitive --no-ignore-parent --follow --no-config
  • cwd for those rg processes is /home/<user>.
  • Frequent log errors:
    • local-environments is not supported in the extension
    • Received broadcast but no handler is configured method=thread-stream-state-changed
    • database is locked
    • Codex process errored: Codex process is not available
  • CPU remains high and VS Code becomes unstable.

Expected behavior

No runaway rg spawning and stable CPU/RAM usage during normal usage.

Temporary workaround

A local guard that kills runaway rg children reduces RAM blowups, but this does not fix the root cause.

What steps can reproduce the bug?

  1. Start VS Code with the Codex extension enabled (version 26.5304.20706).
  2. Open a regular workspace (about ~10k files, mixed source/docs/logs).
  3. Open Codex chat panel and use it normally (ask questions, read files, continue conversation).
  4. Wait a few minutes; in some sessions it happens quickly after reconnect/reload.
  5. Observe process list:
    • many rg child processes are spawned by VS Code extension-host
    • command pattern:
      /snap/code/.../@vscode/ripgrep/bin/rg --files --hidden --case-sensitive --no-require-git --glob-case-insensitive --ignore-file-case-insensitive --no-ignore-parent --follow --no-config
    • cwd observed for runaway scans: /home/<user>
  6. CPU rises significantly; RAM can grow until VS Code becomes unstable or crashes.

Related recurring errors seen in extension logs:

  • local-environments is not supported in the extension
  • Received broadcast but no handler is configured method=thread-stream-state-changed
  • database is locked
  • Codex process is not available

What is the expected behavior?

  • Codex extension should not spawn runaway ripgrep scans outside the intended workspace scope.
  • CPU and RAM usage should remain stable during normal Codex usage.
  • No repeated extension-host error loops.
  • VS Code should remain responsive and not crash.

Additional information

Environment:

  • VS Code: 1.110.0 (Snap)
  • Codex extension: 26.5304.20706
  • OS: Ubuntu 24.04.4 LTS
  • Kernel: Linux 6.17.0-14-generic x86_64

Temporary mitigation used locally:

  • A guard process that kills runaway rg children reduced RAM blowups, but this is only a workaround and not a root-cause fix.

Notes:

  • The issue became noticeable again after updating the OpenAI/Codex extension.
  • This report intentionally redacts all personal/project identifiers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an updatetool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions