From 7aed026ffc99f912abd9eb9e5b218e564fa2ddf1 Mon Sep 17 00:00:00 2001 From: logonoff Date: Mon, 25 May 2026 14:10:19 -0400 Subject: [PATCH] OCPBUGS-86491: Fix macOS Option key in pod terminal The NodePolyfillPlugin injects a `process` polyfill with `process.title` set, which causes xterm.js to misidentify the browser as Node.js. This breaks platform detection (`isMac = false`), so the Option key is treated as Meta instead of a compose key on macOS. Delete `process.title` as a workaround as xterm did not release this patch yet --- frontend/public/components/app.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/public/components/app.tsx b/frontend/public/components/app.tsx index 7e6dcb7e1a9..68dfc24d4d1 100644 --- a/frontend/public/components/app.tsx +++ b/frontend/public/components/app.tsx @@ -88,6 +88,9 @@ root.render(); // interceptor calls authSvc.handle401() which handles the redirect. coFetch(`${window.SERVER_FLAGS.basePath}api/kubernetes/api`).catch(() => {}); +// TODO: remove when upgrading to @xterm/xterm 7.0.0 - github.com/openshift/console/issues/16486 +delete process.title; + initI18n(); // Disable linkify 'fuzzy links' across the app.