Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions apps/desktop/src/components/Terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const Terminal: React.FC = () => {
const xtermRef = useRef<Xterm | null>(null);
const fitAddonRef = useRef<FitAddon | null>(null);
const initialized = useRef(false);
const activePtyPath = useRef<string | null | undefined>(undefined); // tracks last spawned path

// 1. Initialize Xterm once on mount
useEffect(() => {
Expand Down Expand Up @@ -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;

Expand Down
Loading