aboutsummaryrefslogtreecommitdiff
path: root/modules/core/terminal.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/terminal.js')
-rw-r--r--modules/core/terminal.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/modules/core/terminal.js b/modules/core/terminal.js
index 91bea4c..d0f6cff 100644
--- a/modules/core/terminal.js
+++ b/modules/core/terminal.js
@@ -1391,14 +1391,15 @@
// bump LATEST_VER + main.html ?v=, re-run admin/scripts/probe-ui-modes.py.
// Tracked in .hermes/plans/2026-11-09_*-newos4-ui-rollback.md
// this._safeRegister('UIShellModule', 'UI shell');
- // v4.5.47: Critical ext modules promoted to boot path
- this._safeRegister('EditorModule', 'editor');
- this._safeRegister('ShellModule', 'shell');
- this._safeRegister('AliasModule', 'aliases');
- this._safeRegister('FinderModule', 'finder');
- this._safeRegister('FileManagerModule', 'file manager');
- this._safeRegister('DiffModule', 'diff');
- this._safeRegister('BusyBoxModule', 'busybox');
+ // v4.5.47 used to _safeRegister() seven critical ext classes here (EditorModule,
+ // ShellModule, AliasModule, FinderModule, FileManagerModule, DiffModule,
+ // BusyBoxModule). They are declared in modules/ext/critical-ext-bundle.js, which is
+ // a <script> AFTER module-loader.js — i.e. it does not exist yet when
+ // `new WebX11Terminal()` runs, so every one of those calls was a guaranteed no-op
+ // that only emitted "[SafeRegister] Skipped … is not in the registry map" on each
+ // page load (adding them to the registry map would still resolve to undefined).
+ // critical-ext-bundle.js owns them and registers each one itself on load.
+ // Do NOT re-add them here — that just restores the warnings.
}
_initRegisteredModules() {
for (const [name, mod] of Object.entries(this.moduleManager.modules)) {
@@ -1438,6 +1439,7 @@
DiffModule: typeof DiffModule !== 'undefined' ? DiffModule : undefined,
BusyBoxModule: typeof BusyBoxModule !== 'undefined' ? BusyBoxModule : undefined,
SmartContextModule: typeof SmartContextModule !== 'undefined' ? SmartContextModule : undefined,
+ SimpleGUIModule: typeof SimpleGUIModule !== 'undefined' ? SimpleGUIModule : undefined,
DebugSupervisorModule: typeof DebugSupervisorModule !== 'undefined' ? DebugSupervisorModule : undefined,
UIShellModule: typeof UIShellModule !== 'undefined' ? UIShellModule : undefined,
BillingModule: typeof BillingModule !== 'undefined' ? BillingModule : undefined,