Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions hooks/scripts/session-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,16 @@ async function main() {
}

if (!config.isConfigured) {
// Silently skip if not configured
console.log(JSON.stringify({ continue: true }));
// Warn once per session instead of failing silently: when the key is unset the
// Stop/inject hooks also no-op invisibly, so the user assumes memory works.
// SessionStart runs once, so this won't spam.
console.log(JSON.stringify({
continue: true,
systemMessage:
'⚠️ EverMem: EVERMEM_API_KEY not set — memory is disabled (nothing saved or ' +
'recalled). Set the key in your environment and restart Claude Code; verify ' +
'with /evermem:help.'
}));
return;
}

Expand Down