Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: improve agent web app accessibility (#42475)
Joel331e6189612b
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.jsonindex 4e24a27e408..812088ed515 100644--- a/oxlint-suppressions.json+++ b/oxlint-suppressions.json@@ -769,12 +769,6 @@}},"web/app/components/base/chat/chat-with-history/header-in-mobile.tsx": {- "jsx-a11y/click-events-have-key-events": {- "count": 4- },- "jsx-a11y/no-static-element-interactions": {- "count": 4- },"typescript/no-explicit-any": {"count": 2}diff --git a/web/app/components/base/chat/chat-with-history/__tests__/header-in-mobile.spec.tsx b/web/app/components/base/chat/chat-with-history/__tests__/header-in-mobile.spec.tsxindex d0f33161106..6ef3533a61c 100644--- a/web/app/components/base/chat/chat-with-history/__tests__/header-in-mobile.spec.tsx+++ b/web/app/components/base/chat/chat-with-history/__tests__/header-in-mobile.spec.tsx@@ -2,7 +2,8 @@ import type { i18n } from 'i18next'import type { ChatConfig } from '../../types'import type { ChatWithHistoryContextValue } from '../context'import type { AppData, AppMeta } from '@/models/share'-import { fireEvent, screen, waitFor } from '@testing-library/react'+import { fireEvent, screen, waitFor, within } from '@testing-library/react'+import userEvent from '@testing-library/user-event'import * as ReactI18next from 'react-i18next'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import { renderWithConsoleQuery as render } from '@/test/console/query-data'@@ -118,97 +119,55 @@ describe('HeaderInMobile', () => {expect(await screen.findByText('Conv 1'))!.toBeInTheDocument()})- it('should open and close sidebar', async () => {+ it('contains sidebar focus and restores the trigger after Escape', async () => {+ const user = userEvent.setup()render(<HeaderInMobile />)-- // Open sidebar (menu button is the first action btn)- const menuButton = screen.getAllByRole('button')[0]- fireEvent.click(menuButton!)-- // HeaderInMobile renders MobileSidebar which renders Sidebar and overlay- // HeaderInMobile renders MobileSidebar which renders Sidebar and overlay- expect(await screen.findByTestId('mobile-sidebar-overlay'))!.toBeInTheDocument()- expect(screen.getByTestId('sidebar-content'))!.toBeInTheDocument()-- // Close sidebar via overlay click- fireEvent.click(screen.getByTestId('mobile-sidebar-overlay'))- await waitFor(() => {- expect(screen.queryByTestId('mobile-sidebar-overlay')).not.toBeInTheDocument()- })+ const trigger = screen.getByRole('button', { name: 'layout.sidebar.expandSidebar' })+ const backgroundMore = screen.getByRole('button', { name: 'common.operation.more' })+ await user.click(trigger)+ const sidebar = await screen.findByRole('dialog', { name: 'Test Chat' })+ await waitFor(() => expect(sidebar).toContainElement(document.activeElement as HTMLElement))+ expect(screen.queryAllByRole('button', { name: 'common.operation.more' })).not.toContain(+ backgroundMore,+ )+ await user.tab({ shift: true })+ expect(sidebar).toContainElement(document.activeElement as HTMLElement)+ await user.keyboard('{Escape}')+ await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ await waitFor(() => expect(trigger).toHaveFocus())})- it('should not close sidebar when clicking inside sidebar content', async () => {+ it('provides a keyboard-operable sidebar close button', async () => {+ const user = userEvent.setup()render(<HeaderInMobile />)-- // Open sidebar- const menuButton = screen.getAllByRole('button')[0]- fireEvent.click(menuButton!)-- expect(await screen.findByTestId('mobile-sidebar-overlay'))!.toBeInTheDocument()-- // Click inside sidebar content (should not close)- fireEvent.click(screen.getByTestId('sidebar-content'))-- // Sidebar should still be visible- // Sidebar should still be visible- expect(screen.getByTestId('mobile-sidebar-overlay'))!.toBeInTheDocument()+ const trigger = screen.getByRole('button', { name: 'layout.sidebar.expandSidebar' })+ await user.click(trigger)+ const sidebar = await screen.findByRole('dialog', { name: 'Test Chat' })+ const close = within(sidebar).getByRole('button', { name: 'common.operation.close' })+ close.focus()+ await user.keyboard('{Enter}')+ await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ await waitFor(() => expect(trigger).toHaveFocus())})- it('should open and close chat settings', async () => {+ it('opens named modal chat settings and closes with Escape', async () => {+ const user = userEvent.setup()vi.mocked(useChatWithHistoryContext).mockReturnValue({...defaultContextValue,inputsForms: [{ variable: 'test', label: 'Test', type: 'text', required: true }],})-render(<HeaderInMobile />)-- // Open dropdown (More button)- fireEvent.click(await screen.findByRole('button', { name: 'common.operation.more' }))-- // Find and click "View Chat Settings"- await waitFor(() => {- expect(screen.getByText(/share\.chat\.viewChatSettings/i))!.toBeInTheDocument()- })- fireEvent.click(screen.getByText(/share\.chat\.viewChatSettings/i))-- // Check if chat settings overlay is open- await waitFor(() => {- expect(screen.getByTestId('mobile-chat-settings-overlay')).toBeInTheDocument()- })-- // Close chat settings via overlay click- fireEvent.click(screen.getByTestId('mobile-chat-settings-overlay'))- await waitFor(() => {- expect(screen.queryByTestId('mobile-chat-settings-overlay')).not.toBeInTheDocument()- })- })-- it('should not close chat settings when clicking inside settings content', async () => {- vi.mocked(useChatWithHistoryContext).mockReturnValue({- ...defaultContextValue,- inputsForms: [{ variable: 'test', label: 'Test', type: 'text', required: true }],- })-- render(<HeaderInMobile />)-- // Open dropdown and chat settings- fireEvent.click(await screen.findByRole('button', { name: 'common.operation.more' }))- await waitFor(() => {- expect(screen.getByText(/share\.chat\.viewChatSettings/i))!.toBeInTheDocument()- })- fireEvent.click(screen.getByText(/share\.chat\.viewChatSettings/i))-- await waitFor(() => {- expect(screen.getByTestId('mobile-chat-settings-overlay')).toBeInTheDocument()- })-- // Click inside the settings panel (find the title)- const settingsTitle = screen.getByText(/share\.chat\.chatSettingsTitle/i)- fireEvent.click(settingsTitle)-- // Settings should still be visible- // Settings should still be visible- expect(screen.getByTestId('mobile-chat-settings-overlay'))!.toBeInTheDocument()+ const trigger = screen.getByRole('button', { name: 'common.operation.more' })+ await user.click(trigger)+ await user.click(await screen.findByRole('menuitem', { name: 'share.chat.viewChatSettings' }))+ const settings = await screen.findByRole('dialog', { name: 'share.chat.chatSettingsTitle' })+ await waitFor(() => expect(settings).toContainElement(document.activeElement as HTMLElement))+ expect(+ within(settings).getByRole('button', { name: 'common.operation.close' }),+ ).toBeInTheDocument()+ await user.keyboard('{Escape}')+ await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument())+ await waitFor(() => expect(trigger).toHaveFocus())})it('should hide chat settings option when no input forms', async () => {diff --git a/web/app/components/base/chat/chat-with-history/__tests__/sidebar-focus.browser.spec.tsx b/web/app/components/base/chat/chat-with-history/__tests__/sidebar-focus.browser.spec.tsxnew file mode 100644index 00000000000..60af17a8ae9--- /dev/null+++ b/web/app/components/base/chat/chat-with-history/__tests__/sidebar-focus.browser.spec.tsx@@ -0,0 +1,172 @@+import { QueryClient, QueryClientProvider } from '@tanstack/react-query'+import { useState } from 'react'+import { userEvent } from 'vite-plus/test/browser'+import { render } from 'vitest-browser-react'+import ChatWithHistory from '../index'++vi.mock('@/hooks/use-breakpoints', () => ({+ default: () => 'pc',+ MediaType: { mobile: 'mobile', tablet: 'tablet', pc: 'pc' },+}))+vi.mock('@/next/navigation', () => ({+ useRouter: () => ({ push: vi.fn(), replace: vi.fn() }),+ usePathname: () => '/agent/test',+ useParams: () => ({}),+ useSearchParams: () => new URLSearchParams(),+}))+vi.mock('@/context/web-app-context', () => ({ useWebAppStore: () => null }))+vi.mock('@/features/system-features/client', () => ({+ systemFeaturesQueryOptions: () => ({+ queryKey: ['sidebar-focus-system-features'],+ initialData: { branding: { enabled: false } },+ queryFn: async () => ({ branding: { enabled: false } }),+ staleTime: Infinity,+ }),+}))+// Replace conversation loading and the chat renderer; keep the production layout,+// sidebar, header, and conversation menu that own focus and visibility real.+vi.mock('../hooks', () => ({+ useChatWithHistory: () => {+ const [sidebarCollapseState, setSidebarCollapseState] = useState(false)+ return {+ appData: { site: { title: 'Keyboard chat', icon: '😀', icon_type: 'emoji' } },+ pinnedConversationList: [],+ conversationList: [+ { id: 'saved', name: 'Saved conversation', inputs: null, introduction: '' },+ ],+ currentConversationId: '',+ inputsForms: [],+ appPrevChatTree: [],+ newConversationInputs: {},+ newConversationInputsRef: { current: {} },+ sidebarCollapseState,+ handleSidebarCollapse: setSidebarCollapseState,+ handleNewConversation: vi.fn(),+ handleChangeConversation: vi.fn(),+ isInstalledApp: true,+ isResponding: false,+ }+ },+}))+vi.mock('../chat-wrapper', () => ({+ default: () => <button type="button">Chat input boundary</button>,+}))++it('keeps desktop keyboard focus visible across sidebar states and conversation actions', async () => {+ // Real Chromium is needed to prove native inert Tab skipping, focus restoration+ // during collapse, and focus-visible opacity on a non-hovered conversation row.+ const client = new QueryClient({ defaultOptions: { queries: { retry: false } } })+ const screen = await render(+ <QueryClientProvider client={client}>+ <div className="h-150 w-240">+ <button type="button">Before chat</button>+ <ChatWithHistory />+ </div>+ </QueryClientProvider>,+ )+ const before = screen.getByRole('button', { name: 'Before chat' })+ const collapse = screen.getByRole('button', { name: 'layout.sidebar.collapseSidebar' })+ const chat = screen.getByRole('button', { name: 'Chat input boundary' })+ await before.click()+ await userEvent.tab()+ await expect.element(collapse).toHaveFocus()+ await userEvent.tab()+ await expect.element(screen.getByRole('button', { name: 'share.chat.newChat' })).toHaveFocus()+ await userEvent.tab()+ await expect.element(screen.getByRole('button', { name: 'Saved conversation' })).toHaveFocus()+ await userEvent.tab()+ const more = screen.getByRole('button', { name: 'common.operation.more' }).first()+ await expect.element(more).toHaveFocus()+ expect(getComputedStyle(more.element()).opacity).toBe('1')+ await userEvent.keyboard('{Enter}')+ await expect+ .element(screen.getByRole('menuitem', { name: 'explore.sidebar.action.pin' }))+ .toBeVisible()+ await userEvent.keyboard('{Escape}')+ await userEvent.tab()+ await userEvent.tab()+ await expect.element(chat).toHaveFocus()++ // Collapsing must put focus on the visible replacement toggle, and the next+ // native Tab must skip both hidden copies of the sidebar's actions.+ await collapse.click()+ const expand = screen.getByRole('button', { name: 'layout.sidebar.expandSidebar' }).last()+ await expect.element(expand).toHaveFocus()+ await userEvent.tab()+ await expect.element(chat).toHaveFocus()+ await userEvent.tab({ shift: true })+ await expect.element(expand).toHaveFocus()+ await userEvent.keyboard('{Enter}')+ await expect.element(collapse).toHaveFocus()+ expect(collapse.element().checkVisibility({ checkOpacity: true })).toBe(true)+})++it('keeps the floating sidebar available through its portalled menu and closes after focus leaves', async () => {+ // Pointer leave and Escape cross the real portal boundary; focus must return+ // to a visible, interactive trigger instead of a newly inert offscreen panel.+ const client = new QueryClient({ defaultOptions: { queries: { retry: false } } })+ const screen = await render(+ <QueryClientProvider client={client}>+ <section aria-label="Chat preview" className="h-150 w-240">+ <button type="button">Outside sidebar</button>+ <ChatWithHistory />+ </section>+ </QueryClientProvider>,+ )+ await screen.getByRole('button', { name: 'layout.sidebar.collapseSidebar' }).click()+ await screen.getByRole('region', { name: 'Chat preview' }).hover({ position: { x: 2, y: 150 } })+ const conversation = screen.getByRole('button', { name: 'Saved conversation' }).last()+ await expect.element(conversation).toBeVisible()+ await conversation.click()+ await userEvent.tab()+ const more = screen.getByRole('button', { name: 'common.operation.more' }).nth(2)+ await expect.element(more).toHaveFocus()+ await userEvent.keyboard('{Enter}')+ await expect+ .element(screen.getByRole('menuitem', { name: 'explore.sidebar.action.pin' }))+ .toBeVisible()+ await screen.getByRole('button', { name: 'Outside sidebar' }).hover()+ await userEvent.keyboard('{Escape}')+ await expect.element(more).toHaveFocus()+ expect(more.element().checkVisibility({ checkOpacity: true })).toBe(true)+ expect(more.element().closest('[inert]')).toBeNull()+ await userEvent.keyboard('{Enter}')+ await expect+ .element(screen.getByRole('menuitem', { name: 'explore.sidebar.action.pin' }))+ .toBeVisible()+ await userEvent.keyboard('{Escape}')+ await expect.element(more).toHaveFocus()+ await screen.getByRole('button', { name: 'Outside sidebar' }).click()+ await expect.poll(() => conversation.element().closest('[inert]')).not.toBeNull()+})++it('closes the floating sidebar when both the pointer and keyboard focus leave it', async () => {+ // Native pointer leave precedes blur here. Tab between sidebar controls must+ // keep the panel usable, but moving focus outside must make its actions inert.+ const client = new QueryClient({ defaultOptions: { queries: { retry: false } } })+ const screen = await render(+ <QueryClientProvider client={client}>+ <section aria-label="Chat preview" className="h-150 w-240">+ <button type="button">Outside sidebar</button>+ <ChatWithHistory />+ </section>+ </QueryClientProvider>,+ )+ await screen.getByRole('button', { name: 'layout.sidebar.collapseSidebar' }).click()+ await screen.getByRole('region', { name: 'Chat preview' }).hover({ position: { x: 2, y: 150 } })+ const conversation = screen.getByRole('button', { name: 'Saved conversation' }).last()+ await conversation.click()+ await screen.getByRole('button', { name: 'Outside sidebar' }).hover()+ await expect.element(conversation).toHaveFocus()++ await userEvent.tab()+ const more = screen.getByRole('button', { name: 'common.operation.more' }).nth(2)+ await expect.element(more).toHaveFocus()+ await userEvent.tab({ shift: true })+ await expect.element(conversation).toHaveFocus()++ const outside = screen.getByRole('button', { name: 'Outside sidebar' })+ await outside.click()+ await expect.element(outside).toHaveFocus()+ await expect.poll(() => conversation.element().closest('[inert]')).not.toBeNull()+})diff --git a/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx b/web/app/components/base/chat/chat-with-history/header-in-mobile.tsxindex 11c0f04a649..39bff5e5008 100644--- a/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx+++ b/web/app/components/base/chat/chat-with-history/header-in-mobile.tsx@@ -8,6 +8,16 @@ import {AlertDialogDescription,AlertDialogTitle,} from '@langgenius/dify-ui/alert-dialog'+import {+ Dialog,+ DialogBackdrop,+ DialogClose,+ DialogPopup,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+ DialogViewport,+} from '@langgenius/dify-ui/dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'import { useCallback, useState } from 'react'import { useTranslation } from 'react-i18next'@@ -77,86 +87,105 @@ const HeaderInMobile = () => {return (<>- <div className="flex shrink-0 items-center gap-1 bg-mask-top2bottom-gray-50-to-transparent px-2 py-3">- <IconButton- aria-label={t(($) => $['sidebar.expandSidebar'], { ns: 'layout' })}- size="lg"- className="shrink-0"- onClick={() => setShowSidebar(true)}- >- <div aria-hidden="true" className="i-ri-menu-line h-4.5 w-4.5" />- </IconButton>- <div className="flex grow items-center justify-center">- {!currentConversationId && (- <>- <AppIcon- className="mr-2"- size="tiny"- icon={appData?.site.icon}- iconType={appData?.site.icon_type}- imageUrl={appData?.site.icon_url}- background={appData?.site.icon_background}+ <Dialog open={showSidebar} onOpenChange={setShowSidebar}>+ <div className="flex shrink-0 items-center gap-1 bg-mask-top2bottom-gray-50-to-transparent px-2 py-3">+ <DialogTrigger+ render={+ <IconButton+ aria-label={t(($) => $['sidebar.expandSidebar'], { ns: 'layout' })}+ size="lg"+ className="shrink-0"+ >+ <div aria-hidden="true" className="i-ri-menu-line h-4.5 w-4.5" />+ </IconButton>+ }+ />+ <div className="flex grow items-center justify-center">+ {!currentConversationId && (+ <>+ <AppIcon+ className="mr-2"+ size="tiny"+ icon={appData?.site.icon}+ iconType={appData?.site.icon_type}+ imageUrl={appData?.site.icon_url}+ background={appData?.site.icon_background}+ />+ <div className="truncate system-md-semibold text-text-secondary">+ {appData?.site.title}+ </div>+ </>+ )}+ {currentConversationId && (+ <Operation+ title={currentConversationItem?.name || ''}+ isPinned={!!isPin}+ togglePin={() => handleOperate(isPin ? 'unpin' : 'pin')}+ isShowDelete+ isShowRenameConversation+ onRenameConversation={() => handleOperate('rename')}+ onDelete={() => handleOperate('delete')}/>- <div className="truncate system-md-semibold text-text-secondary">- {appData?.site.title}- </div>- </>- )}- {currentConversationId && (- <Operation- title={currentConversationItem?.name || ''}- isPinned={!!isPin}- togglePin={() => handleOperate(isPin ? 'unpin' : 'pin')}- isShowDelete- isShowRenameConversation- onRenameConversation={() => handleOperate('rename')}- onDelete={() => handleOperate('delete')}- />- )}- </div>- <MobileOperationDropdown- handleResetChat={handleNewConversation}- handleViewChatSettings={() => setShowChatSettings(true)}- hideViewChatSettings={inputsForms.length < 1}- />- </div>- {showSidebar && (- <div- className="fixed inset-0 z-50 flex bg-background-overlay p-1"- onClick={() => setShowSidebar(false)}- data-testid="mobile-sidebar-overlay"- >- <div- className="flex h-full w-[calc(100vw-40px)] rounded-xl bg-components-panel-bg shadow-lg backdrop-blur-xs"- onClick={(e) => e.stopPropagation()}- data-testid="sidebar-content"- >- <Sidebar />+ )}</div>+ <MobileOperationDropdown+ handleResetChat={handleNewConversation}+ handleViewChatSettings={() => setShowChatSettings(true)}+ hideViewChatSettings={inputsForms.length < 1}+ /></div>- )}- {showChatSettings && (- <div- className="fixed inset-0 z-50 flex justify-end bg-background-overlay p-1"- onClick={() => setShowChatSettings(false)}- data-testid="mobile-chat-settings-overlay"- >- <div- className="flex h-full w-[calc(100vw-40px)] flex-col rounded-xl bg-components-panel-bg shadow-lg backdrop-blur-xs"- onClick={(e) => e.stopPropagation()}- >- <div className="flex items-center gap-3 rounded-t-2xl border-b border-divider-subtle px-4 py-3">- <div className="i-custom-public-other-message-3-fill size-6 shrink-0" />- <div className="grow system-xl-semibold text-text-secondary">- {t(($) => $['chat.chatSettingsTitle'], { ns: 'share' })}+ <DialogPortal>+ <DialogBackdrop />+ <DialogViewport className="flex p-1">+ <DialogPopup className="flex h-full w-[calc(100vw-40px)] flex-col rounded-xl backdrop-blur-xs">+ <DialogTitle className="sr-only">+ {appData?.site.title || t(($) => $['sidebar.expandSidebar'], { ns: 'layout' })}+ </DialogTitle>+ <DialogClose+ render={+ <IconButton+ className="m-2 self-end"+ aria-label={t(($) => $['operation.close'], { ns: 'common' })}+ >+ <span aria-hidden="true" className="i-ri-close-line size-4" />+ </IconButton>+ }+ />+ <div className="flex min-h-0 flex-1">+ <Sidebar /></div>- </div>- <div className="p-4">- <InputsFormContent />- </div>- </div>- </div>- )}+ </DialogPopup>+ </DialogViewport>+ </DialogPortal>+ </Dialog>+ <Dialog open={showChatSettings} onOpenChange={setShowChatSettings}>+ <DialogPortal>+ <DialogBackdrop />+ <DialogViewport className="flex justify-end p-1">+ <DialogPopup className="flex h-full w-[calc(100vw-40px)] flex-col rounded-xl backdrop-blur-xs">+ <div className="flex items-center gap-3 rounded-t-2xl border-b border-divider-subtle px-4 py-3">+ <div+ aria-hidden="true"+ className="i-custom-public-other-message-3-fill size-6 shrink-0"+ />+ <DialogTitle className="grow system-xl-semibold text-text-secondary">+ {t(($) => $['chat.chatSettingsTitle'], { ns: 'share' })}+ </DialogTitle>+ <DialogClose+ render={+ <IconButton aria-label={t(($) => $['operation.close'], { ns: 'common' })}>+ <span aria-hidden="true" className="i-ri-close-line size-4" />+ </IconButton>+ }+ />+ </div>+ <div className="overflow-y-auto p-4">+ <InputsFormContent />+ </div>+ </DialogPopup>+ </DialogViewport>+ </DialogPortal>+ </Dialog><AlertDialog open={!!showConfirm} onOpenChange={(open) => !open && handleCancelConfirm()}><AlertDialogContent><div className="flex flex-col gap-2 px-6 pt-6 pb-4">diff --git a/web/app/components/base/chat/chat-with-history/header/index.tsx b/web/app/components/base/chat/chat-with-history/header/index.tsxindex de5123af87e..5447484cf07 100644--- a/web/app/components/base/chat/chat-with-history/header/index.tsx+++ b/web/app/components/base/chat/chat-with-history/header/index.tsx@@ -1,3 +1,4 @@+import type { Ref } from 'react'import type { ConversationItem } from '@/models/share'import {AlertDialog,@@ -20,7 +21,7 @@ import RenameModal from '@/app/components/base/chat/chat-with-history/sidebar/reimport { useChatWithHistoryContext } from '../context'import Operation from './operation'-const Header = () => {+const Header = ({ toggleButtonRef }: { toggleButtonRef?: Ref<HTMLButtonElement> }) => {const {appData,currentConversationId,@@ -84,12 +85,15 @@ const Header = () => {<><div className="flex h-14 shrink-0 items-center justify-between p-3"><div+ inert={!isSidebarCollapsed}+ aria-hidden={!isSidebarCollapsed}className={cn('flex items-center gap-1 transition-all duration-200 ease-in-out',!isSidebarCollapsed && 'opacity-0',)}><IconButton+ ref={toggleButtonRef}aria-label={t(($) => $['sidebar.expandSidebar'], { ns: 'layout' })}className={cn(!isSidebarCollapsed && 'cursor-default')}size="lg"diff --git a/web/app/components/base/chat/chat-with-history/index.tsx b/web/app/components/base/chat/chat-with-history/index.tsxindex 645e25662b1..3cbb6db5aef 100644--- a/web/app/components/base/chat/chat-with-history/index.tsx+++ b/web/app/components/base/chat/chat-with-history/index.tsx@@ -3,7 +3,7 @@ import type { InstalledAppResponse } from '@dify/contracts/api/console/installedimport type { FC } from 'react'import type { ChatProps } from '../chat'import { cn } from '@langgenius/dify-ui/cn'-import { useEffect, useState } from 'react'+import { useEffect, useLayoutEffect, useRef, useState } from 'react'import Loading from '@/app/components/base/loading'import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'import useDocumentTitle from '@/hooks/use-document-title'@@ -25,11 +25,28 @@ const ChatWithHistory: FC<ChatWithHistoryProps> = ({ className }) => {const site = appData?.siteconst [showSidePanel, setShowSidePanel] = useState(false)+ const sidebarToggleRef = useRef<HTMLButtonElement>(null)+ const sidePanelHasFocusRef = useRef(false)+ const sidePanelHoveredRef = useRef(false)+ const sidePanelBlurTimeoutRef = useRef<ReturnType<typeof setTimeout> | undefined>(undefined)+ const previousSidebarCollapsedRef = useRef(isSidebarCollapsed)- useEffect(() => {- if (!isSidebarCollapsed) setShowSidePanel(false)+ useLayoutEffect(() => {+ if (previousSidebarCollapsedRef.current !== isSidebarCollapsed) {+ sidebarToggleRef.current?.focus()+ previousSidebarCollapsedRef.current = isSidebarCollapsed+ }}, [isSidebarCollapsed])+ useEffect(() => {+ if (!isSidebarCollapsed || isMobile) {+ setShowSidePanel(false)+ sidePanelHasFocusRef.current = false+ sidePanelHoveredRef.current = false+ }+ return () => clearTimeout(sidePanelBlurTimeoutRef.current)+ }, [isSidebarCollapsed, isMobile])+useDocumentTitle(site?.title || 'Chat')return (@@ -38,26 +55,50 @@ const ChatWithHistory: FC<ChatWithHistoryProps> = ({ className }) => {>{!isMobile && (<div+ inert={isSidebarCollapsed}className={cn('flex w-59 flex-col p-1 pr-0 transition-all duration-200 ease-in-out',isSidebarCollapsed && 'w-0 overflow-hidden p-0!',)}>- <Sidebar />+ <Sidebar toggleButtonRef={!isSidebarCollapsed ? sidebarToggleRef : undefined} /></div>)}{isMobile && <HeaderInMobile />}<div className={cn('relative grow p-2', isMobile && 'h-[calc(100%-56px)] p-0')}>- {isSidebarCollapsed && (+ {!isMobile && isSidebarCollapsed && (<divclassName={cn('absolute top-0 z-20 flex h-full w-[256px] flex-col p-2 transition-all duration-500 ease-in-out',showSidePanel ? 'left-0' : '-left-62',)}- onMouseEnter={() => setShowSidePanel(true)}- onMouseLeave={() => setShowSidePanel(false)}+ onMouseEnter={() => {+ sidePanelHoveredRef.current = true+ setShowSidePanel(true)+ }}+ onFocusCapture={() => {+ // React focus events include the sidebar's portalled menus and dialogs.+ clearTimeout(sidePanelBlurTimeoutRef.current)+ sidePanelHasFocusRef.current = true+ }}+ onBlurCapture={() => {+ sidePanelHasFocusRef.current = false+ // Native Tab can flush microtasks between blur and focus. Wait until+ // the focus transition finishes, including moves through portals.+ clearTimeout(sidePanelBlurTimeoutRef.current)+ sidePanelBlurTimeoutRef.current = setTimeout(() => {+ if (!sidePanelHasFocusRef.current && !sidePanelHoveredRef.current)+ setShowSidePanel(false)+ }, 0)+ }}+ onMouseLeave={() => {+ sidePanelHoveredRef.current = false+ if (!sidePanelHasFocusRef.current) setShowSidePanel(false)+ }}>- <Sidebar isPanel panelVisible={showSidePanel} />+ <div inert={!showSidePanel} className="flex min-h-0 grow">+ <Sidebar isPanel panelVisible={showSidePanel} />+ </div></div>)}<div@@ -66,7 +107,9 @@ const ChatWithHistory: FC<ChatWithHistoryProps> = ({ className }) => {isMobile ? 'rounded-t-2xl' : 'rounded-2xl',)}>- {!isMobile && <Header />}+ {!isMobile && (+ <Header toggleButtonRef={isSidebarCollapsed ? sidebarToggleRef : undefined} />+ )}{appChatListDataLoading && <Loading type="app" />}{!appChatListDataLoading && <ChatWrapper key={chatShouldReloadKey} />}</div>diff --git a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx b/web/app/components/base/chat/chat-with-history/sidebar/index.tsxindex 1a37ee4b43d..9916da3e7d5 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/index.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/index.tsx@@ -1,3 +1,4 @@+import type { Ref } from 'react'import type { ConversationItem } from '@/models/share'import {AlertDialog,@@ -23,11 +24,12 @@ import { systemFeaturesQueryOptions } from '@/features/system-features/client'import { useChatWithHistoryContext } from '../context'type Props = Readonly<{+ toggleButtonRef?: Ref<HTMLButtonElement>isPanel?: booleanpanelVisible?: boolean}>-const Sidebar = ({ isPanel }: Props) => {+const Sidebar = ({ isPanel, toggleButtonRef }: Props) => {const { t } = useTranslation()const {isInstalledApp,@@ -116,6 +118,7 @@ const Sidebar = ({ isPanel }: Props) => {)}{!isMobile && !isSidebarCollapsed && (<IconButton+ ref={toggleButtonRef}aria-label={t(($) => $['sidebar.collapseSidebar'], { ns: 'layout' })}size="lg"onClick={() => handleSidebarCollapse(true)}diff --git a/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx b/web/app/components/base/chat/chat-with-history/sidebar/operation.tsxindex e7872b58f97..bbe2b5070d6 100644--- a/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx+++ b/web/app/components/base/chat/chat-with-history/sidebar/operation.tsx@@ -46,7 +46,7 @@ const Operation: FC<Props> = ({aria-label={t(($) => $['operation.more'], { ns: 'common' })}data-active={isActive ? '' : undefined}className={cn(- 'pointer-events-none opacity-0 data-active:bg-state-accent-active data-active:text-text-accent data-active:hover:bg-state-accent-active-alt data-popup-open:pointer-events-auto data-popup-open:bg-state-base-hover data-popup-open:opacity-100 data-active:data-popup-open:bg-state-accent-active data-active:data-popup-open:text-text-accent',+ 'pointer-events-none opacity-0 focus-visible:pointer-events-auto focus-visible:opacity-100 data-active:bg-state-accent-active data-active:text-text-accent data-active:hover:bg-state-accent-active-alt data-popup-open:pointer-events-auto data-popup-open:bg-state-base-hover data-popup-open:opacity-100 data-active:data-popup-open:bg-state-accent-active data-active:data-popup-open:text-text-accent',isItemHovering && 'pointer-events-auto opacity-100',)}>diff --git a/web/app/components/base/chat/chat/__tests__/index.spec.tsx b/web/app/components/base/chat/chat/__tests__/index.spec.tsxindex ef5657aba8b..940511dddfc 100644--- a/web/app/components/base/chat/chat/__tests__/index.spec.tsx+++ b/web/app/components/base/chat/chat/__tests__/index.spec.tsx@@ -179,6 +179,48 @@ describe('Chat', () => {vi.unstubAllGlobals()})+ describe('Agent response announcements', () => {+ const renderAgentContent: NonNullable<ChatProps['renderAgentContent']> = () => null++ it('keeps historical answers silent and announces response lifecycle without streaming tokens', () => {+ const history = [makeChatItem({ id: 'history', isAnswer: true, content: 'Old answer' })]+ const { rerender } = renderChat({ chatList: history, renderAgentContent })+ const status = screen.getByRole('status')+ expect(status).toBeEmptyDOMElement()+ expect(status).toHaveAttribute('aria-atomic', 'true')++ rerender(<Chat chatList={history} renderAgentContent={renderAgentContent} isResponding />)+ expect(screen.getByRole('status')).toBe(status)+ expect(status).toHaveTextContent('agentV2.agentDetail.configure.answer.thinking')++ const streaming = [+ ...history,+ makeChatItem({ id: 'new', isAnswer: true, content: 'First token' }),+ ]+ rerender(<Chat chatList={streaming} renderAgentContent={renderAgentContent} isResponding />)+ expect(status).toHaveTextContent('agentV2.agentDetail.configure.answer.thinking')+ expect(status).not.toHaveTextContent('First token')++ rerender(+ <Chat chatList={streaming} renderAgentContent={renderAgentContent} isResponding={false} />,+ )+ expect(status).toHaveTextContent('agentV2.agentDetail.configure.answer.responseEnded')++ rerender(+ <Chat chatList={history} renderAgentContent={renderAgentContent} isResponding={false} />,+ )+ expect(status).toHaveTextContent('agentV2.agentDetail.configure.answer.responseEnded')++ rerender(<Chat chatList={history} renderAgentContent={renderAgentContent} isResponding />)+ expect(status).toHaveTextContent('agentV2.agentDetail.configure.answer.thinking')+ })++ it('leaves other chat renderers unchanged', () => {+ renderChat({ isResponding: true })+ expect(screen.queryByRole('status')).not.toBeInTheDocument()+ })+ })+describe('Rendering', () => {it('should render chatNode when provided', () => {renderChat({ chatNode: <div data-testid="slot-node">slot</div> })diff --git a/web/app/components/base/chat/chat/index.tsx b/web/app/components/base/chat/chat/index.tsxindex c19090fcd64..7c3d0a41778 100644--- a/web/app/components/base/chat/chat/index.tsx+++ b/web/app/components/base/chat/chat/index.tsx@@ -10,7 +10,7 @@ import type { Node } from '@/app/components/workflow/types'import type { AppData, ToolIcon } from '@/models/share'import { Button } from '@langgenius/dify-ui/button'import { cn } from '@langgenius/dify-ui/cn'-import { memo } from 'react'+import { memo, useEffect, useRef } from 'react'import { useTranslation } from 'react-i18next'import { useShallow } from 'zustand/react/shallow'import { useStore as useAppStore } from '@/app/components/app/store'@@ -147,6 +147,27 @@ const Chat: FC<ChatProps> = ({getHumanInputNodeData,}) => {const { t } = useTranslation()+ const responseStatusRef = useRef<HTMLDivElement>(null)+ const wasRespondingRef = useRef(false)+ const hasAgentContent = !!renderAgentContent++ // Keep the live region mounted before a response starts. Synchronize only+ // lifecycle transitions, never the streaming answer or elapsed-time counter.+ useEffect(() => {+ const status = responseStatusRef.current+ if (!status) {+ wasRespondingRef.current = false+ return+ }++ const announcement = isResponding+ ? t(($) => $['agentDetail.configure.answer.thinking'], { ns: 'agentV2' })+ : wasRespondingRef.current+ ? t(($) => $['agentDetail.configure.answer.responseEnded'], { ns: 'agentV2' })+ : undefined+ if (announcement && status.textContent !== announcement) status.textContent = announcement+ wasRespondingRef.current = !!isResponding+ }, [hasAgentContent, isResponding, t])const {currentLogItem,setCurrentLogItem,@@ -192,6 +213,9 @@ const Chat: FC<ChatProps> = ({onFeedback={onFeedback}getHumanInputNodeData={getHumanInputNodeData}>+ {hasAgentContent && (+ <div ref={responseStatusRef} role="status" aria-atomic="true" className="sr-only" />+ )}<div data-testid="chat-root" className={cn('relative h-full', isTryApp && 'flex flex-col')}><divdata-testid="chat-container"diff --git a/web/app/components/share/text-generation/__tests__/info-modal.spec.tsx b/web/app/components/share/text-generation/__tests__/info-modal.spec.tsxindex f07d41d0e87..992d931c566 100644--- a/web/app/components/share/text-generation/__tests__/info-modal.spec.tsx+++ b/web/app/components/share/text-generation/__tests__/info-modal.spec.tsx@@ -30,7 +30,13 @@ describe('InfoModal', () => {it('shows the app identity when opened', async () => {await renderModal()- expect(screen.getByText('Test App')).toBeInTheDocument()+ expect(screen.getByRole('dialog', { name: 'Test App' })).toBeInTheDocument()+ })++ it('names the dialog when the app title is empty', async () => {+ await renderModal({ ...siteInfo, title: '' })++ expect(screen.getByRole('dialog', { name: 'common.userProfile.about' })).toBeInTheDocument()})it('shows the copyright and custom disclaimer when provided', async () => {diff --git a/web/app/components/share/text-generation/info-modal.tsx b/web/app/components/share/text-generation/info-modal.tsxindex 5a9507277d5..08144666901 100644--- a/web/app/components/share/text-generation/info-modal.tsx+++ b/web/app/components/share/text-generation/info-modal.tsx@@ -1,6 +1,6 @@import type { SiteInfo } from '@/models/share'import { cn } from '@langgenius/dify-ui/cn'-import { Dialog, DialogClose, DialogContent } from '@langgenius/dify-ui/dialog'+import { Dialog, DialogClose, DialogContent, DialogTitle } from '@langgenius/dify-ui/dialog'import { IconButton } from '@langgenius/dify-ui/icon-button'import * as React from 'react'import { useTranslation } from 'react-i18next'@@ -46,7 +46,9 @@ const InfoModal = ({ isShow, onClose, data }: Props) => {imageUrl={data?.icon_url}/><div className="w-full text-center">- <div className="system-xl-semibold text-text-secondary">{data?.title}</div>+ <DialogTitle className="system-xl-semibold text-text-secondary">+ {data?.title || t(($) => $['userProfile.about'], { ns: 'common' })}+ </DialogTitle><div className="mt-1 system-xl-medium text-text-tertiary">{data?.description}</div></div><div className="system-xs-regular text-text-tertiary">diff --git a/web/i18n/ar-TN/agent-v-2.json b/web/i18n/ar-TN/agent-v-2.jsonindex 0ea495f0052..63cf78b88f7 100644--- a/web/i18n/ar-TN/agent-v-2.json+++ b/web/i18n/ar-TN/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "جارٍ تشغيل الأوامر","agentDetail.configure.answer.duration.minute": "{{count}} د","agentDetail.configure.answer.duration.second": "{{count}} ث",+ "agentDetail.configure.answer.responseEnded": "انتهت الاستجابة","agentDetail.configure.answer.thinking": "جارٍ التفكير","agentDetail.configure.build.empty.communityEditionTip": "توفر Community Edition إدارة إصدارات للتكوينات المستخرجة، لكنها لا تدعم إدارة إصدارات نظام الملفات نفسه. كن حذراً في إجراءاتك ضمن وضع Build، لأن التغييرات التي تُجرى على نظام الملفات تحدث في الوقت الفعلي ولا يمكن دائماً التراجع عنها بشكل منظم. Community Edition ليست الخيار المثالي لخدمة جماهير خارجية واسعة.","agentDetail.configure.build.empty.description": "صِف ما تريده وسيتم ملء النموذج على اليسار أثناء المحادثة.",diff --git a/web/i18n/de-DE/agent-v-2.json b/web/i18n/de-DE/agent-v-2.jsonindex c241b8ca8ad..b6b78d65d69 100644--- a/web/i18n/de-DE/agent-v-2.json+++ b/web/i18n/de-DE/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Befehle werden ausgeführt","agentDetail.configure.answer.duration.minute": "{{count}} Min.","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "Antwort beendet","agentDetail.configure.answer.thinking": "Denkt nach","agentDetail.configure.build.empty.communityEditionTip": "Community Edition bietet zwar Versionierung für extrahierte Konfigurationen, unterstützt aber keine Versionierung des Dateisystems selbst. Seien Sie bei Aktionen im Build-Modus vorsichtig, da Änderungen am Dateisystem in Echtzeit erfolgen und nicht immer sauber rückgängig gemacht werden können. Community Edition ist nicht die ideale Wahl, um große externe Zielgruppen zu bedienen.","agentDetail.configure.build.empty.description": "Beschreiben Sie, was Sie möchten, und das Formular links wird während des Chats ausgefüllt.",diff --git a/web/i18n/en-US/agent-v-2.json b/web/i18n/en-US/agent-v-2.jsonindex 2c7542ed717..6d3f85e1682 100644--- a/web/i18n/en-US/agent-v-2.json+++ b/web/i18n/en-US/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Running commands","agentDetail.configure.answer.duration.minute": "{{count}}m","agentDetail.configure.answer.duration.second": "{{count}}s",+ "agentDetail.configure.answer.responseEnded": "Response ended","agentDetail.configure.answer.thinking": "Thinking","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, while offering versioning to the extracted configs, does not support versioning on the file system itself. Be careful with your actions in Build mode, as changes made to the file system happen in real time and cannot always be neatly reverted. Community Edition is not your ideal choice for serving mass external audiences.","agentDetail.configure.build.empty.description": "Describe what you want and it fills in the form on the left as you go.",diff --git a/web/i18n/es-ES/agent-v-2.json b/web/i18n/es-ES/agent-v-2.jsonindex 5a25fcf4528..04217fe5532 100644--- a/web/i18n/es-ES/agent-v-2.json+++ b/web/i18n/es-ES/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Ejecutando comandos","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "La respuesta ha terminado","agentDetail.configure.answer.thinking": "Pensando","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, aunque ofrece versionado para las configuraciones extraídas, no admite versionado del propio sistema de archivos. Ten cuidado con tus acciones en el modo Build, ya que los cambios realizados en el sistema de archivos ocurren en tiempo real y no siempre se pueden revertir limpiamente. Community Edition no es la opción ideal para atender audiencias externas masivas.","agentDetail.configure.build.empty.description": "Describe lo que quieres y se irá completando el formulario de la izquierda mientras avanzas.",diff --git a/web/i18n/fa-IR/agent-v-2.json b/web/i18n/fa-IR/agent-v-2.jsonindex 72522584459..9f31d37e6b6 100644--- a/web/i18n/fa-IR/agent-v-2.json+++ b/web/i18n/fa-IR/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "در حال اجرای دستورات","agentDetail.configure.answer.duration.minute": "{{count}} دقیقه","agentDetail.configure.answer.duration.second": "{{count}} ثانیه",+ "agentDetail.configure.answer.responseEnded": "پاسخ پایان یافت","agentDetail.configure.answer.thinking": "در حال فکر کردن","agentDetail.configure.build.empty.communityEditionTip": "Community Edition با اینکه برای پیکربندیهای استخراجشده نسخهبندی ارائه میکند، از نسخهبندی خود سیستم فایل پشتیبانی نمیکند. در حالت Build با اقدامات خود محتاط باشید، زیرا تغییرات روی سیستم فایل بهصورت بلادرنگ انجام میشوند و همیشه نمیتوان آنها را بهصورت تمیز بازگرداند. Community Edition انتخاب ایدهآلی برای خدمترسانی به مخاطبان خارجی گسترده نیست.","agentDetail.configure.build.empty.description": "آنچه میخواهید را توضیح دهید تا فرم سمت چپ در طول گفتگو تکمیل شود.",diff --git a/web/i18n/fr-FR/agent-v-2.json b/web/i18n/fr-FR/agent-v-2.jsonindex 4109ab0fa1c..ecab3cd0ef5 100644--- a/web/i18n/fr-FR/agent-v-2.json+++ b/web/i18n/fr-FR/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Exécution des commandes","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "La réponse est terminée","agentDetail.configure.answer.thinking": "Réflexion en cours","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, bien qu’elle offre la gestion des versions pour les configurations extraites, ne prend pas en charge la gestion des versions du système de fichiers lui-même. Soyez prudent avec vos actions en mode Build, car les modifications apportées au système de fichiers se produisent en temps réel et ne peuvent pas toujours être annulées proprement. Community Edition n’est pas le choix idéal pour servir un public externe massif.","agentDetail.configure.build.empty.description": "Décrivez ce que vous voulez et le formulaire de gauche se remplit au fil de la conversation.",diff --git a/web/i18n/hi-IN/agent-v-2.json b/web/i18n/hi-IN/agent-v-2.jsonindex e85880e2891..c498c6cc5c4 100644--- a/web/i18n/hi-IN/agent-v-2.json+++ b/web/i18n/hi-IN/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "कमांड चलाए जा रहे हैं","agentDetail.configure.answer.duration.minute": "{{count}} मिनट","agentDetail.configure.answer.duration.second": "{{count}} सेकंड",+ "agentDetail.configure.answer.responseEnded": "उत्तर समाप्त हुआ","agentDetail.configure.answer.thinking": "सोच रहा है","agentDetail.configure.build.empty.communityEditionTip": "Community Edition निकाले गए कॉन्फ़िगरेशन के लिए वर्शनिंग प्रदान करता है, लेकिन फ़ाइल सिस्टम पर स्वयं वर्शनिंग का समर्थन नहीं करता। Build मोड में अपनी कार्रवाइयों के साथ सावधान रहें, क्योंकि फ़ाइल सिस्टम में किए गए बदलाव वास्तविक समय में होते हैं और हमेशा साफ़-सुथरे ढंग से वापस नहीं किए जा सकते। बड़े पैमाने पर बाहरी दर्शकों को सेवा देने के लिए Community Edition आदर्श विकल्प नहीं है।","agentDetail.configure.build.empty.description": "आप जो चाहते हैं उसका वर्णन करें और बाईं ओर का फ़ॉर्म बातचीत के साथ भरता जाएगा।",diff --git a/web/i18n/id-ID/agent-v-2.json b/web/i18n/id-ID/agent-v-2.jsonindex a4cff778845..efdece08d0f 100644--- a/web/i18n/id-ID/agent-v-2.json+++ b/web/i18n/id-ID/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Menjalankan perintah","agentDetail.configure.answer.duration.minute": "{{count}} mnt","agentDetail.configure.answer.duration.second": "{{count}} dtk",+ "agentDetail.configure.answer.responseEnded": "Respons berakhir","agentDetail.configure.answer.thinking": "Sedang berpikir","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, meskipun menawarkan versioning untuk konfigurasi yang diekstrak, tidak mendukung versioning pada sistem file itu sendiri. Berhati-hatilah dengan tindakan Anda dalam mode Build, karena perubahan pada sistem file terjadi secara real time dan tidak selalu dapat dikembalikan dengan rapi. Community Edition bukan pilihan ideal untuk melayani audiens eksternal dalam skala besar.","agentDetail.configure.build.empty.description": "Jelaskan yang Anda inginkan dan formulir di kiri akan terisi seiring percakapan.",diff --git a/web/i18n/it-IT/agent-v-2.json b/web/i18n/it-IT/agent-v-2.jsonindex db01e854827..f7166de4d6f 100644--- a/web/i18n/it-IT/agent-v-2.json+++ b/web/i18n/it-IT/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Esecuzione dei comandi","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "La risposta è terminata","agentDetail.configure.answer.thinking": "Sto pensando","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, pur offrendo il versionamento delle configurazioni estratte, non supporta il versionamento del file system stesso. Fai attenzione alle azioni in modalità Build, perché le modifiche al file system avvengono in tempo reale e non sempre possono essere annullate in modo pulito. Community Edition non è la scelta ideale per servire un pubblico esterno di massa.","agentDetail.configure.build.empty.description": "Descrivi ciò che vuoi e il modulo a sinistra verrà compilato man mano.",diff --git a/web/i18n/ja-JP/agent-v-2.json b/web/i18n/ja-JP/agent-v-2.jsonindex 37089f8aaa7..a3860e5085b 100644--- a/web/i18n/ja-JP/agent-v-2.json+++ b/web/i18n/ja-JP/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "コマンドを実行中","agentDetail.configure.answer.duration.minute": "{{count}}分","agentDetail.configure.answer.duration.second": "{{count}}秒",+ "agentDetail.configure.answer.responseEnded": "応答が終了しました","agentDetail.configure.answer.thinking": "思考中","agentDetail.configure.build.empty.communityEditionTip": "Community Edition は抽出された設定のバージョン管理を提供しますが、ファイルシステム自体のバージョン管理には対応していません。Build モードでの操作には注意してください。ファイルシステムへの変更はリアルタイムで発生し、常にきれいに元に戻せるとは限りません。Community Edition は大規模な外部利用者向けサービスには理想的な選択ではありません。","agentDetail.configure.build.empty.description": "やりたいことを説明すると、左側のフォームが会話に合わせて入力されます。",diff --git a/web/i18n/ko-KR/agent-v-2.json b/web/i18n/ko-KR/agent-v-2.jsonindex c1c06ca66dc..a6f2482ad3c 100644--- a/web/i18n/ko-KR/agent-v-2.json+++ b/web/i18n/ko-KR/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "명령 실행 중","agentDetail.configure.answer.duration.minute": "{{count}}분","agentDetail.configure.answer.duration.second": "{{count}}초",+ "agentDetail.configure.answer.responseEnded": "응답이 종료되었습니다","agentDetail.configure.answer.thinking": "생각 중","agentDetail.configure.build.empty.communityEditionTip": "Community Edition은 추출된 설정에 대한 버전 관리는 제공하지만 파일 시스템 자체의 버전 관리는 지원하지 않습니다. Build 모드에서의 작업에 주의하세요. 파일 시스템 변경은 실시간으로 발생하며 항상 깔끔하게 되돌릴 수 있는 것은 아닙니다. Community Edition은 대규모 외부 사용자에게 서비스를 제공하기에 이상적인 선택이 아닙니다.","agentDetail.configure.build.empty.description": "원하는 내용을 설명하면 대화에 맞춰 왼쪽 양식이 채워집니다.",diff --git a/web/i18n/lo-LA/agent-v-2.json b/web/i18n/lo-LA/agent-v-2.jsonindex b6d62f45b27..0ab15a749b1 100644--- a/web/i18n/lo-LA/agent-v-2.json+++ b/web/i18n/lo-LA/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "ກຳລັງປະຕິບັດຄຳສັ່ງ","agentDetail.configure.answer.duration.minute": "{{count}} ນາທີ","agentDetail.configure.answer.duration.second": "{{count}} ວິນາທີ",+ "agentDetail.configure.answer.responseEnded": "ການຕອບກັບສິ້ນສຸດແລ້ວ","agentDetail.configure.answer.thinking": "ກຳລັງຄິດ","agentDetail.configure.build.empty.communityEditionTip": "Community Edition ເຖິງວ່າຈະມີລະບົບເວີຊັນໃຫ້ກັບການຕັ້ງຄ່າທີ່ສະກັດອອກມາ ແຕ່ບໍ່ຮອງຮັບລະບົບເວີຊັນໃນລະບົບໄຟລ໌ໂດຍກົງ. ກະລຸນາລະມັດລະວັງໃນການໃຊ້ໂໝດສ້າງ (Build mode) ເພາະການປ່ຽນແປງໃນລະບົບໄຟລ໌ຈະເກີດຂຶ້ນທັນທີ ແລະ ບາງຄັ້ງບໍ່ສາມາດຍ້ອນກັບໄດ້. Community Edition ບໍ່ແມ່ນທາງເລືອກທີ່ດີທີ່ສຸດສຳລັບການໃຫ້ບໍລິການຜູ້ໃຊ້ພາຍນອກຈຳນວນຫຼາຍ.","agentDetail.configure.build.empty.description": "ອະທິບາຍສິ່ງທີ່ທ່ານຕ້ອງການ ແລ້ວລະບົບຈະຕື່ມຂໍ້ມູນໃສ່ແບບຟອມດ້ານຊ້າຍໃຫ້ເອງ.",diff --git a/web/i18n/nl-NL/agent-v-2.json b/web/i18n/nl-NL/agent-v-2.jsonindex c83dee850fc..67c9185d251 100644--- a/web/i18n/nl-NL/agent-v-2.json+++ b/web/i18n/nl-NL/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Opdrachten uitvoeren","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "Antwoord beëindigd","agentDetail.configure.answer.thinking": "Aan het nadenken","agentDetail.configure.build.empty.communityEditionTip": "Community Edition biedt wel versiebeheer voor geëxtraheerde configuraties, maar ondersteunt geen versiebeheer van het bestandssysteem zelf. Wees voorzichtig met je acties in de Build-modus, omdat wijzigingen aan het bestandssysteem in realtime plaatsvinden en niet altijd netjes kunnen worden teruggedraaid. Community Edition is niet de ideale keuze voor het bedienen van grote externe doelgroepen.","agentDetail.configure.build.empty.description": "Beschrijf wat je wilt en het formulier links wordt gaandeweg ingevuld.",diff --git a/web/i18n/pl-PL/agent-v-2.json b/web/i18n/pl-PL/agent-v-2.jsonindex 5e1f825a29c..8960e4e627d 100644--- a/web/i18n/pl-PL/agent-v-2.json+++ b/web/i18n/pl-PL/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Uruchamianie poleceń","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "Odpowiedź zakończona","agentDetail.configure.answer.thinking": "Myśli","agentDetail.configure.build.empty.communityEditionTip": "Community Edition oferuje wersjonowanie wyodrębnionych konfiguracji, ale nie obsługuje wersjonowania samego systemu plików. Zachowaj ostrożność podczas działań w trybie Build, ponieważ zmiany w systemie plików zachodzą w czasie rzeczywistym i nie zawsze można je czysto cofnąć. Community Edition nie jest idealnym wyborem do obsługi masowej publiczności zewnętrznej.","agentDetail.configure.build.empty.description": "Opisz, czego chcesz, a formularz po lewej będzie wypełniany w trakcie rozmowy.",diff --git a/web/i18n/pt-BR/agent-v-2.json b/web/i18n/pt-BR/agent-v-2.jsonindex 309448a5f77..2c4f4a90c93 100644--- a/web/i18n/pt-BR/agent-v-2.json+++ b/web/i18n/pt-BR/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Executando comandos","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "A resposta terminou","agentDetail.configure.answer.thinking": "Pensando","agentDetail.configure.build.empty.communityEditionTip": "A Community Edition, embora ofereça versionamento para as configurações extraídas, não oferece suporte a versionamento do próprio sistema de arquivos. Tenha cuidado com suas ações no modo Build, pois as alterações feitas no sistema de arquivos acontecem em tempo real e nem sempre podem ser revertidas de forma limpa. A Community Edition não é a escolha ideal para atender grandes públicos externos.","agentDetail.configure.build.empty.description": "Descreva o que você quer e o formulário à esquerda será preenchido conforme a conversa avança.",diff --git a/web/i18n/ro-RO/agent-v-2.json b/web/i18n/ro-RO/agent-v-2.jsonindex df9564cd05a..84e1d8dc992 100644--- a/web/i18n/ro-RO/agent-v-2.json+++ b/web/i18n/ro-RO/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Se execută comenzile","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "Răspunsul s-a încheiat","agentDetail.configure.answer.thinking": "Se gândește","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, deși oferă versionare pentru configurațiile extrase, nu acceptă versionarea sistemului de fișiere în sine. Fii atent la acțiunile din modul Build, deoarece modificările făcute în sistemul de fișiere au loc în timp real și nu pot fi întotdeauna anulate curat. Community Edition nu este alegerea ideală pentru servirea unor audiențe externe numeroase.","agentDetail.configure.build.empty.description": "Descrie ce dorești, iar formularul din stânga se completează pe măsură ce avansezi.",diff --git a/web/i18n/ru-RU/agent-v-2.json b/web/i18n/ru-RU/agent-v-2.jsonindex e6e2f15d93b..3db4e24aaab 100644--- a/web/i18n/ru-RU/agent-v-2.json+++ b/web/i18n/ru-RU/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Выполнение команд","agentDetail.configure.answer.duration.minute": "{{count}} мин","agentDetail.configure.answer.duration.second": "{{count}} с",+ "agentDetail.configure.answer.responseEnded": "Ответ завершён","agentDetail.configure.answer.thinking": "Размышляет","agentDetail.configure.build.empty.communityEditionTip": "Community Edition предоставляет версионирование извлеченных конфигураций, но не поддерживает версионирование самой файловой системы. Будьте осторожны с действиями в режиме Build: изменения файловой системы происходят в реальном времени и не всегда могут быть аккуратно отменены. Community Edition не является идеальным выбором для обслуживания массовой внешней аудитории.","agentDetail.configure.build.empty.description": "Опишите, что вам нужно, и форма слева будет заполняться по ходу диалога.",diff --git a/web/i18n/sl-SI/agent-v-2.json b/web/i18n/sl-SI/agent-v-2.jsonindex de265bcbda0..35e3b9c5bbc 100644--- a/web/i18n/sl-SI/agent-v-2.json+++ b/web/i18n/sl-SI/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Izvajanje ukazov","agentDetail.configure.answer.duration.minute": "{{count}} min","agentDetail.configure.answer.duration.second": "{{count}} s",+ "agentDetail.configure.answer.responseEnded": "Odgovor je končan","agentDetail.configure.answer.thinking": "Razmišlja","agentDetail.configure.build.empty.communityEditionTip": "Community Edition sicer ponuja različice za izvlečene konfiguracije, vendar ne podpira različic samega datotečnega sistema. Pri dejanjih v načinu Build bodite previdni, saj se spremembe datotečnega sistema zgodijo v realnem času in jih ni vedno mogoče lepo razveljaviti. Community Edition ni idealna izbira za množično zunanjo publiko.","agentDetail.configure.build.empty.description": "Opišite, kaj želite, in obrazec na levi se bo sproti izpolnjeval.",diff --git a/web/i18n/th-TH/agent-v-2.json b/web/i18n/th-TH/agent-v-2.jsonindex a75e19f09b1..a1a94644c0f 100644--- a/web/i18n/th-TH/agent-v-2.json+++ b/web/i18n/th-TH/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "กำลังเรียกใช้คำสั่ง","agentDetail.configure.answer.duration.minute": "{{count}} นาที","agentDetail.configure.answer.duration.second": "{{count}} วินาที",+ "agentDetail.configure.answer.responseEnded": "การตอบกลับสิ้นสุดแล้ว","agentDetail.configure.answer.thinking": "กำลังคิด","agentDetail.configure.build.empty.communityEditionTip": "Community Edition แม้จะมีการจัดการเวอร์ชันสำหรับการกำหนดค่าที่แยกออกมา แต่ไม่รองรับการจัดการเวอร์ชันของระบบไฟล์เอง โปรดระมัดระวังการดำเนินการในโหมด Build เนื่องจากการเปลี่ยนแปลงระบบไฟล์เกิดขึ้นแบบเรียลไทม์และอาจไม่สามารถย้อนกลับได้อย่างเรียบร้อยเสมอไป Community Edition ไม่ใช่ตัวเลือกที่เหมาะสมที่สุดสำหรับการให้บริการผู้ชมภายนอกจำนวนมาก","agentDetail.configure.build.empty.description": "อธิบายสิ่งที่คุณต้องการ แล้วแบบฟอร์มด้านซ้ายจะถูกกรอกไปพร้อมกับการสนทนา",diff --git a/web/i18n/tr-TR/agent-v-2.json b/web/i18n/tr-TR/agent-v-2.jsonindex 49761163407..b5964a776b5 100644--- a/web/i18n/tr-TR/agent-v-2.json+++ b/web/i18n/tr-TR/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Komutlar çalıştırılıyor","agentDetail.configure.answer.duration.minute": "{{count}} dk","agentDetail.configure.answer.duration.second": "{{count}} sn",+ "agentDetail.configure.answer.responseEnded": "Yanıt sona erdi","agentDetail.configure.answer.thinking": "Düşünüyor","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, çıkarılan yapılandırmalar için sürümleme sunsa da dosya sisteminin kendisi için sürümleme desteklemez. Build modundaki işlemlerinizde dikkatli olun; dosya sisteminde yapılan değişiklikler gerçek zamanlı gerçekleşir ve her zaman temiz bir şekilde geri alınamayabilir. Community Edition, kitlesel dış hedef kitlelere hizmet vermek için ideal seçiminiz değildir.","agentDetail.configure.build.empty.description": "Ne istediğinizi açıklayın; soldaki form ilerledikçe doldurulur.",diff --git a/web/i18n/uk-UA/agent-v-2.json b/web/i18n/uk-UA/agent-v-2.jsonindex 6245109c514..bc9d6900c72 100644--- a/web/i18n/uk-UA/agent-v-2.json+++ b/web/i18n/uk-UA/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Виконання команд","agentDetail.configure.answer.duration.minute": "{{count}} хв","agentDetail.configure.answer.duration.second": "{{count}} с",+ "agentDetail.configure.answer.responseEnded": "Відповідь завершено","agentDetail.configure.answer.thinking": "Розмірковує","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, хоча й пропонує версіонування витягнутих конфігурацій, не підтримує версіонування самої файлової системи. Будьте обережні з діями в режимі Build, адже зміни файлової системи відбуваються в реальному часі й не завжди можуть бути чисто скасовані. Community Edition не є ідеальним вибором для обслуговування масової зовнішньої аудиторії.","agentDetail.configure.build.empty.description": "Опишіть, що вам потрібно, і форма ліворуч заповнюватиметься під час розмови.",diff --git a/web/i18n/vi-VN/agent-v-2.json b/web/i18n/vi-VN/agent-v-2.jsonindex 40398a85ff5..d3f9e0adad9 100644--- a/web/i18n/vi-VN/agent-v-2.json+++ b/web/i18n/vi-VN/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "Đang chạy lệnh","agentDetail.configure.answer.duration.minute": "{{count}} phút","agentDetail.configure.answer.duration.second": "{{count}} giây",+ "agentDetail.configure.answer.responseEnded": "Phản hồi đã kết thúc","agentDetail.configure.answer.thinking": "Đang suy nghĩ","agentDetail.configure.build.empty.communityEditionTip": "Community Edition, mặc dù cung cấp phiên bản cho các cấu hình được trích xuất, không hỗ trợ phiên bản cho chính hệ thống tệp. Hãy cẩn thận với các thao tác trong chế độ Build, vì các thay đổi đối với hệ thống tệp diễn ra theo thời gian thực và không phải lúc nào cũng có thể hoàn tác gọn gàng. Community Edition không phải là lựa chọn lý tưởng để phục vụ lượng lớn khán giả bên ngoài.","agentDetail.configure.build.empty.description": "Mô tả điều bạn muốn và biểu mẫu bên trái sẽ được điền dần khi trò chuyện.",diff --git a/web/i18n/zh-Hans/agent-v-2.json b/web/i18n/zh-Hans/agent-v-2.jsonindex 094c924d878..cd9e287c189 100644--- a/web/i18n/zh-Hans/agent-v-2.json+++ b/web/i18n/zh-Hans/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "正在运行命令","agentDetail.configure.answer.duration.minute": "{{count}}分","agentDetail.configure.answer.duration.second": "{{count}}秒",+ "agentDetail.configure.answer.responseEnded": "回复已结束","agentDetail.configure.answer.thinking": "思考过程","agentDetail.configure.build.empty.communityEditionTip": "Community Edition 虽然会对提取出的配置提供版本管理,但不支持文件系统本身的版本管理。请谨慎使用 Build 模式,因为对文件系统的更改会实时发生,并且不一定总能干净地回退。Community Edition 并不是面向大量外部受众提供服务的理想选择。","agentDetail.configure.build.empty.description": "描述你的需求,它会随着对话填写左侧表单。",diff --git a/web/i18n/zh-Hant/agent-v-2.json b/web/i18n/zh-Hant/agent-v-2.jsonindex c36fddbe8de..2da5cdda404 100644--- a/web/i18n/zh-Hant/agent-v-2.json+++ b/web/i18n/zh-Hant/agent-v-2.json@@ -69,6 +69,7 @@"agentDetail.configure.answer.activity.runningCommands": "正在執行命令","agentDetail.configure.answer.duration.minute": "{{count}}分","agentDetail.configure.answer.duration.second": "{{count}}秒",+ "agentDetail.configure.answer.responseEnded": "回覆已結束","agentDetail.configure.answer.thinking": "思考過程","agentDetail.configure.build.empty.communityEditionTip": "Community Edition 雖然會對提取出的設定提供版本管理,但不支援檔案系統本身的版本管理。請謹慎使用 Build 模式,因為對檔案系統的變更會即時發生,且不一定總能乾淨地回復。Community Edition 並不是面向大量外部受眾提供服務的理想選擇。","agentDetail.configure.build.empty.description": "描述你的需求,它會隨著對話填寫左側表單。",