diff --git a/frontend-web/src/components/workspace/agents/agent-gallery.tsx b/frontend-web/src/components/workspace/agents/agent-gallery.tsx index 6d099a18..ff0e453d 100644 --- a/frontend-web/src/components/workspace/agents/agent-gallery.tsx +++ b/frontend-web/src/components/workspace/agents/agent-gallery.tsx @@ -112,6 +112,12 @@ export function AgentGallery() { } }, [privateError, privatePassword]); + // The private tab is only "unlocked" once the feature is usable and a + // password has been verified. Until then we show the gate (or the lock + // prompt) and hide the keyword/tag search bar — there is no list to filter. + const privateUnlocked = privateFeatureUsable && !!privatePassword; + const showSearchBar = activeTab !== "private" || privateUnlocked; + const activeTotal = activeTab === "private" ? privateTotal : mainTotal; const setTabPage = (tab: "all" | "mine" | "private", page: number) => setPages((prev) => ({ ...prev, [tab]: page })); @@ -359,35 +365,39 @@ export function AgentGallery() { )} - setSort(v as AgentSort)}> - - - - - - 最新创建 - 最早创建 - 最近更新 - 最早更新 - 名称 A-Z - 名称 Z-A - - - } - /> + {showSearchBar && ( + setSort(v as AgentSort)}> + + + + + + 最新创建 + 最早创建 + 最近更新 + 最早更新 + 名称 A-Z + 名称 Z-A + + + } + /> + )} {publisher && (
筛选发布者: