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.
This commit is contained in:
eaiadmin
2026-09-21 13:20:56 +08:00
parent e8aedd50d2
commit 9288f0215a
@@ -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.