Skip to content

Multiple hook errors: UserPromptSubmit, PostToolUse (Bash, Edit, Grep, Read) #897

Description

@dayakarreddyn

Multiple hook errors: UserPromptSubmit, PostToolUse (Bash, Edit, Grep, Read)

Problem

Claude-mem is throwing multiple hook errors during operation, affecting various tool interactions including user prompts and post-tool-use hooks for Bash, Edit, Grep, and Read operations.

Environment

  • Claude-mem Version: 9.0.12
  • Claude Code Version: 2.1.29
  • Node.js: v25.3.0
  • Bun: 1.3.8
  • Operating System: macOS 26.3 (arm64)
  • Platform: darwin
  • Dev Mode: No

Configuration Status

  • Plugin Path: ~/.claude/plugins/marketplaces/thedotmack
  • Data Directory: ~/.claude-mem
  • Database Path: ~/.claude-mem/claude-mem.db
  • Database Exists: ❌ No
  • Settings File: ~/.claude-mem/settings.json
  • Settings Exist: ❌ No
  • Worker Running: ❌ No

Observed Behavior

The following hook errors are occurring:

UserPromptSubmit hook error
PostToolUse:Bash hook error
PostToolUse:Edit hook error
PostToolUse:Grep hook error
PostToolUse:Grep hook error
PostToolUse:Read hook error

Expected Behavior

Claude-mem should execute hooks without errors during normal operation. All tool use hooks should complete successfully.

Possible Causes

Based on the diagnostics:

  1. Missing database: The database file (~/.claude-mem/claude-mem.db) does not exist
  2. Missing configuration: Settings file (~/.claude-mem/settings.json) does not exist
  3. Worker not running: The worker process is not active

These missing components may be preventing hooks from executing properly.

Additional Context

This appears to be either a fresh installation that hasn't been properly initialized, or a corrupted installation where critical files have been removed. The hook errors suggest that claude-mem is attempting to interact with the database or configuration files that don't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions