From 9288f0215a0f787488cdf30c850cb509ce21b049 Mon Sep 17 00:00:00 2001 From: eaiadmin Date: Mon, 21 Sep 2026 13:20:56 +0800 Subject: [PATCH] fix: allow office execution registry to register handlers Keep the office execution registry mutable during frontend startup so login can finish routing to the home page without crashing. --- .../frontend/src/skills/shared/officeExecutionRegistry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eai_agentplatform/frontend/src/skills/shared/officeExecutionRegistry.js b/eai_agentplatform/frontend/src/skills/shared/officeExecutionRegistry.js index 98e232d..ea1f846 100644 --- a/eai_agentplatform/frontend/src/skills/shared/officeExecutionRegistry.js +++ b/eai_agentplatform/frontend/src/skills/shared/officeExecutionRegistry.js @@ -5,7 +5,9 @@ * Package executors register themselves via `registerOfficeExecution`. */ -const officeExecutionRegistry = Object.freeze(Object.create(null)) +// This registry is populated by package-level side-effect imports during app startup, +// so it must stay mutable while registrations run. +const officeExecutionRegistry = Object.create(null) /** * Register an execution builder for an office skill.