From de7253dcdf98cf1daba3feab340e0ee871af2308 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 11 Apr 2026 17:26:17 +0000 Subject: [PATCH] fix: use consistent fallback for pickle_key derivation Address review: _pickle_key now uses _acct_id (which has the 'hermes' fallback) instead of raw self._user_id, so both values stay consistent when user_id is empty. --- gateway/platforms/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/platforms/matrix.py b/gateway/platforms/matrix.py index 60a019e44b..01a5a1b941 100644 --- a/gateway/platforms/matrix.py +++ b/gateway/platforms/matrix.py @@ -357,7 +357,7 @@ class MatrixAdapter(BasePlatformAdapter): # pickle_key secures in-memory serialisation; derive from # the same user_id:device_id pair used for the on-disk HMAC. _acct_id = self._user_id or "hermes" - _pickle_key = f"{self._user_id}:{self._device_id}" + _pickle_key = f"{_acct_id}:{self._device_id}" crypto_store = MemoryCryptoStore( account_id=_acct_id, pickle_key=_pickle_key,