Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 移除任务菜单的分栏打开入口 (#2448)
Dash90c814dd9c64
diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/OpenInSplitMenu.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/OpenInSplitMenu.tsxdeleted file mode 100644index 686ccdcc5b..0000000000--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/OpenInSplitMenu.tsx+++ /dev/null@@ -1,114 +0,0 @@-import { ChevronRight } from 'lucide-react';-import { useId } from 'react';-import { useLocation } from 'react-router-dom';-import { useTranslation } from 'react-i18next';--import {- DropdownMenuItem,- DropdownMenuSub,- DropdownMenuSubContent,- DropdownMenuSubTrigger,-} from '@/components/ui/dropdown-menu';-import { resolveAgentIslandVisibleSessionIdFromPath } from '@/lib/agentIslandVisibleSessionRoute';-import { toast } from '@/lib/toast';-import {- MAX_SPLIT_PANES,- splitGroupStore,- useSplitGroup,- type DropSide,- type SplitGroupAddBlockReason,-} from '../splitGroupStore';-import { MENU_ITEM_CLASS, MENU_ROW_CLASS, MENU_SUB_CONTENT_CLASS } from './menuStyles';--function addBlockedMessage(- reason: SplitGroupAddBlockReason | null,- t: ReturnType<typeof useTranslation>['t'],- isWorker: boolean,-): string {- if (isWorker) return t('splitGroup.workerUnavailable');- if (reason === 'limit-reached') {- return t('splitGroup.limitReached', { count: MAX_SPLIT_PANES });- }- if (reason === 'duplicate') return t('splitGroup.alreadyOpen');- return t('splitGroup.addUnavailable');-}--export function OpenInSplitMenu({- sessionId,- orcaRole,- onOpenSession,-}: {- sessionId: string;- orcaRole?: string | null;- onOpenSession: () => void;-}) {- const { t } = useTranslation();- const location = useLocation();- const blockedReasonId = useId();- useSplitGroup();- const anchorSessionId = resolveAgentIslandVisibleSessionIdFromPath(location.pathname) ?? '';- const blockReason =- orcaRole === 'worker'- ? 'invalid'- : splitGroupStore.getAddBlockReason(sessionId, anchorSessionId);- const blockedMessage = blockReason- ? addBlockedMessage(blockReason, t, orcaRole === 'worker')- : undefined;-- const open = (side: DropSide) => {- const currentBlockReason =- orcaRole === 'worker'- ? 'invalid'- : splitGroupStore.getAddBlockReason(sessionId, anchorSessionId);- if (currentBlockReason || !splitGroupStore.addSession(sessionId, anchorSessionId, side)) {- toast.warning(addBlockedMessage(currentBlockReason, t, orcaRole === 'worker'));- return;- }- onOpenSession();- };-- if (blockedMessage) {- return (- <DropdownMenuItem- aria-disabled="true"- aria-label={t('splitGroup.openInSplit')}- aria-describedby={blockedReasonId}- title={blockedMessage}- onSelect={(event) => {- event.preventDefault();- toast.warning(blockedMessage);- }}- className={`${MENU_ITEM_CLASS} h-auto min-h-8 cursor-default items-start py-1.5 aria-disabled:opacity-60`}- >- <span className="min-w-0">- <span className="block">{t('splitGroup.openInSplit')}</span>- <span- id={blockedReasonId}- className="block whitespace-normal text-xs text-[var(--cmd-palette-item-meta)]"- >- {blockedMessage}- </span>- </span>- </DropdownMenuItem>- );- }-- return (- <DropdownMenuSub>- <DropdownMenuSubTrigger aria-label={t('splitGroup.openInSplit')} className={MENU_ROW_CLASS}>- <span className="flex-1">{t('splitGroup.openInSplit')}</span>- <ChevronRight size={14} className="ml-2 shrink-0 text-[var(--cmd-palette-item-meta)]" />- </DropdownMenuSubTrigger>- <DropdownMenuSubContent- sideOffset={4}- className={`${MENU_SUB_CONTENT_CLASS} min-w-36 overflow-hidden`}- >- {(['left', 'right', 'top', 'bottom'] as const).map((side) => (- <DropdownMenuItem key={side} onSelect={() => open(side)} className={MENU_ITEM_CLASS}>- {t(`splitGroup.openSide.${side}`)}- </DropdownMenuItem>- ))}- </DropdownMenuSubContent>- </DropdownMenuSub>- );-}diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsxindex 5099efd9f8..f350691cfd 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionCard.tsx@@ -79,7 +79,6 @@ import { loadScheduleSidebarIndexRuns } from '@/features/scheduler/lib/scheduleSimport { resolveSidebarRightStatus } from './sidebarRightStatus';import { SidebarRightStatusIndicator } from './SidebarRightStatusIndicator';import { shouldPrefetchSessionOnPointerDown } from './sessionSwitchPrefetch';-import { OpenInSplitMenu } from './OpenInSplitMenu';import {finishSessionDrag,isSplitGroupDragSource,@@ -472,14 +471,6 @@ export function SessionCard({{t('ccAgent.sidebar.sessionMenu.copySessionLink')}</DropdownMenuItem>);- const openInSplitMenu = (- <OpenInSplitMenu- sessionId={session.id}- orcaRole={session.orcaRole}- onOpenSession={() => onClick(session.id)}- />- );-// Orca lead 可导出(整个协同随包);Worker 不进 sidebar,双保险仍排除。const canExportShare =!isEmpty &&@@ -1020,7 +1011,6 @@ export function SessionCard({{t('ccAgent.sidebar.sessionMenu.unarchive')}</DropdownMenuItem>{exportShareMenuItem}- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} /><DropdownMenuItem@@ -1040,7 +1030,6 @@ export function SessionCard({>{t('ccAgent.sidebar.sessionMenu.rename')}</DropdownMenuItem>- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} /><DropdownMenuItem@@ -1069,7 +1058,6 @@ export function SessionCard({</DropdownMenuItem>{moveToProjectSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} />- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuItemdisabled={remoteWritesBlocked}diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionItem.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionItem.tsxindex 44f3123ee0..5450755720 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionItem.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionItem.tsx@@ -101,7 +101,6 @@ import {startSessionDrag,} from '../splitGroupDnd';import { shouldPrefetchSessionOnPointerDown } from './sessionSwitchPrefetch';-import { OpenInSplitMenu } from './OpenInSplitMenu';// Module-level dedup cache for loadScheduleSidebarIndexRuns.// When many ungrouped automation rows mount simultaneously they all need the@@ -731,14 +730,6 @@ export const SessionItem = memo(function SessionItem({{t('ccAgent.sidebar.sessionMenu.copySessionLink')}</DropdownMenuItem>);- const openInSplitMenu = (- <OpenInSplitMenu- sessionId={session.id}- orcaRole={session.orcaRole}- onOpenSession={() => onClick(session.id)}- />- );-const canMoveToProject =Boolean(onMoveSession) &&!isEmpty &&@@ -1165,7 +1156,6 @@ export const SessionItem = memo(function SessionItem({{t('ccAgent.sidebar.sessionMenu.unarchive')}</DropdownMenuItem>{exportShareMenuItem}- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} /><DropdownMenuItem@@ -1186,7 +1176,6 @@ export const SessionItem = memo(function SessionItem({>{t('ccAgent.sidebar.sessionMenu.rename')}</DropdownMenuItem>- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} /><DropdownMenuItem@@ -1218,7 +1207,6 @@ export const SessionItem = memo(function SessionItem({</DropdownMenuItem>{moveToProjectSubmenu}<DropdownMenuSeparator className={MENU_SEPARATOR_CLASS} />- {openInSplitMenu}{copySessionIdSubmenu}<DropdownMenuItemdisabled={remoteWritesBlocked}diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/OpenInSplitMenu.test.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/OpenInSplitMenu.test.tsxdeleted file mode 100644index 68517c3132..0000000000--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/OpenInSplitMenu.test.tsx+++ /dev/null@@ -1,161 +0,0 @@-// @vitest-environment jsdom--import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';-import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';-import { MemoryRouter } from 'react-router-dom';--import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuTrigger,-} from '@/components/ui/dropdown-menu';-import { getSplitPanes, splitGroupStore } from '../../splitGroupStore';-import { OpenInSplitMenu } from '../OpenInSplitMenu';--const { toastWarningMock } = vi.hoisted(() => ({- toastWarningMock: vi.fn(),-}));--vi.mock('react-i18next', () => ({- useTranslation: () => ({- t: (key: string) => key,- }),-}));--vi.mock('@/lib/toast', () => ({- toast: { warning: toastWarningMock },-}));--function renderMenu(- sessionId: string,- onOpenSession = vi.fn(),- options: { initialEntry?: string; orcaRole?: string } = {},-) {- render(- <MemoryRouter initialEntries={[options.initialEntry ?? '/cc-agent/session-a']}>- <DropdownMenu defaultOpen modal={false}>- <DropdownMenuTrigger>More</DropdownMenuTrigger>- <DropdownMenuContent>- <OpenInSplitMenu- sessionId={sessionId}- orcaRole={options.orcaRole}- onOpenSession={onOpenSession}- />- </DropdownMenuContent>- </DropdownMenu>- </MemoryRouter>,- );- return onOpenSession;-}--describe('OpenInSplitMenu', () => {- beforeEach(() => {- localStorage.clear();- toastWarningMock.mockClear();- splitGroupStore.__resetForTest();- });-- afterEach(() => {- cleanup();- splitGroupStore.__resetForTest();- });-- it('opens all four split actions from the keyboard and applies the selected direction', async () => {- const onOpenSession = renderMenu('session-b');- const submenuTrigger = await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- });-- await act(async () => {- submenuTrigger.focus();- fireEvent.keyDown(submenuTrigger, { key: 'ArrowRight' });- await Promise.resolve();- });-- for (const side of ['left', 'right', 'top', 'bottom']) {- expect(- await screen.findByRole('menuitem', { name: `splitGroup.openSide.${side}` }),- ).toBeTruthy();- }- await act(async () => {- fireEvent.click(screen.getByRole('menuitem', { name: 'splitGroup.openSide.right' }));- await Promise.resolve();- });-- expect(onOpenSession).toHaveBeenCalledTimes(1);- expect(getSplitPanes(splitGroupStore.getSnapshot().root).map((pane) => pane.sessionId)).toEqual(- ['session-a', 'session-b'],- );- expect(splitGroupStore.getSnapshot().root).toMatchObject({ type: 'split', direction: 'row' });- });-- it('keeps an unavailable entry as a valid focusable menu item with an actionable reason', async () => {- act(() => {- splitGroupStore.addSession('session-b', 'session-a', 'right');- });- renderMenu('session-b');- const submenuTrigger = await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- description: 'splitGroup.alreadyOpen',- });-- expect(submenuTrigger.getAttribute('aria-disabled')).toBe('true');- expect(submenuTrigger.hasAttribute('data-disabled')).toBe(false);- act(() => submenuTrigger.focus());- expect(document.activeElement).toBe(submenuTrigger);- expect(submenuTrigger.textContent).toContain('splitGroup.alreadyOpen');- });-- it('explains that Worker sessions must be opened through their Lead', async () => {- renderMenu('worker-b', vi.fn(), { orcaRole: 'worker' });-- expect(- await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- description: 'splitGroup.workerUnavailable',- }),- ).toBeTruthy();- });-- it('reports the pane limit separately from a missing route anchor', async () => {- act(() => {- splitGroupStore.addSession('session-b', 'session-a', 'right');- for (let index = 3; index <= 8; index += 1) {- splitGroupStore.addSession(`session-${index}`, 'session-b', 'bottom');- }- });- const firstView = renderMenu('session-over-limit');- expect(- await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- description: 'splitGroup.limitReached',- }),- ).toBeTruthy();-- cleanup();- splitGroupStore.__resetForTest();- act(() => {- splitGroupStore.addSession('session-b', 'session-a', 'right');- });- renderMenu('session-c', firstView, { initialEntry: '/cc-agent/session-missing' });-- expect(- await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- description: 'splitGroup.addUnavailable',- }),- ).toBeTruthy();- });-- it('uses the generic unavailable reason for a normal session without a route anchor', async () => {- renderMenu('session-b', vi.fn(), { initialEntry: '/cc-agent' });-- expect(- await screen.findByRole('menuitem', {- name: 'splitGroup.openInSplit',- description: 'splitGroup.addUnavailable',- }),- ).toBeTruthy();- expect(screen.queryByText('splitGroup.workerUnavailable')).toBeNull();- });-});diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionCard.visual.test.ts b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionCard.visual.test.tsindex 49d522b896..821165060d 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionCard.visual.test.ts+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionCard.visual.test.ts@@ -10,6 +10,7 @@ import { SPLIT_GROUP_SESSION_MIME } from '../../splitGroupDnd';const mocks = vi.hoisted(() => ({navigate: vi.fn(),+ dropdownMenuOpen: false,boundSchedulesBySession: new Map<string, readonly unknown[]>(),worktreeSessionIds: new Set<string>(),runningDetailBySession: new Map<string, string>(),@@ -73,10 +74,15 @@ vi.mock('@/components/ui/tooltip', () => ({}));vi.mock('@/components/ui/dropdown-menu', () => ({- DropdownMenu: ({ children }: { children: ReactNode }) => children,+ DropdownMenu: ({ children, open }: { children: ReactNode; open?: boolean }) => {+ mocks.dropdownMenuOpen = Boolean(open);+ return children;+ },DropdownMenuTrigger: ({ children }: { children: ReactNode }) => children,- DropdownMenuContent: () => null,- DropdownMenuItem: ({ children }: { children: ReactNode }) => children,+ DropdownMenuContent: ({ children }: { children: ReactNode }) =>+ mocks.dropdownMenuOpen ? createElement('div', { role: 'menu' }, children) : null,+ DropdownMenuItem: ({ children }: { children: ReactNode }) =>+ createElement('div', { role: 'menuitem' }, children),DropdownMenuSeparator: () => null,DropdownMenuSub: ({ children }: { children: ReactNode }) => children,DropdownMenuSubContent: () => null,@@ -185,6 +191,7 @@ function renderCase(caseId: string) {describe('SessionCard visual cases', () => {beforeEach(() => {mocks.navigate.mockReset();+ mocks.dropdownMenuOpen = false;mocks.boundSchedulesBySession.clear();mocks.worktreeSessionIds.clear();mocks.runningDetailBySession.clear();@@ -227,6 +234,24 @@ describe('SessionCard visual cases', () => {expect(mocks.ensureInitialMessages).toHaveBeenCalledWith('short-idle-cc');});+ it('does not expose split creation in the card task menu', () => {+ renderCase('short-idle-cc');++ fireEvent.click(+ screen.getByRole('button', {+ name: /^(?:更多操作|ccAgent\.sidebar\.sessionMenu\.moreActions)$/,+ }),+ );++ const menu = screen.getByRole('menu');+ expect(within(menu).getByRole('menuitem', { name: '重命名' })).toBeTruthy();+ expect(+ within(menu).queryByRole('menuitem', {+ name: /(?:splitGroup\.openInSplit|在分栏中打开)/,+ }),+ ).toBeNull();+ });+it.each(['card', 'list'] as const)('uses native %s dragging for normal content while excluding action buttons',(variant) => {diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionCardReviewRegressions.test.ts b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionCardReviewRegressions.test.tsindex 225f1cf436..dad2b8d216 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionCardReviewRegressions.test.ts+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionCardReviewRegressions.test.ts@@ -287,11 +287,6 @@ describe('SessionCard review regressions', () => {expect(sessionCardSource).toContain('startSessionDrag');});- it('wires split creation into both sidebar rendering modes', () => {- expect(sessionItemSource).toContain('<OpenInSplitMenu');- expect(sessionCardSource).toContain('<OpenInSplitMenu');- });-it('PR-123 greptile: card 路径的绑定徽章与 Timer 进反白体系', () => {// P1:renderAutomationMeta 卡片/列表两路都要把选中态透传给 ScheduleBindingBadge,// 否则红胶囊上 Timer 仍是 meta 灰;普通自动化分支也必须透传 activeForeground。diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionRowRenderIsolation.test.ts b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionRowRenderIsolation.test.tsindex 28b10b48e1..e1e892455d 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionRowRenderIsolation.test.ts+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/sessionRowRenderIsolation.test.ts@@ -18,7 +18,7 @@*/import { createElement, Fragment } from 'react';-import { act, cleanup, createEvent, fireEvent, render } from '@testing-library/react';+import { act, cleanup, createEvent, fireEvent, render, screen, within } from '@testing-library/react';import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { readFileSync } from 'node:fs';import { resolve } from 'node:path';@@ -197,6 +197,30 @@ describe('SessionItem — 归档视觉', () => {});});+describe('SessionItem — 任务菜单', () => {+ it('不再暴露分栏打开入口', () => {+ render(rowsElement([makeSession('menu-session')], new Set()));++ fireEvent.click(+ screen.getByRole('button', {+ name: 'ccAgent.sidebar.sessionMenu.moreActions',+ }),+ );++ const menu = screen.getByRole('menu');+ expect(+ within(menu).getByRole('menuitem', {+ name: 'ccAgent.sidebar.sessionMenu.rename',+ }),+ ).toBeTruthy();+ expect(+ within(menu).queryByRole('menuitem', {+ name: /(?:splitGroup\.openInSplit|在分栏中打开)/,+ }),+ ).toBeNull();+ });+});+describe('SessionItem — 置顶分屏拖拽', () => {it('原生整行拖拽保留普通内容起手,并排除内部操作按钮', () => {const pinnedSession = {diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 0ca56ec470..fb08d6b8cf 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -9011,17 +9011,9 @@"dropHint": "Drop to Open the Session Here","loadingTask": "Loading Session…","resizeAria": "Resize Session Panes",- "openInSplit": "Open in Split",- "openSide": {- "left": "Open Session on Left",- "right": "Open Session on Right",- "top": "Open Session Above",- "bottom": "Open Session Below"- },"alreadyOpen": "This session is already open in the split. Choose another session.","limitReached": "A split can contain up to {{count}} sessions. Close one pane and try again.",- "addUnavailable": "This session can’t be opened in the current split. Open a session in the main area and try again.",- "workerUnavailable": "A Worker can’t open in a separate pane. Open its Lead session instead."+ "addUnavailable": "This session can’t be opened in the current split. Open a session in the main area and try again."},"extraDirs": {"menuAria": "Composer actions",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex fa85a58f20..e3957d38c2 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -8997,17 +8997,9 @@"dropHint": "ここにセッションをドロップして開く","loadingTask": "セッションを読み込み中…","resizeAria": "セッションペインのサイズを変更",- "openInSplit": "分割で開く",- "openSide": {- "left": "セッションを左側で開く",- "right": "セッションを右側で開く",- "top": "セッションを上側で開く",- "bottom": "セッションを下側で開く"- },"alreadyOpen": "このセッションはすでに分割内で開いています。別のセッションを選択してください。","limitReached": "1 つの分割で開けるセッションは最大 {{count}} 件です。ペインを 1 つ閉じてから、もう一度お試しください。",- "addUnavailable": "このセッションは現在の分割で開けません。メイン領域でセッションを開いてから、もう一度お試しください。",- "workerUnavailable": "Worker は個別のペインで開けません。所属する Lead セッションを開いてください。"+ "addUnavailable": "このセッションは現在の分割で開けません。メイン領域でセッションを開いてから、もう一度お試しください。"},"extraDirs": {"menuAria": "操作メニュー",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 7694a8c878..b046daa5ed 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -8997,17 +8997,9 @@"dropHint": "여기에 세션을 놓아 열기","loadingTask": "세션 불러오는 중…","resizeAria": "세션 분할 창 크기 조절",- "openInSplit": "분할로 열기",- "openSide": {- "left": "세션을 왼쪽에 열기",- "right": "세션을 오른쪽에 열기",- "top": "세션을 위쪽에 열기",- "bottom": "세션을 아래쪽에 열기"- },"alreadyOpen": "이 세션은 이미 분할 창에 열려 있습니다. 다른 세션을 선택하세요.","limitReached": "한 분할 창에는 세션을 최대 {{count}}개까지 열 수 있습니다. 분할 창 하나를 닫고 다시 시도하세요.",- "addUnavailable": "현재 분할 창에서 이 세션을 열 수 없습니다. 기본 영역에서 세션을 연 후 다시 시도하세요.",- "workerUnavailable": "Worker는 별도의 분할 창에서 열 수 없습니다. 소속 Lead 세션을 대신 여세요."+ "addUnavailable": "현재 분할 창에서 이 세션을 열 수 없습니다. 기본 영역에서 세션을 연 후 다시 시도하세요."},"extraDirs": {"menuAria": "작업 메뉴",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex f362b5e878..beda75b17a 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -8993,17 +8993,9 @@"dropHint": "松开以在此分栏打开任务","loadingTask": "正在加载任务…","resizeAria": "调整任务分栏大小",- "openInSplit": "在分栏中打开",- "openSide": {- "left": "在左侧打开任务",- "right": "在右侧打开任务",- "top": "在上方打开任务",- "bottom": "在下方打开任务"- },"alreadyOpen": "该任务已在当前分栏中打开,请选择其他任务","limitReached": "一个分栏最多可打开 {{count}} 个任务,请先关闭一个任务分栏再重试",- "addUnavailable": "当前无法在分栏中打开该任务,请先在主区域打开一个任务再重试",- "workerUnavailable": "Worker 任务不能单独在分栏中打开,请改为打开所属 Lead 任务"+ "addUnavailable": "当前无法在分栏中打开该任务,请先在主区域打开一个任务再重试"},"extraDirs": {"menuAria": "操作菜单",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 39f855ae17..7f7354a5dc 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -8996,17 +8996,9 @@"dropHint": "鬆開以在此分欄開啟任務","loadingTask": "正在載入任務…","resizeAria": "調整任務分欄大小",- "openInSplit": "在分欄中開啟",- "openSide": {- "left": "在左側開啟任務",- "right": "在右側開啟任務",- "top": "在上方開啟任務",- "bottom": "在下方開啟任務"- },"alreadyOpen": "該任務已在當前分欄中開啟,請選擇其他任務","limitReached": "一個分欄最多可開啟 {{count}} 個任務,請先關閉一個任務分欄再重試",- "addUnavailable": "當前無法在分欄中開啟該任務,請先在主區域開啟一個任務再重試",- "workerUnavailable": "Worker 任務不能單獨在分欄中開啟,請改為開啟所屬 Lead 任務"+ "addUnavailable": "當前無法在分欄中開啟該任務,請先在主區域開啟一個任務再重試"},"extraDirs": {"menuAria": "操作選單",