feat(webui): complete remote pairing and connection recovery

This commit is contained in:
Xubin Ren committed 2026-10-02 11:36:34 +08:00
1 parent 11889c018e
commit 192ca6e49e
52 files changed
+7313 -675

No files matched your search

+1 -15
View File
@@ -9,7 +9,6 @@ import {
Brain,
CalendarClock,
MessageCircle,
MonitorUp,
PanelLeftClose,
Search,
Settings,
@@ -24,7 +23,6 @@ import {
type SidebarPaneGroup,
} from "@/components/ChatList";
import { HostSwitcher } from "@/components/remote/HostSwitcher";
import { useRemoteConnections } from "@/components/remote/RemoteInstances";
import {
SIDEBAR_SELECTION_ACTION_ITEM_CLASS,
SidebarSelectionHighlight,
@@ -70,10 +68,9 @@ interface SidebarProps {
onOpenSkills: () => void;
onOpenAutomations: () => void;
onOpenChannels: () => void;
onOpenRemoteConnections?: () => void;
onSettingsIntent?: () => void;
onOpenSearch: () => void;
activeUtility?: "apps" | "skills" | "automations" | "channels" | "remote" | null;
activeUtility?: "apps" | "skills" | "automations" | "channels" | null;
onToggleArchived: () => void;
onCollapse?: () => void;
onExpand?: () => void;
@@ -111,7 +108,6 @@ function isApplePlatform(): boolean {
export function Sidebar(props: SidebarProps) {
const { t } = useTranslation();
const remoteConnections = useRemoteConnections();
const [menuPortalContainer, setMenuPortalContainer] =
useState<HTMLElement | null>(null);
const collapsed = Boolean(props.collapsed);
@@ -257,16 +253,6 @@ export function Sidebar(props: SidebarProps) {
selectionRef={activeActionRef}
icon={<MessageCircle className="h-4 w-4" />}
/>
{remoteConnections?.available && props.onOpenRemoteConnections && (
<SidebarActionButton
collapsed={collapsed}
label={t("remote.title")}
onClick={props.onOpenRemoteConnections}
active={props.activeUtility === "remote"}
selectionRef={activeActionRef}
icon={<MonitorUp className="h-4 w-4" />}
/>
)}
{props.archivedCount ? (
<SidebarActionButton
collapsed={collapsed}