From 7fdcab345f0905b49e7368a7908a3f507ee48b24 Mon Sep 17 00:00:00 2001 From: Agando Date: Sun, 18 Oct 2026 18:42:00 +0200 Subject: fix(newos4): stop agent accumulation on reload — stable role ids + boot reconciliation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - spawnAgent() accepts an idHint and is idempotent; boot team uses agent- - _reanimateFromVFS() adopts newest dir per default role, fs.rm()s duplicates/orphans - _bootAgents() awaits async VFS hydration before reconciling, then spawns only gaps - scripts/test-agents-reload.js: 5-boot regression + hydration-race test - v4.6.44 bundle rebuild + cache-bust --- main.html | 6 +- modules/core/core-bundle.js | 197 ++++++++++++++++++++++++++---------- modules/core/module-loader.js | 2 +- modules/core/module-orchestrator.js | 132 +++++++++++++++++------- scripts/test-agents-reload.js | 129 +++++++++++++++++++++++ 5 files changed, 372 insertions(+), 94 deletions(-) create mode 100644 scripts/test-agents-reload.js diff --git a/main.html b/main.html index f3564e6..b9b4d8c 100644 --- a/main.html +++ b/main.html @@ -1349,13 +1349,13 @@ - + - + - +