Memory Leak in Vitest: Node Processes Not Releasing Resources

Resolved 💬 2 comments Opened Jun 18, 2025 by sursani Closed Jun 29, 2025

Bug Description
i was writing a bunch of unit tests in claude code and i noticed node (vitest) processes kept growing as it was a very long running task. it seems like system resources are not being cleaned up afterwards. even now i am done with the work and i see the node (vitest) processes staying in my memory. may have to kill them manually.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.27
  • Feedback ID: a51d32eb-a9f1-4cb5-b50b-cb11e13ed04a

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:892:11)\n    at execSync (node:child_process:964:15)\n    at wZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:9014\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at QX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8160)\n    at $S (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7241)\n    at L9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11408)","timestamp":"2025-06-18T15:32:19.187Z"}]

<img width="784" alt="Image" src="https://github.com/user-attachments/assets/bcafe453-1282-4d5d-bf5a-a1e774201435" />

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗