You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cmd on macOS causes Command Code to consume approximately 4 GB of V8 heap and abort with FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory about 15 seconds after launch.
This was observed on Command Code 1.10.0. Earlier heap-exhaustion reports such as #522 were closed as fixed in v1, with a request to open a new issue if the problem still occurs on v1.4.0 or later. Unlike those long-session reports, this crash occurs during CLI startup, before normal use.
Expected Behavior
cmd should start the interactive Command Code UI without exhausting the Node.js heap.
Actual Behavior
The process reaches roughly 4.05 GB of live heap, fails repeated Mark-Compact collections, and exits with SIGABRT:
The allocation stack ends in StringDecoder::DecodeData / NewStringFromUtf8, and the asynchronous stack includes node::fs, which may indicate that a large amount of file-backed data is being decoded during startup.
Steps to reproduce the issue
Use Node.js v22.22.2 installed through nvm.
Install/use global command-code@1.10.0.
Run cmd from zsh on macOS.
Wait approximately 15 seconds.
Observe the process abort with a JavaScript heap out-of-memory error.
Command Code Version
1.10.0
Operating System
macOS
Terminal/IDE
Terminal application not yet identified
Shell
zsh
Additional context
macOS 26.6 (build 25G72)
Apple Silicon (arm64)
Node.js v22.22.2
npm 10.9.7
Command Code is installed globally under nvm.
The failure happens around the default V8 heap ceiling; increasing the heap has not been tested and should not be required for normal startup.
Related historical report: OOM bug on heap memory #522. Its maintainer response says v1 bounded session retention and asks for a new issue for heap OOMs on v1.4.0+.
Summary
Running
cmdon macOS causes Command Code to consume approximately 4 GB of V8 heap and abort withFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memoryabout 15 seconds after launch.This was observed on Command Code
1.10.0. Earlier heap-exhaustion reports such as #522 were closed as fixed in v1, with a request to open a new issue if the problem still occurs on v1.4.0 or later. Unlike those long-session reports, this crash occurs during CLI startup, before normal use.Expected Behavior
cmdshould start the interactive Command Code UI without exhausting the Node.js heap.Actual Behavior
The process reaches roughly 4.05 GB of live heap, fails repeated Mark-Compact collections, and exits with
SIGABRT:The allocation stack ends in
StringDecoder::DecodeData/NewStringFromUtf8, and the asynchronous stack includesnode::fs, which may indicate that a large amount of file-backed data is being decoded during startup.Steps to reproduce the issue
v22.22.2installed through nvm.command-code@1.10.0.cmdfrom zsh on macOS.Command Code Version
1.10.0
Operating System
macOS
Terminal/IDE
Terminal application not yet identified
Shell
zsh
Additional context
arm64)