Skip to content

fix(hooks): add clear to SessionStart matcher#76

Open
bmunoz89 wants to merge 1 commit intoGentleman-Programming:mainfrom
bmunoz89:fix/session-start-clear-matcher
Open

fix(hooks): add clear to SessionStart matcher#76
bmunoz89 wants to merge 1 commit intoGentleman-Programming:mainfrom
bmunoz89:fix/session-start-clear-matcher

Conversation

@bmunoz89
Copy link

Summary

  • Add clear to the SessionStart hook matcher so engram reloads memory context on /clear

Motivation

Closes #75 — the SessionStart hook only matched "startup", missing the "clear" source event.

Changes

  • plugin/claude-code/hooks/hooks.json: matcher "startup""startup|clear"

Test plan

  • Manually tested: ran /clear in Claude Code and confirmed session-start hook fires
  • go test ./... passes (no Go code changed — hooks.json only)

The SessionStart hook only matched "startup", so it did not
fire on /clear. Adding "clear" to the matcher ensures engram
reloads memory context when the conversation is cleared.

Closes Gentleman-Programming#75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SessionStart hook does not fire on /clear

1 participant