Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Unify composer add actions in a shared menu (#4819)
sarah90f846657211
diff --git a/.changeset/composer-add-menu.md b/.changeset/composer-add-menu.mdnew file mode 100644index 000000000..84b07ff57--- /dev/null+++ b/.changeset/composer-add-menu.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++The shared composer add menu now groups files, comments, and page mentions, with commands available in in-app agent chats.diff --git a/docs/content/features/editor.mdx b/docs/content/features/editor.mdxindex b759bcffd..b09439e49 100644--- a/docs/content/features/editor.mdx+++ b/docs/content/features/editor.mdx@@ -128,7 +128,7 @@ It's the primary in-editor way to hand work to an agent, and the freetext companNew in-app agent sessions automatically receive the [OpenKnowledge project skill](./skills/built-in-skills.mdx#project-scope) on their first non-command message, even if you have not installed it into an editor. The added guidance stays out of your visible message text.-The field also takes attachments when an **In app** agent is selected: drop a file on it, paste a screenshot into it, or use the attach button beside the field. Each one appears as a removable chip above the input and travels with the prompt into the new conversation. Once the prompt is sent, the chip for a doc that's still in the project opens that doc. Images can come from anywhere; other files are sent as a path reference, so they have to live inside the project. Images must be PNG, JPEG, GIF, or WebP, and all attachments on one message are capped at 700 KB combined. That budget is tight for screenshots — a full-screen Retina capture is usually several megabytes and will be refused, so crop the capture or resize it first. Pick a **Terminal** CLI or an **External app** instead and the composer refuses the drop with the reason — those targets have no attachment channel — and if you attach first and switch afterwards, the send is blocked with the same explanation rather than silently dropping the file. Attachments aren't available in note windows yet, and whether an in-app agent can actually read an image is up to that agent: if it can't, OpenKnowledge shows a notification saying so once the agent's capabilities are known. The empty-state create composer on a fresh project takes attachments the same way — drop, paste, or the attach button while an **In app** agent is picked — and refuses them with the reason for **Terminal** and **External apps** targets.+The **Add to prompt (+)** menu beside the field is available for every selected target. It always offers **Mention a page** and, when selected comments are waiting to be attached, **Attach comments**. With an **In app** agent selected, it also offers **Attach files**; you can add files from the menu, drop a file on the field, or paste a screenshot into it. Each attachment appears as a removable chip above the input and travels with the prompt into the new conversation. Once the prompt is sent, the chip for a doc that's still in the project opens that doc. Images can come from anywhere; other files are sent as a path reference, so they have to live inside the project. Images must be PNG, JPEG, GIF, or WebP, and all attachments on one message are capped at 700 KB combined. That budget is tight for screenshots — a full-screen Retina capture is usually several megabytes and will be refused, so crop the capture or resize it first. Pick a **Terminal** CLI or an **External app** instead and the composer refuses the drop with the reason — those targets have no attachment channel — and if you attach first and switch afterwards, the send is blocked with the same explanation rather than silently dropping the file. Attachments aren't available in note windows yet, and whether an in-app agent can actually read an image is up to that agent: if it can't, OpenKnowledge shows a notification saying so once the agent's capabilities are known. The empty-state create composer on a fresh project takes attachments the same way — drop, paste, or the attach button while an **In app** agent is picked — and refuses them with the reason for **Terminal** and **External apps** targets.The composer stays out of the way where it doesn't belong: it's hidden inside an AI editor's embedded view, while the [docked terminal](#terminal) is open (the terminal is its own AI entry point), and when no doc or folder is open (the empty state's create composer offers the same handoff, attachments included). It's also dismissible — an **Ask AI** badge in the status bar brings it back.@@ -150,7 +150,7 @@ Select text in the WYSIWYG editor and the selection bubble menu shows a **CommenThe desktop app on macOS, Windows, and Linux has a built-in terminal with real interactive shells inside the editor window. On Windows, the terminal requires Windows 10 version 1809 (build 17763) or later, Windows 11, or Windows Server 2019 or later. On Linux, OpenKnowledge inherits Electron's supported distribution range: releases of the major distributions that both Chromium and the distribution vendor still support. Toggle it with `Cmd+J` on macOS or `Ctrl+J` on Windows and Linux, with `` Ctrl+` `` on any desktop platform (which also works from inside a focused terminal), or with **View ▸ Show / Hide Terminal**. It opens at the placement saved for this installation (the bottom dock by default). Right-click a bottom-dock tab and choose **Move to right panel**, use the matching command in the command palette or **Terminal** menu, or use the right-panel header button to move it back to the bottom. Moving or hiding the Terminal keeps its live shells, tabs, and scrollback intact.-The terminal is also the editor's AI-chat surface: opening it starts your remembered CLI pick, or a plain shell when you have none, and the tab strip's **+** button opens another tab with whatever you picked last — a CLI chat or a plain shell. Its dropdown switches that pick and opens a tab in the thing you picked, in one action. A CLI pick sticks and is shared with the Ask AI composer; the plain-shell pick is remembered for the terminal only. In-app agents run in the Agents panel, which has its own tab strip and **+** button; picking an agent there sticks the same way and also becomes your Ask AI default. With text selected in the editor, `Cmd+J` on macOS, `Ctrl+J` on Windows or Linux, and `` Ctrl+` `` on any desktop platform stage the passage into the active CLI's input (or open a new CLI tab when none is running) instead of toggling — they share one handler. `Cmd+Shift+J` on macOS or `Ctrl+Shift+J` on Windows or Linux always stages it into a new CLI tab; the passage sits in the input for you to add to, and nothing is submitted until you press Enter. **Terminal ▸ New Terminal Window** (see [Terminal menu](#terminal-menu)) opens a dedicated window with the same multi-session tabs, switched with `Cmd+<number>` on macOS or `Ctrl+<number>` on Windows and Linux, and shells starting at the project root.+The terminal is also the editor's AI-chat surface: opening it starts your remembered CLI pick, or a plain shell when you have none, and the tab strip's **+** button opens another tab with whatever you picked last — a CLI chat or a plain shell. Its dropdown switches that pick and opens a tab in the thing you picked, in one action. A CLI pick sticks and is shared with the Ask AI composer; the plain-shell pick is remembered for the terminal only. In-app agents run in the Agents panel, which has its own tab strip and **+** button; picking an agent there sticks the same way and also becomes your Ask AI default. In an in-app chat, the **Add to prompt (+)** menu offers files and page mentions, plus selected comments when available. **Commands** appears when the selected agent provides commands and the prompt draft is empty. With text selected in the editor, `Cmd+J` on macOS, `Ctrl+J` on Windows or Linux, and `` Ctrl+` `` on any desktop platform stage the passage into the active CLI's input (or open a new CLI tab when none is running) instead of toggling — they share one handler. `Cmd+Shift+J` on macOS or `Ctrl+Shift+J` on Windows or Linux always stages it into a new CLI tab; the passage sits in the input for you to add to, and nothing is submitted until you press Enter. **Terminal ▸ New Terminal Window** (see [Terminal menu](#terminal-menu)) opens a dedicated window with the same multi-session tabs, switched with `Cmd+<number>` on macOS or `Ctrl+<number>` on Windows and Linux, and shells starting at the project root.On Windows, type `wsl` in any terminal tab to enter your default WSL distribution; OpenKnowledge's CLI detection and bundled `ok` command stay Windows-side, so install agent CLIs on Windows for them to appear in the launcher.diff --git a/packages/app/src/comments/comment-chips.dom.test.tsx b/packages/app/src/comments/comment-chips.dom.test.tsxindex 6b0ffc8d9..9ec98cbb8 100644--- a/packages/app/src/comments/comment-chips.dom.test.tsx+++ b/packages/app/src/comments/comment-chips.dom.test.tsx@@ -31,8 +31,6 @@ async function renderChip(props: Partial<{count: number;docs: readonly { docName: string; count: number }[];- attached: boolean;- onAttach: () => void;onDismiss: () => void;}> = {},) {@@ -43,8 +41,6 @@ async function renderChip(<QueuedCommentsChipcount={props.count ?? 3}{...(props.docs !== undefined ? { docs: props.docs } : {})}- attached={props.attached ?? true}- onAttach={props.onAttach ?? (() => {})}onDismiss={props.onDismiss ?? (() => {})}/></TooltipProvider>,@@ -93,25 +89,6 @@ describe('the queued-comments chip', () => {expect(screen.queryByTestId('composer-comments-list')).toBeNull();expect(screen.getAllByRole('button')).toHaveLength(2);});-- test('dismissed, it becomes the way back rather than disappearing', async () => {- let attached = 0;- await renderChip({- attached: false,- onAttach: () => {- attached += 1;- },- });-- const chip = screen.getByTestId('composer-context-chip-comments');- expect(chip.textContent).toContain('Comments');- expect(chip.textContent).not.toContain('3');- expect(chip.querySelector('svg.lucide-plus')).not.toBeNull();-- fireEvent.click(chip);- expect(attached).toBe(1);- expect(screen.queryByRole('button', { name: /leave these comments out/i })).toBeNull();- });});describe('the chip across documents', () => {diff --git a/packages/app/src/comments/comment-chips.tsx b/packages/app/src/comments/comment-chips.tsxindex 5ca072d76..a90554c38 100644--- a/packages/app/src/comments/comment-chips.tsx+++ b/packages/app/src/comments/comment-chips.tsx@@ -1,7 +1,7 @@// oxlint-disable ok/no-physical-direction-utility -- pre-rule backlog — physical margin/padding/inset utilities predate the rule; drain by swapping ml/mr → ms/me, pl/pr → ps/pe, left/right → start/end, then deleting this line. See https://github.com/inkeep/open-knowledge/blob/main/lint-plugins/ok-rules/README.md#no-physical-direction-utilityimport { Plural, Trans, useLingui } from '@lingui/react/macro';-import { MessageSquare, Plus, X } from 'lucide-react';+import { MessageSquare, X } from 'lucide-react';import { Button } from '@/components/ui/button';import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';import { cn } from '@/lib/utils';@@ -35,38 +35,14 @@ export function useSelectedCommentDocs(): readonly CommentDocTally[] {export function QueuedCommentsChip({count,docs = [],- attached,- onAttach,onDismiss,}: {count: number;docs?: readonly CommentDocTally[];- attached: boolean;- onAttach: () => void;onDismiss: () => void;}) {const { t } = useLingui();if (count === 0) return null;- if (!attached) {- return (- <Button- type="button"- size="sm"- variant="ghost"- aria-pressed={false}- aria-label={t`Add your comments to this message`}- onClick={onAttach}- data-testid="composer-context-chip-comments"- className={cn(- 'h-auto min-h-0 gap-1 rounded-md border border-dashed bg-transparent px-1.5 py-0.5',- 'text-xs font-normal text-muted-foreground hover:bg-muted/60 hover:text-foreground',- )}- >- <Plus className="size-3" />- <Trans>Comments</Trans>- </Button>- );- }return (<spandata-testid="composer-context-chip-comments"diff --git a/packages/app/src/components/BottomComposer.dom.test.tsx b/packages/app/src/components/BottomComposer.dom.test.tsxindex 7d72c9626..a24143046 100644--- a/packages/app/src/components/BottomComposer.dom.test.tsx+++ b/packages/app/src/components/BottomComposer.dom.test.tsx@@ -21,6 +21,7 @@ import {loadStickyAgent as loadStickyDefaultAgent,saveStickyAgent as saveStickyDefaultAgent,} from '@/lib/unified-agent-store';+import { createComposerDropdownMenuMock } from './composer-dropdown-menu.test-helper';vi.doMock('@lingui/react/macro', () => ({...actualLinguiMacro,@@ -35,40 +36,7 @@ vi.doMock('@/components/handoff/OpenInAgentMenuItem', () => ({TargetIcon: ({ id }: { id: string }) => <span data-testid={`target-icon-${id}`} />,}));-type MenuChild = {- children?: ReactNode;- disabled?: boolean;- onSelect?: () => void;- [key: string]: unknown;-};-vi.doMock('@/components/ui/dropdown-menu', () => ({- DropdownMenu: ({ children }: MenuChild) => <div>{children}</div>,- DropdownMenuTrigger: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuContent: ({ children, ...props }: MenuChild) => (- <div role="menu" {...props}>- {children}- </div>- ),- DropdownMenuGroup: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuItem: ({ children, disabled, onSelect, ...props }: MenuChild) => (- <button type="button" role="menuitem" disabled={disabled} onClick={onSelect} {...props}>- {children}- </button>- ),- DropdownMenuCheckboxItem: ({ children, disabled, checked, ...props }: MenuChild) => (- <button- type="button"- role="menuitemcheckbox"- aria-checked={checked === true}- disabled={disabled}- {...props}- >- {children}- </button>- ),- DropdownMenuLabel: ({ children, ...props }: MenuChild) => <div {...props}>{children}</div>,- DropdownMenuSeparator: () => <hr data-testid="menu-separator" />,-}));+vi.doMock('@/components/ui/dropdown-menu', createComposerDropdownMenuMock);let mockInlineMentions: string[] = [];let emitMentions: ((mentions: string[]) => void) | null = null;@@ -107,7 +75,17 @@ vi.doMock('@/editor/ComposerMentionInput', () => ({getContent: () => ({instruction: localRef.current?.value ?? '',mentions: mockInlineMentions,+ attachments: [],}),+ focusEnd: () => localRef.current?.focus(),+ refuseDrop: () => {},+ setText: (text: string) => {+ if (localRef.current) localRef.current.value = text;+ onEmptyChange(text.trim() === '');+ },+ appendText: () => {},+ openMentionPicker: () => {},+ openSlashCommandPicker: () => {},}));return (<textarea@@ -298,6 +276,7 @@ async function renderComposerWithTerminal(async function renderComposerWithThrowingTerminal(docName = 'notes') {const { BottomComposer } = await import('./BottomComposer');const { TerminalLaunchProvider } = await import('./handoff/TerminalLaunchContext');+ const { TooltipProvider } = await import('@/components/ui/tooltip');return render(<TerminalLaunchProvidervalue={{@@ -309,6 +288,7 @@ async function renderComposerWithThrowingTerminal(docName = 'notes') {><BottomComposer docName={docName} surface="wysiwyg" /></TerminalLaunchProvider>,+ { wrapper: TooltipProvider },);}@@ -321,7 +301,8 @@ async function renderComposerWithInstalledClis(installed: Record<string, booleanasync function renderFolderComposer(folderPath = 'specs/foo') {const { BottomComposer } = await import('./BottomComposer');- return render(<BottomComposer folderPath={folderPath} />);+ const { TooltipProvider } = await import('@/components/ui/tooltip');+ return render(<BottomComposer folderPath={folderPath} />, { wrapper: TooltipProvider });}function getInput() {@@ -687,6 +668,18 @@ describe('BottomComposer (dispatch + picker + sticky default)', () => {expect(recordAskedAiSpy).toHaveBeenCalledTimes(1);});+ test('a terminal target keeps page mentions available without exposing file attachment', async () => {+ const user = userEvent.setup();+ await renderComposerWithTerminal();++ await user.click(screen.getByTestId('ask-ai-agent-trigger'));+ await user.click(await screen.findByTestId('ask-ai-agent-option-terminal'));++ expect(screen.getByTestId('ask-ai-add-to-prompt')).toBeTruthy();+ expect(screen.getByRole('menuitem', { name: 'Mention a page' })).toBeTruthy();+ expect(screen.queryByRole('menuitem', { name: 'Attach files' })).toBeNull();+ });+test('a terminal launch that throws keeps the draft, toasts, and records no Ask-AI step', async () => {const user = userEvent.setup();await renderComposerWithThrowingTerminal();@@ -1318,6 +1311,7 @@ describe('BottomComposer ⇧⌘L — overlay gate', () => {test('declines ⇧⌘L while an overlay owns the keyboard', async () => {const { BottomComposer } = await import('./BottomComposer');+ const { TooltipProvider } = await import('@/components/ui/tooltip');const { Dialog, DialogContent, DialogDescription, DialogTitle } = await import('@/components/ui/dialog');@@ -1331,6 +1325,7 @@ describe('BottomComposer ⇧⌘L — overlay gate', () => {</DialogContent></Dialog></>,+ { wrapper: TooltipProvider },);await waitFor(() => expect(screen.getByRole('dialog')).not.toBeNull());const composerInput = document.querySelector('textarea');@@ -1348,7 +1343,7 @@ describe('BottomComposer ⇧⌘L — overlay gate', () => {describe('BottomComposer (queued-comments chip lifecycle)', () => {const DETACH = /leave these comments out of this message/i;- const REATTACH = /add your comments to this message/i;+ const REATTACH = /attach comments: 2/i;test('a ticked batch rides the message by default', async () => {selectedCommentCount = 2;@@ -1361,7 +1356,12 @@ describe('BottomComposer (queued-comments chip lifecycle)', () => {await renderComposer();fireEvent.click(screen.getByRole('button', { name: DETACH }));expect(screen.queryByRole('button', { name: DETACH })).toBeNull();- expect(screen.getByRole('button', { name: REATTACH })).toBeTruthy();+ expect(screen.queryByTestId('composer-context-chip-comments')).toBeNull();+ expect(screen.getByRole('menuitem', { name: REATTACH })).toBeTruthy();+ expect(screen.queryByRole('menuitem', { name: 'Commands' })).toBeNull();++ fireEvent.click(screen.getByRole('menuitem', { name: REATTACH }));+ expect(screen.getByRole('button', { name: DETACH })).toBeTruthy();});test('posting a new comment re-attaches a dismissed batch', async () => {diff --git a/packages/app/src/components/BottomComposer.drop.dom.test.tsx b/packages/app/src/components/BottomComposer.drop.dom.test.tsxindex db3641ddd..7eb28f147 100644--- a/packages/app/src/components/BottomComposer.drop.dom.test.tsx+++ b/packages/app/src/components/BottomComposer.drop.dom.test.tsx@@ -11,6 +11,7 @@ import {import type { ReactNode } from 'react';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { setComposerDraftDoc } from '@/components/composer-draft-store';+import { createComposerDropdownMenuMock } from '@/components/composer-dropdown-menu.test-helper';import {type AgentThreadLaunchDetail,subscribeToAgentThreadLaunchRequests,@@ -47,40 +48,7 @@ vi.doMock('@/components/handoff/OpenInAgentMenuItem', () => ({TargetIcon: ({ id }: { id: string }) => <span data-testid={`target-icon-${id}`} />,}));-type MenuChild = {- children?: ReactNode;- disabled?: boolean;- onSelect?: () => void;- [key: string]: unknown;-};-vi.doMock('@/components/ui/dropdown-menu', () => ({- DropdownMenu: ({ children }: MenuChild) => <div>{children}</div>,- DropdownMenuTrigger: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuContent: ({ children, ...props }: MenuChild) => (- <div role="menu" {...props}>- {children}- </div>- ),- DropdownMenuGroup: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuItem: ({ children, disabled, onSelect, ...props }: MenuChild) => (- <button type="button" role="menuitem" disabled={disabled} onClick={onSelect} {...props}>- {children}- </button>- ),- DropdownMenuCheckboxItem: ({ children, disabled, checked, ...props }: MenuChild) => (- <button- type="button"- role="menuitemcheckbox"- aria-checked={checked === true}- disabled={disabled}- {...props}- >- {children}- </button>- ),- DropdownMenuLabel: ({ children, ...props }: MenuChild) => <div {...props}>{children}</div>,- DropdownMenuSeparator: () => <hr data-testid="menu-separator" />,-}));+vi.doMock('@/components/ui/dropdown-menu', createComposerDropdownMenuMock);let installStates: Record<string, { installed: boolean | null }> = {};vi.doMock('@/components/handoff/useInstalledAgents', () => ({diff --git a/packages/app/src/components/BottomComposer.tsx b/packages/app/src/components/BottomComposer.tsxindex 93f96d2f7..e4365be67 100644--- a/packages/app/src/components/BottomComposer.tsx+++ b/packages/app/src/components/BottomComposer.tsx@@ -13,9 +13,14 @@ import {useSelectedCommentDocs,} from '@/comments/comment-chips';import { type BatchPreparedItem, dispatchComments, subscribeCommentPosted } from '@/comments/store';-import { AttachFilesButton } from '@/components/acp/AttachFilesButton';import { PendingImageStrip } from '@/components/acp/PendingImageStrip';import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';+import {+ ComposerAddMenu,+ ComposerCommentsMenuItem,+ ComposerFilesMenuItem,+ ComposerMentionMenuItem,+} from '@/components/ComposerAddMenu';import { ComposerContextChips } from '@/components/ComposerContextChips';import { isExternalFileDrag } from '@/components/file-tree-adapter';import { AgentSplitButton } from '@/components/handoff/AgentSplitButton';@@ -788,12 +793,10 @@ export function BottomComposer({</>) : null}{}- {selectedCommentCount > 0 && (+ {hasQueuedComments && (<QueuedCommentsChipcount={selectedCommentCount}docs={selectedCommentDocs}- attached={commentsAttached}- onAttach={() => setCommentsAttached(true)}onDismiss={() => setCommentsAttached(false)}/>)}@@ -834,9 +837,16 @@ export function BottomComposer({) : null}</div><div className="flex items-end gap-2">- {attachmentsAccepted ? (- <AttachFilesButton testId="ask-ai-attach-files" onFiles={ingestFiles} size="icon" />- ) : null}+ <ComposerAddMenu testId="ask-ai-add-to-prompt" size="icon">+ {attachmentsAccepted ? <ComposerFilesMenuItem onFiles={ingestFiles} /> : null}+ {selectedCommentCount > 0 && !hasQueuedComments ? (+ <ComposerCommentsMenuItem+ count={selectedCommentCount}+ onSelect={() => setCommentsAttached(true)}+ />+ ) : null}+ <ComposerMentionMenuItem onSelect={() => inputRef.current?.openMentionPicker()} />+ </ComposerAddMenu><div className="relative flex min-h-8 flex-1 flex-col justify-center"><ComposerMentionInputref={inputRef}@@ -858,7 +868,7 @@ export function BottomComposer({<RotatingComposerPlaceholderphrases={suggestions}rotating={!hasQueuedComments}- className="flex items-center px-0 py-0"+ className="flex -translate-y-px items-center px-0 py-0"testId="ask-ai-composer-placeholder"/>) : null}diff --git a/packages/app/src/components/ComposerAddMenu.dom.test.tsx b/packages/app/src/components/ComposerAddMenu.dom.test.tsxnew file mode 100644index 000000000..833d7f6da--- /dev/null+++ b/packages/app/src/components/ComposerAddMenu.dom.test.tsx@@ -0,0 +1,194 @@+import * as actualLinguiMacro from '@lingui/react/macro';+import { cleanup, render, screen, waitFor, within } from '@testing-library/react';+import userEvent from '@testing-library/user-event';+import { createRef, type ReactNode } from 'react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { ComposerMentionInputHandle } from '@/editor/ComposerMentionInput';++vi.doMock('@lingui/react/macro', () => ({+ ...actualLinguiMacro,+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,+ useLingui: () => ({+ t: (strings: TemplateStringsArray, ...values: unknown[]) =>+ strings.reduce((acc, part, index) => `${acc}${part}${values[index] ?? ''}`, ''),+ }),+}));++afterEach(() => {+ cleanup();+ vi.restoreAllMocks();+});++describe('ComposerAddMenu', () => {+ test('composes the shared prompt additions without forcing every surface to expose commands', async () => {+ const user = userEvent.setup();+ const onComments = vi.fn(() => {});+ const onMention = vi.fn(() => {});+ const {+ ComposerAddMenu,+ ComposerCommentsMenuItem,+ ComposerFilesMenuItem,+ ComposerMentionMenuItem,+ } = await import('./ComposerAddMenu');++ render(+ <TooltipProvider>+ <ComposerAddMenu testId="composer-add">+ <ComposerFilesMenuItem onFiles={() => {}} />+ <ComposerCommentsMenuItem count={3} onSelect={onComments} />+ <ComposerMentionMenuItem onSelect={onMention} />+ </ComposerAddMenu>+ </TooltipProvider>,+ );++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));++ expect(screen.getByRole('menuitem', { name: 'Attach files' })).toBeDefined();+ const commentsItem = screen.getByRole('menuitem', { name: 'Attach comments: 3' });+ expect(commentsItem).toBeDefined();+ expect(within(commentsItem).getByText('3')).toBeDefined();+ expect(screen.getByRole('menuitem', { name: 'Mention a page' })).toBeDefined();+ expect(screen.queryByRole('menuitem', { name: 'Commands' })).toBeNull();++ await user.click(screen.getByRole('menuitem', { name: 'Mention a page' }));+ expect(onMention).toHaveBeenCalledTimes(1);++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));+ await user.click(screen.getByRole('menuitem', { name: 'Attach comments: 3' }));+ expect(onComments).toHaveBeenCalledTimes(1);+ });++ test('the ACP variant can add a commands entry without changing the shared trigger', async () => {+ const user = userEvent.setup();+ const composerRef = createRef<ComposerMentionInputHandle>();+ const { ComposerAddMenu, ComposerCommandsMenuItem, ComposerFilesMenuItem } = await import(+ './ComposerAddMenu'+ );+ const { ComposerMentionInput } = await import('@/editor/ComposerMentionInput');++ render(+ <TooltipProvider>+ <ComposerMentionInput+ ref={composerRef}+ ariaLabel="Prompt"+ attachmentDrop={{ kind: 'host' }}+ onEmptyChange={() => {}}+ onSubmit={() => {}}+ slashCommands={[{ name: 'review', description: 'Review the current diff' }]}+ />+ <ComposerAddMenu testId="composer-add">+ <ComposerFilesMenuItem onFiles={() => {}} attachmentMode="reference" />+ <ComposerCommandsMenuItem+ onSelect={() => composerRef.current?.openSlashCommandPicker()}+ />+ </ComposerAddMenu>+ </TooltipProvider>,+ );++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));+ expect(+ screen.getByRole('menuitem', {+ name: 'Attach files · references only (no embedded contents)',+ }).textContent,+ ).toBe('Attach files · references only (no embedded contents)');+ await user.click(screen.getByRole('menuitem', { name: 'Commands' }));++ await waitFor(() => {+ expect(document.querySelector('[data-composer-portal]')).toBeNull();+ expect(document.activeElement).toBe(screen.getByRole('textbox', { name: 'Prompt' }));+ });+ });++ test('choosing Attach files preserves the existing multi-file picker behavior', async () => {+ const user = userEvent.setup();+ const notesFile = new File(['hello'], 'notes.txt', { type: 'text/plain' });+ const imageFile = new File(['image'], 'diagram.png', { type: 'image/png' });+ const onFiles = vi.fn((_files: readonly File[]) => {});+ const clickSpy = vi.spyOn(HTMLInputElement.prototype, 'click').mockImplementation(function () {+ expect(this.multiple).toBe(true);+ Object.defineProperty(this, 'files', {+ configurable: true,+ value: [notesFile, imageFile],+ });+ this.dispatchEvent(new Event('change'));+ });+ const { ComposerAddMenu, ComposerFilesMenuItem } = await import('./ComposerAddMenu');++ render(+ <TooltipProvider>+ <ComposerAddMenu testId="composer-add">+ <ComposerFilesMenuItem onFiles={onFiles} />+ </ComposerAddMenu>+ </TooltipProvider>,+ );++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));+ await user.click(screen.getByRole('menuitem', { name: 'Attach files' }));++ expect(onFiles).toHaveBeenCalledWith([notesFile, imageFile]);+ clickSpy.mockRestore();+ });++ test('choosing Mention a page leaves keyboard focus in the composer', async () => {+ const user = userEvent.setup();+ const composerRef = createRef<ComposerMentionInputHandle>();+ const { ComposerAddMenu, ComposerMentionMenuItem } = await import('./ComposerAddMenu');+ const { ComposerMentionInput } = await import('@/editor/ComposerMentionInput');++ render(+ <TooltipProvider>+ <ComposerMentionInput+ ref={composerRef}+ ariaLabel="Prompt"+ attachmentDrop={{ kind: 'host' }}+ onEmptyChange={() => {}}+ onSubmit={() => {}}+ />+ <ComposerAddMenu testId="composer-add">+ <ComposerMentionMenuItem onSelect={() => composerRef.current?.openMentionPicker()} />+ </ComposerAddMenu>+ </TooltipProvider>,+ );++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));+ await user.click(screen.getByRole('menuitem', { name: 'Mention a page' }));++ await waitFor(() => {+ expect(document.querySelector('[data-composer-portal]')).toBeNull();+ expect(document.activeElement).toBe(screen.getByRole('textbox', { name: 'Prompt' }));+ });+ });++ test('pressing Escape returns keyboard focus to the add menu trigger', async () => {+ const user = userEvent.setup();+ const { ComposerAddMenu, ComposerMentionMenuItem } = await import('./ComposerAddMenu');++ render(+ <TooltipProvider>+ <ComposerAddMenu testId="composer-add">+ <ComposerMentionMenuItem onSelect={() => {}} />+ </ComposerAddMenu>+ </TooltipProvider>,+ );++ const trigger = screen.getByRole('button', { name: 'Add to prompt' });+ await user.click(trigger);+ await user.keyboard('{Escape}');++ await waitFor(() => {+ expect(document.querySelector('[data-composer-portal]')).toBeNull();+ expect(document.activeElement).toBe(trigger);+ });+ });++ test('picker-opening items require the shared menu scheduler', async () => {+ const { ComposerCommandsMenuItem, ComposerMentionMenuItem } = await import('./ComposerAddMenu');++ for (const MenuItem of [ComposerMentionMenuItem, ComposerCommandsMenuItem]) {+ expect(() => render(<MenuItem onSelect={() => {}} />)).toThrow(+ 'Composer picker menu items must be rendered inside ComposerAddMenu',+ );+ }+ });+});diff --git a/packages/app/src/components/ComposerAddMenu.tsx b/packages/app/src/components/ComposerAddMenu.tsxnew file mode 100644index 000000000..7ef2ab096--- /dev/null+++ b/packages/app/src/components/ComposerAddMenu.tsx@@ -0,0 +1,184 @@+import { useLingui } from '@lingui/react/macro';+import { AtSign, MessageSquare, Paperclip, Plus, SquareSlash } from 'lucide-react';+import {+ type ComponentProps,+ createContext,+ type ReactNode,+ type RefObject,+ use,+ useRef,+ useState,+} from 'react';+import { Badge } from '@/components/ui/badge';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuShortcut,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { openFilePicker } from '@/lib/file-picker';++const ComposerFocusActionContext = createContext<((action: () => void) => void) | null>(null);++function useComposerFocusAction(): (action: () => void) => void {+ const scheduleComposerFocusAction = use(ComposerFocusActionContext);+ if (scheduleComposerFocusAction === null) {+ throw new Error('Composer picker menu items must be rendered inside ComposerAddMenu');+ }+ return scheduleComposerFocusAction;+}++type ComposerAddMenuProps = {+ children: ReactNode;+ testId: string;+ size?: Extract<ComponentProps<typeof Button>['size'], 'icon-sm' | 'icon'>;+} & (+ | {+ disabled?: never;+ disabledFocusTargetRef?: never;+ }+ | {+ disabled: boolean;+ disabledFocusTargetRef: RefObject<HTMLElement | null>;+ }+);++export function ComposerAddMenu({+ children,+ disabled = false,+ disabledFocusTargetRef,+ testId,+ size = 'icon-sm',+}: ComposerAddMenuProps): ReactNode {+ const { t } = useLingui();+ const label = t`Add to prompt`;+ const composerFocusActionRef = useRef<(() => void) | null>(null);+ const [open, setOpen] = useState(false);+ return (+ <ComposerFocusActionContext+ value={(action) => {+ composerFocusActionRef.current = action;+ }}+ >+ <DropdownMenu+ open={!disabled && open}+ onOpenChange={(nextOpen) => {+ if (disabled) return;+ if (nextOpen) composerFocusActionRef.current = null;+ setOpen(nextOpen);+ }}+ >+ <Tooltip>+ <TooltipTrigger asChild>+ <DropdownMenuTrigger asChild>+ <Button+ type="button"+ size={size}+ variant="ghost"+ className="rounded-lg"+ disabled={disabled}+ aria-label={label}+ data-testid={testId}+ >+ <Plus className="size-3.5" aria-hidden="true" />+ </Button>+ </DropdownMenuTrigger>+ </TooltipTrigger>+ <TooltipContent side="top">{label}</TooltipContent>+ </Tooltip>+ <DropdownMenuContent+ side="top"+ align="start"+ className="min-w-52"+ data-composer-portal=""+ onCloseAutoFocus={(event) => {+ if (disabled) {+ event.preventDefault();+ composerFocusActionRef.current = null;+ setOpen(false);+ disabledFocusTargetRef?.current?.focus();+ return;+ }+ const action = composerFocusActionRef.current;+ if (action !== null) {+ event.preventDefault();+ composerFocusActionRef.current = null;+ action();+ }+ }}+ >+ {children}+ </DropdownMenuContent>+ </DropdownMenu>+ </ComposerFocusActionContext>+ );+}++export function ComposerFilesMenuItem({+ onFiles,+ attachmentMode = 'embedded',+}: {+ onFiles: (files: readonly File[]) => Promise<void> | void;+ attachmentMode?: 'embedded' | 'reference';+}): ReactNode {+ const { t } = useLingui();+ return (+ <DropdownMenuItem onSelect={() => openFilePicker({ multiple: true, onFiles })}>+ <Paperclip className="size-3.5 text-muted-foreground" aria-hidden="true" />+ <span>+ {t`Attach files`}+ {attachmentMode === 'reference' ? t` · references only (no embedded contents)` : null}+ </span>+ </DropdownMenuItem>+ );+}++export function ComposerCommentsMenuItem({+ count,+ onSelect,+}: {+ count: number;+ onSelect: () => void;+}): ReactNode {+ const { t } = useLingui();+ return (+ <DropdownMenuItem aria-label={t`Attach comments: ${count}`} onSelect={onSelect}>+ <MessageSquare className="size-3.5 text-muted-foreground" aria-hidden="true" />+ <span>{t`Attach comments`}</span>+ <Badge+ variant="gray"+ aria-hidden="true"+ className="ms-auto h-4 min-w-4 rounded-xs px-1 text-2xs leading-none tabular-nums"+ >+ {count}+ </Badge>+ </DropdownMenuItem>+ );+}++export function ComposerMentionMenuItem({ onSelect }: { onSelect: () => void }): ReactNode {+ const { t } = useLingui();+ const scheduleComposerFocusAction = useComposerFocusAction();+ return (+ <DropdownMenuItem onSelect={() => scheduleComposerFocusAction(onSelect)}>+ <AtSign className="size-3.5 text-muted-foreground" aria-hidden="true" />+ <span>{t`Mention a page`}</span>+ <DropdownMenuShortcut aria-hidden="true">@</DropdownMenuShortcut>+ </DropdownMenuItem>+ );+}++export function ComposerCommandsMenuItem({ onSelect }: { onSelect: () => void }): ReactNode {+ const { t } = useLingui();+ const scheduleComposerFocusAction = useComposerFocusAction();+ return (+ <DropdownMenuItem onSelect={() => scheduleComposerFocusAction(onSelect)}>+ <SquareSlash className="size-3.5 text-muted-foreground" aria-hidden="true" />+ <span>{t`Commands`}</span>+ <DropdownMenuShortcut aria-hidden="true">/</DropdownMenuShortcut>+ </DropdownMenuItem>+ );+}diff --git a/packages/app/src/components/acp/AttachFilesButton.tsx b/packages/app/src/components/acp/AttachFilesButton.tsxindex dcb18b52a..46b5071e1 100644--- a/packages/app/src/components/acp/AttachFilesButton.tsx+++ b/packages/app/src/components/acp/AttachFilesButton.tsx@@ -1,8 +1,9 @@import { useLingui } from '@lingui/react/macro';-import { Plus } from 'lucide-react';+import { Paperclip } from 'lucide-react';import type { ComponentProps, ReactNode } from 'react';import { Button } from '@/components/ui/button';import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';+import { openFilePicker } from '@/lib/file-picker';export function AttachFilesButton({onFiles,@@ -16,16 +17,6 @@ export function AttachFilesButton({size?: Extract<ComponentProps<typeof Button>['size'], 'icon-sm' | 'icon'>;}): ReactNode {const { t } = useLingui();- const openFilePicker = () => {- const input = document.createElement('input');- input.type = 'file';- input.multiple = true;- input.addEventListener('change', () => {- const files = Array.from(input.files ?? []);- if (files.length > 0) void onFiles(files);- });- input.click();- };return (<Tooltip><TooltipTrigger asChild>@@ -34,11 +25,11 @@ export function AttachFilesButton({size={size}variant="ghost"className="rounded-lg"- onClick={openFilePicker}+ onClick={() => openFilePicker({ multiple: true, onFiles })}aria-label={t`Attach a file`}data-testid={testId}>- <Plus className="size-4" aria-hidden="true" />+ <Paperclip className="size-3.5" aria-hidden="true" /></Button></TooltipTrigger><TooltipContent side="top">diff --git a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsxindex 3ea0afdf5..2f622d7a4 100644--- a/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx+++ b/packages/app/src/components/acp/ThreadView.comments.dom.test.tsx@@ -163,12 +163,11 @@ describe('ThreadView queued-comment chip', () => {);await user.click(screen.getByRole('button', { name: /leave these comments out/i }));- const detached = screen.getByTestId('composer-context-chip-comments');- expect(detached.textContent).toContain('Comments');- expect(detached.textContent).not.toContain('2 comments');+ expect(screen.queryByTestId('composer-context-chip-comments')).toBeNull();expect((screen.getByTestId('agent-thread-send') as HTMLButtonElement).disabled).toBe(true);- await user.click(detached);+ await user.click(screen.getByRole('button', { name: /add to prompt/i }));+ await user.click(screen.getByRole('menuitem', { name: /attach comments: 2/i }));expect(screen.getByTestId('composer-context-chip-comments').textContent).toContain('2 comments',);@@ -179,9 +178,7 @@ describe('ThreadView queued-comment chip', () => {render(<ThreadView info={makeInfo()} />);await user.click(screen.getByRole('button', { name: /leave these comments out/i }));- expect(screen.getByTestId('composer-context-chip-comments').textContent).not.toContain(- '2 comments',- );+ expect(screen.queryByTestId('composer-context-chip-comments')).toBeNull();act(() => emitCommentPostedForTest());diff --git a/packages/app/src/components/acp/ThreadView.composer-placeholder.dom.test.tsx b/packages/app/src/components/acp/ThreadView.composer-placeholder.dom.test.tsxindex 8152b1ffa..075789619 100644--- a/packages/app/src/components/acp/ThreadView.composer-placeholder.dom.test.tsx+++ b/packages/app/src/components/acp/ThreadView.composer-placeholder.dom.test.tsx@@ -1,5 +1,6 @@import type { ThreadInfo } from '@inkeep/open-knowledge-core/acp/thread-protocol';import { act, cleanup, render as rtlRender, screen } from '@testing-library/react';+import userEvent from '@testing-library/user-event';import { afterEach, describe, expect, test, vi } from 'vitest';import { TooltipProvider } from '@/components/ui/tooltip';import { SUGGESTION_FADE_MS, SUGGESTION_HOLD_MS } from '@/hooks/use-rotating-suggestion';@@ -144,6 +145,29 @@ describe('ACP composer placeholder', () => {]);});+ test('offers Commands in the shared add menu only when the agent reports commands', async () => {+ const user = userEvent.setup();+ const { rerender } = render(<ThreadView info={info()} />);++ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));+ expect(screen.queryByRole('menuitem', { name: 'Commands' })).toBeNull();+ await user.keyboard('{Escape}');++ rerender(+ <ThreadView+ info={info({ availableCommands: [{ name: 'review', description: 'Review the diff' }] })}+ />,+ );+ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));++ expect(screen.getByRole('menuitem', { name: 'Commands' })).toBeDefined();+ await user.keyboard('{Escape}');+ await user.type(screen.getByRole('textbox', { name: 'Message Claude' }), 'draft');+ await user.click(screen.getByRole('button', { name: 'Add to prompt' }));++ expect(screen.queryByRole('menuitem', { name: 'Commands' })).toBeNull();+ });+test('holds the sign-in prompt instead of rotating while auth is pending', () => {vi.useFakeTimers();render(<ThreadView info={info({ status: 'auth_required' })} />);diff --git a/packages/app/src/components/acp/ThreadView.dom.test.tsx b/packages/app/src/components/acp/ThreadView.dom.test.tsxindex da0763c92..79c220a80 100644--- a/packages/app/src/components/acp/ThreadView.dom.test.tsx+++ b/packages/app/src/components/acp/ThreadView.dom.test.tsx@@ -2657,7 +2657,7 @@ describe('ThreadView send-vs-queue labelling', () => {});describe('ThreadView attachment disclosure', () => {- test('a references-only agent explains that behavior on the attachment affordance', async () => {+ test('a references-only agent explains that behavior in the add menu', async () => {const user = userEvent.setup();model = makeModel({ turnActive: false });render(@@ -2669,14 +2669,16 @@ describe('ThreadView attachment disclosure', () => {/>,);- await user.hover(screen.getByTestId('agent-thread-attach-files'));+ await user.click(screen.getByTestId('agent-thread-add-to-prompt'));- expect((await screen.findByRole('tooltip')).textContent).toBe(- 'Attach a file · references only (no embedded contents)',- );+ expect(+ screen.getByRole('menuitem', {+ name: 'Attach files · references only (no embedded contents)',+ }).textContent,+ ).toBe('Attach files · references only (no embedded contents)');});- test('an embedding-capable agent keeps the attachment tooltip concise', async () => {+ test('an embedding-capable agent keeps the file option concise', async () => {const user = userEvent.setup();model = makeModel({ turnActive: false });render(@@ -2688,9 +2690,9 @@ describe('ThreadView attachment disclosure', () => {/>,);- await user.hover(screen.getByTestId('agent-thread-attach-files'));+ await user.click(screen.getByTestId('agent-thread-add-to-prompt'));- expect((await screen.findByRole('tooltip')).textContent).toBe('Attach a file');+ expect(screen.getByRole('menuitem', { name: 'Attach files' }).textContent).toBe('Attach files');});test('unknown capabilities do not flash a references-only claim during handshake', async () => {@@ -2698,9 +2700,9 @@ describe('ThreadView attachment disclosure', () => {model = makeModel({ turnActive: false });render(<ThreadView info={makeInfo({ status: 'ready', promptCapabilities: null })} />);- await user.hover(screen.getByTestId('agent-thread-attach-files'));+ await user.click(screen.getByTestId('agent-thread-add-to-prompt'));- expect((await screen.findByRole('tooltip')).textContent).toBe('Attach a file');+ expect(screen.getByRole('menuitem', { name: 'Attach files' }).textContent).toBe('Attach files');});});@@ -3263,11 +3265,26 @@ describe('ThreadView retry', () => {expect(screen.getByTestId('agent-thread-send').hasAttribute('disabled')).toBe(true);});- test('a thread whose agent is gone for good has nothing left to type into', () => {+ test('an exiting agent closes the add menu and moves focus to settings', async () => {+ const user = userEvent.setup();model = makeModel({ turnActive: false, items: [] });- render(<ThreadView info={makeInfo({ status: 'exited' })} />);+ const view = render(<ThreadView info={makeInfo({ status: 'ready' })} />);++ await user.click(screen.getByTestId('agent-thread-add-to-prompt'));+ expect(screen.getByRole('menuitem', { name: 'Attach files' })).toBeDefined();++ view.rerender(<ThreadView info={makeInfo({ status: 'exited' })} />);expect(screen.getByTestId('agent-thread-composer').hasAttribute('disabled')).toBe(true);+ const addMenu = screen.getByTestId('agent-thread-add-to-prompt');+ expect(addMenu.hasAttribute('disabled')).toBe(true);+ await waitFor(() => {+ expect(screen.queryByRole('menuitem', { name: 'Attach files' })).toBeNull();+ expect(document.activeElement).toBe(screen.getByTestId('agent-thread-settings'));+ });++ view.rerender(<ThreadView info={makeInfo({ status: 'ready' })} />);+ expect(screen.queryByRole('menuitem', { name: 'Attach files' })).toBeNull();});test('the header names the build OK launched', () => {diff --git a/packages/app/src/components/acp/ThreadView.tsx b/packages/app/src/components/acp/ThreadView.tsxindex 3b2d69cc7..5bd8a20ce 100644--- a/packages/app/src/components/acp/ThreadView.tsx+++ b/packages/app/src/components/acp/ThreadView.tsx@@ -63,6 +63,13 @@ import {} from '@/comments/comment-chips';import { subscribeSendInThread } from '@/comments/open-chat-send';import { dispatchComments, subscribeCommentPosted } from '@/comments/store';+import {+ ComposerAddMenu,+ ComposerCommandsMenuItem,+ ComposerCommentsMenuItem,+ ComposerFilesMenuItem,+ ComposerMentionMenuItem,+} from '@/components/ComposerAddMenu';import { ComposerContextChips } from '@/components/ComposerContextChips';import { CopyButton } from '@/components/CopyButton';import { isExternalFileDrag } from '@/components/file-tree-adapter';@@ -175,7 +182,6 @@ import { useWorkspace } from '@/lib/use-workspace';import { cn } from '@/lib/utils';import { AgentMarkdown } from './AgentMarkdown';import { AgentNoticeAnnouncer } from './AgentNoticeAnnouncer';-import { AttachFilesButton } from './AttachFilesButton';import { buildDocPathResolver, setDocPathResolver } from './doc-path-links';import { DocPathResolverReadyContext } from './doc-path-links-context';import {@@ -1520,10 +1526,12 @@ function AgentSettingsPopover({info,hasStartedWork,onNewChat,+ triggerRef,}: {info: ThreadInfo;hasStartedWork: boolean;onNewChat: () => void;+ triggerRef?: RefObject<HTMLButtonElement | null>;}): ReactNode {const { i18n, t } = useLingui();const reasonId = useId();@@ -1564,6 +1572,7 @@ function AgentSettingsPopover({{}<span className="inline-flex cursor-not-allowed"><Button+ ref={triggerRef}type="button"variant="ghost"className="h-7 max-w-48 gap-1 rounded-md pl-1.5 pr-1! text-xs"@@ -1630,6 +1639,7 @@ function AgentSettingsPopover({<TooltipTrigger asChild><DropdownMenuTrigger asChild><Button+ ref={triggerRef}type="button"variant="ghost"className="h-7 min-w-0 max-w-sm shrink gap-1.5 rounded-md pl-1.5 pr-1! text-xs"@@ -4029,6 +4039,7 @@ function ThreadComposer({const agentName = agentDisplayName(info.agent.name);const [isEmpty, setIsEmpty] = useState(true);+ const settingsTriggerRef = useRef<HTMLButtonElement>(null);const composerDisabled = archived ? resumePending : status === 'exited';@@ -4104,13 +4115,11 @@ function ThreadComposer({>{}{}- {selectedCommentCount > 0 ? (+ {hasQueuedComments ? (<ComposerContextChips className="px-3 pt-2 pb-1"><QueuedCommentsChipcount={selectedCommentCount}docs={selectedCommentDocs}- attached={hasQueuedComments}- onAttach={onAttachComments}onDismiss={onDismissComments}/></ComposerContextChips>@@ -4159,16 +4168,37 @@ function ThreadComposer({</div>{}<div className="flex items-center gap-0.5 px-1.5 pt-1 pb-1.5">- <AttachFilesButton- testId="agent-thread-attach-files"- onFiles={onIngestAllFiles}- referencesOnly={- info.promptCapabilities !== null &&- info.promptCapabilities !== undefined &&- info.promptCapabilities.embeddedContext !== true- }+ <ComposerAddMenu+ disabled={composerDisabled}+ disabledFocusTargetRef={settingsTriggerRef}+ testId="agent-thread-add-to-prompt"+ >+ <ComposerFilesMenuItem+ onFiles={onIngestAllFiles}+ attachmentMode={+ info.promptCapabilities !== null &&+ info.promptCapabilities !== undefined &&+ info.promptCapabilities.embeddedContext !== true+ ? 'reference'+ : 'embedded'+ }+ />+ {selectedCommentCount > 0 && !hasQueuedComments ? (+ <ComposerCommentsMenuItem count={selectedCommentCount} onSelect={onAttachComments} />+ ) : null}+ <ComposerMentionMenuItem onSelect={() => composerRef.current?.openMentionPicker()} />+ {agentHasCommands && isEmpty ? (+ <ComposerCommandsMenuItem+ onSelect={() => composerRef.current?.openSlashCommandPicker()}+ />+ ) : null}+ </ComposerAddMenu>+ <AgentSettingsPopover+ info={info}+ hasStartedWork={hasStartedWork}+ onNewChat={onNewChat}+ triggerRef={settingsTriggerRef}/>- <AgentSettingsPopover info={info} hasStartedWork={hasStartedWork} onNewChat={onNewChat} /><div className="ml-auto flex items-center gap-1.5">{usagePercent !== null && usage?.used !== undefined && usage?.size !== undefined ? (<ContextUsageRing used={usage.used} size={usage.size} percent={usagePercent} />diff --git a/packages/app/src/components/acp/composer-mention-input.test-helper.tsx b/packages/app/src/components/acp/composer-mention-input.test-helper.tsxindex 13e1ba11d..3ff2fc12a 100644--- a/packages/app/src/components/acp/composer-mention-input.test-helper.tsx+++ b/packages/app/src/components/acp/composer-mention-input.test-helper.tsx@@ -77,6 +77,10 @@ export function MockComposerMentionInput({attachments: [],}),openMentionPicker: () => {},+ openSlashCommandPicker: () => {+ if (localRef.current) localRef.current.value = '/';+ notify();+ },}));return (<textareadiff --git a/packages/app/src/components/composer-dropdown-menu.test-helper.tsx b/packages/app/src/components/composer-dropdown-menu.test-helper.tsxnew file mode 100644index 000000000..6b392e6cc--- /dev/null+++ b/packages/app/src/components/composer-dropdown-menu.test-helper.tsx@@ -0,0 +1,125 @@+import type { ComponentProps } from 'react';+import type * as DropdownMenuModule from '@/components/ui/dropdown-menu';++type DropdownMenuProps<Name extends keyof typeof DropdownMenuModule> = ComponentProps<+ (typeof DropdownMenuModule)[Name]+>;++function asDivProps(props: object): ComponentProps<'div'> {+ return props as ComponentProps<'div'>;+}++function asButtonProps(props: object): ComponentProps<'button'> {+ return props as ComponentProps<'button'>;+}++function asSpanProps(props: object): ComponentProps<'span'> {+ return props as ComponentProps<'span'>;+}++function asHrProps(props: object): ComponentProps<'hr'> {+ return props as ComponentProps<'hr'>;+}++function invokeSelection(onSelect: unknown): void {+ if (typeof onSelect === 'function') Reflect.apply(onSelect, undefined, [new Event('select')]);+}++export function createComposerDropdownMenuMock() {+ return {+ DropdownMenu: ({ children }: DropdownMenuProps<'DropdownMenu'>) => <div>{children}</div>,+ DropdownMenuPortal: ({ children }: DropdownMenuProps<'DropdownMenuPortal'>) => <>{children}</>,+ DropdownMenuTrigger: ({ children }: DropdownMenuProps<'DropdownMenuTrigger'>) => (+ <>{children}</>+ ),+ DropdownMenuContent: ({ children, ...props }: DropdownMenuProps<'DropdownMenuContent'>) => (+ <div role="menu" {...asDivProps(props)}>+ {children}+ </div>+ ),+ DropdownMenuGroup: ({ children }: DropdownMenuProps<'DropdownMenuGroup'>) => <>{children}</>,+ DropdownMenuItem: ({+ children,+ disabled,+ onSelect,+ ...props+ }: DropdownMenuProps<'DropdownMenuItem'>) => (+ <button+ type="button"+ role="menuitem"+ {...asButtonProps(props)}+ disabled={disabled}+ onClick={() => invokeSelection(onSelect)}+ >+ {children}+ </button>+ ),+ DropdownMenuCheckboxItem: ({+ children,+ disabled,+ checked,+ ...props+ }: DropdownMenuProps<'DropdownMenuCheckboxItem'>) => (+ <button+ type="button"+ role="menuitemcheckbox"+ {...asButtonProps(props)}+ aria-checked={checked === 'indeterminate' ? 'mixed' : checked}+ disabled={disabled}+ >+ {children}+ </button>+ ),+ DropdownMenuRadioGroup: ({ children }: DropdownMenuProps<'DropdownMenuRadioGroup'>) => (+ <>{children}</>+ ),+ DropdownMenuRadioItem: ({+ children,+ disabled,+ ...props+ }: DropdownMenuProps<'DropdownMenuRadioItem'>) => (+ <button+ type="button"+ role="menuitemradio"+ {...asButtonProps(props)}+ aria-checked={false}+ disabled={disabled}+ >+ {children}+ </button>+ ),+ DropdownMenuLabel: ({ children, ...props }: DropdownMenuProps<'DropdownMenuLabel'>) => (+ <div {...asDivProps(props)}>{children}</div>+ ),+ DropdownMenuSeparator: (props: DropdownMenuProps<'DropdownMenuSeparator'>) => (+ <hr data-testid="menu-separator" {...asHrProps(props)} />+ ),+ DropdownMenuShortcut: ({ children, ...props }: DropdownMenuProps<'DropdownMenuShortcut'>) => (+ <span {...asSpanProps(props)}>{children}</span>+ ),+ DropdownMenuSub: ({ children }: DropdownMenuProps<'DropdownMenuSub'>) => <>{children}</>,+ DropdownMenuSubTrigger: ({+ children,+ disabled,+ onSelect,+ ...props+ }: DropdownMenuProps<'DropdownMenuSubTrigger'>) => (+ <button+ type="button"+ {...asButtonProps(props)}+ disabled={disabled}+ onClick={() => invokeSelection(onSelect)}+ >+ {children}+ </button>+ ),+ DropdownMenuSubContent: ({+ children,+ ...props+ }: DropdownMenuProps<'DropdownMenuSubContent'>) => (+ <div role="menu" {...asDivProps(props)}>+ {children}+ </div>+ ),+ } satisfies typeof DropdownMenuModule;+}diff --git a/packages/app/src/components/composer-shared-draft.dom.test.tsx b/packages/app/src/components/composer-shared-draft.dom.test.tsxindex d0ba7e3f3..c788d20dd 100644--- a/packages/app/src/components/composer-shared-draft.dom.test.tsx+++ b/packages/app/src/components/composer-shared-draft.dom.test.tsx@@ -5,6 +5,7 @@ import type { JSONContent } from '@tiptap/core';import { type ReactNode, type Ref, useImperativeHandle, useRef, useState } from 'react';import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { __resetComposerDraftForTests } from './composer-draft-store';+import { createComposerDropdownMenuMock } from './composer-dropdown-menu.test-helper';vi.doMock('@lingui/react/macro', () => ({...actualLinguiMacro,@@ -27,40 +28,7 @@ vi.doMock('@/components/handoff/OpenInAgentMenuItem', () => ({TargetIcon: ({ id }: { id: string }) => <span data-testid={`target-icon-${id}`} />,}));-type MenuChild = {- children?: ReactNode;- disabled?: boolean;- onSelect?: () => void;- [key: string]: unknown;-};-vi.doMock('@/components/ui/dropdown-menu', () => ({- DropdownMenu: ({ children }: MenuChild) => <div>{children}</div>,- DropdownMenuTrigger: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuContent: ({ children, ...props }: MenuChild) => (- <div role="menu" {...props}>- {children}- </div>- ),- DropdownMenuGroup: ({ children }: MenuChild) => <>{children}</>,- DropdownMenuItem: ({ children, disabled, onSelect, ...props }: MenuChild) => (- <button type="button" role="menuitem" disabled={disabled} onClick={onSelect} {...props}>- {children}- </button>- ),- DropdownMenuCheckboxItem: ({ children, disabled, checked, ...props }: MenuChild) => (- <button- type="button"- role="menuitemcheckbox"- aria-checked={checked === true}- disabled={disabled}- {...props}- >- {children}- </button>- ),- DropdownMenuLabel: ({ children, ...props }: MenuChild) => <div {...props}>{children}</div>,- DropdownMenuSeparator: () => <hr data-testid="menu-separator" />,-}));+vi.doMock('@/components/ui/dropdown-menu', createComposerDropdownMenuMock);const installedAll: Record<string, InstallState> = {'claude-cowork': { installed: false },diff --git a/packages/app/src/components/ui/dropdown-menu.dom.test.tsx b/packages/app/src/components/ui/dropdown-menu.dom.test.tsxindex 570765edc..35f377878 100644--- a/packages/app/src/components/ui/dropdown-menu.dom.test.tsx+++ b/packages/app/src/components/ui/dropdown-menu.dom.test.tsx@@ -38,8 +38,12 @@ const SNAPPY_TOKENS = [async function renderDropdownMenu() {const {DropdownMenu,+ DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,@@ -52,6 +56,12 @@ async function renderDropdownMenu() {<DropdownMenuTrigger>Target</DropdownMenuTrigger><DropdownMenuContent forceMount={true}><DropdownMenuItem>Open</DropdownMenuItem>+ <DropdownMenuItem inset={true}>Inset</DropdownMenuItem>+ <DropdownMenuCheckboxItem checked={true}>Checked</DropdownMenuCheckboxItem>+ <DropdownMenuRadioGroup value="selected">+ <DropdownMenuRadioItem value="selected">Selected</DropdownMenuRadioItem>+ </DropdownMenuRadioGroup>+ <DropdownMenuLabel inset={true}>Label</DropdownMenuLabel><DropdownMenuSub open={true}><DropdownMenuSubTrigger>More</DropdownMenuSubTrigger><DropdownMenuSubContent forceMount={true}>@@ -123,6 +133,40 @@ describe('DropdownMenu runtime class contracts', () => {]);});+ test('subtrigger chevrons use logical spacing for trailing RTL alignment', async () => {+ await renderDropdownMenu();++ const trigger = document.querySelector('[data-slot="dropdown-menu-sub-trigger"]');+ const chevron = trigger?.querySelector('svg');+ expectVisualClassTokens(chevron?.getAttribute('class'), ['ms-auto']);+ expectVisualClassTokensAbsent(chevron?.getAttribute('class'), ['ml-auto']);+ });++ test('item insets and selection indicators use logical positioning', async () => {+ await renderDropdownMenu();++ for (const slot of [+ 'dropdown-menu-item',+ 'dropdown-menu-checkbox-item',+ 'dropdown-menu-radio-item',+ 'dropdown-menu-label',+ 'dropdown-menu-sub-trigger',+ ]) {+ const element = document.querySelector(`[data-slot="${slot}"]`);+ expectVisualClassTokens(element?.getAttribute('class'), ['data-inset:ps-7']);+ expectVisualClassTokensAbsent(element?.getAttribute('class'), ['data-inset:pl-7']);+ }++ for (const slot of [+ 'dropdown-menu-checkbox-item-indicator',+ 'dropdown-menu-radio-item-indicator',+ ]) {+ const indicator = document.querySelector(`[data-slot="${slot}"]`);+ expectVisualClassTokens(indicator?.getAttribute('class'), ['end-2']);+ expectVisualClassTokensAbsent(indicator?.getAttribute('class'), ['right-2']);+ }+ });+test('snappy transition tier and long-form state drift do not return', async () => {await renderDropdownMenu();diff --git a/packages/app/src/components/ui/dropdown-menu.tsx b/packages/app/src/components/ui/dropdown-menu.tsxindex 3a96ef976..463a0e548 100644--- a/packages/app/src/components/ui/dropdown-menu.tsx+++ b/packages/app/src/components/ui/dropdown-menu.tsx@@ -60,7 +60,7 @@ function DropdownMenuItem({data-inset={inset}data-variant={variant}className={cn(- "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",+ "group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",className,)}{...props}@@ -82,14 +82,14 @@ function DropdownMenuCheckboxItem({data-slot="dropdown-menu-checkbox-item"data-inset={inset}className={cn(- "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className,)}checked={checked}{...props}><span- className="pointer-events-none absolute right-2 flex items-center justify-center"+ className="pointer-events-none absolute end-2 flex items-center justify-center"data-slot="dropdown-menu-checkbox-item-indicator"><DropdownMenuPrimitive.ItemIndicator>@@ -120,13 +120,13 @@ function DropdownMenuRadioItem({data-slot="dropdown-menu-radio-item"data-inset={inset}className={cn(- "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "relative flex cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:ps-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className,)}{...props}><span- className="pointer-events-none absolute right-2 flex items-center justify-center"+ className="pointer-events-none absolute end-2 flex items-center justify-center"data-slot="dropdown-menu-radio-item-indicator"><DropdownMenuPrimitive.ItemIndicator>@@ -151,7 +151,7 @@ function DropdownMenuLabel({data-slot="dropdown-menu-label"data-inset={inset}className={cn(- 'px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7',+ 'px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:ps-7',className,)}{...props}@@ -177,7 +177,7 @@ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'spa<spandata-slot="dropdown-menu-shortcut"className={cn(- 'ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground',+ 'ms-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground',className,)}{...props}@@ -202,13 +202,13 @@ function DropdownMenuSubTrigger({data-slot="dropdown-menu-sub-trigger"data-inset={inset}className={cn(- "flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:ps-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className,)}{...props}>{children}- <ChevronRightIcon className="ml-auto" />+ <ChevronRightIcon className="ms-auto text-muted-foreground" /></DropdownMenuPrimitive.SubTrigger>);}diff --git a/packages/app/src/editor/ComposerMentionInput.tsx b/packages/app/src/editor/ComposerMentionInput.tsxindex 0e186bf43..248a84192 100644--- a/packages/app/src/editor/ComposerMentionInput.tsx+++ b/packages/app/src/editor/ComposerMentionInput.tsx@@ -57,6 +57,7 @@ export interface ComposerMentionInputHandle {attachments: ComposerAttachmentPart[];};openMentionPicker: () => void;+ openSlashCommandPicker: () => void;}function textToParagraphs(text: string): JSONContent[] {@@ -271,6 +272,11 @@ export function ComposerMentionInput({if (!editor) return;editor.chain().focus().insertContent('@').run();},+ openSlashCommandPicker: () => {+ if (!editor || !isComposerEmpty(editor) || (getSlashCommands(editor)?.length ?? 0) === 0)+ return;+ editor.chain().focus().insertContent('/').run();+ },}),[editor],);diff --git a/packages/app/src/editor/composer-mention/composer-slash-input.dom.test.tsx b/packages/app/src/editor/composer-mention/composer-slash-input.dom.test.tsxindex 49709f06d..597b50dd5 100644--- a/packages/app/src/editor/composer-mention/composer-slash-input.dom.test.tsx+++ b/packages/app/src/editor/composer-mention/composer-slash-input.dom.test.tsx@@ -201,6 +201,34 @@ describe('token decoration + hint line', () => {});describe('picker lifecycle', () => {+ test('the imperative command affordance opens the same picker as typing slash', async () => {+ const { editor, ref } = renderComposer({ slashCommands: COMMANDS });++ act(() => ref.current?.openSlashCommandPicker());++ expect(await pressKeyOnceItemsLoad(editor, 'ArrowDown')).toBe(true);+ expect(screen.getByTestId('composer-slash-menu').textContent).toContain('/review');+ });++ test('the imperative command affordance leaves a non-empty draft unchanged', () => {+ const { box, ref } = renderComposer({ slashCommands: COMMANDS });+ act(() => ref.current?.setText('keep this draft'));++ act(() => ref.current?.openSlashCommandPicker());++ expect(ref.current?.getContent().instruction).toBe('keep this draft');+ expect(box.querySelector('[data-testid="composer-slash-menu"]')).toBeNull();+ });++ test('the imperative command affordance does nothing without available commands', () => {+ const { box, ref } = renderComposer({ slashCommands: [] });++ act(() => ref.current?.openSlashCommandPicker());++ expect(ref.current?.getContent().instruction).toBe('');+ expect(box.querySelector('[data-testid="composer-slash-menu"]')).toBeNull();+ });+test('typing / at message start opens the picker; Enter inserts a pill in ONE transaction', async () => {const { editor, ref, box } = renderComposer({ slashCommands: COMMANDS });editor.commands.focus('end');diff --git a/packages/app/src/lib/file-picker.ts b/packages/app/src/lib/file-picker.tsnew file mode 100644index 000000000..e09300c8c--- /dev/null+++ b/packages/app/src/lib/file-picker.ts@@ -0,0 +1,20 @@+export function openFilePicker({+ multiple,+ onFiles,+}: {+ multiple: boolean;+ onFiles: (files: readonly File[]) => Promise<void> | void;+}): void {+ const input = document.createElement('input');+ input.type = 'file';+ input.multiple = multiple;+ input.addEventListener(+ 'change',+ () => {+ const files = Array.from(input.files ?? []);+ if (files.length > 0) void onFiles(files);+ },+ { once: true },+ );+ input.click();+}diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex b4258c14b..48323e241 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -628,6 +628,7 @@"</1> لملء تاريخ اليوم أو اسم المؤلف تلقائيًا."],"5hFl0U": ["نسخ المرجع"],+ "5hn4gs": ["إرفاق التعليقات"],"5jEnaB": ["غير متاح على هذه المنصة"],"5k0NLb": ["مراجعة"],"5kWklo": ["(قد يكون بعضها مخفيًا بالفعل بقواعد أخرى)"],@@ -975,6 +976,7 @@"99eR72": ["تحديد جدول المحرر المرئي"],"9Bd18D": ["فشل تحميل الصفحات المحورية"],"9CNRDG": ["استغرق خادم OpenKnowledge وقتا طويلا للرد. اطلب من الوكيل المحاولة مرة أخرى."],+ "9D9gK1": ["إضافة إلى الموجّه"],"9E_WAi": [["errorText"], " و", ["warningText"]],"9EykGQ": ["إدراج عمود إلى اليمين"],"9GbR5F": ["الأعلى"],@@ -1930,6 +1932,7 @@"It9oAP": ["أصبحت نسخة ", ["editor"], " هي المصدر"],"ItxGi3": ["يجب أن يقل إجمالي المرفقات عن 3 ميغابايت."],"IvKbeq": ["سيقرأ الوكيلان في النهاية كل ما في ", ["keep"], "."],+ "Iw8I0n": ["الإشارة إلى صفحة"],"Ix0K8o": ["إخفاء عقد الروابط الخارجية"],"IxHMdF": ["تعذّر حذف ذلك التعليق."],"IxyZXD": ["لقطة الشاشة"],@@ -2341,6 +2344,7 @@"N5rzKJ": ["حذف ", ["0"], " مهارات"],"N6j2JH": ["تحرير ", ["0"]],"N7Lau6": ["إيداع ومزامنة"],+ "N7m8E-": ["إرفاق الملفات"],"NBdIgR": ["تعليق"],"NErvOX": ["حُفظ في"],"NEzPEh": ["أنشئ فرعًا جديدًا، أو اسحب فرعًا موجودًا، في نافذته الخاصة."],@@ -3024,7 +3028,6 @@"Uobeu9": ["يضيف المهارة إلى ", ["rootRel"], " — يقرأها ", ["0"], " أيضًا"],"Up2_7p": ["نسخ المسار الكامل"],"UpCz01": ["هذا المستند"],- "UpOct_": ["أضف تعليقاتك إلى هذه الرسالة"],"UuYo7g": ["نُقل هذا ",["targetNoun"],@@ -4679,6 +4682,7 @@"jSg1tA": ["مزيد من الإجراءات (", ["syncAttentionLabel"], ")"],"jTLWxh": ["ضمّن صفحة خارجية في إطار مضمَّن (مستندات، عروض، Figma، CodeSandbox)."],"jTUxaN": ["تفعيل تلقائي (سحب فقط)"],+ "jVe0gf": ["إرفاق التعليقات: ", ["count"]],"jWwQo6": ["دفعة"],"jWzDfC": ["جارٍ التحقق من أدوات الذكاء الاصطناعي المتوفّرة لديك"],"jZ_E5M": ["فشل الجلب — راجع سجلات الخادم للتفاصيل."],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex c7fd09c6b..65aaa4fb2 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · مراجع فقط (بدون محتوى مضمن)"@@ -1752,14 +1753,14 @@ msgstr "إضافة إلى {gitignorePath}"msgid "Add to Dictionary"msgstr "إضافة إلى القاموس"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "إضافة إلى الموجّه"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "إضافة قيمة"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "أضف تعليقاتك إلى هذه الرسالة"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "الأصل: {title}"msgid "Attach a file"msgstr "إرفاق ملف"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "إرفاق التعليقات"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "إرفاق التعليقات: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "إرفاق الملفات"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "أوامر"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "الأوامر"@@ -3355,7 +3369,6 @@ msgstr "علّق على {0} هذا أو اسأل الذكاء الاصطناعيmsgid "Comment or ask AI about this code block"msgstr "علّق على كتلة الشيفرة هذه أو اسأل الذكاء الاصطناعي عنها"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "خوادم MCP"msgid "Medium section heading."msgstr "عنوان قسم متوسط."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "الإشارة إلى صفحة"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex ca4a03f8a..029646ed9 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -522,6 +522,7 @@"</1> লিখুন।"],"5hFl0U": ["রেফারেন্স কপি করুন"],+ "5hn4gs": ["মন্তব্য সংযুক্ত করুন"],"5jEnaB": ["এই প্ল্যাটফর্মে নেই"],"5k0NLb": ["পর্যালোচনা"],"5kWklo": ["(কিছু হয়তো অন্য নিয়মে আগেই লুকানো আছে)"],@@ -807,6 +808,7 @@"99eR72": ["দৃশ্য সম্পাদকের টেবিল নির্বাচন"],"9Bd18D": ["হাব পাতা লোড করতে ব্যর্থ"],"9CNRDG": ["OpenKnowledge সার্ভার সাড়া দিতে অনেক সময় নিয়েছে। এজেন্টকে আবার চেষ্টা করতে বলুন।"],+ "9D9gK1": ["প্রম্পটে যোগ করুন"],"9E_WAi": [["errorText"], " এবং ", ["warningText"]],"9EykGQ": ["ডানে কলাম যোগ করুন"],"9GbR5F": ["সর্বোচ্চ"],@@ -1612,6 +1614,7 @@"It9oAP": [["editor"], " সংস্করণটি এখন উৎস"],"ItxGi3": ["সংযুক্তির মোট আকার ৩ MB-র কম হতে হবে।"],"IvKbeq": ["শেষমেশ দুই এজেন্টই ", ["keep"], "-এর সবকিছু পড়বে।"],+ "Iw8I0n": ["একটি পাতা উল্লেখ করুন"],"Ix0K8o": ["বাইরের URL নোড লুকান"],"IxHMdF": ["ওই মন্তব্যটি মুছে ফেলা যায়নি।"],"IxyZXD": ["স্ক্রিনশট"],@@ -1957,6 +1960,7 @@"N5rzKJ": [["0"], "টি স্কিল মুছুন"],"N6j2JH": [["0"], " সম্পাদনা করুন"],"N7Lau6": ["কমিট করে সিঙ্ক করুন"],+ "N7m8E-": ["ফাইল সংযুক্ত করুন"],"NBdIgR": ["মন্তব্য করুন"],"NErvOX": ["যেখানে সংরক্ষিত"],"NEzPEh": ["একটি নতুন ব্রাঞ্চ তৈরি করুন, বা বিদ্যমান কোনোটি নিজের জানালায় চেক আউট করুন।"],@@ -2574,7 +2578,6 @@"Uobeu9": ["স্কিলটি ", ["rootRel"], "-এ যোগ করে — যা ", ["0"], "-ও পড়ে"],"Up2_7p": ["পূর্ণ পথ কপি করুন"],"UpCz01": ["এই নথি"],- "UpOct_": ["এই বার্তায় আপনার মন্তব্য যোগ করুন"],"UuYo7g": ["এই ",["targetNoun"],@@ -3973,6 +3976,7 @@"jSg1tA": ["আরও ক্রিয়া (", ["syncAttentionLabel"], ")"],"jTLWxh": ["একটি বাইরের পাতা ইনলাইন iframe-এ এমবেড করুন (নথি, ডেমো, Figma, CodeSandbox)।"],"jTUxaN": ["স্বয়ংক্রিয় (শুধু টানুন) চালু করুন"],+ "jVe0gf": ["মন্তব্য সংযুক্ত করুন: ", ["count"]],"jWwQo6": ["ব্যাচ"],"jWzDfC": ["আপনার কোন AI টুল আছে তা যাচাই করা হচ্ছে"],"jZ_E5M": ["আনা ব্যর্থ — বিস্তারিত জানতে সার্ভার লগ দেখুন।"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex bcb0751f0..be3534914 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · শুধু রেফারেন্স (কোনো এম্বেড করা বিষয়বস্তু নেই)"@@ -1748,14 +1749,14 @@ msgstr "{gitignorePath}-এ যোগ করুন"msgid "Add to Dictionary"msgstr "অভিধানে যোগ করুন"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "প্রম্পটে যোগ করুন"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "মান যোগ করুন"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "এই বার্তায় আপনার মন্তব্য যোগ করুন"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2224,6 +2225,18 @@ msgstr "সম্পদ: {title}"msgid "Attach a file"msgstr "একটি ফাইল সংযুক্ত করুন"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "মন্তব্য সংযুক্ত করুন"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "মন্তব্য সংযুক্ত করুন: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "ফাইল সংযুক্ত করুন"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3319,6 +3332,7 @@ msgid "commands"msgstr "কমান্ড"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "কমান্ড"@@ -3351,7 +3365,6 @@ msgstr "এই {0} নিয়ে মন্তব্য করুন বা AI-msgid "Comment or ask AI about this code block"msgstr "এই কোড ব্লক নিয়ে মন্তব্য করুন বা AI-কে জিজ্ঞাসা করুন"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8481,6 +8494,10 @@ msgstr "MCP সার্ভার"msgid "Medium section heading."msgstr "মাঝারি বিভাগ শিরোনাম।"+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "একটি পাতা উল্লেখ করুন"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 06e20921d..e7d0885e9 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -533,6 +533,7 @@"</1> to fill in today's date or the author's name automatically."],"5hFl0U": ["Copy reference"],+ "5hn4gs": ["Attach comments"],"5jEnaB": ["Not available on this platform"],"5k0NLb": ["Review"],"5kWklo": ["(some may already be hidden by other rules)"],@@ -831,6 +832,7 @@"99eR72": ["Visual editor table selection"],"9Bd18D": ["Failed to load hub pages"],"9CNRDG": ["The OpenKnowledge server took too long to answer. Ask the agent to try again."],+ "9D9gK1": ["Add to prompt"],"9E_WAi": [["errorText"], " and ", ["warningText"]],"9EykGQ": ["Insert column right"],"9GbR5F": ["HI"],@@ -1669,6 +1671,7 @@"It9oAP": ["The ", ["editor"], " version is now the source"],"ItxGi3": ["Attachments must total under 3 MB."],"IvKbeq": ["Both agents end up reading everything in ", ["keep"], "."],+ "Iw8I0n": ["Mention a page"],"Ix0K8o": ["Hide external URL nodes"],"IxHMdF": ["Couldn't delete that comment."],"IxyZXD": ["Screenshot"],@@ -2030,6 +2033,7 @@"N5rzKJ": ["Delete ", ["0"], " skills"],"N6j2JH": ["Edit ", ["0"]],"N7Lau6": ["Commit and sync"],+ "N7m8E-": ["Attach files"],"NBdIgR": ["Comment"],"NErvOX": ["Saved to"],"NEzPEh": ["Create a new branch, or check out an existing one, in its own window."],@@ -2657,7 +2661,6 @@"Uobeu9": ["Adds the skill to ", ["rootRel"], " — also read by ", ["0"]],"Up2_7p": ["Copy full path"],"UpCz01": ["This doc"],- "UpOct_": ["Add your comments to this message"],"UuYo7g": ["This ",["targetNoun"],@@ -4102,6 +4105,7 @@"jSg1tA": ["More actions (", ["syncAttentionLabel"], ")"],"jTLWxh": ["Embed an external page in an inline iframe (docs, demos, Figma, CodeSandbox)."],"jTUxaN": ["Enable Auto (Pull only)"],+ "jVe0gf": ["Attach comments: ", ["count"]],"jWwQo6": ["batch"],"jWzDfC": ["Checking which AI tools you have"],"jZ_E5M": ["Fetch failed — check the server logs for details."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex fa051af51..3b0973492 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · references only (no embedded contents)"@@ -1752,14 +1753,14 @@ msgstr "Add to {gitignorePath}"msgid "Add to Dictionary"msgstr "Add to Dictionary"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "Add to prompt"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "Add value"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "Add your comments to this message"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "Asset: {title}"msgid "Attach a file"msgstr "Attach a file"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "Attach comments"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "Attach comments: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "Attach files"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "commands"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "Commands"@@ -3355,7 +3369,6 @@ msgstr "Comment or ask AI about this {0}"msgid "Comment or ask AI about this code block"msgstr "Comment or ask AI about this code block"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "MCP servers"msgid "Medium section heading."msgstr "Medium section heading."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "Mention a page"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 3f28db58b..07a80a592 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -634,6 +634,7 @@"</1> para rellenar automáticamente la fecha de hoy o el nombre del autor."],"5hFl0U": ["Copiar referencia"],+ "5hn4gs": ["Adjuntar comentarios"],"5jEnaB": ["No disponible en esta plataforma"],"5k0NLb": ["Revisar"],"5kWklo": ["(puede que otras reglas ya oculten algunos)"],@@ -975,6 +976,7 @@"9CNRDG": ["El servidor de OpenKnowledge tardo demasiado en responder. Pide al agente que vuelva a intentarlo."],+ "9D9gK1": ["Añadir al prompt"],"9E_WAi": [["errorText"], " y ", ["warningText"]],"9EykGQ": ["Insertar columna a la derecha"],"9GbR5F": ["MÁX"],@@ -1957,6 +1959,7 @@"It9oAP": ["La versión de ", ["editor"], " es ahora el origen"],"ItxGi3": ["Los adjuntos deben sumar menos de 3 MB."],"IvKbeq": ["Ambos agentes acaban leyendo todo lo que hay en ", ["keep"], "."],+ "Iw8I0n": ["Mencionar una página"],"Ix0K8o": ["Ocultar los nodos de URL externas"],"IxHMdF": ["No se pudo eliminar ese comentario."],"IxyZXD": ["Captura de pantalla"],@@ -2365,6 +2368,7 @@"N5rzKJ": ["Eliminar ", ["0"], " habilidades"],"N6j2JH": ["Editar ", ["0"]],"N7Lau6": ["Confirmar y sincronizar"],+ "N7m8E-": ["Adjuntar archivos"],"NBdIgR": ["Comentar"],"NErvOX": ["Guardado en"],"NEzPEh": ["Crea una rama nueva, o extrae una existente, en su propia ventana."],@@ -3069,7 +3073,6 @@"Uobeu9": ["Añade la habilidad a ", ["rootRel"], ", que también lee ", ["0"]],"Up2_7p": ["Copiar ruta completa"],"UpCz01": ["Este documento"],- "UpOct_": ["Añade tus comentarios a este mensaje"],"UuYo7g": ["Este ",["targetNoun"],@@ -4774,6 +4777,7 @@"Incrusta una página externa en un iframe en línea (documentación, demos, Figma, CodeSandbox)."],"jTUxaN": ["Activar Automático (solo Pull)"],+ "jVe0gf": ["Adjuntar comentarios: ", ["count"]],"jWwQo6": ["lote"],"jWzDfC": ["Comprobando qué herramientas de IA tienes"],"jZ_E5M": ["Falló el fetch: consulta los registros del servidor para ver los detalles."],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex fbf7dfafa..4efea6bf7 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · solo referencias (sin contenido incrustado)"@@ -1752,14 +1753,14 @@ msgstr "Añadir a {gitignorePath}"msgid "Add to Dictionary"msgstr "Añadir al diccionario"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "Añadir al prompt"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "Añadir valor"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "Añade tus comentarios a este mensaje"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "Recurso: {title}"msgid "Attach a file"msgstr "Adjuntar un archivo"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "Adjuntar comentarios"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "Adjuntar comentarios: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "Adjuntar archivos"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "comandos"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "Comandos"@@ -3355,7 +3369,6 @@ msgstr "Comenta o pregunta a la IA sobre este {0}"msgid "Comment or ask AI about this code block"msgstr "Comenta o pregunta a la IA sobre este bloque de código"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "Servidores MCP"msgid "Medium section heading."msgstr "Encabezado de sección mediano."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "Mencionar una página"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 9c3244876..989bdeddf 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -659,6 +659,7 @@"</1> pour insérer automatiquement la date du jour ou le nom de l'auteur."],"5hFl0U": ["Copier la référence"],+ "5hn4gs": ["Joindre des commentaires"],"5jEnaB": ["Non disponible sur cette plateforme"],"5k0NLb": ["Examiner"],"5kWklo": ["(certains sont peut-être déjà masqués par d'autres règles)"],@@ -1004,6 +1005,7 @@"9CNRDG": ["Le serveur OpenKnowledge a mis trop de temps a repondre. Demandez a l'agent de reessayer."],+ "9D9gK1": ["Ajouter à l’invite"],"9E_WAi": [["errorText"], " et ", ["warningText"]],"9EykGQ": ["Insérer une colonne à droite"],"9GbR5F": ["MAX"],@@ -1989,6 +1991,7 @@"It9oAP": ["La version ", ["editor"], " est désormais la source"],"ItxGi3": ["Les pièces jointes doivent totaliser moins de 3 Mo."],"IvKbeq": ["Les deux agents liront tout ce qui se trouve dans ", ["keep"], "."],+ "Iw8I0n": ["Mentionner une page"],"Ix0K8o": ["Masquer les nœuds d'URL externes"],"IxHMdF": ["Impossible de supprimer ce commentaire."],"IxyZXD": ["Capture d'écran"],@@ -2410,6 +2413,7 @@"N5rzKJ": ["Supprimer ", ["0"], " compétences"],"N6j2JH": ["Modifier ", ["0"]],"N7Lau6": ["Valider et synchroniser"],+ "N7m8E-": ["Joindre des fichiers"],"NBdIgR": ["Commenter"],"NErvOX": ["Enregistré dans"],"NEzPEh": ["Créez une nouvelle branche, ou extrayez-en une existante, dans sa propre fenêtre."],@@ -3111,7 +3115,6 @@"Uobeu9": ["Ajoute la compétence à ", ["rootRel"], " — également lu par ", ["0"]],"Up2_7p": ["Copier le chemin complet"],"UpCz01": ["Ce document"],- "UpOct_": ["Ajoutez vos commentaires à ce message"],"UuYo7g": ["Ce ",["targetNoun"],@@ -4811,6 +4814,7 @@"Intègre une page externe dans une iframe en ligne (docs, démos, Figma, CodeSandbox)."],"jTUxaN": ["Activer Auto (Tirer seulement)"],+ "jVe0gf": ["Joindre des commentaires : ", ["count"]],"jWwQo6": ["lot"],"jWzDfC": ["Vérification des outils IA dont vous disposez"],"jZ_E5M": ["Échec de la récupération — consultez les journaux du serveur pour les détails."],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex d9d5382eb..d87cc5800 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · références seulement (pas de contenu intégré)"@@ -1752,14 +1753,14 @@ msgstr "Ajouter à {gitignorePath}"msgid "Add to Dictionary"msgstr "Ajouter au dictionnaire"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "Ajouter à l’invite"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "Ajouter une valeur"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "Ajoutez vos commentaires à ce message"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "Ressource : {title}"msgid "Attach a file"msgstr "Joindre un fichier"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "Joindre des commentaires"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "Joindre des commentaires : {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "Joindre des fichiers"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "commandes"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "Commandes"@@ -3355,7 +3369,6 @@ msgstr "Commenter ce {0} ou interroger l’IA à son sujet"msgid "Comment or ask AI about this code block"msgstr "Commenter ce bloc de code ou interroger l’IA à son sujet"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "Serveurs MCP"msgid "Medium section heading."msgstr "Titre de section moyen."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "Mentionner une page"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex 2b8615071..15636fb63 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -525,6 +525,7 @@"</1> लिखें।"],"5hFl0U": ["संदर्भ कॉपी करें"],+ "5hn4gs": ["टिप्पणियाँ संलग्न करें"],"5jEnaB": ["इस प्लेटफ़ॉर्म पर उपलब्ध नहीं"],"5k0NLb": ["समीक्षा करें"],"5kWklo": ["(कुछ पहले से ही अन्य नियमों द्वारा छिपे हो सकते हैं)"],@@ -814,6 +815,7 @@"99eR72": ["दृश्य संपादक की तालिका का चयन"],"9Bd18D": ["हब पेज लोड करने में विफल"],"9CNRDG": ["OpenKnowledge सर्वर ने जवाब देने में बहुत समय लिया। एजेंट से दोबारा कोशिश करने को कहें।"],+ "9D9gK1": ["प्रॉम्प्ट में जोड़ें"],"9E_WAi": [["errorText"], " और ", ["warningText"]],"9EykGQ": ["दाईं ओर कॉलम जोड़ें"],"9GbR5F": ["उच्च"],@@ -1613,6 +1615,7 @@"It9oAP": [["editor"], " संस्करण अब स्रोत है"],"ItxGi3": ["संलग्नकों का कुल आकार 3 MB से कम होना चाहिए।"],"IvKbeq": ["दोनों एजेंट अंत में ", ["keep"], " की हर चीज़ पढ़ेंगे।"],+ "Iw8I0n": ["किसी पेज का उल्लेख करें"],"Ix0K8o": ["बाहरी URL नोड छिपाएँ"],"IxHMdF": ["वह टिप्पणी नहीं हटाई जा सकी।"],"IxyZXD": ["स्क्रीनशॉट"],@@ -1965,6 +1968,7 @@"N5rzKJ": [["0"], " स्किलें हटाएँ"],"N6j2JH": [["0"], " संपादित करें"],"N7Lau6": ["कमिट करें और सिंक करें"],+ "N7m8E-": ["फ़ाइलें संलग्न करें"],"NBdIgR": ["टिप्पणी करें"],"NErvOX": ["यहाँ सहेजा गया"],"NEzPEh": ["एक नई ब्रांच बनाएँ, या किसी मौजूदा को उसकी अपनी विंडो में चेक आउट करें।"],@@ -2574,7 +2578,6 @@"Uobeu9": ["स्किल को ", ["rootRel"], " में जोड़ता है — जिसे ", ["0"], " भी पढ़ता है"],"Up2_7p": ["पूरा पथ कॉपी करें"],"UpCz01": ["यह दस्तावेज़"],- "UpOct_": ["इस संदेश में अपनी टिप्पणियाँ जोड़ें"],"UuYo7g": ["यह ",["targetNoun"],@@ -3970,6 +3973,7 @@"jSg1tA": ["और क्रियाएँ (", ["syncAttentionLabel"], ")"],"jTLWxh": ["एक बाहरी पेज को इनलाइन iframe में एम्बेड करें (दस्तावेज़, डेमो, Figma, CodeSandbox)।"],"jTUxaN": ["स्वचालित (केवल खींचें) चालू करें"],+ "jVe0gf": ["टिप्पणियाँ संलग्न करें: ", ["count"]],"jWwQo6": ["बैच"],"jWzDfC": ["जाँच रहे हैं कि आपके पास कौन-से AI टूल हैं"],"jZ_E5M": ["फ़ेच विफल — विवरण के लिए सर्वर लॉग देखें।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 8eba2715b..912e9f180 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · केवल संदर्भ (कोई एम्बेडेड सामग्री नहीं)"@@ -1748,14 +1749,14 @@ msgstr "{gitignorePath} में जोड़ें"msgid "Add to Dictionary"msgstr "शब्दकोश में जोड़ें"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "प्रॉम्प्ट में जोड़ें"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "मान जोड़ें"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "इस संदेश में अपनी टिप्पणियाँ जोड़ें"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2224,6 +2225,18 @@ msgstr "एसेट: {title}"msgid "Attach a file"msgstr "फ़ाइल संलग्न करें"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "टिप्पणियाँ संलग्न करें"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "टिप्पणियाँ संलग्न करें: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "फ़ाइलें संलग्न करें"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3319,6 +3332,7 @@ msgid "commands"msgstr "कमांड"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "कमांड"@@ -3351,7 +3365,6 @@ msgstr "इस {0} पर टिप्पणी करें या AI सेmsgid "Comment or ask AI about this code block"msgstr "इस कोड ब्लॉक पर टिप्पणी करें या AI से पूछें"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8481,6 +8494,10 @@ msgstr "MCP सर्वर"msgid "Medium section heading."msgstr "मध्यम अनुभाग शीर्षक।"+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "किसी पेज का उल्लेख करें"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex 954aed152..44f8c6686 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -551,6 +551,7 @@"</1> untuk mengisi tanggal hari ini atau nama penulis secara otomatis."],"5hFl0U": ["Salin referensi"],+ "5hn4gs": ["Lampirkan komentar"],"5jEnaB": ["Tidak tersedia di platform ini"],"5k0NLb": ["Tinjau"],"5kWklo": ["(sebagian mungkin sudah disembunyikan oleh aturan lain)"],@@ -850,6 +851,7 @@"99eR72": ["Pilihan tabel penyunting visual"],"9Bd18D": ["Gagal memuat halaman pusat"],"9CNRDG": ["Server OpenKnowledge terlalu lama merespons. Minta agen mencoba lagi."],+ "9D9gK1": ["Tambahkan ke prompt"],"9E_WAi": [["errorText"], " dan ", ["warningText"]],"9EykGQ": ["Sisipkan kolom di kanan"],"9GbR5F": ["MAKS"],@@ -1698,6 +1700,7 @@"It9oAP": ["Versi ", ["editor"], " kini menjadi sumbernya"],"ItxGi3": ["Total lampiran harus di bawah 3 MB."],"IvKbeq": ["Kedua agen akhirnya membaca semua yang ada di ", ["keep"], "."],+ "Iw8I0n": ["Sebut halaman"],"Ix0K8o": ["Sembunyikan simpul URL eksternal"],"IxHMdF": ["Komentar itu tidak bisa dihapus."],"IxyZXD": ["Tangkapan layar"],@@ -2050,6 +2053,7 @@"N5rzKJ": ["Hapus ", ["0"], " keterampilan"],"N6j2JH": ["Sunting ", ["0"]],"N7Lau6": ["Commit dan sinkronkan"],+ "N7m8E-": ["Lampirkan berkas"],"NBdIgR": ["Komentari"],"NErvOX": ["Disimpan ke"],"NEzPEh": ["Buat cabang baru, atau ambil cabang yang sudah ada, di jendelanya sendiri."],@@ -2674,7 +2678,6 @@"Uobeu9": ["Menambahkan keterampilan ke ", ["rootRel"], " — juga dibaca oleh ", ["0"]],"Up2_7p": ["Salin jalur lengkap"],"UpCz01": ["Dokumen ini"],- "UpOct_": ["Tambahkan komentar Anda ke pesan ini"],"UuYo7g": [["targetNoun"]," ini sudah dipindahkan, diganti nama, atau dihapus di salinan lokal Anda. Lakukan commit pada perubahan Anda atau aktifkan sinkronisasi otomatis."@@ -4141,6 +4144,7 @@"Menyematkan halaman eksternal dalam iframe sebaris (dokumentasi, demo, Figma, CodeSandbox)."],"jTUxaN": ["Aktifkan Otomatis (hanya Pull)"],+ "jVe0gf": ["Lampirkan komentar: ", ["count"]],"jWwQo6": ["batch"],"jWzDfC": ["Memeriksa alat AI yang Anda miliki"],"jZ_E5M": ["Fetch gagal — periksa log server untuk detailnya."],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex bf9447cdb..65870950b 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · hanya referensi (tanpa konten tertanam)"@@ -1748,14 +1749,14 @@ msgstr "Tambahkan ke {gitignorePath}"msgid "Add to Dictionary"msgstr "Tambahkan ke kamus"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "Tambahkan ke prompt"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "Tambahkan nilai"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "Tambahkan komentar Anda ke pesan ini"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2224,6 +2225,18 @@ msgstr "Aset: {title}"msgid "Attach a file"msgstr "Lampirkan berkas"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "Lampirkan komentar"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "Lampirkan komentar: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "Lampirkan berkas"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3319,6 +3332,7 @@ msgid "commands"msgstr "perintah"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "Perintah"@@ -3351,7 +3365,6 @@ msgstr "Beri komentar atau tanya AI tentang {0} ini"msgid "Comment or ask AI about this code block"msgstr "Beri komentar atau tanya AI tentang blok kode ini"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8481,6 +8494,10 @@ msgstr "Server MCP"msgid "Medium section heading."msgstr "Judul bagian sedang."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "Sebut halaman"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex d55d2360e..57502f9e1 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -526,6 +526,7 @@"</1>을 입력하면 오늘 날짜나 작성자 이름이 자동으로 채워집니다."],"5hFl0U": ["참조 복사"],+ "5hn4gs": ["댓글 첨부"],"5jEnaB": ["이 플랫폼에서 사용할 수 없음"],"5k0NLb": ["검토"],"5kWklo": ["(다른 규칙으로 이미 숨겨진 항목이 있을 수 있습니다)"],@@ -820,6 +821,7 @@"9CNRDG": ["OpenKnowledge 서버의 응답이 너무 오래 걸렸습니다. 에이전트에게 다시 시도해 달라고 요청하세요."],+ "9D9gK1": ["프롬프트에 추가"],"9E_WAi": [["errorText"], ", ", ["warningText"]],"9EykGQ": ["오른쪽에 열 삽입"],"9GbR5F": ["안녕"],@@ -1623,6 +1625,7 @@"It9oAP": [["editor"], " 버전이 이제 소스입니다"],"ItxGi3": ["첨부 파일 총 용량은 3MB 미만이어야 합니다."],"IvKbeq": ["두 에이전트 모두 결국 ", ["keep"], "의 모든 항목을 읽게 됩니다."],+ "Iw8I0n": ["페이지 언급"],"Ix0K8o": ["외부 URL 노드 숨기기"],"IxHMdF": ["댓글 삭제에 실패했습니다."],"IxyZXD": ["스크린샷"],@@ -1963,6 +1966,7 @@"N5rzKJ": ["스킬 ", ["0"], "개 삭제"],"N6j2JH": [["0"], " 편집"],"N7Lau6": ["커밋하고 동기화"],+ "N7m8E-": ["파일 첨부"],"NBdIgR": ["댓글"],"NErvOX": ["저장 위치"],"NEzPEh": ["새 브랜치를 만들거나 기존 브랜치를 별도 창에서 체크아웃하세요."],@@ -2567,7 +2571,6 @@"Uobeu9": ["스킬을 ", ["rootRel"], "에 추가합니다. ", ["0"], "에서도 읽습니다."],"Up2_7p": ["전체 경로 복사"],"UpCz01": ["이 문서"],- "UpOct_": ["이 메시지에 댓글 남기기"],"UuYo7g": [["targetNoun"]," 이동, 이름 변경 또는 삭제가 로컬 사본에서 발생했습니다. 변경 사항을 커밋하거나 자동 동기화를 사용하세요."@@ -3960,6 +3963,7 @@"외부 페이지를 인라인 iframe에 삽입합니다. 문서, 데모, Figma, CodeSandbox를 지원합니다."],"jTUxaN": ["자동(풀만) 활성화"],+ "jVe0gf": ["댓글 첨부: ", ["count"]],"jWwQo6": ["배치"],"jWzDfC": ["보유한 AI 도구를 확인하는 중"],"jZ_E5M": ["가져오기 실패. 자세한 내용은 서버 로그를 확인하세요."],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex dba88816a..4e22636ed 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · 참조만(내용을 포함하지 않음)"@@ -1752,14 +1753,14 @@ msgstr "{gitignorePath}에 추가"msgid "Add to Dictionary"msgstr "사전에 추가"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "프롬프트에 추가"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "값 추가"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "이 메시지에 댓글 남기기"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "에셋: {title}"msgid "Attach a file"msgstr "파일 첨부"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "댓글 첨부"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "댓글 첨부: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "파일 첨부"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "명령어"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "명령"@@ -3355,7 +3369,6 @@ msgstr "이 {0}에 댓글을 남기거나 AI에 질문"msgid "Comment or ask AI about this code block"msgstr "이 코드 블록에 댓글을 남기거나 AI에 질문"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "MCP 서버"msgid "Medium section heading."msgstr "중간 크기 섹션 제목입니다."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "페이지 언급"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex f827c76cd..7bc0b4f51 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -533,6 +533,7 @@"</1> ţō ƒĩĺĺ ĩń ţōďàŷ'ś ďàţē ōŕ ţĥē àũţĥōŕ'ś ńàḿē àũţōḿàţĩćàĺĺŷ."],"5hFl0U": ["Ćōƥŷ ŕēƒēŕēńćē"],+ "5hn4gs": ["Àţţàćĥ ćōḿḿēńţś"],"5jEnaB": ["Ńōţ àvàĩĺàƀĺē ōń ţĥĩś ƥĺàţƒōŕḿ"],"5k0NLb": ["Ŕēvĩēŵ"],"5kWklo": ["(śōḿē ḿàŷ àĺŕēàďŷ ƀē ĥĩďďēń ƀŷ ōţĥēŕ ŕũĺēś)"],@@ -831,6 +832,7 @@"99eR72": ["Vĩśũàĺ ēďĩţōŕ ţàƀĺē śēĺēćţĩōń"],"9Bd18D": ["Ƒàĩĺēď ţō ĺōàď ĥũƀ ƥàĝēś"],"9CNRDG": ["Ţĥē ŌƥēńĶńōŵĺēďĝē śēŕvēŕ ţōōķ ţōō ĺōńĝ ţō àńśŵēŕ. Àśķ ţĥē àĝēńţ ţō ţŕŷ àĝàĩń."],+ "9D9gK1": ["Àďď ţō ƥŕōḿƥţ"],"9E_WAi": [["errorText"], " àńď ", ["warningText"]],"9EykGQ": ["Ĩńśēŕţ ćōĺũḿń ŕĩĝĥţ"],"9GbR5F": ["ĤĨ"],@@ -1669,6 +1671,7 @@"It9oAP": ["Ţĥē ", ["editor"], " vēŕśĩōń ĩś ńōŵ ţĥē śōũŕćē"],"ItxGi3": ["Àţţàćĥḿēńţś ḿũśţ ţōţàĺ ũńďēŕ 3 Ḿß."],"IvKbeq": ["ßōţĥ àĝēńţś ēńď ũƥ ŕēàďĩńĝ ēvēŕŷţĥĩńĝ ĩń ", ["keep"], "."],+ "Iw8I0n": ["Ḿēńţĩōń à ƥàĝē"],"Ix0K8o": ["Ĥĩďē ēxţēŕńàĺ ŨŔĹ ńōďēś"],"IxHMdF": ["Ćōũĺďń'ţ ďēĺēţē ţĥàţ ćōḿḿēńţ."],"IxyZXD": ["Śćŕēēńśĥōţ"],@@ -2030,6 +2033,7 @@"N5rzKJ": ["Ďēĺēţē ", ["0"], " śķĩĺĺś"],"N6j2JH": ["Ēďĩţ ", ["0"]],"N7Lau6": ["Ćōḿḿĩţ àńď śŷńć"],+ "N7m8E-": ["Àţţàćĥ ƒĩĺēś"],"NBdIgR": ["Ćōḿḿēńţ"],"NErvOX": ["Śàvēď ţō"],"NEzPEh": ["Ćŕēàţē à ńēŵ ƀŕàńćĥ, ōŕ ćĥēćķ ōũţ àń ēxĩśţĩńĝ ōńē, ĩń ĩţś ōŵń ŵĩńďōŵ."],@@ -2657,7 +2661,6 @@"Uobeu9": ["Àďďś ţĥē śķĩĺĺ ţō ", ["rootRel"], " — àĺśō ŕēàď ƀŷ ", ["0"]],"Up2_7p": ["Ćōƥŷ ƒũĺĺ ƥàţĥ"],"UpCz01": ["Ţĥĩś ďōć"],- "UpOct_": ["Àďď ŷōũŕ ćōḿḿēńţś ţō ţĥĩś ḿēśśàĝē"],"UuYo7g": ["Ţĥĩś ",["targetNoun"],@@ -4102,6 +4105,7 @@"jSg1tA": ["Ḿōŕē àćţĩōńś (", ["syncAttentionLabel"], ")"],"jTLWxh": ["Ēḿƀēď àń ēxţēŕńàĺ ƥàĝē ĩń àń ĩńĺĩńē ĩƒŕàḿē (ďōćś, ďēḿōś, Ƒĩĝḿà, ĆōďēŚàńďƀōx)."],"jTUxaN": ["Ēńàƀĺē Àũţō (Ƥũĺĺ ōńĺŷ)"],+ "jVe0gf": ["Àţţàćĥ ćōḿḿēńţś: ", ["count"]],"jWwQo6": ["ƀàţćĥ"],"jWzDfC": ["Ćĥēćķĩńĝ ŵĥĩćĥ ÀĨ ţōōĺś ŷōũ ĥàvē"],"jZ_E5M": ["Ƒēţćĥ ƒàĩĺēď — ćĥēćķ ţĥē śēŕvēŕ ĺōĝś ƒōŕ ďēţàĩĺś."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 9ab7eba9f..2ee9b30e6 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr ""@@ -1748,12 +1749,12 @@ msgstr ""msgid "Add to Dictionary"msgstr ""-#: src/components/settings/frontmatter-schema-field-editor.tsx-msgid "Add value"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"msgstr ""-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"+#: src/components/settings/frontmatter-schema-field-editor.tsx+msgid "Add value"msgstr ""#: src/components/PropertyDiffBlock.tsx@@ -2224,6 +2225,18 @@ msgstr ""msgid "Attach a file"msgstr ""+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr ""++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr ""++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr ""+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3319,6 +3332,7 @@ msgid "commands"msgstr ""#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr ""@@ -3351,7 +3365,6 @@ msgstr ""msgid "Comment or ask AI about this code block"msgstr ""-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8481,6 +8494,10 @@ msgstr ""msgid "Medium section heading."msgstr ""+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr ""+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex aed67d90c..99be76df6 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -632,6 +632,7 @@"</1> para preencher automaticamente a data de hoje ou o nome do autor."],"5hFl0U": ["Copiar referência"],+ "5hn4gs": ["Anexar comentários"],"5jEnaB": ["Indisponível nesta plataforma"],"5k0NLb": ["Revisar"],"5kWklo": ["(outras regras podem já ocultar alguns)"],@@ -967,6 +968,7 @@"9CNRDG": ["O servidor do OpenKnowledge demorou demais para responder. Peca ao agente que tente de novo."],+ "9D9gK1": ["Adicionar ao prompt"],"9E_WAi": [["errorText"], " e ", ["warningText"]],"9EykGQ": ["Inserir coluna à direita"],"9GbR5F": ["MÁX"],@@ -1934,6 +1936,7 @@"It9oAP": ["A versão do ", ["editor"], " agora é a fonte"],"ItxGi3": ["Os anexos devem somar menos de 3 MB."],"IvKbeq": ["Os dois agentes passam a ler tudo o que está em ", ["keep"], "."],+ "Iw8I0n": ["Mencionar uma página"],"Ix0K8o": ["Ocultar os nós de URL externa"],"IxHMdF": ["Não deu para excluir esse comentário."],"IxyZXD": ["Captura de tela"],@@ -2336,6 +2339,7 @@"N5rzKJ": ["Excluir ", ["0"], " habilidades"],"N6j2JH": ["Editar ", ["0"]],"N7Lau6": ["Fazer commit e sincronizar"],+ "N7m8E-": ["Anexar arquivos"],"NBdIgR": ["Comentar"],"NErvOX": ["Salvo em"],"NEzPEh": ["Crie um novo ramo, ou extraia um existente, em uma janela própria."],@@ -3028,7 +3032,6 @@"Uobeu9": ["Adiciona a habilidade a ", ["rootRel"], " — também lida por ", ["0"]],"Up2_7p": ["Copiar caminho completo"],"UpCz01": ["Este documento"],- "UpOct_": ["Adicione seus comentários a esta mensagem"],"UuYo7g": ["Este ",["targetNoun"],@@ -4674,6 +4677,7 @@"Incorpora uma página externa em um iframe embutido (documentação, demos, Figma, CodeSandbox)."],"jTUxaN": ["Ativar Automático (somente Pull)"],+ "jVe0gf": ["Anexar comentários: ", ["count"]],"jWwQo6": ["lote"],"jWzDfC": ["Verificando quais ferramentas de IA você tem"],"jZ_E5M": ["Falha ao buscar — veja os logs do servidor para os detalhes."],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex fe5969a91..ae7d8a053 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · apenas referências (sem conteúdo incorporado)"@@ -1748,14 +1749,14 @@ msgstr "Adicionar a {gitignorePath}"msgid "Add to Dictionary"msgstr "Adicionar ao dicionário"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "Adicionar ao prompt"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "Adicionar valor"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "Adicione seus comentários a esta mensagem"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2224,6 +2225,18 @@ msgstr "Recurso: {title}"msgid "Attach a file"msgstr "Anexar um arquivo"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "Anexar comentários"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "Anexar comentários: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "Anexar arquivos"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3319,6 +3332,7 @@ msgid "commands"msgstr "comandos"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "Comandos"@@ -3351,7 +3365,6 @@ msgstr "Comente ou pergunte à IA sobre este {0}"msgid "Comment or ask AI about this code block"msgstr "Comente ou pergunte à IA sobre este bloco de código"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8481,6 +8494,10 @@ msgstr "Servidores MCP"msgid "Medium section heading."msgstr "Título de seção médio."+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "Mencionar uma página"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex bc1212f11..72bdfd17e 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -550,6 +550,7 @@"</1> لکھیں۔"],"5hFl0U": ["حوالہ کاپی کریں"],+ "5hn4gs": ["تبصرے منسلک کریں"],"5jEnaB": ["اس پلیٹ فارم پر دستیاب نہیں"],"5k0NLb": ["جائزہ لیں"],"5kWklo": ["(کچھ پہلے ہی دوسرے قواعد سے چھپے ہو سکتے ہیں)"],@@ -853,6 +854,7 @@"9CNRDG": ["OpenKnowledge سرور نے جواب دینے میں بہت وقت لیا۔ ایجنٹ سے دوبارہ کوشش کرنے کو کہیں۔"],+ "9D9gK1": ["پرامپٹ میں شامل کریں"],"9E_WAi": [["errorText"], " اور ", ["warningText"]],"9EykGQ": ["دائیں طرف کالم داخل کریں"],"9GbR5F": ["بلند ترین"],@@ -1699,6 +1701,7 @@"It9oAP": ["اب ", ["editor"], " والا ورژن ماخذ ہے"],"ItxGi3": ["منسلکات کا مجموعی حجم 3 MB سے کم ہونا چاہیے۔"],"IvKbeq": ["دونوں ایجنٹس بالآخر ", ["keep"], " کی ہر چیز پڑھیں گے۔"],+ "Iw8I0n": ["کسی صفحہ کا حوالہ دیں"],"Ix0K8o": ["بیرونی URL نوڈز چھپائیں"],"IxHMdF": ["وہ تبصرہ حذف نہیں ہو سکا۔"],"IxyZXD": ["اسکرین شاٹ"],@@ -2071,6 +2074,7 @@"N5rzKJ": [["0"], " مہارتیں حذف کریں"],"N6j2JH": [["0"], " میں ترمیم کریں"],"N7Lau6": ["کمٹ کریں اور مطابق کریں"],+ "N7m8E-": ["فائلیں منسلک کریں"],"NBdIgR": ["تبصرہ"],"NErvOX": ["یہاں محفوظ ہوا"],"NEzPEh": ["نئی برانچ بنائیں، یا موجودہ کو چیک آؤٹ کریں، اس کی اپنی ونڈو میں۔"],@@ -2710,7 +2714,6 @@"Uobeu9": ["مہارت کو ", ["rootRel"], " میں شامل کرتا ہے — اسے ", ["0"], " بھی پڑھتا ہے"],"Up2_7p": ["مکمل راستہ نقل کریں"],"UpCz01": ["یہ دستاویز"],- "UpOct_": ["اس پیغام میں اپنے تبصرے شامل کریں"],"UuYo7g": ["یہ ",["targetNoun"],@@ -4192,6 +4195,7 @@"کوئی بیرونی صفحہ اِن لائن iframe میں شامل کریں (دستاویزات، ڈیمو، Figma، CodeSandbox)۔"],"jTUxaN": ["خودکار (صرف کھینچیں) فعال کریں"],+ "jVe0gf": ["تبصرے منسلک کریں: ", ["count"]],"jWwQo6": ["بیچ"],"jWzDfC": ["دیکھا جا رہا ہے کہ آپ کے پاس کون سے AI ٹولز ہیں"],"jZ_E5M": ["لانا ناکام رہا — تفصیلات کے لیے سرور کے لاگز دیکھیں۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 8a865a279..877545afd 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · صرف حوالہ جات (کوئی ایمبیڈڈ مواد نہیں)"@@ -1752,14 +1753,14 @@ msgstr "{gitignorePath} میں شامل کریں"msgid "Add to Dictionary"msgstr "لغت میں شامل کریں"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "پرامپٹ میں شامل کریں"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "قدر شامل کریں"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "اس پیغام میں اپنے تبصرے شامل کریں"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "اثاثہ: {title}"msgid "Attach a file"msgstr "فائل منسلک کریں"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "تبصرے منسلک کریں"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "تبصرے منسلک کریں: {count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "فائلیں منسلک کریں"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "کمانڈز"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "کمانڈز"@@ -3355,7 +3369,6 @@ msgstr "اس {0} پر تبصرہ کریں یا AI سے پوچھیں"msgid "Comment or ask AI about this code block"msgstr "اس کوڈ بلاک پر تبصرہ کریں یا AI سے پوچھیں"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "MCP سرورز"msgid "Medium section heading."msgstr "درمیانہ سیکشن عنوان۔"+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "کسی صفحہ کا حوالہ دیں"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 18d983eec..c6efae04b 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -476,6 +476,7 @@"</1> 可自动填入今天的日期或作者姓名。"],"5hFl0U": ["复制编号"],+ "5hn4gs": ["附加评论"],"5jEnaB": ["这个平台不支持"],"5k0NLb": ["查看"],"5kWklo": ["(其中一些可能已被其他规则隐藏)"],@@ -734,6 +735,7 @@"99eR72": ["可视化编辑器表格选区"],"9Bd18D": ["加载中枢页面失败"],"9CNRDG": ["OpenKnowledge 服务器响应超时。请让代理重试。"],+ "9D9gK1": ["添加到提示词"],"9E_WAi": [["errorText"], "和", ["warningText"]],"9EykGQ": ["在右侧插入列"],"9GbR5F": ["最高"],@@ -1446,6 +1448,7 @@"It9oAP": [["editor"], " 的版本现在成为来源"],"ItxGi3": ["附件总大小必须小于 3 MB。"],"IvKbeq": ["两个智能体最终都会读取 ", ["keep"], " 中的全部内容。"],+ "Iw8I0n": ["提及页面"],"Ix0K8o": ["隐藏外部 URL 节点"],"IxHMdF": ["无法删除那条评论。"],"IxyZXD": ["截图"],@@ -1760,6 +1763,7 @@"N5rzKJ": ["删除 ", ["0"], " 个技能"],"N6j2JH": ["编辑 ", ["0"]],"N7Lau6": ["提交并同步"],+ "N7m8E-": ["附加文件"],"NBdIgR": ["评论"],"NErvOX": ["保存到"],"NEzPEh": ["新建一个分支,或检出一个已有分支,各自在独立窗口中打开。"],@@ -2317,7 +2321,6 @@"Uobeu9": ["把技能添加到 ", ["rootRel"], "——", ["0"], " 也会读取该处"],"Up2_7p": ["复制完整路径"],"UpCz01": ["这个文档"],- "UpOct_": ["把你的评论写在这条消息里"],"UuYo7g": ["这个",["targetNoun"],@@ -3586,6 +3589,7 @@"jSg1tA": ["更多操作(", ["syncAttentionLabel"], ")"],"jTLWxh": ["用内联 iframe 嵌入外部页面(文档、演示、Figma、CodeSandbox)。"],"jTUxaN": ["启用自动(仅拉取)"],+ "jVe0gf": ["附加评论:", ["count"]],"jWwQo6": ["批次"],"jWzDfC": ["正在检查你安装了哪些 AI 工具"],"jZ_E5M": ["获取失败——详情请查看服务器日志。"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 820b13835..74b4d9592 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · 仅引用(无嵌入内容)"@@ -1752,14 +1753,14 @@ msgstr "添加到 {gitignorePath}"msgid "Add to Dictionary"msgstr "添加到词典"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "添加到提示词"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "添加值"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "把你的评论写在这条消息里"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "资源:{title}"msgid "Attach a file"msgstr "附加文件"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "附加评论"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "附加评论:{count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "附加文件"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "命令"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "命令"@@ -3355,7 +3369,6 @@ msgstr "对此{0}发表评论或询问 AI"msgid "Comment or ask AI about this code block"msgstr "对此代码块发表评论或询问 AI"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "MCP 服务器"msgid "Medium section heading."msgstr "中号章节标题。"+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "提及页面"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex fc041a6e8..76a08cf16 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -478,6 +478,7 @@"</1> 可自動填入今天的日期或作者姓名。"],"5hFl0U": ["複製編號"],+ "5hn4gs": ["附加註解"],"5jEnaB": ["這個平台不支援"],"5k0NLb": ["檢視"],"5kWklo": ["(其中有些可能已被其他規則隱藏)"],@@ -734,6 +735,7 @@"99eR72": ["視覺化編輯器表格選取範圍"],"9Bd18D": ["載入樞紐頁面失敗"],"9CNRDG": ["OpenKnowledge 伺服器回應逾時。請讓代理重試。"],+ "9D9gK1": ["加入提示"],"9E_WAi": [["errorText"], "和", ["warningText"]],"9EykGQ": ["在右側插入欄"],"9GbR5F": ["最高"],@@ -1454,6 +1456,7 @@"It9oAP": [["editor"], " 的版本現在成為來源"],"ItxGi3": ["附件總大小必須小於 3 MB。"],"IvKbeq": ["兩個代理最後都會讀到 ", ["keep"], " 裡的全部內容。"],+ "Iw8I0n": ["提及頁面"],"Ix0K8o": ["隱藏外部 URL 節點"],"IxHMdF": ["無法刪除那則註解。"],"IxyZXD": ["螢幕擷圖"],@@ -1778,6 +1781,7 @@"N5rzKJ": ["刪除 ", ["0"], " 個技能"],"N6j2JH": ["編輯 ", ["0"]],"N7Lau6": ["提交並同步"],+ "N7m8E-": ["附加檔案"],"NBdIgR": ["註解"],"NErvOX": ["儲存到"],"NEzPEh": ["建立新分支,或簽出既有分支,各自在獨立視窗中開啟。"],@@ -2335,7 +2339,6 @@"Uobeu9": ["把技能加到 ", ["rootRel"], "——", ["0"], " 也會讀取該處"],"Up2_7p": ["複製完整路徑"],"UpCz01": ["這份文件"],- "UpOct_": ["把你的註解寫在這則訊息裡"],"UuYo7g": ["這個",["targetNoun"],@@ -3604,6 +3607,7 @@"jSg1tA": ["更多動作(", ["syncAttentionLabel"], ")"],"jTLWxh": ["用行內 iframe 嵌入外部頁面(說明文件、示範、Figma、CodeSandbox)。"],"jTUxaN": ["啟用自動(僅拉取)"],+ "jVe0gf": ["附加註解:", ["count"]],"jWwQo6": ["批次"],"jWzDfC": ["正在檢查你安裝了哪些 AI 工具"],"jZ_E5M": ["取得失敗——詳情請看伺服器記錄。"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 9d32745d4..b293e1731 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -14,6 +14,7 @@ msgstr """Plural-Forms: \n"#: src/components/acp/AttachFilesButton.tsx+#: src/components/ComposerAddMenu.tsxmsgid " · references only (no embedded contents)"msgstr " · 僅引用(無嵌入內容)"@@ -1752,14 +1753,14 @@ msgstr "新增至 {gitignorePath}"msgid "Add to Dictionary"msgstr "加入詞典"+#: src/components/ComposerAddMenu.tsx+msgid "Add to prompt"+msgstr "加入提示"+#: src/components/settings/frontmatter-schema-field-editor.tsxmsgid "Add value"msgstr "新增值"-#: src/comments/comment-chips.tsx-msgid "Add your comments to this message"-msgstr "把你的註解寫在這則訊息裡"-#: src/components/PropertyDiffBlock.tsx#: src/components/SkillDirectoryResult.tsx#: src/components/SyncStatusBadge.tsx@@ -2228,6 +2229,18 @@ msgstr "資產:{title}"msgid "Attach a file"msgstr "附加檔案"+#: src/components/ComposerAddMenu.tsx+msgid "Attach comments"+msgstr "附加註解"++#: src/components/ComposerAddMenu.tsx+msgid "Attach comments: {count}"+msgstr "附加註解:{count}"++#: src/components/ComposerAddMenu.tsx+msgid "Attach files"+msgstr "附加檔案"+#: src/components/ImageAttachments.tsx#: src/components/ReportBugImageDropzone.tsxmsgid "Attach images"@@ -3323,6 +3336,7 @@ msgid "commands"msgstr "指令"#: src/components/CommandPalette.tsx+#: src/components/ComposerAddMenu.tsxmsgid "Commands"msgstr "指令"@@ -3355,7 +3369,6 @@ msgstr "對此{0}發表評論或詢問 AI"msgid "Comment or ask AI about this code block"msgstr "對此程式碼區塊發表評論或詢問 AI"-#: src/comments/comment-chips.tsx#: src/comments/CommentListPanel.tsx#: src/components/DocPanel.tsxmsgid "Comments"@@ -8485,6 +8498,10 @@ msgstr "MCP 伺服器"msgid "Medium section heading."msgstr "中型章節標題。"+#: src/components/ComposerAddMenu.tsx+msgid "Mention a page"+msgstr "提及頁面"+#: src/components/MermaidDocEditor.tsx#: src/editor/components/Mermaid.tsxmsgid "Mermaid diagram"diff --git a/packages/app/tests/stress/composer-control-alignment.e2e.ts b/packages/app/tests/stress/composer-control-alignment.e2e.tsindex 8581554d8..8adca53d5 100644--- a/packages/app/tests/stress/composer-control-alignment.e2e.ts+++ b/packages/app/tests/stress/composer-control-alignment.e2e.ts@@ -4,7 +4,7 @@ import { type ApiHelpers, acpCatalogBody, expect, test } from './_helpers';const WYSIWYG_BODY = '.editor-doc-scroll .ProseMirror:not(.composer-prosemirror)';const COMPOSER_CARD = '[data-testid="bottom-composer"] > div';-const ATTACH = '[data-testid="ask-ai-attach-files"]';+const ADD_TO_PROMPT = '[data-testid="ask-ai-add-to-prompt"]';const COMPOSER_INPUT = '.composer-prosemirror';const PICKER = '[data-testid="ask-ai-agent-group"]';const SUGGESTION_PHRASE = '[data-testid="ask-ai-composer-placeholder"] [data-rotating-placeholder]';@@ -12,13 +12,15 @@ const SUGGESTION_PHRASE = '[data-testid="ask-ai-composer-placeholder"] [data-rotconst FIRST_PAINT_TIMEOUT_MS = 30_000;const SETTLE_TIMEOUT_MS = 15_000;const CENTRE_TOLERANCE_PX = 1;+const PLACEHOLDER_OPTICAL_LIFT_PX = 1;+const PLACEHOLDER_POSITION_TOLERANCE_PX = 0.25;const WHY = [- 'the attach button, the prompt text and the agent picker no longer share a centre line.',+ 'the add-to-prompt button, the prompt text and the agent picker no longer share a centre line.','','Three production knobs place that line, and reverting any one of them alone reopens the','spread past this tolerance:',- ' 1. size="icon" on AttachFilesButton in BottomComposer, so it matches the picker height',+ ' 1. size="icon" on ComposerAddMenu in BottomComposer, so it matches the picker height',' 2. min-h-8 flex flex-col justify-center on the prompt column, giving the first line box',' the control height while going inert once the input grows past one line',' 3. padding-bottom: 0.25rem on .ProseMirror.composer-prosemirror, which makes the input box',@@ -58,14 +60,29 @@ async function openAskAiComposer(page: Page, api: ApiHelpers): Promise<void> {}test.describe('Ask AI composer control alignment', () => {- test('the attach button, the prompt text and the agent picker share one centre line', async ({+ test('the mention action returns keyboard focus to the composer', async ({ page, api }) => {+ await openAskAiComposer(page, api);++ const composer = page.locator(COMPOSER_INPUT).first();+ const menu = page.locator('[data-composer-portal]');+ await page.locator(ADD_TO_PROMPT).first().click();+ await expect(menu).toBeVisible();+ await page.getByRole('menuitem', { name: 'Mention a page' }).click();++ await expect(menu).toHaveCount(0);+ await expect(composer).toBeFocused();+ await page.keyboard.type('r');+ await expect(composer).toContainText('@r');+ });++ test('the add-to-prompt button, the prompt text and the agent picker share one centre line', async ({page,api,}) => {await openAskAiComposer(page, api);await expect(- page.locator(ATTACH).first(),- 'the composer rendered without its attach control, so the row this test measures is not the ' ++ page.locator(ADD_TO_PROMPT).first(),+ 'the composer rendered without its add-to-prompt control, so the row this test measures is not the ' +'three-control row it exists to pin',).toBeVisible({ timeout: FIRST_PAINT_TIMEOUT_MS });await expect(page.locator(COMPOSER_INPUT).first()).toBeVisible({@@ -77,7 +94,7 @@ test.describe('Ask AI composer control alignment', () => {.poll(() =>page.evaluate(- ({ attachSel, inputSel, pickerSel }) => {+ ({ addToPromptSel, inputSel, pickerSel }) => {const resolve = (selector: string): HTMLElement => {const found = document.querySelector(selector);if (!(found instanceof HTMLElement)) {@@ -85,7 +102,7 @@ test.describe('Ask AI composer control alignment', () => {}return found;};- const attach = resolve(attachSel);+ const addToPrompt = resolve(addToPromptSel);const input = resolve(inputSel);const picker = resolve(pickerSel);const boxCentre = (el: HTMLElement): number => {@@ -101,20 +118,17 @@ test.describe('Ask AI composer control alignment', () => {Number.parseFloat(style.lineHeight) / 2);};- const centres = [boxCentre(attach), lineCentre(input), boxCentre(picker)];+ const centres = [boxCentre(addToPrompt), lineCentre(input), boxCentre(picker)];return Math.max(...centres) - Math.min(...centres);},- { attachSel: ATTACH, inputSel: COMPOSER_INPUT, pickerSel: PICKER },+ { addToPromptSel: ADD_TO_PROMPT, inputSel: COMPOSER_INPUT, pickerSel: PICKER },),{ message: WHY, timeout: SETTLE_TIMEOUT_MS },).toBeLessThanOrEqual(CENTRE_TOLERANCE_PX);});- test('the empty composer paints its suggestion through the overlay pseudo-element', async ({- page,- api,- }) => {+ test('the empty composer paints and optically centers its suggestion', async ({ page, api }) => {await openAskAiComposer(page, api);await expect@@ -137,5 +151,35 @@ test.describe('Ask AI composer control alignment', () => {},).toBe('painted');++ await expect+ .poll(+ () =>+ page.evaluate(+ ({ addToPromptSel, phraseSel, opticalLift }) => {+ const addToPrompt = document.querySelector(addToPromptSel);+ const phrase = document.querySelector(phraseSel);+ if (!(addToPrompt instanceof HTMLElement) || !(phrase instanceof HTMLElement)) {+ return Number.POSITIVE_INFINITY;+ }+ const addToPromptRect = addToPrompt.getBoundingClientRect();+ const phraseRect = phrase.getBoundingClientRect();+ const addToPromptCentre = addToPromptRect.top + addToPromptRect.height / 2;+ const phraseCentre = phraseRect.top + phraseRect.height / 2;+ return Math.abs(addToPromptCentre - phraseCentre - opticalLift);+ },+ {+ addToPromptSel: ADD_TO_PROMPT,+ phraseSel: SUGGESTION_PHRASE,+ opticalLift: PLACEHOLDER_OPTICAL_LIFT_PX,+ },+ ),+ {+ message:+ 'the placeholder lost its one-pixel optical lift and appears low beside the add-to-prompt control',+ timeout: SETTLE_TIMEOUT_MS,+ },+ )+ .toBeLessThanOrEqual(PLACEHOLDER_POSITION_TOLERANCE_PX);});});