Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

fix(control-pane): handle proximity HTTP errors (#3191)

Tamer9606a741af13
diff --git a/scripts/lib/control-pane/proximity-viz.js b/scripts/lib/control-pane/proximity-viz.js
index 5c40a0ac4..2688e8b6b 100644
--- a/scripts/lib/control-pane/proximity-viz.js
+++ b/scripts/lib/control-pane/proximity-viz.js
@@ -172,7 +172,10 @@ function renderProximityVizHtml() {
}
function poll() {
- fetch('/api/proximity').then(function (r) { return r.json(); }).then(function (data) {
+ fetch('/api/proximity').then(function (r) {
+ if (!r.ok) throw new Error('http ' + r.status);
+ return r.json();
+ }).then(function (data) {
applySnapshot(data && data.enabled ? data : (data || {}));
}).catch(function () {
document.getElementById('status').textContent = 'offline';