Skip to content

Commit d5e392e

Browse files
thedotmackclaude
andcommitted
Release v5.0.2: Worker health check and async startup improvements
Fixes: - Fixed worker startup reliability with async health checks - Added proper error handling to PM2 process spawning - Worker now verifies health before proceeding with hook operations - Improved handling of PM2 failures when not yet installed Technical changes: - Added isWorkerHealthy() and waitForWorkerHealth() functions to src/shared/worker-utils.ts - Changed ensureWorkerRunning() from synchronous to async with proper await - All hooks now await ensureWorkerRunning for reliable worker communication - Rebuilt all plugin executables with version 5.0.2 - Updated version to 5.0.2 in all metadata files Root cause: ensureWorkerRunning was synchronous and didn't verify worker was actually responsive before proceeding, causing race conditions and startup failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 66ee939 commit d5e392e

4 files changed

Lines changed: 21 additions & 5 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"plugins": [
1111
{
1212
"name": "claude-mem",
13-
"version": "5.0.1",
13+
"version": "5.0.2",
1414
"source": "./plugin",
1515
"description": "Persistent memory system for Claude Code - context compression across sessions"
1616
}

CLAUDE.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Claude-mem is a persistent memory compression system that preserves context across Claude Code sessions. It automatically captures tool usage observations, processes them through the Claude Agent SDK, and makes summaries available to future sessions.
66

7-
**Current Version**: 5.0.1
7+
**Current Version**: 5.0.2
88
**License**: AGPL-3.0
99
**Author**: Alex Newman (@thedotmack)
1010

@@ -311,10 +311,26 @@ This approach is especially valuable when:
311311

312312
For detailed version history and changelog, see [CHANGELOG.md](CHANGELOG.md).
313313

314-
**Current Version**: 5.0.1
314+
**Current Version**: 5.0.2
315315

316316
### Recent Highlights
317317

318+
#### v5.0.2 (2025-11-04)
319+
**Breaking Changes**: None (patch version)
320+
321+
**Fixes**:
322+
- Fixed worker startup reliability with async health checks (PR #51: src/shared/worker-utils.ts)
323+
- Added proper error handling to PM2 process spawning (src/shared/worker-utils.ts)
324+
- Worker now verifies health before proceeding with hook operations
325+
- Improved handling of PM2 failures when not yet installed
326+
327+
**Technical Details**:
328+
- Modified: src/shared/worker-utils.ts (added isWorkerHealthy, waitForWorkerHealth functions)
329+
- Modified: src/hooks/*.ts (all hooks now await ensureWorkerRunning)
330+
- Modified: plugin/scripts/*.js (rebuilt hook executables)
331+
- Root cause: ensureWorkerRunning was synchronous and didn't verify worker was actually responsive before proceeding
332+
- Impact: More reliable worker startup with proper health verification
333+
318334
#### v5.0.1 (2025-11-04)
319335
**Breaking Changes**: None (patch version)
320336

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-mem",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Memory compression system for Claude Code - persist context across sessions",
55
"keywords": [
66
"claude",

plugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "claude-mem",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"description": "Persistent memory system for Claude Code - seamlessly preserve context across sessions",
55
"author": {
66
"name": "Alex Newman"

0 commit comments

Comments
 (0)