diff --git a/apps/desktop/src/components/Terminal.tsx b/apps/desktop/src/components/Terminal.tsx index 49d2be3b..827ca510 100644 --- a/apps/desktop/src/components/Terminal.tsx +++ b/apps/desktop/src/components/Terminal.tsx @@ -16,7 +16,6 @@ const Terminal: React.FC = () => { const xtermRef = useRef(null); const fitAddonRef = useRef(null); const initialized = useRef(false); - const activePtyPath = useRef(undefined); // tracks last spawned path // 1. Initialize Xterm once on mount useEffect(() => { @@ -97,10 +96,6 @@ const Terminal: React.FC = () => { const targetPath = terminalPath || rootPath || undefined; - // Skip if we're already running a PTY for this exact path - if (activePtyPath.current !== undefined && activePtyPath.current === targetPath) return; - activePtyPath.current = targetPath ?? null; - let isCanceled = false; let unlisten: (() => void) | undefined;