Repository navigation
Conversation
When resuming Claude sessions, old processes with --resume flags were never killed, causing them to accumulate in memory (60+ processes, ~3GB of RAM). This fix kills old processes with the same sessionId before launching a new one. Fixes: Memory leak from zombie claude processes
Contributor
|
steipete
reviewed
Jan 13, 2026
| # Prefer a Developer ID Application cert. | ||
| # Prefer ClawdisDev (custom identity). | ||
| preferred="$(security find-identity -p codesigning -v 2>/dev/null \ | ||
| | awk -F'\"' '/ClawdisDev/ { print $2; exit }')" |
Contributor
Author
There was a problem hiding this comment.
My bad I commited a personal fix for running the app. The only important part is the cli runner
steipete
reviewed
Jan 13, 2026
| sign_item_no_runtime() { | ||
| local target="$1" | ||
| local entitlements="$2" | ||
| # Sign without hardened runtime (needed for bun-compiled binaries with native modules) |
Contributor
There was a problem hiding this comment.
We do not ship bun anymore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When resuming Claude sessions, old processes with --resume flags were never killed, causing them to accumulate in memory (60+ processes, ~3GB of RAM).
This fix kills old processes with the same sessionId before launching a new one.
Changes
Fixes memory leak from zombie claude processes.