From 703cf1f88b5816a1f0b4e6bdd0bee15044118910 Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 4 Jun 2026 18:24:48 +0000 Subject: [PATCH] fix: mobile terminal back and X buttons navigate to /sessions Terminal sessions are opened in a new tab via window.open with noopener,noreferrer. In a new tab, window.history has no previous entry, so navigate(-1) silently does nothing. Both the back arrow and the X button in the mobile terminal overlay called navigate(-1), which made them appear broken. Change both buttons to navigate('/sessions') so they always exit to a sensible page regardless of how the terminal was opened. Quality gates: tsc --noEmit (pass), build (pass) --- apps/web/src/pages/TerminalPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/TerminalPage.tsx b/apps/web/src/pages/TerminalPage.tsx index 6e76fd6..0137ac6 100644 --- a/apps/web/src/pages/TerminalPage.tsx +++ b/apps/web/src/pages/TerminalPage.tsx @@ -318,7 +318,7 @@ export const TerminalPage: React.FC = () => {