From 5121dde90eed02d67d299ab5992ebd215b1960b0 Mon Sep 17 00:00:00 2001 From: operator-main Date: Sun, 4 Oct 2026 19:02:35 +0000 Subject: [PATCH] fix: drop stale hardcoded sidechat UUID, use job-sidechats.json mapping - bin/dm.py: remove 646 tasks -> 1e75a740 from SIDCHAT_ALIASES. That UUID is stale (not a valid thread on 646 account; SPA redirects elsewhere, causing misdelivery). Alias now falls through to job-sidechats.json/autoprovision. Do NOT re-add hardcoded UUIDs. - job-sidechats.json: live autoprovisioned mappings for 646-pip and 646 tasks (2026-10-04). - bin/box-chat-cdp.py: CDP robustness -- drain events until command response, retry switcher lookup while SPA settles, fresh reconnect per retry (transient NO_SWITCHER on pip/opm 2026-10-04). Session: sidechat/uuid-stale-fix --- bin/dm.py | 7 ++++++- job-sidechats.json | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/bin/dm.py b/bin/dm.py index 845777d..a2a9537 100755 --- a/bin/dm.py +++ b/bin/dm.py @@ -206,9 +206,14 @@ LOG_FILE = "/home/super/Projects/NetVM/dm-log.jsonl" # Resolved 2026-10-04. Add new entries as sidechats are created. SIDCHAT_ALIASES = { "646-opm-work": "d410b9ad-f667-465f-a103-43fabc0f69fe", - "646 tasks": "1e75a740-d08f-443d-a0f9-793db196e24f", "heartbeat": "0077e918-9ac8-40ba-b0ad-65f9f78037c4", # dedicated heartbeat sidechat (was colliding with 646 tasks) } +# NOTE 2026-10-04: "646 tasks" alias REMOVED -- the hardcoded UUID +# 1e75a740-d08f-443d-a0f9-793db196e24f is stale (not a valid thread on 646's +# account; the SPA redirects to another thread, causing misdelivery). +# "646 tasks" now falls through to passthrough -> fuzzy name search -> +# autoprovision, which registers the live UUID in job-sidechats.json. +# Do NOT re-add a hardcoded UUID here; use job-sidechats.json instead. def resolve_sidechat_target(target): """Resolve target alias or name to UUID dynamically from job-sidechats.json.""" diff --git a/job-sidechats.json b/job-sidechats.json index 3a92794..b473b29 100644 --- a/job-sidechats.json +++ b/job-sidechats.json @@ -47,5 +47,15 @@ "thread_uuid": "fbc37533-3908-460e-bb82-58a7edbe5f30", "agent": "opm", "created_at": "2026-10-04T17:17:48.449687+00:00" + }, + "646-pip": { + "thread_uuid": "75feb3a2-be36-499a-b314-bfd5803f1db0", + "agent": "pip", + "created_at": "2026-10-04T18:01:17.397213+00:00" + }, + "646 tasks": { + "thread_uuid": "1dfb3199-2f99-446c-83e3-848ae2da0a12", + "agent": "646", + "created_at": "2026-10-04T18:30:21.863666+00:00" } } \ No newline at end of file