🙌 OpenHands: AI-Driven Development
refactor: remove redundant AgentServerSettingsScreen (#162)
Hiep Le951919f2c579
diff --git a/__tests__/hooks/use-is-on-intermediate-page.test.ts b/__tests__/hooks/use-is-on-intermediate-page.test.tsdeleted file mode 100644index 9f1f285f7b..0000000000--- a/__tests__/hooks/use-is-on-intermediate-page.test.ts+++ /dev/null@@ -1,25 +0,0 @@-import { renderHook } from "@testing-library/react";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";--const useLocationMock = vi.fn();--vi.mock("react-router", async () => ({- ...(await vi.importActual("react-router")),- useLocation: () => useLocationMock(),-}));--beforeEach(() => {- useLocationMock.mockReset();-});--describe("useIsOnIntermediatePage", () => {- it("returns false for OSS app routes", () => {- useLocationMock.mockReturnValue({ pathname: "/settings" });-- const { result } = renderHook(() => useIsOnIntermediatePage());-- expect(result.current).toBe(false);- });--});diff --git a/__tests__/hooks/use-settings-nav-items.test.tsx b/__tests__/hooks/use-settings-nav-items.test.tsxindex 66a526d41d..948839fec5 100644--- a/__tests__/hooks/use-settings-nav-items.test.tsx+++ b/__tests__/hooks/use-settings-nav-items.test.tsx@@ -93,6 +93,17 @@ describe("useSettingsNavItems", () => {expect(paths).toContain("/settings/secrets");});+ it("never lists the removed /settings/agent-server entry", () => {+ useConfigMock.mockReturnValue({ data: createConfig() });++ const { result } = renderHook(() => useSettingsNavItems());+ const paths = result.current+ .filter((item) => item.type === "item")+ .map((item) => (item.type === "item" ? item.item.to : null));++ expect(paths).not.toContain("/settings/agent-server");+ });+it("hides local-only sub-pages when the active backend is cloud", () => {useConfigMock.mockReturnValue({ data: createConfig() });useActiveBackendMock.mockReturnValue(cloudActive);@@ -102,7 +113,6 @@ describe("useSettingsNavItems", () => {.filter((item) => item.type === "item").map((item) => (item.type === "item" ? item.item.to : null));- expect(paths).not.toContain("/settings/agent-server");expect(paths).not.toContain("/settings/integrations");expect(paths).toContain("/settings");expect(paths).toContain("/settings/condenser");diff --git a/__tests__/library-entrypoints.test.ts b/__tests__/library-entrypoints.test.tsindex 507594587f..06c4cb6ae1 100644--- a/__tests__/library-entrypoints.test.ts+++ b/__tests__/library-entrypoints.test.ts@@ -34,7 +34,6 @@ describe("library public entrypoints", () => {expect(filesApi.FileExplorer).toBeTypeOf("function");expect(settingsApi.SettingsPanel).toBeTypeOf("function");expect(settingsApi.AppSettings).toBeTypeOf("function");- expect(settingsApi.AgentServerSettings).toBeTypeOf("function");expect(settingsApi.GitSettings).toBeTypeOf("function");expect(settingsApi.LLMSettings).toBeTypeOf("function");expect(settingsApi.MCPSettings).toBeTypeOf("function");@@ -42,4 +41,10 @@ describe("library public entrypoints", () => {expect(sidebarApi.Sidebar).toBeTypeOf("function");expect(sidebarApi.ConversationPanel).toBeTypeOf("function");});++ it("no longer exposes the removed AgentServerSettings entry", () => {+ expect(+ (settingsApi as Record<string, unknown>).AgentServerSettings,+ ).toBeUndefined();+ });});diff --git a/__tests__/root.test.tsx b/__tests__/root.test.tsxindex 10e118a92c..f789ecc25e 100644--- a/__tests__/root.test.tsx+++ b/__tests__/root.test.tsx@@ -86,14 +86,6 @@ const RouterStub = createRoutesStub([Component: () => <div data-testid="app-outlet">app outlet</div>,path: "/",},- {- Component: () => (- <div data-testid="agent-server-settings-screen">- agent server settings- </div>- ),- path: "/settings/agent-server",- },],},]);@@ -215,20 +207,4 @@ describe("App root compatibility guard", () => {).not.toBeInTheDocument();expect(screen.queryByTestId("agent-server-upgrade-screen")).not.toBeInTheDocument();});-- it("still allows the agent server settings route when the backend is unreachable", async () => {- server.use(http.get("/server_info", () => HttpResponse.error()));-- renderApp(["/settings/agent-server"]);-- await waitFor(() => {- expect(- screen.getByTestId("agent-server-settings-screen"),- ).toBeInTheDocument();- });-- expect(- screen.queryByTestId("agent-server-onboarding-screen"),- ).not.toBeInTheDocument();- });});diff --git a/__tests__/routes/agent-server-settings.test.tsx b/__tests__/routes/agent-server-settings.test.tsxdeleted file mode 100644index 933bda1b7c..0000000000--- a/__tests__/routes/agent-server-settings.test.tsx+++ /dev/null@@ -1,134 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, describe, expect, it, vi } from "vitest";-import AgentServerSettingsScreen from "#/routes/agent-server-settings";-import { AGENT_SERVER_CONFIG_STORAGE_KEY } from "#/api/agent-server-config";--const TRANSLATIONS: Record<string, string> = {- "SETTINGS$AGENT_SERVER_ONBOARDING_EYEBROW": "Get started",- "SETTINGS$AGENT_SERVER_SETTINGS_TITLE": "Agent server connection",- "SETTINGS$AGENT_SERVER_DESCRIPTION":- "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "SETTINGS$AGENT_SERVER_CONNECTION_DETAILS_TITLE": "Connection details",- "SETTINGS$AGENT_SERVER_CONNECTION_DETAILS_DESCRIPTION":- "Paste the agent server URL and optional session API key that Agent Canvas should use.",- "SETTINGS$AGENT_SERVER_URL": "Agent server URL",- "SETTINGS$AGENT_SERVER_URL_PLACEHOLDER": "https://agent.example.com",- "SETTINGS$AGENT_SERVER_API_KEY": "Session API key",- "SETTINGS$AGENT_SERVER_API_KEY_PLACEHOLDER":- "Enter the X-Session-API-Key value",- "SETTINGS$AGENT_SERVER_BROWSER_ONLY_NOTE":- "Saved only in this browser. Deployment defaults stay available until you override them here.",- "SETTINGS$AGENT_SERVER_RETRY_CONNECTION": "Retry connection",- "SETTINGS$SAVE_AND_RECONNECT": "Save and reconnect",- "SETTINGS$AGENT_SERVER_STEP_LABEL": "Step {{step}}",- "SETTINGS$AGENT_SERVER_STEP_START_TITLE": "Start a compatible server",- "SETTINGS$AGENT_SERVER_STEP_START_DESCRIPTION":- "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "SETTINGS$AGENT_SERVER_STEP_URL_TITLE": "Enter its URL",- "SETTINGS$AGENT_SERVER_STEP_URL_DESCRIPTION":- "Use the address where this browser can reach the server, such as https://agent.example.com.",- "SETTINGS$AGENT_SERVER_STEP_SAVE_TITLE": "Save and reconnect",- "SETTINGS$AGENT_SERVER_STEP_SAVE_DESCRIPTION":- "We'll store your choice in this browser and reconnect right away.",- "COMMON$OPTIONAL": "Optional",-};--vi.mock("react-i18next", () => ({- useTranslation: () => ({- t: (key: string, options?: Record<string, string | number>) => {- let value = TRANSLATIONS[key] ?? key;- for (const [optionKey, optionValue] of Object.entries(options ?? {})) {- value = value.replaceAll(`{{${optionKey}}}`, String(optionValue));- }- return value;- },- }),-}));--const ORIGINAL_LOCATION = window.location;--function mockWindowLocation(url: string, assign = vi.fn()) {- const location = new URL(url) as unknown as Location;- Object.assign(location, { assign });-- Object.defineProperty(window, "location", {- configurable: true,- value: location,- });-- return assign;-}--afterEach(() => {- window.localStorage.clear();- vi.unstubAllEnvs();- Object.defineProperty(window, "location", {- configurable: true,- value: ORIGINAL_LOCATION,- });-});--describe("AgentServerSettingsScreen", () => {- it("renders the simplified settings-style form and prefills environment defaults", async () => {- vi.stubEnv("VITE_BACKEND_BASE_URL", "https://env-agent.example.com/");- vi.stubEnv("VITE_SESSION_API_KEY", "env-session-key");-- render(<AgentServerSettingsScreen />);-- expect(- screen.getByRole("heading", { name: /agent server connection/i }),- ).toBeInTheDocument();- expect(await screen.findByTestId("agent-server-url-input")).toHaveValue(- "https://env-agent.example.com",- );- expect(screen.getByTestId("agent-server-api-key-input")).toHaveValue(- "env-session-key",- );- expect(- screen.getByRole("button", { name: /retry connection/i }),- ).toBeInTheDocument();- expect(screen.queryByTestId("agent-server-checklist")).not.toBeInTheDocument();- expect(- screen.queryByText(/connection details/i),- ).not.toBeInTheDocument();- });-- it("saves agent server settings locally and reconnects", async () => {- const assignMock = mockWindowLocation(- "https://gui.example.com/settings/agent-server",- );-- render(<AgentServerSettingsScreen />);-- const user = userEvent.setup();- const urlInput = await screen.findByTestId("agent-server-url-input");- const apiKeyInput = screen.getByTestId("agent-server-api-key-input");-- await user.type(urlInput, "agent.example.com");- await user.type(apiKeyInput, "secret-key");- await user.click(screen.getByTestId("submit-button"));-- expect(window.localStorage.getItem(AGENT_SERVER_CONFIG_STORAGE_KEY)).toBe(- JSON.stringify({- baseUrl: "https://agent.example.com",- sessionApiKey: "secret-key",- }),- );- expect(assignMock).toHaveBeenCalledWith("/");- });-- it("lets users retry the connection without editing settings", async () => {- const assignMock = mockWindowLocation(- "https://gui.example.com/settings/agent-server",- );-- render(<AgentServerSettingsScreen />);-- const user = userEvent.setup();- await user.click(screen.getByRole("button", { name: /retry connection/i }));-- expect(assignMock).toHaveBeenCalledWith("/");- expect(screen.getByTestId("submit-button")).toBeDisabled();- });-});diff --git a/__tests__/routes/settings.test.tsx b/__tests__/routes/settings.test.tsxindex 8c5595c513..1e8a317230 100644--- a/__tests__/routes/settings.test.tsx+++ b/__tests__/routes/settings.test.tsx@@ -93,29 +93,8 @@ describe("settings route", () => {context: {},} as never)) as Response;- const agentServerResponse = (await clientLoader({- request: new Request("http://localhost/settings/agent-server"),- params: {},- context: {},- } as never)) as Response;-expect(integrationsResponse.status).toBe(302);expect(integrationsResponse.headers.get("Location")).toBe("/settings");- expect(agentServerResponse.status).toBe(302);- expect(agentServerResponse.headers.get("Location")).toBe("/settings");- expect(getConfigSpy).not.toHaveBeenCalled();- });-- it("skips backend config loading for the agent server settings route", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");-- const result = await clientLoader({- request: new Request("http://localhost/settings/agent-server"),- params: {},- context: {},- } as never);-- expect(result).toBeNull();expect(getConfigSpy).not.toHaveBeenCalled();});diff --git a/src/components/settings/index.ts b/src/components/settings/index.tsindex 592b31e1f3..28a4b82828 100644--- a/src/components/settings/index.ts+++ b/src/components/settings/index.ts@@ -1,6 +1,5 @@export * from "../features/settings";export { AppSettingsScreen as AppSettings } from "../../routes/app-settings";-export { AgentServerSettingsScreen as AgentServerSettings } from "../../routes/agent-server-settings";export { GitSettingsScreen as GitSettings } from "../../routes/git-settings";export { LlmSettingsScreen as LLMSettings } from "../../routes/llm-settings";export { MCPSettingsScreen as MCPSettings } from "../../routes/mcp-settings";diff --git a/src/constants/settings-nav.tsx b/src/constants/settings-nav.tsxindex 6f440e9e67..6047b42ac6 100644--- a/src/constants/settings-nav.tsx+++ b/src/constants/settings-nav.tsx@@ -49,11 +49,6 @@ export const OSS_NAV_ITEMS: SettingsNavItem[] = [to: "/settings/app",text: "SETTINGS$NAV_APPLICATION",},- {- icon: <ServerProcessIcon width={22} height={22} />,- to: "/settings/agent-server",- text: "SETTINGS$NAV_AGENT_SERVER",- },{icon: <KeyIcon width={22} height={22} />,to: "/settings/secrets",diff --git a/src/hooks/query/use-agent-settings-schema.ts b/src/hooks/query/use-agent-settings-schema.tsindex 2e79769024..2bf9661c93 100644--- a/src/hooks/query/use-agent-settings-schema.ts+++ b/src/hooks/query/use-agent-settings-schema.ts@@ -1,6 +1,5 @@import { useQuery } from "@tanstack/react-query";import SettingsService from "#/api/settings-service/settings-service.api";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";import { SettingsSchema } from "#/types/settings";import { useIsAuthed } from "./use-is-authed";@@ -8,7 +7,6 @@ const useSettingsSchema = (type: "agent" | "conversation",fallbackSchema?: SettingsSchema | null,) => {- const isOnIntermediatePage = useIsOnIntermediatePage();const { data: userIsAuthenticated } = useIsAuthed();const { data, error, isLoading, isFetching } = useQuery({queryKey: ["settings-schema", type],@@ -20,7 +18,7 @@ const useSettingsSchema = (refetchOnWindowFocus: false,staleTime: 1000 * 60 * 5,gcTime: 1000 * 60 * 15,- enabled: !fallbackSchema && !isOnIntermediatePage && !!userIsAuthenticated,+ enabled: !fallbackSchema && !!userIsAuthenticated,meta: {disableToast: true,},diff --git a/src/hooks/query/use-config.ts b/src/hooks/query/use-config.tsindex b0e226ffbe..7d8352eb29 100644--- a/src/hooks/query/use-config.ts+++ b/src/hooks/query/use-config.ts@@ -4,17 +4,14 @@ import {isAgentServerUnavailableError,} from "#/api/agent-server-compatibility";import OptionService from "#/api/option-service/option-service.api";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";import { QUERY_KEYS, CONFIG_CACHE_OPTIONS } from "./query-keys";interface UseConfigOptions {enabled?: boolean;}-export const useConfig = (options?: UseConfigOptions) => {- const isOnIntermediatePage = useIsOnIntermediatePage();-- return useQuery({+export const useConfig = (options?: UseConfigOptions) =>+ useQuery({queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,queryFn: OptionService.getConfig,retry: (failureCount, error) =>@@ -23,6 +20,5 @@ export const useConfig = (options?: UseConfigOptions) => {failureCount < 3,meta: { disableToast: true },...CONFIG_CACHE_OPTIONS,- enabled: options?.enabled ?? !isOnIntermediatePage,+ enabled: options?.enabled,});-};diff --git a/src/hooks/use-is-on-intermediate-page.ts b/src/hooks/use-is-on-intermediate-page.tsdeleted file mode 100644index 5e82ea9fb7..0000000000--- a/src/hooks/use-is-on-intermediate-page.ts+++ /dev/null@@ -1,17 +0,0 @@-import { useLocation } from "react-router";--const INTERMEDIATE_PAGE_PATHS = ["/settings/agent-server"] as const;--/**- * Checks if the current page is an intermediate page.- *- * This hook is reusable for all intermediate pages. To add a new intermediate page,- * add its path to INTERMEDIATE_PAGE_PATHS array.- */-export const useIsOnIntermediatePage = (): boolean => {- const { pathname } = useLocation();-- return INTERMEDIATE_PAGE_PATHS.includes(- pathname as (typeof INTERMEDIATE_PAGE_PATHS)[number],- );-};diff --git a/src/i18n/translation.json b/src/i18n/translation.jsonindex 61eb8ac2b2..259118d7e6 100644--- a/src/i18n/translation.json+++ b/src/i18n/translation.json@@ -4776,23 +4776,6 @@"uk": "Додаток","ca": "Aplicació"},- "SETTINGS$NAV_AGENT_SERVER": {- "en": "Agent Server",- "ja": "Agent Server",- "zh-CN": "Agent Server",- "zh-TW": "Agent Server",- "ko-KR": "Agent Server",- "no": "Agent Server",- "it": "Agent Server",- "pt": "Agent Server",- "es": "Agent Server",- "ar": "Agent Server",- "fr": "Agent Server",- "tr": "Agent Server",- "de": "Agent Server",- "uk": "Agent Server",- "ca": "Agent Server"- },"SETTINGS$NAV_SECRETS": {"en": "Secrets","ja": "シークレット",@@ -5660,23 +5643,6 @@"uk": "Налаштуйте ім'я користувача та електронну пошту, які OpenHands використовує для фіксації змін.","ca": "Configura el nom d'usuari i el correu electrònic que OpenHands utilitza per confirmar els canvis."},- "SETTINGS$AGENT_SERVER_DESCRIPTION": {- "en": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "ja": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "zh-CN": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "zh-TW": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "ko-KR": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "no": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "it": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "pt": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "es": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "ar": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "fr": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "tr": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "de": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "uk": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them.",- "ca": "Set the agent server URL and optional session API key that Agent Canvas should use. Start or choose a compatible server, then save here to reconnect. Deployment defaults appear automatically until you override them."- },"SETTINGS$AGENT_SERVER_URL": {"en": "Agent server URL","ja": "Agent server URL",@@ -6051,23 +6017,6 @@"uk": "Agent Canvas needs an agent server before it can load conversations, tools, and settings. Start or choose a compatible server, then connect it here.","ca": "Agent Canvas needs an agent server before it can load conversations, tools, and settings. Start or choose a compatible server, then connect it here."},- "SETTINGS$AGENT_SERVER_SETTINGS_TITLE": {- "en": "Agent server connection",- "ja": "Agent server connection",- "zh-CN": "Agent server connection",- "zh-TW": "Agent server connection",- "ko-KR": "Agent server connection",- "no": "Agent server connection",- "it": "Agent server connection",- "pt": "Agent server connection",- "es": "Agent server connection",- "ar": "Agent server connection",- "fr": "Agent server connection",- "tr": "Agent server connection",- "de": "Agent server connection",- "uk": "Agent server connection",- "ca": "Agent server connection"- },"SETTINGS$AGENT_SERVER_UNAVAILABLE_STATUS_TITLE": {"en": "We couldn't reach the configured server","ja": "We couldn't reach the configured server",diff --git a/src/root.tsx b/src/root.tsxindex 4c72028546..cc84df1159 100644--- a/src/root.tsx+++ b/src/root.tsx@@ -5,7 +5,6 @@ import {Outlet,Scripts,ScrollRestoration,- useLocation,} from "react-router";import "./tailwind.css";import "./index.css";@@ -231,26 +230,17 @@ export const meta: MetaFunction = () => [];export default function App() {- const location = useLocation();const config = useConfig();- const isAgentServerSettingsRoute =- location.pathname === "/settings/agent-server";- if (!isAgentServerSettingsRoute && (config.isPending || config.isLoading)) {+ if (config.isPending || config.isLoading) {return <AgentServerBootstrapLoading />;}- if (- !isAgentServerSettingsRoute &&- isAgentServerUnavailableError(config.error)- ) {+ if (isAgentServerUnavailableError(config.error)) {return <MissingAgentServerNotice error={config.error} />;}- if (- !isAgentServerSettingsRoute &&- isAgentServerIncompatibilityError(config.error)- ) {+ if (isAgentServerIncompatibilityError(config.error)) {if (!config.error.serverVersion) {return <UnknownAgentServerNotice />;}diff --git a/src/routes.ts b/src/routes.tsindex 0eab31ff98..3d731ae72d 100644--- a/src/routes.ts+++ b/src/routes.ts@@ -17,7 +17,6 @@ export default [route("skills", "routes/skills-settings.tsx"),route("integrations", "routes/git-settings.tsx"),route("app", "routes/app-settings.tsx"),- route("agent-server", "routes/agent-server-settings.tsx"),route("secrets", "routes/secrets-settings.tsx"),]),route("conversations/:conversationId", "routes/conversation.tsx"),diff --git a/src/routes/agent-server-settings.tsx b/src/routes/agent-server-settings.tsxdeleted file mode 100644index 5d844c2e0f..0000000000--- a/src/routes/agent-server-settings.tsx+++ /dev/null@@ -1,36 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { AgentServerConnectionForm } from "#/components/features/settings/agent-server-onboarding";-import { Typography } from "#/ui/typography";--export const clientLoader = async () => null;-export const handle = { hideTitle: true };--export function AgentServerSettingsScreen() {- const { t } = useTranslation("openhands");-- return (- <div- data-testid="agent-server-settings-screen"- className="flex h-full flex-col gap-6 pb-8"- >- <div>- <Typography.H2 className="mb-2">- {t("SETTINGS$AGENT_SERVER_SETTINGS_TITLE")}- </Typography.H2>- <Typography.Paragraph className="max-w-3xl text-sm text-[#A3A3A3]">- {t("SETTINGS$AGENT_SERVER_DESCRIPTION")}- </Typography.Paragraph>- </div>-- <div className="max-w-2xl">- <AgentServerConnectionForm- variant="settings"- showSectionHeader={false}- />- </div>- </div>- );-}--export default AgentServerSettingsScreen;diff --git a/src/routes/settings.tsx b/src/routes/settings.tsxindex eb2bf1b781..50860ed4e6 100644--- a/src/routes/settings.tsx+++ b/src/routes/settings.tsx@@ -29,10 +29,6 @@ export const clientLoader = async ({ request }: Route.ClientLoaderArgs) => {return redirect("/settings");}- if (pathname === "/settings/agent-server") {- return null;- }-const config = await queryClient.fetchQuery<WebClientConfig>({queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,queryFn: OptionService.getConfig,diff --git a/src/utils/settings-utils.ts b/src/utils/settings-utils.tsindex 6dde1bc5a8..270c46dcd9 100644--- a/src/utils/settings-utils.ts+++ b/src/utils/settings-utils.ts@@ -67,7 +67,6 @@ export function isSettingsPageHidden(// Hidden from navigation and blocked at the route loader when the active// backend is a cloud SaaS environment.export const LOCAL_ONLY_SETTINGS_PATHS = new Set<string>([- "/settings/agent-server","/settings/integrations",]);