diff --git a/plugins/platforms/matrix/adapter.py b/plugins/platforms/matrix/adapter.py index e5e6766659..d2df6d7b2c 100644 --- a/plugins/platforms/matrix/adapter.py +++ b/plugins/platforms/matrix/adapter.py @@ -195,6 +195,8 @@ def _strip_reply_fallback(body: str) -> str: continue stripped.append(line) return "\n".join(stripped) if stripped else body + + # Auth errcodes that genuinely require re-authentication (never retried). _MATRIX_PERMANENT_ERRCODES = frozenset({ "m_unknown_token",