diff --git a/apps/desktop/src/ui/ChatView.tsx b/apps/desktop/src/ui/ChatView.tsx index 2e7ba688f..e78f5cbbb 100644 --- a/apps/desktop/src/ui/ChatView.tsx +++ b/apps/desktop/src/ui/ChatView.tsx @@ -16,13 +16,7 @@ import { chooseFolder } from "../state/folders"; import type { HeaderButtonId } from "../state/headerButtons"; import { offlineNotice } from "../state/machineCache"; import { hasPendingChange, useOutbox } from "../state/machineOutbox"; -import { - machineGlyph, - machineTint, - offlineSinceLabel, - useMachineReconnecting, - useMachines, -} from "../state/machines"; +import { offlineSinceLabel, useMachineReconnecting, useMachines } from "../state/machines"; import { heldSetup, type PendingSetup, pendingStatus } from "../state/setup"; import { dismissPendingSetup, @@ -56,15 +50,12 @@ import { CircleCheck, CircleDashed, CircleDot, - Laptop, ListChecks, type LucideIcon, PanelRight, } from "./icons"; import { JobRunBar, useJobRun } from "./JobRunBar"; import { LinkedThreads } from "./Links"; -import { DeviceGlyphIcon } from "./MachineGlyph"; -import { MachineSelector } from "./MachineSelector"; import { HEADER_HEIGHT, MainHeader } from "./MainHeader"; import { NewThreadBanner } from "./NewThreadBanner"; import { NEW_THREAD_WIDGETS_MIN_HEIGHT, NewThreadWidgets } from "./NewThreadWidgets"; @@ -183,11 +174,7 @@ function Header({ const folderKey = useShortcutHint("thread-folder"); const session = useApp((s) => (thread ? s.sessions.find((x) => x.id === thread.id) : undefined)); const listed = session?.title; - // A thread on a paired computer: the header says where it runs and opens the machine mover - // (docs/desktop.md › Several machines). - const machine = useMachineOfThread(thread?.id); const machineHost = thread ? splitThreadKey(thread.id).host : ""; - const machineEntry = useMachines((s) => s.machines.find((entry) => entry.id === machineHost)); const title = pending?.title ?? (thread ? (thread.title ?? listed ?? "New thread") : "New thread"); const cwd = pending?.cwd ?? thread?.cwd ?? projectCwd; const newThreadHost = useApp((s) => s.newThreadHost); @@ -225,7 +212,7 @@ function Header({