Skip to content

The agent that grows with you

style(matrix): separate _MATRIX_PERMANENT_ERRCODES from the preceding function

kshitijk4poor82d61165d0c1
diff --git a/plugins/platforms/matrix/adapter.py b/plugins/platforms/matrix/adapter.py
index e5e67666591..d2df6d7b2cd 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",