diff --git a/src/App.tsx b/src/App.tsx index ae119b62a..548a307cd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -724,7 +724,7 @@ function App() { ); case "sessions": - return ; + return ; case "workspace": return ; case "openclawEnv": diff --git a/src/components/sessions/SessionManagerPage.tsx b/src/components/sessions/SessionManagerPage.tsx index 588cad13f..4ad02dd56 100644 --- a/src/components/sessions/SessionManagerPage.tsx +++ b/src/components/sessions/SessionManagerPage.tsx @@ -48,7 +48,7 @@ import { type ProviderFilter = "all" | "codex" | "claude" | "opencode" | "openclaw"; -export function SessionManagerPage() { +export function SessionManagerPage({ appId }: { appId: string }) { const { t } = useTranslation(); const { data, isLoading, refetch } = useSessionsQuery(); const sessions = data ?? []; @@ -63,7 +63,9 @@ export function SessionManagerPage() { const searchInputRef = useRef(null); const [search, setSearch] = useState(""); - const [providerFilter, setProviderFilter] = useState("all"); + const [providerFilter, setProviderFilter] = useState( + appId as ProviderFilter, + ); const [selectedKey, setSelectedKey] = useState(null); // 使用 FlexSearch 全文搜索