Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

clarify the message-pattern bar in extensionErrors header

[._.]/ Adam Eivya547d90098bd
diff --git a/server/lib/extensionErrors.js b/server/lib/extensionErrors.js
index 44328f3f04..53b0e2f616 100644
--- a/server/lib/extensionErrors.js
+++ b/server/lib/extensionErrors.js
@@ -14,12 +14,10 @@
* throttle gate rather than filtering at the Review Hub on read.
*
* Detection is provenance-first: an extension URL scheme in the script source
- * or the stack is proof the frame is not ours. Message matching is the
- * fallback for stackless rejections (`reject('Failed to connect to MetaMask')`
- * carries no frames at all) and is deliberately kept to a short list of
- * vendor/runtime strings PortOS provably never emits — a message pattern is a
- * blunt instrument that can hide a real bug, so each addition must be verified
- * absent from our own source first.
+ * or the stack is proof the frame is not ours, and that covers every case
+ * observed in practice. Message matching only backstops stackless rejections
+ * (`reject('Failed to connect to MetaMask')` carries no frames at all); see
+ * EXTENSION_MESSAGE_RE below for the bar a new pattern has to clear.
*
* This module is MIRRORED at client/src/lib/extensionErrors.js. This server
* copy is authoritative; parity is enforced by extensionErrors.mirror.test.js.