-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[extension] Runaway rg processes + high CPU/RAM after extension update #13717
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingextensionIssues related to the VS Code extensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an updateBehaviors that worked in previous versions but were broken due to an updatetool-callsIssues related to tool callingIssues related to tool calling
Description
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
- Open VS Code with a normal workspace (~10k files).
- Work normally with the Codex extension enabled.
- After some time, CPU rises and many
rgprocesses appear.
Observed behavior
- Repeated
rgcommand 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 cwdfor thosergprocesses is/home/<user>.- Frequent log errors:
local-environments is not supported in the extensionReceived broadcast but no handler is configured method=thread-stream-state-changeddatabase is lockedCodex 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?
- Start VS Code with the Codex extension enabled (version 26.5304.20706).
- Open a regular workspace (about ~10k files, mixed source/docs/logs).
- Open Codex chat panel and use it normally (ask questions, read files, continue conversation).
- Wait a few minutes; in some sessions it happens quickly after reconnect/reload.
- Observe process list:
- many
rgchild 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>
- many
- 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 extensionReceived broadcast but no handler is configured method=thread-stream-state-changeddatabase is lockedCodex 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
rgchildren 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingextensionIssues related to the VS Code extensionIssues related to the VS Code extensionregressionBehaviors that worked in previous versions but were broken due to an updateBehaviors that worked in previous versions but were broken due to an updatetool-callsIssues related to tool callingIssues related to tool calling