mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
A tab holding a split workspace showed the generic default title "Workspace", giving no hint which host it belonged to. Derive the tab label from the workspace's focused session when the workspace still carries the default title: a local shell reads as its host label (e.g. "Localhost"), an SSH session as its configured host name. If the workspace spans more than one distinct host, the focused host is shown with a "+N" suffix. A user-renamed workspace keeps its custom title. - domain/sessionTabTitle.ts: add DEFAULT_WORKSPACE_TITLE sentinel and resolveWorkspaceTabLabel(), reusing resolveSessionTabTitle so labels match what single-pane tabs already show. - domain/workspace.ts, application/state/useSessionState.ts: reference the shared DEFAULT_WORKSPACE_TITLE constant for the default title. - components/top-tabs/TopTabItems.tsx: render the derived label (with a title tooltip) instead of workspace.title. - domain/sessionTabTitle.test.ts: cover rename, single/multi-host, empty.