feat: move the terminal fully into the ssh-terminal plugin (B9)

This commit is contained in:
LukeGus committed 2026-09-23 21:41:22 -05:00
1 parent 535126fd1b
commit 79d77678c9
309 files changed
+41789 -14958

No files matched your search

+6 -5
View File
@@ -1,4 +1,5 @@
/* eslint-disable react-refresh/only-export-components */
import { getTabType } from "./tab-registry";
import React, {
createContext,
useContext,
@@ -175,8 +176,9 @@ export function TabProvider({ children }: TabProviderProps) {
const id = nextTabId.current++;
const instanceId = `tab_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
const isCommandTarget = !!getTabType(tabData.type)?.commandTarget;
const needsUniqueTitle =
tabData.type === "terminal" || tabData.type === "file_manager";
isCommandTarget || tabData.type === "file_manager";
const effectiveTitle = needsUniqueTitle
? computeUniqueTitle(tabData.type, tabData.title)
: tabData.type === "tmux_monitor" // --- tmux-monitor ---
@@ -187,10 +189,9 @@ export function TabProvider({ children }: TabProviderProps) {
id,
instanceId,
title: effectiveTitle,
terminalRef:
tabData.type === "terminal"
? React.createRef<TerminalRefHandle>()
: undefined,
terminalRef: isCommandTarget
? React.createRef<TerminalRefHandle>()
: undefined,
hostConfig: tabData.hostConfig
? {
...tabData.hostConfig,