🙌 OpenHands: AI-Driven Development
Remove agent-server version guard and show version in manage backends (#230)
Robert Brennan1281863cd7e8
diff --git a/AGENTS.md b/AGENTS.mdindex 60b5536226..5b4baba5a7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -48,7 +48,7 @@- conversation browsing/loading: `/api/conversations/search`, `/api/conversations?ids=...`, `/api/conversations/:id`, `/api/conversations/:id/events/*`- runtime git panels: `/api/git/changes`, `/api/git/diff`- Static mock verification needs a build created with `VITE_MOCK_API=true` (use `npm run build:mock`); the client must start MSW whenever that flag is enabled, even in production/static builds, otherwise routes like `/settings` and the conversations pane fall through to the static server and crash on undefined `.filter`/`.map` assumptions.-- Frontend compatibility guard: `OptionService.getConfig()` now uses `/server_info.version` to block unsupported agent-server versions before the app loads. Git history in `software-agent-sdk` shows `/api/settings/agent-schema` and `/api/settings/conversation-schema` first shipped in tag `v1.17.0`, so Agent Canvas currently treats `< 1.17.0` (or unknown/unparseable versions) as incompatible, `useConfig` stops retrying that case, and `src/root.tsx` renders a blocking unsupported-version notice on every route.+- No frontend version guard: `OptionService.getConfig()` calls `loadAgentServerInfo()` which fetches `/server_info` only to (a) detect an unreachable agent server (renders the onboarding screen via `AgentServerUnavailableError`) and (b) cache `usable_tools` for tool gating. All advertised versions are accepted. The "manage backends" modal displays each local backend's `/server_info.version` in light text via the `BACKEND$VERSION_LABEL` translation key.- `/server_info` tool capability metadata from `software-agent-sdk` PR #3028 ended up shipping as `usable_tools` (not `available_tools`). Frontend browser-tool gating should key off `usable_tools`, and still default to allowing tools when the server does not advertise tool metadata.- Useful regression tests for mock mode live in `__tests__/api/option-service.test.ts`, `__tests__/api/mock-conversation-handlers.test.ts`, and `__tests__/api/mock-settings-handlers.test.ts`.diff --git a/__tests__/api/agent-server-compatibility-bundled-pin.test.ts b/__tests__/api/agent-server-compatibility-bundled-pin.test.tsindex 7eb758b549..cc9b0b58fc 100644--- a/__tests__/api/agent-server-compatibility-bundled-pin.test.ts+++ b/__tests__/api/agent-server-compatibility-bundled-pin.test.ts@@ -5,7 +5,7 @@ import {setRegisteredBackends,} from "#/api/backend-registry/active-store";import type { Backend } from "#/api/backend-registry/types";-import { ensureCompatibleAgentServer } from "#/api/agent-server-compatibility";+import { loadAgentServerInfo } from "#/api/agent-server-compatibility";const getServerInfoMock = vi.fn();const createServerClientMock = vi.fn(() => ({@@ -36,8 +36,7 @@ beforeEach(() => {__resetActiveStoreForTests();getServerInfoMock.mockReset();createServerClientMock.mockClear();- // Return a future-compatible fake version so the check passes.- getServerInfoMock.mockResolvedValue({ version: "99.0.0" });+ getServerInfoMock.mockResolvedValue({ version: "1.0.0" });});afterEach(() => {@@ -45,12 +44,12 @@ afterEach(() => {__resetActiveStoreForTests();});-describe("ensureCompatibleAgentServer", () => {+describe("loadAgentServerInfo", () => {it("targets the bundled local backend even when the active backend is cloud", async () => {setRegisteredBackends([cloudBackend]);setActiveSelection({ backendId: cloudBackend.id });- await ensureCompatibleAgentServer();+ await loadAgentServerInfo();expect(createServerClientMock).toHaveBeenCalledOnce();const callArgs = createServerClientMock.mock.calls[0] as unknown as [diff --git a/__tests__/api/option-service.test.ts b/__tests__/api/option-service.test.tsindex cad105e2c8..4cd3dbb556 100644--- a/__tests__/api/option-service.test.ts+++ b/__tests__/api/option-service.test.ts@@ -1,11 +1,9 @@import { beforeEach, describe, expect, it } from "vitest";import { http, HttpResponse } from "msw";import {- AgentServerIncompatibilityError,AgentServerUnavailableError,clearCachedAgentServerInfo,isAgentServerToolAvailable,- MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,} from "#/api/agent-server-compatibility";import OptionService from "#/api/option-service/option-service.api";import { server } from "#/mocks/node";@@ -15,7 +13,6 @@ describe("OptionService", () => {clearCachedAgentServerInfo();});-it("returns config in mock mode without a live backend", async () => {const config = await OptionService.getConfig();@@ -24,17 +21,27 @@ describe("OptionService", () => {expect(config.updated_at).toBeTruthy();});- it("throws a compatibility error when the agent server version is below the supported minimum", async () => {+ it("loads config regardless of agent server version", async () => {server.use(http.get("/server_info", () =>- HttpResponse.json({ uptime: 0, idle_time: 0, version: "1.16.1" }),+ HttpResponse.json({ uptime: 0, idle_time: 0, version: "1.0.0" }),),);- await expect(OptionService.getConfig()).rejects.toMatchObject({- name: AgentServerIncompatibilityError.name,- serverVersion: "1.16.1",- message: expect.stringContaining(MINIMUM_SUPPORTED_AGENT_SERVER_VERSION),+ await expect(OptionService.getConfig()).resolves.toMatchObject({+ feature_flags: expect.objectContaining({ hide_llm_settings: false }),+ });+ });++ it("loads config even when the server does not advertise a version", async () => {+ server.use(+ http.get("/server_info", () =>+ HttpResponse.json({ uptime: 0, idle_time: 0 }),+ ),+ );++ await expect(OptionService.getConfig()).resolves.toMatchObject({+ feature_flags: expect.objectContaining({ hide_llm_settings: false }),});});@@ -48,37 +55,13 @@ describe("OptionService", () => {});});- it("uses only server version metadata for compatibility checks", async () => {- server.use(- http.get("/server_info", () =>- HttpResponse.json({- uptime: 0,- idle_time: 0,- version: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- }),- ),- http.get("/api/settings/agent-schema", () =>- HttpResponse.json({ error: "missing" }, { status: 404 }),- ),- http.get("/api/settings/conversation-schema", () =>- HttpResponse.json({ error: "missing" }, { status: 404 }),- ),- );-- await expect(OptionService.getConfig()).resolves.toMatchObject({- feature_flags: expect.objectContaining({- hide_llm_settings: false,- }),- });- });-it("caches usable_tools from server_info for later tool gating", async () => {server.use(http.get("/server_info", () =>HttpResponse.json({uptime: 0,idle_time: 0,- version: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,+ version: "1.21.1",usable_tools: ["terminal", "file_editor", "task_tracker"],}),),@@ -96,7 +79,7 @@ describe("OptionService", () => {HttpResponse.json({uptime: 0,idle_time: 0,- version: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,+ version: "1.21.1",}),),);diff --git a/__tests__/root.test.tsx b/__tests__/root.test.tsxindex f789ecc25e..0d1a82151d 100644--- a/__tests__/root.test.tsx+++ b/__tests__/root.test.tsx@@ -3,19 +3,10 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { createRoutesStub } from "react-router";import { describe, expect, it, vi } from "vitest";import { http, HttpResponse } from "msw";-import { MINIMUM_SUPPORTED_AGENT_SERVER_VERSION } from "#/api/agent-server-compatibility";import App from "#/root";import { server } from "#/mocks/node";const TRANSLATIONS: Record<string, string> = {- "SETTINGS$AGENT_SERVER_UPGRADE_TITLE": "Update your agent server",- "SETTINGS$AGENT_SERVER_UPGRADE_EYEBROW": "Upgrade required",- "SETTINGS$AGENT_SERVER_UPGRADE_DESCRIPTION":- "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "SETTINGS$AGENT_SERVER_UPGRADE_STATUS_TITLE":- "The connected server is too old",- "SETTINGS$AGENT_SERVER_UPGRADE_STATUS_MESSAGE":- "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.","SETTINGS$AGENT_SERVER_ONBOARDING_EYEBROW": "Get started","SETTINGS$AGENT_SERVER_ONBOARDING_TITLE": "Connect to your agent server","SETTINGS$AGENT_SERVER_ONBOARDING_DESCRIPTION":@@ -24,15 +15,10 @@ const TRANSLATIONS: Record<string, string> = {"We couldn't reach the configured server","SETTINGS$AGENT_SERVER_UNAVAILABLE_STATUS_MESSAGE":"Check the URL, confirm the server is running, and try again. You can also point Agent Canvas at a different deployment.",- "SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_TITLE":- "We couldn't confirm the server version",- "SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_MESSAGE":- "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.","SETTINGS$AGENT_SERVER_OPEN_SETTINGS_PAGE": "Open full settings page","SETTINGS$AGENT_SERVER_SETUP_GUIDE_HINT":"If you need help starting or upgrading the server, see the","SETTINGS$AGENT_SERVER_SETUP_GUIDE_LINK": "setup instructions",- "SETTINGS$AGENT_SERVER_DETECTED_VERSION": "Detected version: {{version}}","SETTINGS$AGENT_SERVER_DETAILS_LABEL": "Details: {{details}}","SETTINGS$AGENT_SERVER_CONNECTION_DETAILS_TITLE": "Connection details","SETTINGS$AGENT_SERVER_CONNECTION_DETAILS_DESCRIPTION":@@ -46,22 +32,6 @@ const TRANSLATIONS: Record<string, string> = {"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_UPGRADE_TITLE": "Upgrade to {{minimumVersion}}+",- "SETTINGS$AGENT_SERVER_STEP_UPGRADE_DESCRIPTION":- "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "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_RECONNECT_TITLE": "Reconnect Agent Canvas",- "SETTINGS$AGENT_SERVER_STEP_RECONNECT_DESCRIPTION":- "Retry once the server is upgraded, or point this browser at a newer deployment.",- "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_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",};@@ -105,33 +75,37 @@ const renderApp = (initialEntries: string[] = ["/"]) =>),});-describe("App root compatibility guard", () => {- it("shows a friendlier upgrade flow when the connected agent server is too old", async () => {+describe("App root agent-server availability guard", () => {+ it("renders the routed page even when the connected server reports an old version", async () => {server.use(http.get("/server_info", () =>- HttpResponse.json({ uptime: 0, idle_time: 0, version: "1.16.1" }),+ HttpResponse.json({ uptime: 0, idle_time: 0, version: "1.0.0" }),),);renderApp(["/"]);await waitFor(() => {- expect(screen.getByTestId("agent-server-upgrade-screen")).toBeInTheDocument();+ expect(screen.getByTestId("app-outlet")).toBeInTheDocument();});expect(- screen.getByRole("heading", { name: /update your agent server/i }),- ).toBeInTheDocument();- expect(- screen.getByText(/detected version: 1\.16\.1/i),- ).toBeInTheDocument();- expect(- screen.getAllByText(- new RegExp(`${MINIMUM_SUPPORTED_AGENT_SERVER_VERSION} or newer`),- ).length,- ).toBeGreaterThan(0);- expect(screen.queryByText(/connection blocked/i)).not.toBeInTheDocument();- expect(screen.queryByTestId("app-outlet")).not.toBeInTheDocument();+ screen.queryByTestId("agent-server-onboarding-screen"),+ ).not.toBeInTheDocument();+ });++ it("renders the routed page when the server omits a version field", async () => {+ server.use(+ http.get("/server_info", () =>+ HttpResponse.json({ uptime: 0, idle_time: 0 }),+ ),+ );++ renderApp(["/"]);++ await waitFor(() => {+ expect(screen.getByTestId("app-outlet")).toBeInTheDocument();+ });});it("shows the onboarding flow when the backend is unreachable", async () => {@@ -158,44 +132,11 @@ describe("App root compatibility guard", () => {expect(screen.getByRole("link", { name: /setup instructions/i }),).toHaveAttribute("href", "https://github.com/OpenHands/agent-canvas");- expect(screen.queryByText(/step 1/i)).not.toBeInTheDocument();- expect(- screen.queryByRole("link", { name: /open full settings page/i }),- ).not.toBeInTheDocument();expect(serverInfoRequests).toBe(1);- expect(screen.queryByText(/connection blocked/i)).not.toBeInTheDocument();expect(screen.queryByTestId("app-outlet")).not.toBeInTheDocument();});- it("shows the onboarding flow when the server version cannot be determined", async () => {- server.use(- http.get("/server_info", () =>- HttpResponse.json({ uptime: 0, idle_time: 0 }),- ),- );-- renderApp(["/"]);-- await waitFor(() => {- expect(- screen.getByTestId("agent-server-onboarding-screen"),- ).toBeInTheDocument();- });-- expect(- screen.getByText(/we couldn't confirm the server version/i),- ).toBeInTheDocument();- expect(- screen.getAllByText(- new RegExp(`${MINIMUM_SUPPORTED_AGENT_SERVER_VERSION} or newer`),- ).length,- ).toBeGreaterThan(0);- expect(- screen.queryByText(/unsupported agent server version/i),- ).not.toBeInTheDocument();- });-- it("renders the routed page when the agent server is compatible", async () => {+ it("renders the routed page when the agent server is reachable", async () => {renderApp(["/"]);await waitFor(() => {@@ -205,6 +146,5 @@ describe("App root compatibility guard", () => {expect(screen.queryByTestId("agent-server-onboarding-screen"),).not.toBeInTheDocument();- expect(screen.queryByTestId("agent-server-upgrade-screen")).not.toBeInTheDocument();});});diff --git a/src/api/agent-server-compatibility.ts b/src/api/agent-server-compatibility.tsindex 24762d2aea..30d76b9e46 100644--- a/src/api/agent-server-compatibility.ts+++ b/src/api/agent-server-compatibility.ts@@ -1,4 +1,3 @@-/* eslint-disable max-classes-per-file */import { HttpError } from "@openhands/typescript-client/client/http-client";import { getBundledBackend } from "#/api/backend-registry/bundled";import {@@ -6,20 +5,14 @@ import {type ServerInfo as BaseServerInfo,} from "#/api/typescript-client";-export const MINIMUM_SUPPORTED_AGENT_SERVER_VERSION = "1.17.0";const AGENT_SERVER_INFO_TIMEOUT_MS = 5000;-const SEMVER_PATTERN = /^v?(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/;-export interface AgentServerInfo extends BaseServerInfo {usable_tools?: string[] | null;}let cachedAgentServerInfo: AgentServerInfo | null = null;-const getServerVersion = (serverInfo: AgentServerInfo): string =>- serverInfo.version;-const getAdvertisedTools = (serverInfo: AgentServerInfo | null) => {if (Array.isArray(serverInfo?.usable_tools)) {return serverInfo.usable_tools;@@ -27,60 +20,6 @@ const getAdvertisedTools = (serverInfo: AgentServerInfo | null) => {return null;};-const parseSemver = (- version: string | null,-): [number, number, number] | null => {- if (!version) {- return null;- }-- const match = version.match(SEMVER_PATTERN);- if (!match) {- return null;- }-- return match.slice(1, 4).map(Number) as [number, number, number];-};--const isSupportedAgentServerVersion = (serverVersion: string | null) => {- const parsedVersion = parseSemver(serverVersion);- const minimumVersion = parseSemver(MINIMUM_SUPPORTED_AGENT_SERVER_VERSION);-- if (!parsedVersion || !minimumVersion) {- return false;- }-- for (let index = 0; index < minimumVersion.length; index += 1) {- if (parsedVersion[index] > minimumVersion[index]) {- return true;- }-- if (parsedVersion[index] < minimumVersion[index]) {- return false;- }- }-- return true;-};--const buildCompatibilityMessage = (serverVersion: string | null) => {- const versionMessage = serverVersion- ? `Connected agent server version ${serverVersion} is not compatible with this frontend.`- : "The connected agent server version could not be determined.";-- return `${versionMessage} This frontend requires agent server version ${MINIMUM_SUPPORTED_AGENT_SERVER_VERSION} or newer. Upgrade the agent server and reload the page.`;-};--export class AgentServerIncompatibilityError extends Error {- readonly serverVersion: string | null;-- constructor(serverVersion: string | null) {- super(buildCompatibilityMessage(serverVersion));- this.name = "AgentServerIncompatibilityError";- this.serverVersion = serverVersion;- }-}-export class AgentServerUnavailableError extends Error {readonly details: string | null;@@ -93,15 +32,6 @@ export class AgentServerUnavailableError extends Error {}}-export const isAgentServerIncompatibilityError = (- error: unknown,-): error is AgentServerIncompatibilityError =>- error instanceof AgentServerIncompatibilityError ||- (typeof error === "object" &&- error !== null &&- "name" in error &&- error.name === "AgentServerIncompatibilityError");-export const isAgentServerUnavailableError = (error: unknown,): error is AgentServerUnavailableError =>@@ -123,11 +53,11 @@ export function isAgentServerToolAvailable(toolName: string) {return availableTools.includes(toolName);}-export async function ensureCompatibleAgentServer() {- // The compatibility check is a *local* agent-server concern — it verifies- // that the runtime hosting the GUI is at the right version. It must NEVER- // run against the active backend, because cloud SaaS hosts don't expose- // /api/server_info and would fail with a CORS error besides.+export async function loadAgentServerInfo() {+ // The probe is a *local* agent-server concern — it verifies the runtime+ // hosting the GUI is reachable. It must NEVER run against the active+ // backend, because cloud SaaS hosts don't expose /api/server_info and+ // would fail with a CORS error besides.const bundled = getBundledBackend();let serverInfo: AgentServerInfo;@@ -148,11 +78,5 @@ export async function ensureCompatibleAgentServer() {}cachedAgentServerInfo = serverInfo;- const serverVersion = getServerVersion(serverInfo);-- if (!isSupportedAgentServerVersion(serverVersion)) {- throw new AgentServerIncompatibilityError(serverVersion);- }-return serverInfo;}diff --git a/src/api/option-service/option-service.api.ts b/src/api/option-service/option-service.api.tsindex 2245941750..5da71e7a0f 100644--- a/src/api/option-service/option-service.api.ts+++ b/src/api/option-service/option-service.api.ts@@ -1,4 +1,4 @@-import { ensureCompatibleAgentServer } from "../agent-server-compatibility";+import { loadAgentServerInfo } from "../agent-server-compatibility";import { createLlmMetadataClient } from "../typescript-client";import { ModelsResponse, WebClientConfig } from "./option.types";@@ -31,7 +31,7 @@ class OptionService {}static async getConfig(): Promise<WebClientConfig> {- await ensureCompatibleAgentServer();+ await loadAgentServerInfo();return {posthog_client_key: null,diff --git a/src/components/features/backends/manage-backends-modal.tsx b/src/components/features/backends/manage-backends-modal.tsxindex c480f2a7c1..5dc2b3688e 100644--- a/src/components/features/backends/manage-backends-modal.tsx+++ b/src/components/features/backends/manage-backends-modal.tsx@@ -1,6 +1,9 @@import React from "react";import { useTranslation } from "react-i18next";+import { useQuery } from "@tanstack/react-query";+import { type Backend } from "#/api/backend-registry/types";+import { createServerClient } from "#/api/typescript-client";import { BrandButton } from "#/components/features/settings/brand-button";import { ConfirmationModal } from "#/components/shared/modals/confirmation-modal";import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";@@ -9,6 +12,35 @@ import CloseIcon from "#/icons/close.svg?react";import { I18nKey } from "#/i18n/declaration";import { cn } from "#/utils/utils";+function BackendVersion({ backend }: { backend: Backend }) {+ const { t } = useTranslation("openhands");+ const { data: version } = useQuery({+ queryKey: ["backend-version", backend.host, backend.apiKey],+ queryFn: async () => {+ const info = await createServerClient({+ host: backend.host,+ sessionApiKey: backend.apiKey || null,+ timeout: 5000,+ }).getServerInfo();+ return info.version ?? null;+ },+ retry: false,+ staleTime: 60_000,+ enabled: backend.kind === "local",+ });++ if (!version) return null;++ return (+ <span+ className="text-xs text-[#7E848C] truncate"+ data-testid={`manage-backends-version-${backend.name}`}+ >+ {t(I18nKey.BACKEND$VERSION_LABEL, { version })}+ </span>+ );+}+interface ManageBackendsModalProps {onClose: () => void;}@@ -72,6 +104,7 @@ export function ManageBackendsModal({ onClose }: ManageBackendsModalProps) {<span className="text-xs text-[#A3A3A3] truncate">{backend.host}</span>+ <BackendVersion backend={backend} /></div><span className="px-2 py-1 rounded-full text-[11px] uppercase tracking-wide text-[#D6D6D6] bg-[#1F1F1F] border border-[#4B4E57]">{backend.kind === "cloud"diff --git a/src/components/features/settings/agent-server-onboarding.tsx b/src/components/features/settings/agent-server-onboarding.tsxindex 99983d1b1b..db9ab123b1 100644--- a/src/components/features/settings/agent-server-onboarding.tsx+++ b/src/components/features/settings/agent-server-onboarding.tsx@@ -5,12 +5,10 @@ import {getAgentServerFormDefaults,saveAgentServerConfig,} from "#/api/agent-server-config";-import { MINIMUM_SUPPORTED_AGENT_SERVER_VERSION } from "#/api/agent-server-compatibility";import { cn } from "#/utils/utils";import { BrandButton } from "./brand-button";import { SettingsInput } from "./settings-input";-type AgentServerChecklistVariant = "connect" | "upgrade";type AgentServerConnectionFormVariant = "settings" | "onboarding";interface AgentServerConnectionFormProps {@@ -20,11 +18,6 @@ interface AgentServerConnectionFormProps {showSectionHeader?: boolean;}-interface AgentServerChecklistProps {- className?: string;- variant?: AgentServerChecklistVariant;-}-export function AgentServerConnectionForm({className,formClassName,@@ -133,69 +126,3 @@ export function AgentServerConnectionForm({</form>);}--export function AgentServerChecklist({- className,- variant = "connect",-}: AgentServerChecklistProps) {- const { t } = useTranslation("openhands");-- const steps =- variant === "upgrade"- ? [- {- title: t("SETTINGS$AGENT_SERVER_STEP_UPGRADE_TITLE", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- }),- description: t("SETTINGS$AGENT_SERVER_STEP_UPGRADE_DESCRIPTION", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- }),- },- {- title: t("SETTINGS$AGENT_SERVER_STEP_URL_TITLE"),- description: t("SETTINGS$AGENT_SERVER_STEP_URL_DESCRIPTION"),- },- {- title: t("SETTINGS$AGENT_SERVER_STEP_RECONNECT_TITLE"),- description: t("SETTINGS$AGENT_SERVER_STEP_RECONNECT_DESCRIPTION"),- },- ]- : [- {- title: t("SETTINGS$AGENT_SERVER_STEP_START_TITLE", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- }),- description: t("SETTINGS$AGENT_SERVER_STEP_START_DESCRIPTION", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- }),- },- {- title: t("SETTINGS$AGENT_SERVER_STEP_URL_TITLE"),- description: t("SETTINGS$AGENT_SERVER_STEP_URL_DESCRIPTION"),- },- {- title: t("SETTINGS$AGENT_SERVER_STEP_SAVE_TITLE"),- description: t("SETTINGS$AGENT_SERVER_STEP_SAVE_DESCRIPTION"),- },- ];-- return (- <ol- data-testid="agent-server-checklist"- className={cn(- "list-decimal space-y-3 pl-5 text-sm text-gray-400 marker:text-gray-500",- className,- )}- >- {steps.map(({ title, description }, index) => (- <li key={title} className="pl-1">- <p className="text-xs font-medium uppercase tracking-[0.22em] text-gray-500">- {t("SETTINGS$AGENT_SERVER_STEP_LABEL", { step: index + 1 })}- </p>- <p className="mt-1 font-semibold text-white">{title}</p>- <p className="mt-1 leading-6">{description}</p>- </li>- ))}- </ol>- );-}diff --git a/src/hooks/query/use-config.ts b/src/hooks/query/use-config.tsindex 7d8352eb29..39e121e051 100644--- a/src/hooks/query/use-config.ts+++ b/src/hooks/query/use-config.ts@@ -1,8 +1,5 @@import { useQuery } from "@tanstack/react-query";-import {- isAgentServerIncompatibilityError,- isAgentServerUnavailableError,-} from "#/api/agent-server-compatibility";+import { isAgentServerUnavailableError } from "#/api/agent-server-compatibility";import OptionService from "#/api/option-service/option-service.api";import { QUERY_KEYS, CONFIG_CACHE_OPTIONS } from "./query-keys";@@ -15,9 +12,7 @@ export const useConfig = (options?: UseConfigOptions) =>queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,queryFn: OptionService.getConfig,retry: (failureCount, error) =>- !isAgentServerIncompatibilityError(error) &&- !isAgentServerUnavailableError(error) &&- failureCount < 3,+ !isAgentServerUnavailableError(error) && failureCount < 3,meta: { disableToast: true },...CONFIG_CACHE_OPTIONS,enabled: options?.enabled,diff --git a/src/i18n/translation.json b/src/i18n/translation.jsonindex 106067ff4e..c16e6c3982 100644--- a/src/i18n/translation.json+++ b/src/i18n/translation.json@@ -5745,193 +5745,6 @@"uk": "Retry connection","ca": "Retry connection"},- "SETTINGS$AGENT_SERVER_STEP_LABEL": {- "en": "Step {{step}}",- "ja": "Step {{step}}",- "zh-CN": "Step {{step}}",- "zh-TW": "Step {{step}}",- "ko-KR": "Step {{step}}",- "no": "Step {{step}}",- "it": "Step {{step}}",- "pt": "Step {{step}}",- "es": "Step {{step}}",- "ar": "Step {{step}}",- "fr": "Step {{step}}",- "tr": "Step {{step}}",- "de": "Step {{step}}",- "uk": "Step {{step}}",- "ca": "Step {{step}}"- },- "SETTINGS$AGENT_SERVER_STEP_START_TITLE": {- "en": "Start a compatible server",- "ja": "Start a compatible server",- "zh-CN": "Start a compatible server",- "zh-TW": "Start a compatible server",- "ko-KR": "Start a compatible server",- "no": "Start a compatible server",- "it": "Start a compatible server",- "pt": "Start a compatible server",- "es": "Start a compatible server",- "ar": "Start a compatible server",- "fr": "Start a compatible server",- "tr": "Start a compatible server",- "de": "Start a compatible server",- "uk": "Start a compatible server",- "ca": "Start a compatible server"- },- "SETTINGS$AGENT_SERVER_STEP_START_DESCRIPTION": {- "en": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "ja": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "zh-CN": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "zh-TW": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "ko-KR": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "no": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "it": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "pt": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "es": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "ar": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "fr": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "tr": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "de": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "uk": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage.",- "ca": "Run an agent server version {{minimumVersion}} or newer locally, or use a remote deployment you already manage."- },- "SETTINGS$AGENT_SERVER_STEP_URL_TITLE": {- "en": "Enter its URL",- "ja": "Enter its URL",- "zh-CN": "Enter its URL",- "zh-TW": "Enter its URL",- "ko-KR": "Enter its URL",- "no": "Enter its URL",- "it": "Enter its URL",- "pt": "Enter its URL",- "es": "Enter its URL",- "ar": "Enter its URL",- "fr": "Enter its URL",- "tr": "Enter its URL",- "de": "Enter its URL",- "uk": "Enter its URL",- "ca": "Enter its URL"- },- "SETTINGS$AGENT_SERVER_STEP_URL_DESCRIPTION": {- "en": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "ja": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "zh-CN": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "zh-TW": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "ko-KR": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "no": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "it": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "pt": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "es": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "ar": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "fr": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "tr": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "de": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "uk": "Use the address where this browser can reach the server, such as https://agent.example.com.",- "ca": "Use the address where this browser can reach the server, such as https://agent.example.com."- },- "SETTINGS$AGENT_SERVER_STEP_SAVE_TITLE": {- "en": "Save and reconnect",- "ja": "Save and reconnect",- "zh-CN": "Save and reconnect",- "zh-TW": "Save and reconnect",- "ko-KR": "Save and reconnect",- "no": "Save and reconnect",- "it": "Save and reconnect",- "pt": "Save and reconnect",- "es": "Save and reconnect",- "ar": "Save and reconnect",- "fr": "Save and reconnect",- "tr": "Save and reconnect",- "de": "Save and reconnect",- "uk": "Save and reconnect",- "ca": "Save and reconnect"- },- "SETTINGS$AGENT_SERVER_STEP_SAVE_DESCRIPTION": {- "en": "We'll store your choice in this browser and reconnect right away.",- "ja": "We'll store your choice in this browser and reconnect right away.",- "zh-CN": "We'll store your choice in this browser and reconnect right away.",- "zh-TW": "We'll store your choice in this browser and reconnect right away.",- "ko-KR": "We'll store your choice in this browser and reconnect right away.",- "no": "We'll store your choice in this browser and reconnect right away.",- "it": "We'll store your choice in this browser and reconnect right away.",- "pt": "We'll store your choice in this browser and reconnect right away.",- "es": "We'll store your choice in this browser and reconnect right away.",- "ar": "We'll store your choice in this browser and reconnect right away.",- "fr": "We'll store your choice in this browser and reconnect right away.",- "tr": "We'll store your choice in this browser and reconnect right away.",- "de": "We'll store your choice in this browser and reconnect right away.",- "uk": "We'll store your choice in this browser and reconnect right away.",- "ca": "We'll store your choice in this browser and reconnect right away."- },- "SETTINGS$AGENT_SERVER_STEP_UPGRADE_TITLE": {- "en": "Upgrade to {{minimumVersion}}+",- "ja": "Upgrade to {{minimumVersion}}+",- "zh-CN": "Upgrade to {{minimumVersion}}+",- "zh-TW": "Upgrade to {{minimumVersion}}+",- "ko-KR": "Upgrade to {{minimumVersion}}+",- "no": "Upgrade to {{minimumVersion}}+",- "it": "Upgrade to {{minimumVersion}}+",- "pt": "Upgrade to {{minimumVersion}}+",- "es": "Upgrade to {{minimumVersion}}+",- "ar": "Upgrade to {{minimumVersion}}+",- "fr": "Upgrade to {{minimumVersion}}+",- "tr": "Upgrade to {{minimumVersion}}+",- "de": "Upgrade to {{minimumVersion}}+",- "uk": "Upgrade to {{minimumVersion}}+",- "ca": "Upgrade to {{minimumVersion}}+"- },- "SETTINGS$AGENT_SERVER_STEP_UPGRADE_DESCRIPTION": {- "en": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "ja": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "zh-CN": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "zh-TW": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "ko-KR": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "no": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "it": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "pt": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "es": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "ar": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "fr": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "tr": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "de": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "uk": "Update the connected agent server so it exposes the APIs Agent Canvas expects.",- "ca": "Update the connected agent server so it exposes the APIs Agent Canvas expects."- },- "SETTINGS$AGENT_SERVER_STEP_RECONNECT_TITLE": {- "en": "Reconnect Agent Canvas",- "ja": "Reconnect Agent Canvas",- "zh-CN": "Reconnect Agent Canvas",- "zh-TW": "Reconnect Agent Canvas",- "ko-KR": "Reconnect Agent Canvas",- "no": "Reconnect Agent Canvas",- "it": "Reconnect Agent Canvas",- "pt": "Reconnect Agent Canvas",- "es": "Reconnect Agent Canvas",- "ar": "Reconnect Agent Canvas",- "fr": "Reconnect Agent Canvas",- "tr": "Reconnect Agent Canvas",- "de": "Reconnect Agent Canvas",- "uk": "Reconnect Agent Canvas",- "ca": "Reconnect Agent Canvas"- },- "SETTINGS$AGENT_SERVER_STEP_RECONNECT_DESCRIPTION": {- "en": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "ja": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "zh-CN": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "zh-TW": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "ko-KR": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "no": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "it": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "pt": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "es": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "ar": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "fr": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "tr": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "de": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "uk": "Retry once the server is upgraded, or point this browser at a newer deployment.",- "ca": "Retry once the server is upgraded, or point this browser at a newer deployment."- },"SETTINGS$AGENT_SERVER_ONBOARDING_EYEBROW": {"en": "Get started","ja": "Get started",@@ -6017,125 +5830,6 @@"uk": "Check the URL, confirm the server is running, and try again. You can also point Agent Canvas at a different deployment.","ca": "Check the URL, confirm the server is running, and try again. You can also point Agent Canvas at a different deployment."},- "SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_TITLE": {- "en": "We couldn't confirm the server version",- "ja": "We couldn't confirm the server version",- "zh-CN": "We couldn't confirm the server version",- "zh-TW": "We couldn't confirm the server version",- "ko-KR": "We couldn't confirm the server version",- "no": "We couldn't confirm the server version",- "it": "We couldn't confirm the server version",- "pt": "We couldn't confirm the server version",- "es": "We couldn't confirm the server version",- "ar": "We couldn't confirm the server version",- "fr": "We couldn't confirm the server version",- "tr": "We couldn't confirm the server version",- "de": "We couldn't confirm the server version",- "uk": "We couldn't confirm the server version",- "ca": "We couldn't confirm the server version"- },- "SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_MESSAGE": {- "en": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "ja": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "zh-CN": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "zh-TW": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "ko-KR": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "no": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "it": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "pt": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "es": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "ar": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "fr": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "tr": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "de": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "uk": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server.",- "ca": "We reached something at that URL, but it did not identify itself as an agent server version {{minimumVersion}} or newer. Double-check the URL or upgrade the server."- },- "SETTINGS$AGENT_SERVER_UPGRADE_EYEBROW": {- "en": "Upgrade required",- "ja": "Upgrade required",- "zh-CN": "Upgrade required",- "zh-TW": "Upgrade required",- "ko-KR": "Upgrade required",- "no": "Upgrade required",- "it": "Upgrade required",- "pt": "Upgrade required",- "es": "Upgrade required",- "ar": "Upgrade required",- "fr": "Upgrade required",- "tr": "Upgrade required",- "de": "Upgrade required",- "uk": "Upgrade required",- "ca": "Upgrade required"- },- "SETTINGS$AGENT_SERVER_UPGRADE_TITLE": {- "en": "Update your agent server",- "ja": "Update your agent server",- "zh-CN": "Update your agent server",- "zh-TW": "Update your agent server",- "ko-KR": "Update your agent server",- "no": "Update your agent server",- "it": "Update your agent server",- "pt": "Update your agent server",- "es": "Update your agent server",- "ar": "Update your agent server",- "fr": "Update your agent server",- "tr": "Update your agent server",- "de": "Update your agent server",- "uk": "Update your agent server",- "ca": "Update your agent server"- },- "SETTINGS$AGENT_SERVER_UPGRADE_DESCRIPTION": {- "en": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "ja": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "zh-CN": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "zh-TW": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "ko-KR": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "no": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "it": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "pt": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "es": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "ar": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "fr": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "tr": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "de": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "uk": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment.",- "ca": "Agent Canvas can only connect to agent server version {{minimumVersion}} or newer. Upgrade the server or point Agent Canvas at a newer deployment."- },- "SETTINGS$AGENT_SERVER_UPGRADE_STATUS_TITLE": {- "en": "The connected server is too old",- "ja": "The connected server is too old",- "zh-CN": "The connected server is too old",- "zh-TW": "The connected server is too old",- "ko-KR": "The connected server is too old",- "no": "The connected server is too old",- "it": "The connected server is too old",- "pt": "The connected server is too old",- "es": "The connected server is too old",- "ar": "The connected server is too old",- "fr": "The connected server is too old",- "tr": "The connected server is too old",- "de": "The connected server is too old",- "uk": "The connected server is too old",- "ca": "The connected server is too old"- },- "SETTINGS$AGENT_SERVER_UPGRADE_STATUS_MESSAGE": {- "en": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "ja": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "zh-CN": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "zh-TW": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "ko-KR": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "no": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "it": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "pt": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "es": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "ar": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "fr": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "tr": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "de": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "uk": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form.",- "ca": "Upgrade this agent server to version {{minimumVersion}} or newer, or switch to another deployment from the connection form."- },"SETTINGS$AGENT_SERVER_OPEN_SETTINGS_PAGE": {"en": "Open full settings page","ja": "Open full settings page",@@ -6204,23 +5898,6 @@"uk": "Details: {{details}}","ca": "Details: {{details}}"},- "SETTINGS$AGENT_SERVER_DETECTED_VERSION": {- "en": "Detected version: {{version}}",- "ja": "Detected version: {{version}}",- "zh-CN": "Detected version: {{version}}",- "zh-TW": "Detected version: {{version}}",- "ko-KR": "Detected version: {{version}}",- "no": "Detected version: {{version}}",- "it": "Detected version: {{version}}",- "pt": "Detected version: {{version}}",- "es": "Detected version: {{version}}",- "ar": "Detected version: {{version}}",- "fr": "Detected version: {{version}}",- "tr": "Detected version: {{version}}",- "de": "Detected version: {{version}}",- "uk": "Detected version: {{version}}",- "ca": "Detected version: {{version}}"- },"SETTINGS$SOUND_NOTIFICATIONS": {"en": "Sound Notifications","ja": "サウンド通知",@@ -22563,7 +22240,6 @@"uk": "Додаткові бекенди ще не додано.","ca": "Encara no s'han afegit backends addicionals."},-"BACKEND$ADD_TITLE": {"en": "Add a backend","ja": "バックエンドを追加",@@ -22751,6 +22427,23 @@"uk": "Локальний","ca": "Local"},+ "BACKEND$VERSION_LABEL": {+ "en": "v{{version}}",+ "ja": "v{{version}}",+ "zh-CN": "v{{version}}",+ "zh-TW": "v{{version}}",+ "ko-KR": "v{{version}}",+ "no": "v{{version}}",+ "it": "v{{version}}",+ "pt": "v{{version}}",+ "es": "v{{version}}",+ "ar": "v{{version}}",+ "fr": "v{{version}}",+ "tr": "v{{version}}",+ "de": "v{{version}}",+ "uk": "v{{version}}",+ "ca": "v{{version}}"+ },"SETTINGS$BACKEND_SYNCED_BADGE": {"en": "These settings are synced from {{name}} backend ({{host}})","ja": "これらの設定は {{name}} バックエンド ({{host}}) と同期されています",diff --git a/src/root.tsx b/src/root.tsxindex cc84df1159..c8063a729d 100644--- a/src/root.tsx+++ b/src/root.tsx@@ -12,11 +12,8 @@ import React from "react";import { Toaster } from "react-hot-toast";import { useTranslation } from "react-i18next";import {- AgentServerIncompatibilityError,AgentServerUnavailableError,- isAgentServerIncompatibilityError,isAgentServerUnavailableError,- MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,} from "#/api/agent-server-compatibility";import { AgentServerConnectionForm } from "#/components/features/settings/agent-server-onboarding";import { TelemetryConsentBanner } from "#/components/features/analytics/telemetry-consent-banner";@@ -51,12 +48,10 @@ function AgentServerStatusCard({title,message,details,- version,}: {title: string;message: string;details?: string | null;- version?: string | null;}) {const { t } = useTranslation("openhands");@@ -64,11 +59,6 @@ function AgentServerStatusCard({<div className="mt-6 rounded-2xl border border-primary/20 bg-primary/10 p-4"><p className="text-sm font-semibold text-white">{title}</p><p className="mt-2 text-sm leading-6 text-neutral-200">{message}</p>- {version ? (- <p className="mt-3 text-xs leading-5 text-neutral-400">- {t("SETTINGS$AGENT_SERVER_DETECTED_VERSION", { version })}- </p>- ) : null}{details ? (<p className="mt-3 text-xs leading-5 text-neutral-400">{t("SETTINGS$AGENT_SERVER_DETAILS_LABEL", { details })}@@ -98,7 +88,6 @@ function AgentServerOnboardingLayout({statusTitle,statusMessage,statusDetails,- version,}: {testId: string;eyebrow: string;@@ -107,7 +96,6 @@ function AgentServerOnboardingLayout({statusTitle: string;statusMessage: string;statusDetails?: string | null;- version?: string | null;}) {const { t } = useTranslation("openhands");@@ -133,7 +121,6 @@ function AgentServerOnboardingLayout({title={statusTitle}message={statusMessage}details={statusDetails}- version={version}/><p className="mt-6 max-w-3xl text-sm leading-6 text-gray-400">@@ -159,49 +146,6 @@ function AgentServerOnboardingLayout({);}-function UnsupportedAgentServerNotice({- error,-}: {- error: AgentServerIncompatibilityError;-}) {- const { t } = useTranslation("openhands");-- return (- <AgentServerOnboardingLayout- testId="agent-server-upgrade-screen"- eyebrow={t("SETTINGS$AGENT_SERVER_UPGRADE_EYEBROW")}- title={t("SETTINGS$AGENT_SERVER_UPGRADE_TITLE")}- description={t("SETTINGS$AGENT_SERVER_UPGRADE_DESCRIPTION", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- })}- statusTitle={t("SETTINGS$AGENT_SERVER_UPGRADE_STATUS_TITLE")}- statusMessage={t("SETTINGS$AGENT_SERVER_UPGRADE_STATUS_MESSAGE", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- })}- version={error.serverVersion}- />- );-}--function UnknownAgentServerNotice() {- const { t } = useTranslation("openhands");-- return (- <AgentServerOnboardingLayout- testId="agent-server-onboarding-screen"- eyebrow={t("SETTINGS$AGENT_SERVER_ONBOARDING_EYEBROW")}- title={t("SETTINGS$AGENT_SERVER_ONBOARDING_TITLE")}- description={t("SETTINGS$AGENT_SERVER_ONBOARDING_DESCRIPTION", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- })}- statusTitle={t("SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_TITLE")}- statusMessage={t("SETTINGS$AGENT_SERVER_UNKNOWN_VERSION_STATUS_MESSAGE", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- })}- />- );-}-function MissingAgentServerNotice({error,}: {@@ -214,9 +158,7 @@ function MissingAgentServerNotice({testId="agent-server-onboarding-screen"eyebrow={t("SETTINGS$AGENT_SERVER_ONBOARDING_EYEBROW")}title={t("SETTINGS$AGENT_SERVER_ONBOARDING_TITLE")}- description={t("SETTINGS$AGENT_SERVER_ONBOARDING_DESCRIPTION", {- minimumVersion: MINIMUM_SUPPORTED_AGENT_SERVER_VERSION,- })}+ description={t("SETTINGS$AGENT_SERVER_ONBOARDING_DESCRIPTION")}statusTitle={t("SETTINGS$AGENT_SERVER_UNAVAILABLE_STATUS_TITLE")}statusMessage={t("SETTINGS$AGENT_SERVER_UNAVAILABLE_STATUS_MESSAGE")}statusDetails={error.details}@@ -240,13 +182,5 @@ export default function App() {return <MissingAgentServerNotice error={config.error} />;}- if (isAgentServerIncompatibilityError(config.error)) {- if (!config.error.serverVersion) {- return <UnknownAgentServerNotice />;- }-- return <UnsupportedAgentServerNotice error={config.error} />;- }-return <Outlet />;}