From 69e153b3dbde0e52a283ca73af2465bd1b893a9f Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 4 May 2026 17:39:17 +0000 Subject: [PATCH] fix(settings/agents): exclude noise from drift detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two false positives surfaced after the Agents tab went live: 1. status (running/idle/paused) is runtime state, not config — drops in and out as agents pick up issues. Removed from _DRIFT_FIELDS. 2. desiredSkills compared raw, but local/* and company/* skills carry per-company hashes/scopes by design (sync_agents_across_companies.py filters local skills with a warning). Comparing them flags every master+mirror pair that has any local skill on master. Now compares only paperclipai/* skills (vendor-shipped, must match). UI shows an inline note explaining the filter. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../app/settings/_components/agents-tab.tsx | 25 +++++++++++-------- web/app.py | 18 ++++++++++++- 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/web-ui/src/app/settings/_components/agents-tab.tsx b/web-ui/src/app/settings/_components/agents-tab.tsx index e939cd6..22eecc7 100644 --- a/web-ui/src/app/settings/_components/agents-tab.tsx +++ b/web-ui/src/app/settings/_components/agents-tab.tsx @@ -336,16 +336,21 @@ export function AgentsTab() {
-
- {data.pairs.length} סוכנים × 2 חברות (CMP master / CMPA mirror) - {totalDrift > 0 && ( - - · {totalDrift} פערי סנכרון - - )} - {missingCount > 0 && ( - · {missingCount} זוגות לא שלמים - )} +
+
+ {data.pairs.length} סוכנים × 2 חברות (CMP master / CMPA mirror) + {totalDrift > 0 && ( + + · {totalDrift} פערי סנכרון + + )} + {missingCount > 0 && ( + · {missingCount} זוגות לא שלמים + )} +
+
+ פערי skills מחושבים על paperclipai/* בלבד. local/* ו-company/* מסוננים — שם שונה בין החברות הוא צפוי. +