mem0-plugin hooks: honor auto_save=false in capture entry points (#5450)

This commit is contained in:
Atahan Yıldırım
2026-06-08 21:24:24 +05:30
committed by GitHub
parent f32eb4406b
commit d31fa168eb
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -32,6 +32,11 @@ fi
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
. "$SCRIPT_DIR/_identity.sh" 2>/dev/null || true
# Honor auto_save=false in ~/.mem0/settings.json
if [ "${MEM0_AUTO_SAVE:-true}" = "false" ]; then
exit 0
fi
if [ -z "${MEM0_API_KEY:-}" ]; then
exit 0
fi