summaryrefslogtreecommitdiff
path: root/modules/core/terminal.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/terminal.js')
-rw-r--r--modules/core/terminal.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/core/terminal.js b/modules/core/terminal.js
index cd7f5ae..9360f9e 100644
--- a/modules/core/terminal.js
+++ b/modules/core/terminal.js
@@ -1398,7 +1398,13 @@
// (cron ui-gate-guard) fails if the gate is lost or the bare call returns.
const _uiExp = (function () {
try {
- if (new URLSearchParams(location.search).get('ui') === '1') return true;
+ // ANY `?ui=<value>` opts in except an explicit off ('0'/'false'), because
+ // `?ui=<mode>` is the shell's own shared-link request (?ui=chat deep-links a
+ // mode, validated against lazyIds inside the shell). Requiring exactly '1'
+ // made every shared mode link boot classic with no error — measured
+ // 2026-11-12, the day this gate shipped.
+ const q = new URLSearchParams(location.search).get('ui');
+ if (q !== null && q !== '' && q !== '0' && q !== 'false') return true;
return localStorage.getItem('webx11_ui_experimental') === '1';
} catch (e) { return false; }
})();