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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: fail closed on unreadable autofixer history (#4924)
[._.]/ Adam Eivy5cecbc3e68f4
diff --git a/autofixer/server.js b/autofixer/server.jsindex 4b58c70f15..c1091fff79 100644--- a/autofixer/server.js+++ b/autofixer/server.js@@ -143,7 +143,13 @@ async function ensureHistoryDir() {async function loadIndex() {const index = await readJsonSafe(INDEX_FILE, null);- return index ?? [];+ if (index == null) {+ throw new Error('Autofixer history index is unreadable');+ }+ if (!Array.isArray(index)) {+ throw new Error('Autofixer history index must be an array');+ }+ return index;}async function saveIndex(index) {