Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Gate external app handoffs on connected tools (PRD-8662) (#4518)
mike-inkeepac70e0f902dc
diff --git a/.changeset/green-apples-connect.md b/.changeset/green-apples-connect.mdnew file mode 100644index 000000000..0db3d7e66--- /dev/null+++ b/.changeset/green-apples-connect.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge-app": patch+---++Check required OpenKnowledge connections before opening an external app. When setup is needed, connect and continue or open without saving; a preference can skip future checks for that app in this project. Read errors and unavailable connection management still allow the app to open.diff --git a/docs/content/features/editor.mdx b/docs/content/features/editor.mdxindex ace9fdd2a..f43ab277b 100644--- a/docs/content/features/editor.mdx+++ b/docs/content/features/editor.mdx@@ -273,11 +273,15 @@ The trailing `Open the OK editor in web view.` directive is dropped when the [`aTo send your own freetext instruction along with the handoff, use the bottom [Ask AI](#ask-ai) composer (or the empty-state create composer on a fresh project) rather than these one-click submenus.-**Install detection** supplies the defaults for all three sections: Terminal and External apps rows probe for the CLI or app itself, and In app rows probe for the agent's underlying CLI — and for an agent whose sign-in lives where OpenKnowledge can read it (Codex today, through the namespace it shares with the Codex CLI), an existing sign-in counts on its own even with no CLI installed. **Settings → Agent connections** overrides those defaults in both directions — turn off something detected, or turn on something you haven't installed yet. **Terminal** rows always use the desktop app's own PATH probe. For **External apps** the desktop app checks the OS protocol handlers locally, while the web build asks the server (`GET /api/installed-agents`), so that answer reflects the machine the server runs on — exact on `localhost`, but against a remote server (a hosted preview, SSH tunnel, remote dev) it's the server's installs that count. The **In app** signal is always the server's: it rides the agent catalog, not either probe. When nothing is enabled or detected, the submenu is just the **Configure agents** row.+**Install detection** supplies the defaults for all three sections: Terminal and External apps rows probe for the CLI or app itself, and In app rows probe for the agent's underlying CLI — and for an agent whose sign-in lives where OpenKnowledge can read it (Codex today, through the namespace it shares with the Codex CLI), an existing sign-in counts on its own even with no CLI installed. **Settings → Agent connections** overrides those defaults in both directions — turn off something detected, or turn on something you haven't installed yet. **Terminal** rows always use the desktop app's own PATH probe. For **External apps** the desktop app checks the OS protocol handlers locally, while the web build asks the server (`GET /api/installed-agents`), so that answer reflects the machine the server runs on — exact on `localhost`, but against a remote server (a hosted preview, SSH tunnel, remote dev) it's the server's installs that count. Detection establishes whether the app is available; the required OpenKnowledge tool connection is checked separately when you select an installed external app. The **In app** signal is always the server's: it rides the agent catalog, not either probe. When nothing is enabled or detected, the submenu is just the **Configure agents** row.See the [per-integration pages](../integrations/claude-code.mdx) for what each agent receives once dispatched.-The menu is organized into three sections, in the order the default follows. **In app** leads: a row for each in-app agent you've enabled or that detection turned up, which opens the conversation in OpenKnowledge's Agents panel without leaving the app. **Terminal** (desktop app) follows: a row for every agent CLI OpenKnowledge can launch — **Claude**, **Codex**, **OpenCode**, **Cursor**, **GitHub Copilot**, **Pi**, **Antigravity**, **OpenClaw**, and **Hermes** — each running its own command in OpenKnowledge's [docked terminal](#terminal) with the same scoped prompt. On Windows, OpenKnowledge pastes that prompt without submitting it because a generic ConPTY readiness signal cannot safely identify the active input; review the prompt, then press Enter to send it. A CLI the PATH probe reports absent is hidden until you turn it on in **Agent connections**. **External apps** comes last, listing the agent apps detected on this machine — **Claude Desktop**, **ChatGPT Desktop** (Codex's desktop app is branded ChatGPT), and **Cursor Desktop** — plus any you turned on in **Agent connections** (those route to the app's installer); selecting one launches it via its deep link and hands the work out of OpenKnowledge. Because the sections can carry the same brand name, the **Desktop** suffix is what tells a Terminal **Claude** (the CLI) apart from an External apps **Claude Desktop** (the app) on screen; screen readers additionally get "Claude CLI" as the Terminal row's accessible name. Each section renders only when it has something to launch, so on the web build, which has no docked terminal, the Terminal section is absent, and a saved CLI pick degrades to the same order the default follows: an In app agent when one is available, otherwise an external app. A **Configure agents** row is always last.+The menu is organized into three sections, in the order the default follows. **In app** leads: a row for each in-app agent you've enabled or that detection turned up, which opens the conversation in OpenKnowledge's Agents panel without leaving the app. **Terminal** (desktop app) follows: a row for every agent CLI OpenKnowledge can launch — **Claude**, **Codex**, **OpenCode**, **Cursor**, **GitHub Copilot**, **Pi**, **Antigravity**, **OpenClaw**, and **Hermes** — each running its own command in OpenKnowledge's [docked terminal](#terminal) with the same scoped prompt. On Windows, OpenKnowledge pastes that prompt without submitting it because a generic ConPTY readiness signal cannot safely identify the active input; review the prompt, then press Enter to send it. A CLI the PATH probe reports absent is hidden until you turn it on in **Agent connections**. **External apps** comes last, listing the agent apps detected on this machine — **Claude Desktop**, **ChatGPT Desktop** (Codex's desktop app is branded ChatGPT), and **Cursor Desktop** — plus any you turned on in **Agent connections** (those route to the app's installer). Selecting an installed app checks its required OpenKnowledge connections before the deep link launches it and hands the work out of OpenKnowledge. Because the sections can carry the same brand name, the **Desktop** suffix is what tells a Terminal **Claude** (the CLI) apart from an External apps **Claude Desktop** (the app) on screen; screen readers additionally get "Claude CLI" as the Terminal row's accessible name. Each section renders only when it has something to launch, so on the web build, which has no docked terminal, the Terminal section is absent, and a saved CLI pick degrades to the same order the default follows: an In app agent when one is available, otherwise an external app. A **Configure agents** row is always last.++When an installed external app has no required OpenKnowledge MCP connection yet, the connection setup dialog opens before the handoff. You can save a project or global MCP connection and continue once it is ready, or open the app without saving. The checkbox for opening without setup remembers that choice for this app in this project: later handoffs skip the connection check until you clear the preference in **Settings → Agent connections**. Canceling or closing setup leaves the app unopened. Skills alone do not satisfy an MCP requirement.++If a connection check fails because of a read error or an indeterminate result, OpenKnowledge opens the app without confirming its tools. A slow check first shows a status notice such as “Checking connection to Claude…”; if it exceeds a fixed wait, OpenKnowledge opens the app without confirmed tools. It also opens the app unchecked when connection management is unavailable in that build. These cases do not save a skip preference, so the next handoff checks again.The empty-state create composer on a fresh project carries the same three-way split: its In app rows pick the in-app agent the **Create** button uses, its Terminal rows (desktop only, disabled until the workspace resolves) launch any of those CLIs with the brief you typed, and its External apps rows hand that brief to an agent app installed here.diff --git a/packages/app/src/App.tsx b/packages/app/src/App.tsxindex f9680225a..7fd23cefd 100644--- a/packages/app/src/App.tsx+++ b/packages/app/src/App.tsx@@ -10,6 +10,7 @@ import { EditorPane } from '@/components/EditorPane';import { FeedbackMenuTrigger } from '@/components/FeedbackMenuTrigger';import { FileSidebar } from '@/components/FileSidebar';import { defaultInitialDir } from '@/components/file-tree-utils';+import { ExternalHandoffGateProvider } from '@/components/handoff/ExternalHandoffGate';import {type TerminalLaunchContextValue,TerminalLaunchProvider,@@ -524,7 +525,7 @@ function ConfigProviderHost({ children }: { children: ReactNode }) {<ConfigProvider collabUrl={collabUrl} collabTerminal={collabTerminal}><EditorLifecycleFlush /><BackgroundThrottleReporter />- {children}+ <ExternalHandoffGateProvider>{children}</ExternalHandoffGateProvider></ConfigProvider>);}diff --git a/packages/app/src/components/BottomComposer.dom.test.tsx b/packages/app/src/components/BottomComposer.dom.test.tsxindex 4d0de8d1d..aef63787a 100644--- a/packages/app/src/components/BottomComposer.dom.test.tsx+++ b/packages/app/src/components/BottomComposer.dom.test.tsx@@ -1259,6 +1259,24 @@ describe('BottomComposer (conflict footer stacking)', () => {});describe('BottomComposer (failure + defensive guards)', () => {+ test.each(['setup-canceled', 'superseded'] as const)(+ '%s preserves the typed prompt for another send',+ async (reason) => {+ dispatchImpl = () => Promise.resolve({ ok: false, reason });++ await renderComposer();+ fireEvent.change(getInput(), { target: { value: 'condense this doc' } });+ fireEvent.click(screen.getByTestId('ask-ai-send'));++ await waitFor(() => expect(dispatchCalls).toHaveLength(1));+ await waitFor(() =>+ expect((screen.getByTestId('ask-ai-send') as HTMLButtonElement).disabled).toBe(false),+ );+ expect(getInput().value).toBe('condense this doc');+ expect(recordAskedAiSpy).not.toHaveBeenCalled();+ },+ );+test('an unsuccessful ({ok:false}) dispatch still clears the field and adds no bespoke toast', async () => {dispatchImpl = () => Promise.resolve({ ok: false });diff --git a/packages/app/src/components/BottomComposer.tsx b/packages/app/src/components/BottomComposer.tsxindex b3675f3c5..b495bbb53 100644--- a/packages/app/src/components/BottomComposer.tsx+++ b/packages/app/src/components/BottomComposer.tsx@@ -533,12 +533,25 @@ export function BottomComposer({return false;}setPending(true);- const outcome = await dispatch(resolvedTarget.id, input).finally(() => {+ const settle = (clear: boolean) => {setPending(false);- clearIfOwned();- });- if (outcome.ok) recordOnboardingAskedAi();- return outcome.ok;+ if (clear) clearIfOwned();+ };+ return dispatch(resolvedTarget.id, input, {+ installState: states[resolvedTarget.id],+ }).then(+ (outcome) => {+ settle(+ outcome.ok || (outcome.reason !== 'setup-canceled' && outcome.reason !== 'superseded'),+ );+ if (outcome.ok) recordOnboardingAskedAi();+ return outcome.ok;+ },+ (error: unknown) => {+ settle(true);+ throw error;+ },+ );};const composeCurrentInput = () => {diff --git a/packages/app/src/components/CommandPalette.tsx b/packages/app/src/components/CommandPalette.tsxindex e12107217..f787db22e 100644--- a/packages/app/src/components/CommandPalette.tsx+++ b/packages/app/src/components/CommandPalette.tsx@@ -1303,7 +1303,7 @@ export function CommandPalette({ bridge = null, open, onOpenChange }: CommandPalonSelect={() => {if (!enabled || !handoffInput) return;onOpenChange(false);- void dispatchHandoff(target.id, handoffInput);+ void dispatchHandoff(target.id, handoffInput, { installState });}}data-testid={`command-palette-open-in-${target.id}`}aria-label={accessibleLabel}diff --git a/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx b/packages/app/src/components/FileSidebar.menu-action.dom.test.tsxindex 91f186bba..210def10d 100644--- a/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx+++ b/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx@@ -469,6 +469,7 @@ describe('FileSidebar menu-action runtime routing', () => {expect(handoffDispatchMock).toHaveBeenCalledWith('codex',expect.objectContaining({ docPath: 'notes/source.md' }),+ expect.objectContaining({ installState: expect.objectContaining({ installed: true }) }),);expect(threadLaunchMock).not.toHaveBeenCalled();});@@ -511,6 +512,7 @@ describe('FileSidebar menu-action runtime routing', () => {expect(handoffDispatchMock).toHaveBeenCalledWith('codex',expect.objectContaining({ docPath: 'notes/source.md' }),+ expect.objectContaining({ installState: expect.objectContaining({ installed: true }) }),);menuActionCallback?.('copy-full-path' as MenuAction);diff --git a/packages/app/src/components/FileSidebar.tsx b/packages/app/src/components/FileSidebar.tsxindex 822a2bd90..e07099a59 100644--- a/packages/app/src/components/FileSidebar.tsx+++ b/packages/app/src/components/FileSidebar.tsx@@ -488,7 +488,9 @@ function FileSidebarInner({ onOpenSearch }: FileSidebarProps) {toast.info(t`${target.displayName} isn't installed yet — opening its download page.`);return;}- void dispatchHandoff(target.id, input);+ void dispatchHandoff(target.id, input, {+ installState: handoffInstallStates[target.id],+ });return;}case 'copy-full-path': {diff --git a/packages/app/src/components/FileTree.tsx b/packages/app/src/components/FileTree.tsxindex 69b544117..cb61306e5 100644--- a/packages/app/src/components/FileTree.tsx+++ b/packages/app/src/components/FileTree.tsx@@ -230,6 +230,7 @@ import {buildFolderHandoffInput,buildHandoffInput,type HandoffDispatchInput,+ type HandoffDispatchOptions,useHandoffDispatch,} from './handoff/useHandoffDispatch';import { useInstalledAgents } from './handoff/useInstalledAgents';@@ -474,6 +475,7 @@ interface FileTreeMenuProps {readonly dispatch: (target: HandoffTarget,input: HandoffDispatchInput,+ options: HandoffDispatchOptions,) => Promise<HandoffOutcome>;};model: PierreFileTreeModel;@@ -684,6 +686,7 @@ function FileTreeMenu({isElectronHost={handoff.isElectronHost}dispatch={handoff.dispatch}onBeforeLaunch={close}+ restoreFocus={context.restoreFocus}/>)}diff --git a/packages/app/src/components/empty-state/CreatePromptComposer.tsx b/packages/app/src/components/empty-state/CreatePromptComposer.tsxindex d769a54f2..b95efa722 100644--- a/packages/app/src/components/empty-state/CreatePromptComposer.tsx+++ b/packages/app/src/components/empty-state/CreatePromptComposer.tsx@@ -310,7 +310,7 @@ export function CreatePromptComposer({ scenario, className }: CreatePromptComposmentions,});if (input === null) return;- void dispatch(targetId, input);+ void dispatch(targetId, input, { installState: states[targetId] });inputRef.current?.clear();clearComposerDraft();}diff --git a/packages/app/src/components/handoff/ExternalHandoffGate.dom.test.tsx b/packages/app/src/components/handoff/ExternalHandoffGate.dom.test.tsxnew file mode 100644index 000000000..a7d152156--- /dev/null+++ b/packages/app/src/components/handoff/ExternalHandoffGate.dom.test.tsx@@ -0,0 +1,957 @@+import type {+ HandoffOutcome,+ HandoffTarget,+ HostSnapshot,+ InstallState,+} from '@inkeep/open-knowledge-core';+import * as actualLinguiMacro from '@lingui/react/macro';+import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';+import userEvent from '@testing-library/user-event';+import { type ReactNode, useEffect, useRef, useState } from 'react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { Button } from '@/components/ui/button';+import { TooltipProvider } from '@/components/ui/tooltip';+import type { ApplyAgentConnectionsResult } from '@/lib/agent-connections';+import { renderLinguiTemplate } from '@/test-utils/lingui-mock';+import { terminalAgentSnapshot } from '../terminal-agent-connections.test-helper';+import type { HandoffDispatchInput } from './useHandoffDispatch';++vi.doMock('@lingui/react/macro', () => ({+ ...actualLinguiMacro,+ Trans: ({ children }: { children?: ReactNode }) => <>{children}</>,+ useLingui: () => ({ i18n: { locale: 'en' }, t: renderLinguiTemplate }),+}));++const moduleDispatch = vi.fn(async () => ({ ok: true as const }));+const toastError = vi.fn();+const recordHandoff = vi.fn(async () => undefined);+vi.doMock('@/lib/config-context', () => ({+ useConfigContext: () => ({ merged: null }),+}));+vi.doMock('@/lib/handoff/dispatch', () => ({ dispatchHandoff: moduleDispatch }));+vi.doMock('@/lib/handoff/telemetry', () => ({ recordHandoff }));+vi.doMock('sonner', () => ({+ toast: { error: toastError, success: vi.fn() },+}));++const { ExternalHandoffGateProvider, useExternalHandoffGate } = await import(+ './ExternalHandoffGate'+);+const { useHandoffDispatch } = await import('./useHandoffDispatch');++const input: HandoffDispatchInput = {+ docContext: { relativePath: 'notes/example.md' },+ instruction: 'Summarize this note',+ projectDir: '/project',+ docPath: '/project/notes/example.md',+};++function result(snapshot: ApplyAgentConnectionsResult['snapshot']): ApplyAgentConnectionsResult {+ return {+ ok: snapshot !== null,+ report: { actions: [], conflicts: [], withheld: [] },+ snapshot,+ };+}++function unavailableResult(): ApplyAgentConnectionsResult {+ return {+ ok: false,+ unavailable: true,+ report: { actions: [], conflicts: [], withheld: [] },+ snapshot: null,+ };+}++function deferred<T>() {+ let resolve!: (value: T) => void;+ let reject!: (reason?: unknown) => void;+ const promise = new Promise<T>((next, fail) => {+ resolve = next;+ reject = fail;+ });+ return { promise, resolve, reject };+}++function GateHarness({+ rawDispatch,+ target = 'claude-code',+ dispatchInput = input,+ onOutcome,+ onError,+}: {+ rawDispatch: (target: HandoffTarget, input: HandoffDispatchInput) => Promise<HandoffOutcome>;+ target?: HandoffTarget;+ dispatchInput?: HandoffDispatchInput;+ onOutcome?: (outcome: HandoffOutcome) => void;+ onError?: (error: unknown) => void;+}) {+ const gate = useExternalHandoffGate();+ return (+ <Button+ onClick={() =>+ void gate+ .dispatch(target, () => rawDispatch(target, dispatchInput), {+ projectDir: dispatchInput.projectDir,+ installState: { installed: true, lastChecked: 1 },+ })+ .then(onOutcome, onError)+ }+ >+ Open {target}+ </Button>+ );+}++function DismissingPickerHarness({+ rawDispatch,+}: {+ rawDispatch: (target: HandoffTarget, input: HandoffDispatchInput) => Promise<HandoffOutcome>;+}) {+ const gate = useExternalHandoffGate();+ const [pickerOpen, setPickerOpen] = useState(true);+ const triggerRef = useRef<HTMLButtonElement>(null);+ useEffect(() => {+ if (!pickerOpen) triggerRef.current?.focus();+ }, [pickerOpen]);+ return (+ <>+ <Button ref={triggerRef}>Open with AI</Button>+ {pickerOpen ? (+ <Button+ onClick={() => {+ void gate.dispatch('claude-code', () => rawDispatch('claude-code', input), {+ projectDir: input.projectDir,+ installState: { installed: true, lastChecked: 1 },+ });+ setPickerOpen(false);+ }}+ >+ Claude Code+ </Button>+ ) : null}+ </>+ );+}++function UnmountingPickerHarness({+ rawDispatch,+}: {+ rawDispatch: (target: HandoffTarget, input: HandoffDispatchInput) => Promise<HandoffOutcome>;+}) {+ const gate = useExternalHandoffGate();+ const [pickerOpen, setPickerOpen] = useState(true);+ const triggerRef = useRef<HTMLButtonElement>(null);+ return (+ <>+ <Button ref={triggerRef}>Open with AI</Button>+ {pickerOpen ? (+ <Button+ onClick={() => {+ void gate.dispatch('claude-code', () => rawDispatch('claude-code', input), {+ projectDir: input.projectDir,+ installState: { installed: true, lastChecked: 1 },+ restoreFocus: () => triggerRef.current?.focus(),+ });+ setPickerOpen(false);+ }}+ >+ Claude Code+ </Button>+ ) : null}+ </>+ );+}++function SharedHookHarness({+ target = 'claude-code',+ installState = { installed: true, lastChecked: 1 },+ onOutcome,+}: {+ target?: HandoffTarget;+ installState?: InstallState;+ onOutcome?: (outcome: HandoffOutcome) => void;+}) {+ const { dispatch } = useHandoffDispatch();+ return (+ <Button onClick={() => void dispatch(target, input, { installState }).then(onOutcome)}>+ Open from shared hook+ </Button>+ );+}++function renderGate(+ applyConnections: Parameters<typeof ExternalHandoffGateProvider>[0]['applyConnections'],+ children: ReactNode,+) {+ return render(+ <TooltipProvider>+ <ExternalHandoffGateProvider applyConnections={applyConnections}>+ {children}+ </ExternalHandoffGateProvider>+ </TooltipProvider>,+ );+}++afterEach(() => {+ cleanup();+ vi.useRealTimers();+ vi.clearAllMocks();+ vi.restoreAllMocks();+ window.localStorage.clear();+});++describe('ExternalHandoffGate', () => {+ test('a known absent app stops at the shared hook before setup or transport', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const onOutcome = vi.fn();+ renderGate(+ applyConnections,+ <SharedHookHarness+ target="codex"+ installState={{ installed: false, lastChecked: 1 }}+ onOutcome={onOutcome}+ />,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open from shared hook' }));++ await waitFor(() =>+ expect(onOutcome).toHaveBeenCalledWith({ ok: false, reason: 'not-installed' }),+ );+ expect(applyConnections).not.toHaveBeenCalled();+ expect(screen.queryByRole('dialog')).toBeNull();+ expect(moduleDispatch).not.toHaveBeenCalled();+ expect(recordHandoff).toHaveBeenCalledExactlyOnceWith({+ target: 'codex',+ host: 'web',+ outcome: 'error',+ reason: 'not-installed',+ ts: expect.any(String),+ });+ });++ test('unknown installation state still evaluates connection readiness', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot(['claude'])));+ const onOutcome = vi.fn();+ renderGate(+ applyConnections,+ <SharedHookHarness installState={{ installed: null }} onOutcome={onOutcome} />,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open from shared hook' }));++ await waitFor(() => expect(onOutcome).toHaveBeenCalledWith({ ok: true }));+ expect(applyConnections).toHaveBeenCalledExactlyOnceWith([], {+ webSignal: expect.any(AbortSignal),+ });+ expect(moduleDispatch).toHaveBeenCalledTimes(1);+ expect(screen.queryByRole('dialog')).toBeNull();+ });++ test('a fast readiness check completes without showing a delayed checking status', async () => {+ vi.useFakeTimers();+ const read = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi.fn(() => read.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const onOutcome = vi.fn();+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} onOutcome={onOutcome} />);++ fireEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ expect(screen.queryByRole('status')).toBeNull();+ await act(async () => read.resolve(result(terminalAgentSnapshot(['claude']))));+ expect(rawDispatch).toHaveBeenCalledTimes(1);+ await act(async () => vi.advanceTimersByTimeAsync(500));++ expect(screen.queryByRole('status')).toBeNull();+ expect(onOutcome).toHaveBeenCalledWith({ ok: true });+ });++ test('a slow readiness check exposes a perceivable status after a short delay', async () => {+ vi.useFakeTimers();+ const read = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi.fn(() => read.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);++ fireEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ expect(screen.queryByRole('status')).toBeNull();+ await act(async () => vi.advanceTimersByTimeAsync(500));++ const status = screen.getByRole('status');+ expect(status.textContent).toMatch(/Claude/i);+ expect(rawDispatch).not.toHaveBeenCalled();+ await act(async () => read.resolve(result(terminalAgentSnapshot(['claude']))));+ expect(screen.queryByRole('status')).toBeNull();+ });++ test('a stalled readiness read fails open within a bounded time and warns before dispatch', async () => {+ vi.useFakeTimers();+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const read = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi.fn(() => read.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const onOutcome = vi.fn();+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} onOutcome={onOutcome} />);++ fireEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ expect(rawDispatch).not.toHaveBeenCalled();+ await act(async () => vi.advanceTimersByTimeAsync(300_000));++ expect(warn).toHaveBeenCalledWith('[handoff] external readiness check bypassed', {+ target: 'claude-code',+ cause: 'read-timeout',+ });+ expect(warn.mock.invocationCallOrder[0]).toBeLessThan(+ rawDispatch.mock.invocationCallOrder[0] ?? Infinity,+ );+ expect(rawDispatch).toHaveBeenCalledTimes(1);+ expect(onOutcome).toHaveBeenCalledWith({ ok: true });+ expect(screen.queryByRole('status')).toBeNull();+ await act(async () => read.reject(new Error('aborted after timeout')));+ expect(warn).toHaveBeenCalledTimes(1);+ expect(rawDispatch).toHaveBeenCalledTimes(1);+ });++ test('provider teardown settles a pending caller without launching the destination', async () => {+ const applyConnections = vi.fn(() => new Promise<ApplyAgentConnectionsResult>(() => {}));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const onOutcome = vi.fn();+ const view = renderGate(+ applyConnections,+ <GateHarness rawDispatch={rawDispatch} onOutcome={onOutcome} />,+ );++ fireEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ expect(onOutcome).not.toHaveBeenCalled();+ view.unmount();+ await act(async () => {});++ expect(onOutcome).toHaveBeenCalledWith(expect.objectContaining({ ok: false }));+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('a ready installed target dispatches once after a fresh connection check', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot(['claude'])));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ expect(rawDispatch).toHaveBeenCalledWith('claude-code', input);+ expect(applyConnections).toHaveBeenCalledTimes(1);+ expect(applyConnections).toHaveBeenCalledWith([], {+ webSignal: expect.any(AbortSignal),+ });+ });++ test('a synchronous destination error rejects the caller after a ready check', async () => {+ const failure = new Error('launch failed');+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot(['claude'])));+ const rawDispatch = vi.fn(() => {+ throw failure;+ });+ const onError = vi.fn();+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} onError={onError} />);++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));++ await waitFor(() => expect(onError).toHaveBeenCalledExactlyOnceWith(failure));+ expect(rawDispatch).toHaveBeenCalledTimes(1);+ expect(screen.queryByRole('status')).toBeNull();+ });++ test('the shared handoff hook reaches raw transport only through the provider gate', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot(['claude'])));+ renderGate(applyConnections, <SharedHookHarness />);++ await userEvent.click(screen.getByRole('button', { name: 'Open from shared hook' }));++ await waitFor(() => expect(moduleDispatch).toHaveBeenCalledTimes(1));+ expect(applyConnections).toHaveBeenCalledWith([], {+ webSignal: expect.any(AbortSignal),+ });+ expect(moduleDispatch.mock.calls[0]?.[0]).toMatchObject({+ target: 'claude-code',+ projectDir: '/project',+ docPath: '/project/notes/example.md',+ });+ });++ test('a transport Retry performs another fresh check before dispatching again', async () => {+ moduleDispatch+ .mockResolvedValueOnce({ ok: false, reason: 'dispatch-error' })+ .mockResolvedValueOnce({ ok: true });+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot(['claude'])));+ renderGate(applyConnections, <SharedHookHarness />);++ await userEvent.click(screen.getByRole('button', { name: 'Open from shared hook' }));+ await waitFor(() => expect(toastError).toHaveBeenCalledTimes(1));++ const retry = toastError.mock.calls[0]?.[1]?.action?.onClick;+ expect(retry).toBeTypeOf('function');+ await act(async () => retry?.());++ await waitFor(() => expect(moduleDispatch).toHaveBeenCalledTimes(2));+ expect(applyConnections).toHaveBeenCalledTimes(2);+ expect(applyConnections.mock.invocationCallOrder[1]).toBeLessThan(+ moduleDispatch.mock.invocationCallOrder[1] ?? Number.POSITIVE_INFINITY,+ );+ });++ test('a transport Retry opens setup when the prerequisite was revoked', async () => {+ moduleDispatch.mockResolvedValueOnce({ ok: false, reason: 'dispatch-error' });+ const applyConnections = vi+ .fn(async () => result(terminalAgentSnapshot()))+ .mockResolvedValueOnce(result(terminalAgentSnapshot(['claude'])));+ renderGate(applyConnections, <SharedHookHarness />);++ await userEvent.click(screen.getByRole('button', { name: 'Open from shared hook' }));+ await waitFor(() => expect(toastError).toHaveBeenCalledTimes(1));+ const retry = toastError.mock.calls[0]?.[1]?.action?.onClick;+ await act(async () => retry?.());++ expect((await screen.findByRole('dialog')).textContent).toContain(+ 'Choose what OpenKnowledge sets up for Claude.',+ );+ expect(applyConnections).toHaveBeenCalledTimes(2);+ expect(moduleDispatch).toHaveBeenCalledTimes(1);+ });++ test('an unmet prerequisite opens setup and cancel leaves the app closed', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const onOutcome = vi.fn();+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} onOutcome={onOutcome} />);++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));++ expect((await screen.findByRole('dialog')).textContent).toContain(+ 'Choose what OpenKnowledge sets up for Claude.',+ );+ expect(rawDispatch).not.toHaveBeenCalled();+ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ expect(rawDispatch).not.toHaveBeenCalled();+ expect(onOutcome).toHaveBeenCalledWith({+ ok: false,+ reason: 'setup-canceled',+ });+ expect(recordHandoff).toHaveBeenCalledExactlyOnceWith({+ target: 'claude-code',+ host: 'web',+ outcome: 'error',+ reason: 'setup-canceled',+ ts: expect.any(String),+ });+ });++ test('skill-only setup explains that an MCP server is required', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} target="cursor" />);++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ const dialog = await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('checkbox', { name: 'Project MCP server' }));+ await userEvent.click(screen.getByRole('checkbox', { name: 'Project skill' }));+ await userEvent.click(screen.getByRole('checkbox', { name: 'Global MCP server' }));+ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }));++ expect((await screen.findByRole('alert')).textContent).toContain(+ 'To save this setup, turn on Project MCP server or Global MCP server.',+ );+ expect(applyConnections).toHaveBeenCalledTimes(1);+ expect(rawDispatch).not.toHaveBeenCalled();+ expect(dialog).toBeTruthy();+ await userEvent.click(screen.getByRole('checkbox', { name: 'Project MCP server' }));+ await waitFor(() => expect(screen.queryByRole('alert')).toBeNull());+ });++ test('opening the destination dispatches once without writing setup', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} target="cursor" />);++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Open Cursor' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ expect(applyConnections).toHaveBeenCalledTimes(1);+ expect(screen.queryByRole('dialog')).toBeNull();+ });++ test("Don't ask again skips setup for the same target and project", async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} target="cursor" />);++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await screen.findByRole('dialog');+ await userEvent.click(+ screen.getByRole('checkbox', {+ name: "Don't ask again when opening this app without setup in this project",+ }),+ );+ await userEvent.click(screen.getByRole('button', { name: 'Open Cursor' }));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(2));+ expect(applyConnections).toHaveBeenCalledTimes(1);+ expect(screen.queryByRole('dialog')).toBeNull();+ });++ test('skipping one app still asks for a different app in the same project', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ <GateHarness rawDispatch={rawDispatch} target="claude-code" />+ </>,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('checkbox', { name: /Don't ask again/ }));+ await userEvent.click(screen.getByRole('button', { name: 'Open Cursor' }));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ expect((await screen.findByRole('dialog')).textContent).toContain('Claude');+ expect(applyConnections).toHaveBeenCalledTimes(2);+ });++ test('skipping one project still asks for the same app in another project', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ <GateHarness+ rawDispatch={rawDispatch}+ target="cursor"+ dispatchInput={{ ...input, projectDir: '/another-project' }}+ />+ </>,+ );++ const openButtons = screen.getAllByRole('button', { name: 'Open cursor' });+ await userEvent.click(openButtons[0]);+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('checkbox', { name: /Don't ask again/ }));+ await userEvent.click(screen.getByRole('button', { name: 'Open Cursor' }));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));++ await userEvent.click(openButtons[1]);+ expect(await screen.findByRole('dialog')).toBeTruthy();+ expect(applyConnections).toHaveBeenCalledTimes(2);+ });++ test('opening without selecting skip asks again next time', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} target="cursor" />);++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Open Cursor' }));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ expect(await screen.findByRole('dialog')).toBeTruthy();+ expect(applyConnections).toHaveBeenCalledTimes(2);+ });++ test('cancel after selecting skip still asks next time', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} target="cursor" />);++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('checkbox', { name: /Don't ask again/ }));+ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());++ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ expect(await screen.findByRole('dialog')).toBeTruthy();+ expect(applyConnections).toHaveBeenCalledTimes(2);+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('Escape closes setup without dispatching', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');++ fireEvent.keyDown(document, { key: 'Escape' });++ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('Escape closes a nested information tooltip before setup', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');++ const informationTrigger = screen.getAllByRole('button', { name: 'More information' })[0];+ informationTrigger.focus();+ await screen.findByRole('tooltip');+ await userEvent.keyboard('{Escape}');++ await waitFor(() => expect(screen.queryByRole('tooltip')).toBeNull());+ expect(screen.getByRole('dialog')).toBeTruthy();+ await userEvent.keyboard('{Escape}');+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ expect(rawDispatch).not.toHaveBeenCalled();+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Open claude-code' }));+ });++ test('closing setup restores focus to the stable picker trigger', async () => {+ const read = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi.fn(() => read.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <DismissingPickerHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Claude Code' }));+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Open with AI' }));+ await act(async () => read.resolve(result(terminalAgentSnapshot())));+ await screen.findByRole('dialog');++ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ await waitFor(() =>+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Open with AI' })),+ );+ });++ test('closing setup uses the caller focus fallback after the initiating item unmounts', async () => {+ const read = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi.fn(() => read.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <UnmountingPickerHarness rawDispatch={rawDispatch} />);++ await userEvent.click(screen.getByRole('button', { name: 'Claude Code' }));+ expect(screen.queryByRole('button', { name: 'Claude Code' })).toBeNull();+ await act(async () => read.resolve(result(terminalAgentSnapshot())));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ await waitFor(() =>+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Open with AI' })),+ );+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('closing setup uses the caller focus fallback when the initiating click leaves body active', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <UnmountingPickerHarness rawDispatch={rawDispatch} />);++ expect(document.activeElement).toBe(document.body);+ fireEvent.click(screen.getByRole('button', { name: 'Claude Code' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ await waitFor(() =>+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'Open with AI' })),+ );+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('successful setup resumes the complete pending handoff exactly once', async () => {+ const applyConnections = vi+ .fn(async () => result(terminalAgentSnapshot()))+ .mockResolvedValueOnce(result(terminalAgentSnapshot()))+ .mockResolvedValueOnce(result(terminalAgentSnapshot(['claude'])));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const completeInput: HandoffDispatchInput = {+ ...input,+ selection: {+ relativePath: 'notes/example.md',+ instruction: 'Explain this selection',+ selectionMarkdown: '**selected**',+ },+ attachments: [{ kind: 'file', name: 'diagram.png', path: '/project/diagram.png' }],+ };+ renderGate(+ applyConnections,+ <GateHarness rawDispatch={rawDispatch} dispatchInput={completeInput} />,+ );+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');++ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ expect(rawDispatch).toHaveBeenCalledWith('claude-code', completeInput);+ expect(applyConnections).toHaveBeenCalledTimes(2);+ expect(applyConnections.mock.calls[1]?.[0].length).toBeGreaterThan(0);+ });++ test('setup stays open when its returned snapshot is still not ready', async () => {+ const applyConnections = vi.fn(async () => result(terminalAgentSnapshot()));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');++ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }));++ await waitFor(() => expect(applyConnections).toHaveBeenCalledTimes(2));+ expect(screen.getByRole('dialog')).toBeTruthy();+ const savedNotice = screen.getByText(/Changes were saved, but OpenKnowledge could not confirm/);+ expect(savedNotice.closest('[role="status"]')).toBeTruthy();+ expect(savedNotice.textContent).toContain(+ 'Changes were saved, but OpenKnowledge could not confirm a connection to Claude.',+ );+ expect(savedNotice.textContent).toContain(+ 'Check the MCP server settings for this app, then select Save changes to check again.',+ );+ expect(screen.queryByText('Something went wrong. Please try again.')).toBeNull();+ expect(rawDispatch).not.toHaveBeenCalled();+ });++ test('a malformed post-save snapshot reports that changes were saved', async () => {+ const malformedSnapshot = {+ ...terminalAgentSnapshot(),+ detection: null,+ } as unknown as HostSnapshot;+ const applyConnections = vi+ .fn()+ .mockResolvedValueOnce(result(terminalAgentSnapshot()))+ .mockResolvedValueOnce(result(malformedSnapshot));+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');++ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }));++ const savedNotice = await screen.findByText(+ /Changes were saved, but OpenKnowledge could not confirm/,+ );+ expect(savedNotice.closest('[role="status"]')).toBeTruthy();+ expect(screen.queryByText('Something went wrong. Please try again.')).toBeNull();+ expect(rawDispatch).not.toHaveBeenCalled();+ expect(warn).toHaveBeenCalledWith('[handoff] external readiness check bypassed', {+ target: 'claude-code',+ cause: 'derivation-threw',+ detail: expect.stringContaining('Cannot read properties of null'),+ });+ });++ test.each([+ ['unavailable', async () => unavailableResult(), 'unavailable', undefined],+ [+ 'failed read',+ async () => ({ ...result(null), error: 'HTTP 503 Service Unavailable' }),+ 'read-failed',+ 'HTTP 503 Service Unavailable',+ ],+ [+ 'missing snapshot',+ async () => ({ ...result(null), ok: true }),+ 'missing-snapshot',+ undefined,+ ],+ [+ 'malformed snapshot',+ async () =>+ result({+ ...terminalAgentSnapshot(),+ detection: null,+ } as unknown as HostSnapshot),+ 'derivation-threw',+ expect.stringContaining('Cannot read properties of null'),+ ],+ [+ 'unknown status',+ async () =>+ result({+ probes: { env: 'desktop', satisfiers: {} },+ detection: { detected: ['claude'], probed: true },+ } satisfies HostSnapshot),+ 'unknown-status',+ 'no-status',+ ],+ ])(+ '%s checks fail open with a cause-specific warning',+ async (_name, firstRead, cause, detail) => {+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const applyConnections = vi.fn(firstRead);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ expect(warn).toHaveBeenCalledWith('[handoff] external readiness check bypassed', {+ target: 'claude-code',+ cause,+ ...(detail === undefined ? {} : { detail }),+ });+ expect(warn.mock.invocationCallOrder[0]).toBeLessThan(+ rawDispatch.mock.invocationCallOrder[0] ?? Infinity,+ );+ expect(applyConnections).toHaveBeenCalledTimes(1);+ expect(screen.queryByRole('alertdialog')).toBeNull();+ },+ );++ test('a rejected check fails open', async () => {+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const applyConnections = vi.fn(async () => {+ throw new Error('offline');+ });+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(applyConnections, <GateHarness rawDispatch={rawDispatch} />);+ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ expect(warn).toHaveBeenCalledWith('[handoff] external readiness check bypassed', {+ target: 'claude-code',+ cause: 'read-threw',+ detail: 'offline',+ });+ expect(screen.queryByRole('alertdialog')).toBeNull();+ });++ test('a newer request supersedes an older readiness check', async () => {+ const first = deferred<ApplyAgentConnectionsResult>();+ const second = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi+ .fn<() => Promise<ApplyAgentConnectionsResult>>()+ .mockReturnValueOnce(first.promise)+ .mockReturnValueOnce(second.promise);+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const firstOutcome = vi.fn();+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} onOutcome={firstOutcome} />+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ </>,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await waitFor(() =>+ expect(firstOutcome).toHaveBeenCalledWith({ ok: false, reason: 'superseded' }),+ );+ await act(async () => second.resolve(result(terminalAgentSnapshot(['cursor']))));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledTimes(1));+ await act(async () => first.resolve(result(terminalAgentSnapshot(['claude']))));++ expect(rawDispatch).toHaveBeenCalledTimes(1);+ expect(rawDispatch).toHaveBeenCalledWith('cursor', input);+ expect(recordHandoff).toHaveBeenCalledExactlyOnceWith({+ target: 'claude-code',+ host: 'web',+ outcome: 'error',+ reason: 'superseded',+ ts: expect.any(String),+ });+ });++ test('a superseded stalled read cannot later bypass readiness or launch its destination', async () => {+ vi.useFakeTimers();+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const first = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi+ .fn<() => Promise<ApplyAgentConnectionsResult>>()+ .mockReturnValueOnce(first.promise)+ .mockResolvedValueOnce(result(terminalAgentSnapshot(['cursor'])));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ const firstOutcome = vi.fn();+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} onOutcome={firstOutcome} />+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ </>,+ );++ fireEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ fireEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await act(async () => {});+ expect(firstOutcome).toHaveBeenCalledWith({ ok: false, reason: 'superseded' });+ expect(rawDispatch).toHaveBeenCalledExactlyOnceWith('cursor', input);+ await act(async () => vi.advanceTimersByTimeAsync(300_000));+ await act(async () => first.resolve(result(terminalAgentSnapshot(['claude']))));++ expect(rawDispatch).toHaveBeenCalledTimes(1);+ expect(warn).not.toHaveBeenCalled();+ });++ test('a rejected stale check does not warn about bypassing readiness', async () => {+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});+ const first = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi+ .fn<() => Promise<ApplyAgentConnectionsResult>>()+ .mockReturnValueOnce(first.promise)+ .mockResolvedValueOnce(result(terminalAgentSnapshot(['cursor'])));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} />+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ </>,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await userEvent.click(screen.getByRole('button', { name: 'Open cursor' }));+ await waitFor(() => expect(rawDispatch).toHaveBeenCalledWith('cursor', input));+ await act(async () => first.reject(new Error('offline')));++ expect(warn).not.toHaveBeenCalled();+ expect(rawDispatch).toHaveBeenCalledTimes(1);+ expect(recordHandoff).toHaveBeenCalledExactlyOnceWith({+ target: 'claude-code',+ host: 'web',+ outcome: 'error',+ reason: 'superseded',+ ts: expect.any(String),+ });+ });++ test('a newer request supersedes an in-flight setup save', async () => {+ const save = deferred<ApplyAgentConnectionsResult>();+ const applyConnections = vi+ .fn<() => Promise<ApplyAgentConnectionsResult>>()+ .mockResolvedValueOnce(result(terminalAgentSnapshot()))+ .mockReturnValueOnce(save.promise)+ .mockResolvedValueOnce(result(terminalAgentSnapshot(['cursor'])));+ const rawDispatch = vi.fn(async () => ({ ok: true as const }));+ renderGate(+ applyConnections,+ <>+ <GateHarness rawDispatch={rawDispatch} />+ <GateHarness rawDispatch={rawDispatch} target="cursor" />+ </>,+ );++ await userEvent.click(screen.getByRole('button', { name: 'Open claude-code' }));+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Save changes' }));+ await waitFor(() => expect(applyConnections).toHaveBeenCalledTimes(2));+ fireEvent.click(screen.getByRole('button', { name: 'Open cursor', hidden: true }));++ await waitFor(() => expect(rawDispatch).toHaveBeenCalledWith('cursor', input));+ await act(async () => save.resolve(result(terminalAgentSnapshot(['claude']))));++ expect(rawDispatch).toHaveBeenCalledTimes(1);+ });+});diff --git a/packages/app/src/components/handoff/ExternalHandoffGate.tsx b/packages/app/src/components/handoff/ExternalHandoffGate.tsxnew file mode 100644index 000000000..a8e495944--- /dev/null+++ b/packages/app/src/components/handoff/ExternalHandoffGate.tsx@@ -0,0 +1,457 @@+import {+ type AgentId,+ agentIdForHandoffTarget,+ type HandoffOutcome,+ type HandoffTarget,+ KNOWN_HANDOFF_TARGETS,+} from '@inkeep/open-knowledge-core';+import { useLingui } from '@lingui/react/macro';+import { createContext, type ReactNode, use, useEffect, useRef, useState } from 'react';+import {+ type AgentConnection,+ type ApplyConnections,+ ConfigureConnectionDialog,+ connectionsFromSnapshot,+ hasPairedConnectionRows,+ intentsForParts,+} from '@/components/settings/AgentConnectionDialogs';+import { deriveRowConnectionStatus } from '@/components/settings/agent-connection-status';+import {+ type ApplyAgentConnectionsResult,+ applyAgentConnectionIntents,+} from '@/lib/agent-connections';+import { loadBoolPref, saveBoolPref } from '@/lib/bool-pref';+import { recordHandoff } from '@/lib/handoff/telemetry';+import { scopedStorageKey } from '@/lib/storage-scope';+import type { HandoffDispatchOptions } from './useHandoffDispatch';++type RawHandoffDispatch = () => Promise<HandoffOutcome>;++interface PendingHandoff {+ readonly id: number;+ readonly target: HandoffTarget;+ readonly projectDir: string;+ readonly rawDispatch: RawHandoffDispatch;+ readonly returnFocus: HTMLElement | null;+ readonly restoreFocus: (() => void) | undefined;+ readonly resolve: (outcome: HandoffOutcome) => void;+ readonly reject: (reason?: unknown) => void;+ readonly check: {+ readonly controller: AbortController;+ statusTimer: ReturnType<typeof setTimeout> | null;+ deadlineTimer: ReturnType<typeof setTimeout> | null;+ };+}++type GateState =+ | { readonly kind: 'idle' }+ | {+ readonly kind: 'checking';+ readonly id: number;+ readonly target: HandoffTarget;+ readonly visible: boolean;+ }+ | {+ readonly kind: 'setup';+ readonly pending: PendingHandoff;+ readonly connection: AgentConnection;+ };++interface ExternalHandoffGateDispatchOptions extends HandoffDispatchOptions {+ readonly projectDir: string;+}++interface ExternalHandoffGateValue {+ dispatch: (+ target: HandoffTarget,+ rawDispatch: RawHandoffDispatch,+ options: ExternalHandoffGateDispatchOptions,+ ) => Promise<HandoffOutcome>;+}++const ExternalHandoffGateContext = createContext<ExternalHandoffGateValue | null>(null);+const DISMISSED_SETUP_KEY = 'ok-external-handoff-setup-dismissed-v1';+const CHECK_STATUS_DELAY_MS = 250;+const CHECK_DEADLINE_MS = 10_000;++type ExternalReadiness =+ | { readonly kind: 'ready' }+ | { readonly kind: 'setup'; readonly connection: AgentConnection }+ | {+ readonly kind: 'unknown';+ readonly cause:+ | 'unavailable'+ | 'read-failed'+ | 'missing-snapshot'+ | 'unknown-status'+ | 'missing-row';+ readonly detail?: string;+ };++type ReadinessBypassCause =+ | 'unmapped-target'+ | 'read-threw'+ | 'read-timeout'+ | 'check-threw'+ | 'derivation-threw'+ | Extract<ExternalReadiness, { readonly kind: 'unknown' }>['cause'];++function diagnosticDetail(value: unknown): string | undefined {+ const raw = value instanceof Error ? value.message : typeof value === 'string' ? value : null;+ const normalized = raw?.replace(/\s+/g, ' ').trim().slice(0, 240);+ return normalized || undefined;+}++function warnReadinessBypass(+ target: HandoffTarget,+ cause: ReadinessBypassCause,+ rawDetail?: unknown,+): void {+ const detail = diagnosticDetail(rawDetail);+ console.warn('[handoff] external readiness check bypassed', {+ target,+ cause,+ ...(detail === undefined ? {} : { detail }),+ });+}++function stopCheck(pending: PendingHandoff): void {+ const { check } = pending;+ if (check.statusTimer !== null) clearTimeout(check.statusTimer);+ if (check.deadlineTimer !== null) clearTimeout(check.deadlineTimer);+ check.statusTimer = null;+ check.deadlineTimer = null;+ check.controller.abort();+}++function settleWithoutDispatch(+ pending: PendingHandoff,+ reason: 'setup-canceled' | 'superseded',+): void {+ recordWithoutDispatch(pending.target, reason);+ pending.resolve({ ok: false, reason });+}++function recordWithoutDispatch(+ target: HandoffTarget,+ reason: 'not-installed' | 'setup-canceled' | 'superseded',+): void {+ void recordHandoff({+ target,+ host: typeof window !== 'undefined' && window.okDesktop != null ? 'electron' : 'web',+ outcome: 'error',+ reason,+ ts: new Date().toISOString(),+ });+}++function externalReadiness(+ agentId: AgentId,+ result: ApplyAgentConnectionsResult,+): ExternalReadiness {+ if (result.unavailable === true)+ return { kind: 'unknown', cause: 'unavailable', detail: result.error };+ if (!result.ok) return { kind: 'unknown', cause: 'read-failed', detail: result.error };+ if (result.snapshot === null) return { kind: 'unknown', cause: 'missing-snapshot' };+ const status = deriveRowConnectionStatus({+ agentId,+ mode: 'external',+ snapshot: result.snapshot,+ detected: true,+ });+ if (status === 'connected') return { kind: 'ready' };+ if (status !== 'not-connected')+ return { kind: 'unknown', cause: 'unknown-status', detail: status };++ const connection = connectionsFromSnapshot(result.snapshot, {+ forceDetected: [agentId],+ }).find((entry) => entry.id === agentId);+ return connection === undefined+ ? { kind: 'unknown', cause: 'missing-row' }+ : { kind: 'setup', connection };+}++function activeHTMLElement(): HTMLElement | null {+ if (typeof document === 'undefined') return null;+ let active = document.activeElement;+ while (active instanceof HTMLElement) {+ const nested = active.shadowRoot?.activeElement;+ if (!(nested instanceof HTMLElement)) break;+ active = nested;+ }+ return active instanceof HTMLElement ? active : null;+}++function setupPreferenceKey(target: HandoffTarget, projectDir: string): string {+ return `${scopedStorageKey(DISMISSED_SETUP_KEY, projectDir)}:${target}`;+}++export function setupPromptDismissed(target: HandoffTarget, projectDir: string): boolean {+ return loadBoolPref(setupPreferenceKey(target, projectDir));+}++export function setSetupPromptDismissed(+ target: HandoffTarget,+ projectDir: string,+ dismissed: boolean,+): void {+ saveBoolPref(setupPreferenceKey(target, projectDir), dismissed);+}++export function ExternalHandoffGateProvider({+ children,+ applyConnections = applyAgentConnectionIntents,+}: {+ children: ReactNode;+ applyConnections?: ApplyConnections;+}) {+ const { t } = useLingui();+ const [state, setState] = useState<GateState>({ kind: 'idle' });+ const [rememberSkip, setRememberSkip] = useState(false);+ const activeRef = useRef<PendingHandoff | null>(null);+ const requestVersion = useRef(0);++ function isActive(pending: PendingHandoff): boolean {+ return activeRef.current?.id === pending.id;+ }++ function detach(pending: PendingHandoff): boolean {+ if (!isActive(pending)) return false;+ activeRef.current = null;+ stopCheck(pending);+ setState({ kind: 'idle' });+ return true;+ }++ useEffect(+ () => () => {+ const pending = activeRef.current;+ if (pending === null) return;+ activeRef.current = null;+ stopCheck(pending);+ settleWithoutDispatch(pending, 'superseded');+ },+ [],+ );++ function cancel(pending: PendingHandoff): void {+ if (!detach(pending)) return;+ settleWithoutDispatch(pending, 'setup-canceled');+ }++ function runReady(pending: PendingHandoff): void {+ if (!detach(pending)) return;+ void Promise.resolve().then(pending.rawDispatch).then(pending.resolve, pending.reject);+ }++ function refreshReturnFocus(pending: PendingHandoff): PendingHandoff {+ const activeElement = activeHTMLElement();+ if (activeElement === null || activeElement === document.body || !activeElement.isConnected) {+ return pending;+ }+ const refreshed = { ...pending, returnFocus: activeElement };+ activeRef.current = refreshed;+ return refreshed;+ }++ async function check(pending: PendingHandoff): Promise<void> {+ const agentId = agentIdForHandoffTarget(pending.target);+ if (agentId === undefined) {+ warnReadinessBypass(pending.target, 'unmapped-target');+ runReady(pending);+ return;+ }++ let result: ApplyAgentConnectionsResult;+ try {+ result = await applyConnections([], { webSignal: pending.check.controller.signal });+ } catch (error) {+ if (!isActive(pending)) return;+ warnReadinessBypass(pending.target, 'read-threw', error);+ runReady(pending);+ return;+ }+ if (!isActive(pending)) return;+ let readiness: ExternalReadiness;+ try {+ readiness = externalReadiness(agentId, result);+ } catch (error) {+ warnReadinessBypass(pending.target, 'derivation-threw', error);+ runReady(pending);+ return;+ }+ if (readiness.kind !== 'setup') {+ if (readiness.kind === 'unknown') {+ warnReadinessBypass(pending.target, readiness.cause, readiness.detail);+ }+ runReady(pending);+ return;+ }+ stopCheck(pending);+ setRememberSkip(false);+ setState({+ kind: 'setup',+ pending: refreshReturnFocus(pending),+ connection: readiness.connection,+ });+ }++ function dispatch(+ target: HandoffTarget,+ rawDispatch: RawHandoffDispatch,+ options: ExternalHandoffGateDispatchOptions,+ ): Promise<HandoffOutcome> {+ const superseded = activeRef.current;+ if (superseded !== null && detach(superseded)) {+ settleWithoutDispatch(superseded, 'superseded');+ }++ const id = ++requestVersion.current;+ if (options.installState.installed === false) {+ recordWithoutDispatch(target, 'not-installed');+ return Promise.resolve({ ok: false, reason: 'not-installed' });+ }+ return new Promise<HandoffOutcome>((resolve, reject) => {+ const activeElement = activeHTMLElement();+ const pending: PendingHandoff = {+ id,+ target,+ projectDir: options.projectDir,+ rawDispatch,+ returnFocus: activeElement?.tagName === 'BODY' ? null : activeElement,+ restoreFocus: options.restoreFocus,+ resolve,+ reject,+ check: {+ controller: new AbortController(),+ statusTimer: null,+ deadlineTimer: null,+ },+ };+ activeRef.current = pending;+ if (setupPromptDismissed(target, options.projectDir)) {+ runReady(pending);+ return;+ }+ setState({ kind: 'checking', id, target, visible: false });+ pending.check.statusTimer = setTimeout(() => {+ if (!isActive(pending)) return;+ setState((current) =>+ current.kind === 'checking' && current.id === id+ ? { ...current, visible: true }+ : current,+ );+ }, CHECK_STATUS_DELAY_MS);+ pending.check.deadlineTimer = setTimeout(() => {+ if (!isActive(pending)) return;+ warnReadinessBypass(pending.target, 'read-timeout');+ runReady(pending);+ }, CHECK_DEADLINE_MS);+ void check(pending).catch((error) => {+ if (!isActive(pending)) return;+ warnReadinessBypass(pending.target, 'check-threw', error);+ runReady(pending);+ });+ });+ }++ const setupState = state.kind === 'setup' ? state : null;+ const handoffLabel = setupState?.connection.label ?? '';+ const checkingLabel =+ state.kind === 'checking'+ ? (KNOWN_HANDOFF_TARGETS.find((target) => target.id === state.target)?.displayName ??+ state.target)+ : '';++ return (+ <ExternalHandoffGateContext value={{ dispatch }}>+ {children}+ {state.kind === 'checking' && state.visible ? (+ <div+ role="status"+ aria-live="polite"+ className="pointer-events-none fixed left-1/2 top-4 z-50 -translate-x-1/2 rounded-full border border-border bg-background px-4 py-2 text-sm text-foreground shadow-md"+ >+ {t`Checking connection to ${checkingLabel}…`}+ </div>+ ) : null}+ {setupState !== null ? (+ <ConfigureConnectionDialog+ key={setupState.pending.id}+ connection={setupState.connection}+ paired={hasPairedConnectionRows(setupState.connection.id)}+ open+ onOpenChange={(open) => {+ if (!open) cancel(setupState.pending);+ }}+ onCloseAutoFocus={(event) => {+ const returnFocus = setupState.pending.returnFocus;+ if (returnFocus?.isConnected === true) {+ event.preventDefault();+ returnFocus.focus();+ } else if (setupState.pending.restoreFocus !== undefined) {+ event.preventDefault();+ setupState.pending.restoreFocus();+ }+ }}+ validateSave={(parts) =>+ parts.projectMcp || parts.globalMcp+ ? null+ : t`To save this setup, turn on Project MCP server or Global MCP server.`+ }+ alternateAction={{+ label: t`Open ${handoffLabel}`,+ onClick: () => {+ if (rememberSkip) {+ setSetupPromptDismissed(+ setupState.pending.target,+ setupState.pending.projectDir,+ true,+ );+ }+ runReady(setupState.pending);+ },+ preference: {+ checked: rememberSkip,+ label: t`Don't ask again when opening this app without setup in this project`,+ onCheckedChange: setRememberSkip,+ },+ }}+ onSave={async (parts, alsoRemove) => {+ const result = await applyConnections(+ intentsForParts(setupState.connection, parts, alsoRemove),+ );+ if (!isActive(setupState.pending)) return result;+ if (!result.ok) return result;+ let readiness: ExternalReadiness;+ try {+ readiness = externalReadiness(setupState.connection.id, result);+ } catch (error) {+ warnReadinessBypass(setupState.pending.target, 'derivation-threw', error);+ return {+ kind: 'saved-not-ready',+ message: t`Changes were saved, but OpenKnowledge could not confirm a connection to ${handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again.`,+ };+ }+ if (readiness.kind !== 'ready') {+ return {+ kind: 'saved-not-ready',+ message: t`Changes were saved, but OpenKnowledge could not confirm a connection to ${handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again.`,+ };+ }+ runReady(setupState.pending);+ return result;+ }}+ />+ ) : null}+ </ExternalHandoffGateContext>+ );+}++export function useExternalHandoffGate(): ExternalHandoffGateValue {+ const value = use(ExternalHandoffGateContext);+ if (value === null) {+ throw new Error('useExternalHandoffGate must be used within <ExternalHandoffGateProvider />');+ }+ return value;+}diff --git a/packages/app/src/components/handoff/OpenInAgentContextSubmenu.gate.dom.test.tsx b/packages/app/src/components/handoff/OpenInAgentContextSubmenu.gate.dom.test.tsxnew file mode 100644index 000000000..47293b606--- /dev/null+++ b/packages/app/src/components/handoff/OpenInAgentContextSubmenu.gate.dom.test.tsx@@ -0,0 +1,146 @@+import type { HandoffTarget, InstallState } from '@inkeep/open-knowledge-core';+import * as actualLinguiMacro from '@lingui/react/macro';+import { cleanup, render, screen, waitFor } from '@testing-library/react';+import userEvent from '@testing-library/user-event';+import { type ReactNode, useState } from 'react';+import { afterEach, describe, expect, test, vi } from 'vitest';+import { Button } from '@/components/ui/button';+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuTrigger,+} from '@/components/ui/dropdown-menu';+import { TooltipProvider } from '@/components/ui/tooltip';+import { desktopEnabledKey, setAgentEnabled } from '@/lib/acp/enabled-agents';+import type { ApplyAgentConnectionsResult } from '@/lib/agent-connections';+import { renderLinguiTemplate } from '@/test-utils/lingui-mock';+import { terminalAgentSnapshot } from '../terminal-agent-connections.test-helper';++vi.doMock('@lingui/react/macro', () => ({+ ...actualLinguiMacro,+ Trans: ({ children }: { children: ReactNode }) => <>{children}</>,+ useLingui: () => ({ i18n: { locale: 'en' }, t: renderLinguiTemplate }),+}));++vi.doMock('next-themes', () => ({+ useTheme: () => ({ resolvedTheme: 'light' }),+}));++vi.doMock('@/lib/config-context', () => ({+ useConfigContext: () => ({ merged: null }),+}));++const openExternal = vi.fn(async () => ({ ok: true as const }));+const dispatchHandoff = vi.fn(async () => ({ ok: true as const }));+vi.doMock('@/lib/handoff/open-external', () => ({ openExternal }));+vi.doMock('@/lib/handoff/dispatch', () => ({ dispatchHandoff }));+vi.doMock('@/lib/handoff/telemetry', () => ({ recordHandoff: vi.fn(async () => undefined) }));++const { ExternalHandoffGateProvider } = await import('./ExternalHandoffGate');+const { OpenInAgentContextSubmenu } = await import('./OpenInAgentContextSubmenu');+const { useHandoffDispatch } = await import('./useHandoffDispatch');++const input = {+ docContext: { relativePath: 'notes/today.md' },+ docPath: '/project/notes/today.md',+ projectDir: '/project',+};++function states(codexInstalled: boolean): Record<HandoffTarget, InstallState> {+ return {+ 'claude-code': { installed: false, lastChecked: 1 },+ 'claude-cowork': { installed: false, lastChecked: 1 },+ codex: { installed: codexInstalled, lastChecked: 1 },+ cursor: { installed: false, lastChecked: 1 },+ };+}++function FileTreeMenu({ codexInstalled }: { codexInstalled: boolean }) {+ const [open, setOpen] = useState(true);+ const { dispatch } = useHandoffDispatch();+ return (+ <>+ <Button>File row</Button>+ <DropdownMenu open={open} onOpenChange={setOpen} modal={false}>+ <DropdownMenuTrigger asChild>+ <span aria-hidden="true" />+ </DropdownMenuTrigger>+ <DropdownMenuContent forceMount>+ <OpenInAgentContextSubmenu+ input={input}+ installStates={states(codexInstalled)}+ isElectronHost+ dispatch={dispatch}+ onBeforeLaunch={() => setOpen(false)}+ restoreFocus={() => screen.getByRole('button', { name: 'File row' }).focus()}+ />+ </DropdownMenuContent>+ </DropdownMenu>+ </>+ );+}++function renderFileTreeMenu(+ codexInstalled: boolean,+ applyConnections: () => Promise<ApplyAgentConnectionsResult>,+) {+ return render(+ <TooltipProvider>+ <ExternalHandoffGateProvider applyConnections={applyConnections}>+ <FileTreeMenu codexInstalled={codexInstalled} />+ </ExternalHandoffGateProvider>+ </TooltipProvider>,+ );+}++async function selectCodex() {+ await userEvent.hover(screen.getByRole('menuitem', { name: 'Open with AI' }));+ await waitFor(() => {+ expect(document.querySelector('[data-slot="dropdown-menu-sub-content"]')).toBeTruthy();+ });+ await userEvent.click(screen.getByRole('menuitem', { name: 'Open with AI ChatGPT Desktop' }));+}++describe('FileTree external handoff', () => {+ afterEach(() => {+ cleanup();+ vi.clearAllMocks();+ setAgentEnabled(desktopEnabledKey('codex'), undefined);+ });++ test('an explicitly enabled app that is absent opens its installer without showing setup', async () => {+ setAgentEnabled(desktopEnabledKey('codex'), true);+ const applyConnections = vi.fn(async () => ({+ ok: true,+ report: { actions: [], conflicts: [], withheld: [] },+ snapshot: terminalAgentSnapshot(),+ }));+ renderFileTreeMenu(false, applyConnections);++ await selectCodex();++ await waitFor(() => {+ expect(openExternal).toHaveBeenCalledWith('https://developers.openai.com/codex/app');+ });+ expect(screen.queryByRole('dialog')).toBeNull();+ expect(applyConnections).not.toHaveBeenCalled();+ expect(dispatchHandoff).not.toHaveBeenCalled();+ });++ test('canceling setup after the live submenu closes returns focus to the file row', async () => {+ const applyConnections = vi.fn(async () => ({+ ok: true,+ report: { actions: [], conflicts: [], withheld: [] },+ snapshot: terminalAgentSnapshot(),+ }));+ renderFileTreeMenu(true, applyConnections);++ await selectCodex();+ await screen.findByRole('dialog');+ await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));++ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ expect(document.activeElement).toBe(screen.getByRole('button', { name: 'File row' }));+ expect(dispatchHandoff).not.toHaveBeenCalled();+ });+});diff --git a/packages/app/src/components/handoff/OpenInAgentContextSubmenu.tsx b/packages/app/src/components/handoff/OpenInAgentContextSubmenu.tsxindex b8b3b6e27..6b5e92153 100644--- a/packages/app/src/components/handoff/OpenInAgentContextSubmenu.tsx+++ b/packages/app/src/components/handoff/OpenInAgentContextSubmenu.tsx@@ -37,6 +37,7 @@ import { useTerminalLaunch } from './TerminalLaunchContext';import { cliIconTargetId } from './terminal-cli-display';import {type HandoffDispatchInput,+ type HandoffDispatchOptions,openInstallUrl,startAgentThreadForInput,} from './useHandoffDispatch';@@ -53,8 +54,10 @@ interface OpenInAgentContextSubmenuProps {readonly dispatch: (target: HandoffTarget,input: HandoffDispatchInput,+ options: HandoffDispatchOptions,) => Promise<HandoffOutcome>;readonly onBeforeLaunch?: () => void;+ readonly restoreFocus?: () => void;}export function OpenInAgentContextSubmenu(props: OpenInAgentContextSubmenuProps): ReactNode {@@ -64,7 +67,7 @@ export function OpenInAgentContextSubmenu(props: OpenInAgentContextSubmenuProps)const registeredAgents = useRegisteredAgents();const overrides = useEnabledOverrides();if (isEmbedded) return null;- const { input, installStates, dispatch, onBeforeLaunch } = props;+ const { input, installStates, dispatch, onBeforeLaunch, restoreFocus } = props;const inputMissing = input === null;const hint = contextRowHint(inputMissing);@@ -189,7 +192,10 @@ export function OpenInAgentContextSubmenu(props: OpenInAgentContextSubmenuProps)void openInstallUrl(target);return;}- void dispatch(target.id, input);+ void dispatch(target.id, input, {+ installState: installStates[target.id],+ restoreFocus,+ });}}data-testid={`file-tree-open-in-${target.id}`}aria-label={accessibleLabel}diff --git a/packages/app/src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx b/packages/app/src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsxindex d65948a73..c45b5cc5b 100644--- a/packages/app/src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx+++ b/packages/app/src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx@@ -37,6 +37,7 @@ import { useTerminalLaunch } from './TerminalLaunchContext';import { cliIconTargetId } from './terminal-cli-display';import {type HandoffDispatchInput,+ type HandoffDispatchOptions,openInstallUrl,startAgentThreadForInput,} from './useHandoffDispatch';@@ -52,6 +53,7 @@ interface OpenInAgentEmptySpaceSubmenuProps {readonly dispatch: (target: HandoffTarget,input: HandoffDispatchInput,+ options: HandoffDispatchOptions,) => Promise<HandoffOutcome>;}@@ -185,7 +187,9 @@ export function OpenInAgentEmptySpaceSubmenu(props: OpenInAgentEmptySpaceSubmenuvoid openInstallUrl(target);return;}- void dispatch(target.id, input);+ void dispatch(target.id, input, {+ installState: installStates[target.id],+ });}}data-testid={`empty-space-open-in-${target.id}`}aria-label={accessibleLabel}diff --git a/packages/app/src/components/handoff/OpenInAgentMenu.dom.test.tsx b/packages/app/src/components/handoff/OpenInAgentMenu.dom.test.tsxdeleted file mode 100644index 36e2bb30a..000000000--- a/packages/app/src/components/handoff/OpenInAgentMenu.dom.test.tsx+++ /dev/null@@ -1,293 +0,0 @@-import * as actualLinguiMacro from '@lingui/react/macro';-import { cleanup, render, screen, waitFor } from '@testing-library/react';-import userEvent from '@testing-library/user-event';-import type { ReactNode } from 'react';-import { afterEach, describe, expect, test, vi } from 'vitest';-import { TooltipProvider } from '@/components/ui/tooltip';-import { reloadEnabledAgentsFromStorage } from '@/lib/acp/enabled-agents';-import { registerAgent, reloadRegisteredAgentsFromStorage } from '@/lib/acp/registered-agents';-import { TerminalLaunchProvider } from './TerminalLaunchContext';-import type { HandoffDispatchInput } from './useHandoffDispatch';--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] ?? ''}`, ''),- }),-}));--const refreshCalls: string[] = [];-const dispatchCalls: Array<{ target: string; input: HandoffDispatchInput }> = [];-const launchCalls: Array<{ input: HandoffDispatchInput; cli: string }> = [];-let states: Record<string, { installed: boolean | null; lastChecked?: number }> = {};--vi.doMock('./useInstalledAgents', () => ({- useInstalledAgents: () => ({- states,- refresh: () => {- refreshCalls.push('refresh');- return Promise.resolve();- },- }),-}));--vi.doMock('./useHandoffDispatch', () => ({- useHandoffDispatch: () => ({- dispatch: (target: string, input: HandoffDispatchInput) => {- dispatchCalls.push({ target, input });- return Promise.resolve({ ok: true as const });- },- }),- composeThreadLaunchPrompt: (input: HandoffDispatchInput) =>- `thread-prompt:${input.docContext?.relativePath ?? 'none'}`,- startAgentThreadForInput: () => {},- openInstallUrl: () => Promise.resolve(),-}));--vi.doMock('@/lib/config-context', () => ({- useConfigContext: () => ({- merged: { appearance: { preview: { autoOpen: true } } },- }),-}));--vi.doMock('@/hooks/use-is-embedded', () => ({- useIsEmbedded: () => false,-}));--vi.doMock('./OpenInAgentMenuItem', () => ({- TargetIcon: () => null,-}));--const input: HandoffDispatchInput = {- docContext: { relativePath: 'docs/notes.md' },- projectDir: '/tmp/project',- docPath: '/tmp/project/docs/notes.md',-};--async function renderMenu(menuInput: HandoffDispatchInput | null = input) {- const { OpenInAgentMenu } = await import('./OpenInAgentMenu');- render(- <TooltipProvider>- <OpenInAgentMenu input={menuInput} />- </TooltipProvider>,- );-}--async function renderMenuWithTerminal(menuInput: HandoffDispatchInput | null = input) {- const { OpenInAgentMenu } = await import('./OpenInAgentMenu');- render(- <TooltipProvider>- <TerminalLaunchProvider- value={{- launchInTerminal: (i, cli) => launchCalls.push({ input: i, cli }),- installedClis: {},- }}- >- <OpenInAgentMenu input={menuInput} />- </TerminalLaunchProvider>- </TooltipProvider>,- );-}--async function openMenu() {- await userEvent.click(screen.getByTestId('open-in-agent-trigger'));- await waitFor(() => {- expect(screen.getByTestId('open-in-agent-menu')).toBeTruthy();- });-}--describe('OpenInAgentMenu runtime behavior', () => {- afterEach(() => {- cleanup();- refreshCalls.length = 0;- dispatchCalls.length = 0;- launchCalls.length = 0;- states = {};- if (typeof localStorage !== 'undefined') localStorage.clear();- reloadRegisteredAgentsFromStorage();- reloadEnabledAgentsFromStorage();- });-- test('exports the shell component', async () => {- const mod = await import('./OpenInAgentMenu');- expect(typeof mod.OpenInAgentMenu).toBe('function');- });-- test('trigger uses visible Open with AI text as its accessible name', async () => {- await renderMenu();-- const trigger = screen.getByTestId('open-in-agent-trigger');- expect(trigger.textContent).toContain('Open with AI');- expect(trigger.getAttribute('aria-label')).toBeNull();- expect(screen.getByRole('button', { name: 'Open with AI' })).toBe(trigger);- });-- test('disabled trigger still keeps the visible Open with AI label when no input exists', async () => {- await renderMenu(null);-- const trigger = screen.getByRole('button', { name: 'Open with AI' }) as HTMLButtonElement;- expect(trigger.disabled).toBe(true);- expect(trigger.getAttribute('aria-label')).toBeNull();- });-- test('open refreshes install state and renders only installed visible targets', async () => {- states = {- 'claude-cowork': { installed: true, lastChecked: 1 },- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },- };- await renderMenu();- await openMenu();-- expect(refreshCalls).toEqual(['refresh']);- expect(screen.getByTestId('open-in-agent-item-claude-code')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-item-codex')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-item-cursor')).toBeTruthy();- expect(screen.queryByTestId('open-in-agent-item-claude-cowork')).toBeNull();-- expect(screen.getByTestId('open-in-agent-desktop-label').textContent).toContain(- 'External apps',- );-- await userEvent.click(screen.getByTestId('open-in-agent-item-codex'));- expect(dispatchCalls).toStrictEqual([{ target: 'codex', input }]);- });-- test('typing an instruction threads it onto the dispatched input', async () => {- states = {- 'claude-cowork': { installed: true, lastChecked: 1 },- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },- };- await renderMenu();- await openMenu();-- await userEvent.type(screen.getByTestId('open-in-agent-instruction'), 'Tighten the intro');- await userEvent.click(screen.getByTestId('open-in-agent-item-cursor'));-- expect(dispatchCalls).toStrictEqual([- { target: 'cursor', input: { ...input, instruction: 'Tighten the intro' } },- ]);- });-- test('instruction input resets to empty when the popover is reopened', async () => {- states = {- 'claude-cowork': { installed: true, lastChecked: 1 },- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },- };- await renderMenu();- await openMenu();- await userEvent.type(screen.getByTestId('open-in-agent-instruction'), 'Tighten the intro');- await userEvent.click(screen.getByTestId('open-in-agent-item-codex'));-- await userEvent.click(screen.getByTestId('open-in-agent-trigger'));- await waitFor(() => {- expect(screen.getByTestId('open-in-agent-menu')).toBeTruthy();- });- expect((screen.getByTestId('open-in-agent-instruction') as HTMLInputElement).value).toBe('');- });-- test('a whitespace-only instruction is treated as empty (no instruction key)', async () => {- states = {- 'claude-cowork': { installed: true, lastChecked: 1 },- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },- };- await renderMenu();- await openMenu();-- await userEvent.type(screen.getByTestId('open-in-agent-instruction'), ' ');- await userEvent.click(screen.getByTestId('open-in-agent-item-codex'));- expect(dispatchCalls).toStrictEqual([{ target: 'codex', input }]);- });-- test('shows an enabled in-app agent (no claude.ai fallback) when nothing is installed', async () => {- registerAgent({ source: 'registry', id: 'claude-acp', name: 'Claude Agent' });- states = {- 'claude-cowork': { installed: false, lastChecked: 1 },- 'claude-code': { installed: false, lastChecked: 1 },- codex: { installed: false, lastChecked: 1 },- cursor: { installed: false, lastChecked: 1 },- };- await renderMenu();- await openMenu();-- expect(screen.getByTestId('open-in-agent-thread-start-claude-acp')).toBeTruthy();- expect(screen.queryByTestId('open-in-agent-desktop-label')).toBeNull();- expect(screen.queryByTestId('open-in-agent-terminal-label')).toBeNull();- expect(screen.queryByTestId('open-in-agent-claude-web-fallback')).toBeNull();- });-- test('names the In-app section "In app" and carries no maturity badge', async () => {- registerAgent({ source: 'registry', id: 'claude-acp', name: 'Claude Agent' });- await renderMenu();- await openMenu();-- const inApp = screen.getByRole('group', { name: 'In app' });- expect(inApp.textContent).not.toContain('Beta');- });-- test('hides the In-app section when no agent is enabled, keeping Configure agents', async () => {- states = {- 'claude-cowork': { installed: null },- 'claude-code': { installed: null },- codex: { installed: null },- cursor: { installed: null },- };- await renderMenu();- await openMenu();-- expect(screen.queryByTestId('open-in-agent-thread-label')).toBeNull();- expect(screen.getByTestId('open-in-agent-settings')).toBeTruthy();- });-- test('groups detected desktop apps under External apps and the CLI launch under Terminal', async () => {- states = {- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },- };- await renderMenuWithTerminal();- await openMenu();-- expect(screen.getByText('External apps')).toBeTruthy();- expect(screen.getByText('Terminal')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-claude')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-codex')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-cursor')).toBeTruthy();- expect(screen.getByRole('group', { name: 'External apps' })).toBeTruthy();- expect(screen.getByRole('group', { name: 'Terminal' })).toBeTruthy();- const terminalLabel = screen.getByTestId('open-in-agent-terminal-label');- const desktopLabel = screen.getByTestId('open-in-agent-desktop-label');- expect(- terminalLabel.compareDocumentPosition(desktopLabel) & Node.DOCUMENT_POSITION_FOLLOWING,- ).toBeTruthy();- });-- test('terminal row launches via the terminal launcher with the menu input', async () => {- states = { 'claude-code': { installed: true, lastChecked: 1 } };- await renderMenuWithTerminal();- await openMenu();-- await userEvent.click(screen.getByTestId('open-in-agent-terminal-claude'));- expect(launchCalls).toEqual([{ input, cli: 'claude' }]);- expect(dispatchCalls).toEqual([]);- });-- test('omits the Terminal section but keeps External apps when no terminal launcher is present', async () => {- states = { 'claude-code': { installed: true, lastChecked: 1 } };- await renderMenu();- await openMenu();-- expect(screen.getByText('External apps')).toBeTruthy();- expect(screen.queryByText('Terminal')).toBeNull();- expect(screen.queryByTestId('open-in-agent-terminal-claude')).toBeNull();- });-});diff --git a/packages/app/src/components/handoff/OpenInAgentMenu.non-modal.dom.test.tsx b/packages/app/src/components/handoff/OpenInAgentMenu.non-modal.dom.test.tsxdeleted file mode 100644index 3fd2d17d1..000000000--- a/packages/app/src/components/handoff/OpenInAgentMenu.non-modal.dom.test.tsx+++ /dev/null@@ -1,58 +0,0 @@-import { cleanup, render, screen, waitFor } from '@testing-library/react';-import { afterEach, describe, expect, test, vi } from 'vitest';-import type { HandoffDispatchInput } from './useHandoffDispatch';--type WindowGlobals = { NodeFilter?: typeof NodeFilter };-type GlobalWithDomShims = typeof globalThis &- WindowGlobals & { window?: WindowGlobals; ResizeObserver?: unknown };-const globalWithDomShims = globalThis as GlobalWithDomShims;-if (- globalWithDomShims.NodeFilter === undefined &&- globalWithDomShims.window?.NodeFilter !== undefined-) {- globalWithDomShims.NodeFilter = globalWithDomShims.window.NodeFilter;-}-if (globalWithDomShims.ResizeObserver === undefined) {- class NoopResizeObserver {- observe() {}- unobserve() {}- disconnect() {}- }- globalWithDomShims.ResizeObserver = NoopResizeObserver;-}--vi.doMock('./useInstalledAgents', () => ({- useInstalledAgents: () => ({ states: {}, refresh: () => {} }),-}));-vi.doMock('./useHandoffDispatch', () => ({- useHandoffDispatch: () => ({ dispatch: async () => {}, reinstallCoworkSkill: async () => {} }),- composeThreadLaunchPrompt: (input: HandoffDispatchInput) =>- `thread-prompt:${input.docContext?.relativePath ?? 'none'}`,- startAgentThreadForInput: () => {},- openInstallUrl: () => Promise.resolve(),-}));--const { OpenInAgentMenu } = await import('./OpenInAgentMenu');--const FILE_INPUT: HandoffDispatchInput = {- docContext: null,- projectDir: '/tmp/project',- docPath: 'note.md',-};--describe('OpenInAgentMenu non-modal contract', () => {- afterEach(() => {- cleanup();- document.body.style.pointerEvents = '';- });-- test('opening the menu does not disable outside pointer events (body stays interactive)', async () => {- render(<OpenInAgentMenu input={FILE_INPUT} open onOpenChange={() => {}} />);-- await waitFor(() => {- expect(screen.queryByTestId('open-in-agent-menu')).not.toBeNull();- });-- expect(document.body.style.pointerEvents).not.toBe('none');- });-});diff --git a/packages/app/src/components/handoff/OpenInAgentMenu.tsx b/packages/app/src/components/handoff/OpenInAgentMenu.tsxdeleted file mode 100644index 4dde30362..000000000--- a/packages/app/src/components/handoff/OpenInAgentMenu.tsx+++ /dev/null@@ -1,342 +0,0 @@-import {- type HandoffTarget,- type InstallState,- type TargetData,- TERMINAL_CLI_IDS,- TERMINAL_CLIS,- type TerminalCli,-} from '@inkeep/open-knowledge-core';-import { Trans, useLingui } from '@lingui/react/macro';-import { ArrowUpRight, SlidersHorizontal, Sparkles } from 'lucide-react';-import { type ReactNode, useEffect, useEffectEvent, useRef, useState } from 'react';-import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';-import { Separator } from '@/components/ui/separator';-import { useIsEmbedded } from '@/hooks/use-is-embedded';-import {- isDesktopTargetEnabled,- isInAppAgentEnabled,- isTerminalCliEnabled,-} from '@/lib/acp/agent-visibility';-import { type EnabledOverrides, useEnabledOverrides } from '@/lib/acp/enabled-agents';-import { type RegisteredAgent, useRegisteredAgents } from '@/lib/acp/registered-agents';-import { VISIBLE_TARGETS } from '@/lib/handoff/targets';-import { openAgentSettings } from '@/lib/use-settings-route';-import { DesktopAppName } from './agent-launcher-labels';-import { TargetIcon } from './OpenInAgentMenuItem';-import { type TerminalLaunchContextValue, useTerminalLaunch } from './TerminalLaunchContext';-import { cliIconTargetId } from './terminal-cli-display';-import {- type HandoffDispatchInput,- openInstallUrl,- startAgentThreadForInput,- useHandoffDispatch,-} from './useHandoffDispatch';-import { useInstalledAgents } from './useInstalledAgents';--interface OpenInAgentMenuProps {- readonly input: HandoffDispatchInput | null;- readonly open?: boolean;- readonly onOpenChange?: (open: boolean) => void;-}--interface OpenWithAiPanelProps {- readonly overrides: EnabledOverrides;- readonly installStates: Record<HandoffTarget, InstallState>;- readonly terminalLaunch: TerminalLaunchContextValue | null;- readonly disabled: boolean;- readonly registeredAgents: readonly RegisteredAgent[];- readonly onPick: (target: TargetData, instruction: string) => void;- readonly onLaunchTerminal: (cli: TerminalCli, instruction: string) => void;- readonly onStartThreadWith: (- agent: { source: 'registry' | 'custom'; id: string },- instruction: string,- ) => void;- readonly onOpenSettings: () => void;-}--function OpenWithAiPanel({- overrides,- installStates,- terminalLaunch,- disabled,- registeredAgents,- onPick,- onLaunchTerminal,- onStartThreadWith,- onOpenSettings,-}: OpenWithAiPanelProps): ReactNode {- const { t } = useLingui();- const [instruction, setInstruction] = useState('');-- const enabledTargets = VISIBLE_TARGETS.filter((target) =>- isDesktopTargetEnabled(overrides, target.id, installStates[target.id]?.installed),- );- const enabledRegisteredAgents = registeredAgents.filter((agent) =>- isInAppAgentEnabled(overrides, agent.source, agent.id, true, agent.supported),- );-- const terminalClis = terminalLaunch- ? TERMINAL_CLI_IDS.filter((cli) =>- isTerminalCliEnabled(overrides, cli, terminalLaunch.installedClis),- )- : [];- const showDesktopSection = enabledTargets.length > 0;- const showTerminalSection = terminalClis.length > 0;- const showThreadSection = enabledRegisteredAgents.length > 0;-- return (- <div className="flex flex-col gap-1">- <div className="px-2 pt-2 pb-1.5">- <Input- value={instruction}- onChange={(event) => setInstruction(event.target.value)}- placeholder={t`What should the AI do? (optional)`}- aria-label={t`Instruction for the AI`}- data-testid="open-in-agent-instruction"- />- </div>- {}- <div className="flex max-h-72 flex-col gap-0.5 overflow-y-auto subtle-scrollbar">- {}- {showThreadSection ? (- <fieldset className="m-0 flex min-w-0 flex-col gap-0.5 border-0 p-0">- <legend- className="px-1.5 py-1 font-medium text-muted-foreground text-xs"- data-testid="open-in-agent-thread-label"- >- <Trans>In app</Trans>- </legend>- {enabledRegisteredAgents.map((agent) => {- const agentName = agent.name;- return (- <Button- key={`${agent.source}:${agent.id}`}- type="button"- variant="ghost"- className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"- disabled={disabled}- data-testid={`open-in-agent-thread-start-${agent.id}`}- aria-label={t`Ask ${agentName}`}- onClick={() =>- onStartThreadWith({ source: agent.source, id: agent.id }, instruction)- }- >- <RegisteredAgentIcon- agentId={agent.id}- iconUrl={agent.iconUrl}- className="size-4"- />- <span>{agentName}</span>- </Button>- );- })}- </fieldset>- ) : null}- {showThreadSection && (showTerminalSection || showDesktopSection) ? (- <Separator className="my-1" />- ) : null}- <div className="flex flex-col gap-0.5">- {showTerminalSection ? (- <fieldset className="m-0 flex min-w-0 flex-col gap-0.5 border-0 p-0">- <legend- className="px-1.5 py-1 font-medium text-muted-foreground text-xs"- data-testid="open-in-agent-terminal-label"- >- <Trans>Terminal</Trans>- </legend>- {terminalClis.map((cli) => {- const { displayName } = TERMINAL_CLIS[cli];- return (- <Button- key={cli}- type="button"- variant="ghost"- className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"- disabled={disabled}- data-testid={`open-in-agent-terminal-${cli}`}- aria-label={t`${displayName} CLI`}- onClick={() => onLaunchTerminal(cli, instruction)}- >- <TargetIcon id={cliIconTargetId(cli)} aria-hidden="true" />- <span>{displayName}</span>- </Button>- );- })}- </fieldset>- ) : null}- {showDesktopSection ? (- <>- {showTerminalSection ? <Separator className="my-1" /> : null}- <fieldset className="m-0 flex min-w-0 flex-col gap-0.5 border-0 p-0">- <legend- className="flex items-center gap-1.5 px-1.5 py-1 font-medium text-muted-foreground text-xs"- data-testid="open-in-agent-desktop-label"- >- <Trans>External apps</Trans>- <ArrowUpRight aria-hidden="true" className="size-3" />- </legend>- {enabledTargets.map((target) => {- const { displayName } = target;- return (- <Button- key={target.id}- type="button"- variant="ghost"- className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"- disabled={disabled}- data-testid={`open-in-agent-item-${target.id}`}- aria-label={t`Open with AI ${displayName} Desktop`}- onClick={() => onPick(target, instruction)}- >- <TargetIcon id={target.id} aria-hidden="true" />- <span>- <DesktopAppName displayName={displayName} />- </span>- </Button>- );- })}- </fieldset>- </>- ) : null}- </div>- {}- {showThreadSection || showTerminalSection || showDesktopSection ? (- <Separator className="my-1" />- ) : null}- <Button- type="button"- variant="ghost"- className="h-auto w-full justify-start gap-1.5 rounded-md px-1.5 py-1 font-normal text-foreground"- data-testid="open-in-agent-settings"- onClick={onOpenSettings}- >- <SlidersHorizontal className="size-4 text-muted-foreground" aria-hidden="true" />- <span>{t`Configure agents`}</span>- </Button>- </div>- </div>- );-}--export function OpenInAgentMenu({ input, open, onOpenChange }: OpenInAgentMenuProps): ReactNode {- const { t } = useLingui();- const { states, refresh } = useInstalledAgents();- const { dispatch } = useHandoffDispatch();- const terminalLaunch = useTerminalLaunch();- const registeredAgents = useRegisteredAgents();- const overrides = useEnabledOverrides();- const [internalOpen, setInternalOpen] = useState(false);- const sawPointerDownRef = useRef(false);- const isEmbedded = useIsEmbedded();-- const menuOpen = open ?? internalOpen;-- const refreshOnOpen = useEffectEvent(() => {- void refresh();- });- useEffect(() => {- if (menuOpen) refreshOnOpen();- }, [menuOpen]);-- if (isEmbedded) return null;-- const isElectronHost = typeof window !== 'undefined' && window.okDesktop != null;-- const handleOpenChange = (next: boolean): void => {- if (open === undefined) setInternalOpen(next);- onOpenChange?.(next);- };-- const triggerDisabled = input === null;-- const inputWith = (instruction: string): HandoffDispatchInput | null => {- if (input === null) return null;- const trimmed = instruction.trim();- return trimmed ? { ...input, instruction: trimmed } : input;- };-- const handlePick = (target: TargetData, instruction: string): void => {- const next = inputWith(instruction);- if (next === null) return;- if (states[target.id]?.installed !== true) {- void openInstallUrl(target);- handleOpenChange(false);- return;- }- void dispatch(target.id, next);- handleOpenChange(false);- };-- const handleLaunchTerminal = (cli: TerminalCli, instruction: string): void => {- const next = inputWith(instruction);- if (next === null || terminalLaunch === null) return;- terminalLaunch.launchInTerminal(next, cli);- handleOpenChange(false);- };-- const handleStartThreadWith = (- agent: { source: 'registry' | 'custom'; id: string },- instruction: string,- ): void => {- const next = inputWith(instruction);- if (next === null) return;- startAgentThreadForInput(next, { agent });- handleOpenChange(false);- };-- return (- <Popover open={menuOpen} onOpenChange={handleOpenChange}>- <PopoverTrigger asChild>- <Button- variant="ghost"- size="sm"- disabled={triggerDisabled}- className="gap-1.5 text-muted-foreground px-1.5"- data-testid="open-in-agent-trigger"- onPointerDown={- isElectronHost- ? () => {- sawPointerDownRef.current = true;- }- : undefined- }- onClick={- isElectronHost- ? () => {- if (sawPointerDownRef.current) {- sawPointerDownRef.current = false;- return;- }- handleOpenChange(true);- }- : undefined- }- >- <Sparkles className="size-3.5" aria-hidden="true" />- <Trans>Open with AI</Trans>- </Button>- </PopoverTrigger>- <PopoverContent- align="end"- className="p-1"- aria-label={t`Open with AI`}- data-testid="open-in-agent-menu"- >- <OpenWithAiPanel- overrides={overrides}- installStates={states}- terminalLaunch={terminalLaunch}- disabled={input === null}- registeredAgents={registeredAgents}- onPick={handlePick}- onLaunchTerminal={handleLaunchTerminal}- onStartThreadWith={handleStartThreadWith}- onOpenSettings={openAgentSettings}- />- </PopoverContent>- </Popover>- );-}diff --git a/packages/app/src/components/handoff/OpenInAgentTerminalRow.dom.test.tsx b/packages/app/src/components/handoff/OpenInAgentTerminalRow.dom.test.tsxdeleted file mode 100644index 4c22ed26b..000000000--- a/packages/app/src/components/handoff/OpenInAgentTerminalRow.dom.test.tsx+++ /dev/null@@ -1,143 +0,0 @@-import type { TerminalCli } from '@inkeep/open-knowledge-core';-import { cleanup, render, screen, waitFor } from '@testing-library/react';-import userEvent from '@testing-library/user-event';-import type { ReactNode } from 'react';-import { afterEach, describe, expect, test, vi } from 'vitest';-import type { HandoffDispatchInput } from './useHandoffDispatch';--const input: HandoffDispatchInput = {- docContext: { relativePath: 'docs/notes.md' },- projectDir: '/tmp/project',- docPath: '/tmp/project/docs/notes.md',-};--const installedStates = {- 'claude-cowork': { installed: true, lastChecked: 1 },- 'claude-code': { installed: true, lastChecked: 1 },- codex: { installed: true, lastChecked: 1 },- cursor: { installed: true, lastChecked: 1 },-};--import * as actualLinguiMacro from '@lingui/react/macro';--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] ?? ''}`, ''),- }),-}));--vi.doMock('./useInstalledAgents', () => ({- useInstalledAgents: () => ({ states: installedStates, refresh: () => Promise.resolve() }),-}));--vi.doMock('./useHandoffDispatch', () => ({- useHandoffDispatch: () => ({ dispatch: () => Promise.resolve({ ok: true as const }) }),- composeThreadLaunchPrompt: (dispatchInput: HandoffDispatchInput) =>- `thread-prompt:${dispatchInput.docContext?.relativePath ?? 'none'}`,- startAgentThreadForInput: () => {},- openInstallUrl: () => Promise.resolve(),-}));--vi.doMock('@/lib/config-context', () => ({- useConfigContext: () => ({ merged: { appearance: { preview: { autoOpen: true } } } }),-}));--vi.doMock('@/hooks/use-is-embedded', () => ({ useIsEmbedded: () => false }));--vi.doMock('./OpenInAgentMenuItem', () => ({ TargetIcon: () => null }));--const { OpenInAgentMenu } = await import('./OpenInAgentMenu');-const { TerminalLaunchProvider } = await import('./TerminalLaunchContext');--type LaunchCall = { input: HandoffDispatchInput; cli: TerminalCli };--async function renderMenu(opts: {- launcher: ((input: HandoffDispatchInput, cli: TerminalCli) => void) | null;- menuInput?: HandoffDispatchInput | null;- installedClis?: Partial<Record<TerminalCli, boolean>>;-}) {- const menuInput = 'menuInput' in opts ? opts.menuInput : input;- render(- <TerminalLaunchProvider- value={- opts.launcher- ? { launchInTerminal: opts.launcher, installedClis: opts.installedClis ?? {} }- : null- }- >- <OpenInAgentMenu input={menuInput ?? null} />- </TerminalLaunchProvider>,- );-}--async function openMenu() {- await userEvent.click(screen.getByTestId('open-in-agent-trigger'));- await waitFor(() => {- expect(screen.getByTestId('open-in-agent-menu')).toBeTruthy();- });-}--describe('Open-with-AI Terminal CLI rows', () => {- afterEach(() => {- cleanup();- });-- test('renders a row per CLI when the launcher is available (desktop)', async () => {- await renderMenu({ launcher: () => {} });- await openMenu();- expect(screen.getByTestId('open-in-agent-terminal-claude')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-codex')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-cursor')).toBeTruthy();- });-- test('gates rows through the real probe map: probed-absent hidden (Claude included), detected shown', async () => {- await renderMenu({- launcher: () => {},- installedClis: {- claude: false,- codex: true,- opencode: false,- cursor: false,- pi: false,- antigravity: false,- },- });- await openMenu();- expect(screen.queryByTestId('open-in-agent-terminal-claude')).toBeNull();- expect(screen.getByTestId('open-in-agent-terminal-codex')).toBeTruthy();- expect(screen.queryByTestId('open-in-agent-terminal-antigravity')).toBeNull();- expect(screen.queryByTestId('open-in-agent-terminal-cursor')).toBeNull();- });-- test('fails open before the probe resolves (empty map) — installed CLIs stay launchable', async () => {- await renderMenu({ launcher: () => {}, installedClis: {} });- await openMenu();- expect(screen.getByTestId('open-in-agent-terminal-claude')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-codex')).toBeTruthy();- expect(screen.getByTestId('open-in-agent-terminal-cursor')).toBeTruthy();- });-- test('hides the terminal section when no launcher is available (web host)', async () => {- await renderMenu({ launcher: null });- await openMenu();- expect(screen.queryByTestId('open-in-agent-terminal-claude')).toBeNull();- expect(screen.queryByTestId('open-in-agent-terminal-codex')).toBeNull();- });-- test('clicking a row hands the bare handoff input + chosen CLI to the launcher', async () => {- const calls: LaunchCall[] = [];- await renderMenu({ launcher: (i, cli) => calls.push({ input: i, cli }) });- await openMenu();- await userEvent.click(screen.getByTestId('open-in-agent-terminal-codex'));- expect(calls).toStrictEqual([{ input, cli: 'codex' }]);- });-- test('the trigger is disabled when there is no handoff input', async () => {- await renderMenu({ launcher: () => {}, menuInput: null });- const trigger = screen.getByTestId('open-in-agent-trigger') as HTMLButtonElement;- expect(trigger.disabled).toBe(true);- });-});diff --git a/packages/app/src/components/handoff/useHandoffDispatch.test.ts b/packages/app/src/components/handoff/useHandoffDispatch.test.tsindex 92572c309..d2ae99d1a 100644--- a/packages/app/src/components/handoff/useHandoffDispatch.test.ts+++ b/packages/app/src/components/handoff/useHandoffDispatch.test.ts@@ -428,6 +428,26 @@ describe('runHandoffDispatch — failure path', () => {expect(dispatch).toHaveBeenCalledTimes(3);});+ test('a superseded retry tells the user it was replaced without recording a second transport', async () => {+ const { runHandoffDispatch } = await import('./useHandoffDispatch');+ const deps = buildDeps({+ dispatchHandoff: vi.fn(+ async () => ({ ok: false, reason: 'dispatch-error' }) as HandoffOutcome,+ ),+ });+ const retryDispatch = vi.fn(+ async () => ({ ok: false, reason: 'superseded' }) as HandoffOutcome,+ );++ await runHandoffDispatch('cursor', sampleInput(), deps, 1, retryDispatch);+ deps.toast.errorCalls[0]?.action?.onClick();++ await vi.waitFor(() => expect(deps.toast.errorCalls).toHaveLength(2));+ expect(deps.toast.errorCalls[1]?.message).toBe('A newer handoff replaced this retry.');+ expect(deps.recordHandoff).toHaveBeenCalledTimes(1);+ expect(deps.dispatchHandoff).toHaveBeenCalledTimes(1);+ });+test('web-host-cursor-unsupported reason flows through to telemetry + toast', async () => {const { runHandoffDispatch } = await import('./useHandoffDispatch');const deps = buildDeps({diff --git a/packages/app/src/components/handoff/useHandoffDispatch.ts b/packages/app/src/components/handoff/useHandoffDispatch.tsindex 270761167..d647ada9e 100644--- a/packages/app/src/components/handoff/useHandoffDispatch.ts+++ b/packages/app/src/components/handoff/useHandoffDispatch.ts@@ -17,6 +17,7 @@ import {type HandoffPayload,type HandoffScope,type HandoffTarget,+ type InstallState,OK_TERMINAL_SURFACE_PREAMBLE,OK_THREAD_SURFACE_PREAMBLE,type PromptTransport,@@ -44,6 +45,7 @@ import {type HandoffStatsLine,} from '@/lib/handoff/telemetry';import { docNameToRelativePath, joinWorkspacePath, type Workspace } from '@/lib/workspace-paths';+import { useExternalHandoffGate } from './ExternalHandoffGate';import { requestAgentThreadLaunch } from './thread-launch-events';import '@/lib/desktop-bridge-types';@@ -488,6 +490,7 @@ export async function runHandoffDispatch(input: HandoffDispatchInput,deps: HandoffDispatchDeps,attempt = 1,+ retryDispatch?: (nextAttempt: number) => Promise<HandoffOutcome>,): Promise<HandoffOutcome> {if (target === 'claude-cowork' && attempt === 1) {let installOutcome: EnsureCoworkSkillOutcome;@@ -539,7 +542,13 @@ export async function runHandoffDispatch(action: {label,onClick: () => {- void runHandoffDispatch(target, input, deps, attempt + 1);+ void (+ retryDispatch?.(attempt + 1) ?? runHandoffDispatch(target, input, deps, attempt + 1)+ ).then((retryOutcome) => {+ if (!retryOutcome.ok && retryOutcome.reason === 'superseded') {+ deps.toast.error(t`A newer handoff replaced this retry.`);+ }+ });},},});@@ -585,16 +594,43 @@ export function defaultHandoffDispatchDeps(): HandoffDispatchDeps {}interface UseHandoffDispatchResult {- dispatch: (target: HandoffTarget, input: HandoffDispatchInput) => Promise<HandoffOutcome>;+ dispatch: (+ target: HandoffTarget,+ input: HandoffDispatchInput,+ options: HandoffDispatchOptions,+ ) => Promise<HandoffOutcome>;reinstallCoworkSkill: () => Promise<EnsureCoworkSkillOutcome>;}+export interface HandoffDispatchOptions {+ readonly installState: InstallState;+ readonly restoreFocus?: () => void;+}+export function useHandoffDispatch(): UseHandoffDispatchResult {const { merged } = useConfigContext();+ const gate = useExternalHandoffGate();const autoOpen = merged?.appearance?.preview?.autoOpen ?? true;+ const dispatchAttempt = (+ target: HandoffTarget,+ input: HandoffDispatchInput,+ attempt: number,+ options: HandoffDispatchOptions,+ ): Promise<HandoffOutcome> =>+ gate.dispatch(+ target,+ () =>+ runHandoffDispatch(+ target,+ input,+ { ...defaultHandoffDispatchDeps(), autoOpen },+ attempt,+ (nextAttempt) => dispatchAttempt(target, input, nextAttempt, options),+ ),+ { ...options, projectDir: input.projectDir },+ );return {- dispatch: (target, input) =>- runHandoffDispatch(target, input, { ...defaultHandoffDispatchDeps(), autoOpen }),+ dispatch: (target, input, options) => dispatchAttempt(target, input, 1, options),reinstallCoworkSkill,};}diff --git a/packages/app/src/components/settings/AgentConnectionDialogs.dom.test.tsx b/packages/app/src/components/settings/AgentConnectionDialogs.dom.test.tsxindex f98643d11..f64f91052 100644--- a/packages/app/src/components/settings/AgentConnectionDialogs.dom.test.tsx+++ b/packages/app/src/components/settings/AgentConnectionDialogs.dom.test.tsx@@ -177,6 +177,25 @@ async function renderRemoveDialog(afterEach(cleanup);+test('Escape dismisses a connection tip without discarding an unsaved settings choice', async () => {+ const user = userEvent.setup();+ await renderConfigureDialog(async () => result(snapshotWith()), 'claude');+ const checkbox = screen.getByRole('checkbox', { name: /project mcp server/i });+ await user.click(checkbox);+ const unsavedChoice = checkbox.getAttribute('aria-checked');+ const informationTrigger = screen.getAllByRole('button', { name: 'More information' })[0];+ informationTrigger.focus();+ await screen.findByRole('tooltip');++ await user.keyboard('{Escape}');++ await waitFor(() => expect(screen.queryByRole('tooltip')).toBeNull());+ expect(screen.getByRole('dialog')).toBeTruthy();+ expect(checkbox.getAttribute('aria-checked')).toBe(unsavedChoice);+ await user.keyboard('{Escape}');+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+});+describe('a rejected write never seals the dialog', () => {test('a save that rejects surfaces the failure and leaves the dialog closable', async () => {const user = userEvent.setup();diff --git a/packages/app/src/components/settings/AgentConnectionDialogs.tsx b/packages/app/src/components/settings/AgentConnectionDialogs.tsxindex a420cf9a5..9de8981e0 100644--- a/packages/app/src/components/settings/AgentConnectionDialogs.tsx+++ b/packages/app/src/components/settings/AgentConnectionDialogs.tsx@@ -21,7 +21,7 @@ import {import { plural } from '@lingui/core/macro';import { Trans, useLingui } from '@lingui/react/macro';import { Folder, Info, Monitor, Sparkles, TriangleAlert, X } from 'lucide-react';-import { type ReactNode, useEffect, useRef, useState } from 'react';+import { type ReactNode, useEffect, useId, useRef, useState } from 'react';import { AgentBrandIcon } from '@/components/AgentIconCluster';import {AlertDialog,@@ -134,8 +134,13 @@ export interface AgentConnection {export type ApplyConnections = (intents: readonly ApplyIntent[],+ options?: { readonly webSignal?: AbortSignal },) => Promise<ApplyAgentConnectionsResult>;+type ConnectionSaveResult =+ | ApplyAgentConnectionsResult+ | { readonly kind: 'saved-not-ready'; readonly message: string };+function partForCell(cell: ConnectionCell): ConnectionPart | null {if (cell.scope === 'project' && cell.piece === 'mcp') return 'projectMcp';if (cell.scope === 'project' && cell.piece === 'skill') return 'projectSkill';@@ -740,6 +745,8 @@ export function ConfigureConnectionDialog({onSave,paired = false,onCloseAutoFocus,+ validateSave,+ alternateAction,}: {connection: AgentConnection | null;open: boolean;@@ -747,16 +754,29 @@ export function ConfigureConnectionDialog({onSave: (parts: ConnectionParts,alsoRemove?: readonly SatisfierId[],- ) => Promise<ApplyAgentConnectionsResult>;+ ) => Promise<ConnectionSaveResult>;paired?: boolean;onCloseAutoFocus?: (event: Event) => void;+ validateSave?: (parts: ConnectionParts) => string | null;+ alternateAction?: {+ label: ReactNode;+ onClick: () => void;+ preference?: {+ checked: boolean;+ label: ReactNode;+ onCheckedChange: (checked: boolean) => void;+ };+ };}) {const { i18n, t } = useLingui();+ const alternatePreferenceId = useId();const [draft, setDraft] = useState<ConnectionParts>(() =>connection === null ? EMPTY_PARTS : defaultPartsForConnection(connection),);const [saving, setSaving] = useState(false);const [saveFailure, setSaveFailure] = useState<ApplyAgentConnectionsResult | null>(null);+ const [savedNotReady, setSavedNotReady] = useState<string | null>(null);+ const [validationFailure, setValidationFailure] = useState<string | null>(null);const [sharedChoice, setSharedChoice] = useState<SharedRemovalChoice | null>(null);const overwriting =connection !== null &&@@ -767,6 +787,8 @@ export function ConfigureConnectionDialog({function setPart(part: ConnectionPart, checked: boolean) {setDraft((current) => ({ ...current, [part]: checked }));+ setValidationFailure(null);+ setSavedNotReady(null);setSharedChoice(null);}@@ -878,6 +900,14 @@ export function ConfigureConnectionDialog({) : null}{sharedChoice !== null ? (<SharedRemovalNote choice={sharedChoice} />+ ) : validationFailure !== null ? (+ <p role="alert" className="text-sm text-destructive">+ {validationFailure}+ </p>+ ) : savedNotReady !== null ? (+ <p role="status" className="text-sm text-muted-foreground">+ {savedNotReady}+ </p>) : saveFailure !== null && connection !== null ? (<ApplyFailureAlert result={saveFailure} connection={connection} />) : null}@@ -899,6 +929,33 @@ export function ConfigureConnectionDialog({><Trans>Cancel</Trans></Button>+ {alternateAction === undefined ? null : (+ <div className="flex flex-col items-start gap-2 sm:items-end">+ {alternateAction.preference === undefined ? null : (+ <div className="flex items-center gap-2">+ <Checkbox+ id={alternatePreferenceId}+ checked={alternateAction.preference.checked}+ disabled={saving}+ onCheckedChange={(checked) =>+ alternateAction.preference?.onCheckedChange(checked === true)+ }+ />+ <Label htmlFor={alternatePreferenceId} className="cursor-pointer text-sm">+ {alternateAction.preference.label}+ </Label>+ </div>+ )}+ <Button+ variant="ghost"+ className="font-mono uppercase"+ disabled={saving}+ onClick={alternateAction.onClick}+ >+ {alternateAction.label}+ </Button>+ </div>+ )}<Buttonvariant={overwriting || removingCount > 0 ? 'destructive' : 'default'}className="font-mono uppercase"@@ -906,12 +963,23 @@ export function ConfigureConnectionDialog({saving || (sharedChoice === null ? addingCount + removingCount === 0 : !widenable)}onClick={() => {+ const validationMessage = validateSave?.(draft) ?? null;+ if (validationMessage !== null) {+ setValidationFailure(validationMessage);+ return;+ }setSaving(true);+ setValidationFailure(null);setSaveFailure(null);+ setSavedNotReady(null);const widen = sharedChoice?.peerSatisfierIds;setSharedChoice(null);void onSave(draft, widen).then((result) => {+ if ('kind' in result) {+ setSavedNotReady(result.message);+ return;+ }if (result.ok) {onOpenChange(false);return;diff --git a/packages/app/src/components/settings/AgentConnectionsSection.dom.test.tsx b/packages/app/src/components/settings/AgentConnectionsSection.dom.test.tsxindex d3c115503..2c40e86b6 100644--- a/packages/app/src/components/settings/AgentConnectionsSection.dom.test.tsx+++ b/packages/app/src/components/settings/AgentConnectionsSection.dom.test.tsx@@ -28,6 +28,7 @@ import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';import { TooltipProvider } from '@/components/ui/tooltip';import type { AgentCatalog } from '@/lib/acp/catalog';import type { ApplyAgentConnectionsResult } from '@/lib/agent-connections';+import { scopedStorageKey } from '@/lib/storage-scope';import { renderLinguiTemplate } from '@/test-utils/lingui-mock';const backing = new Map<string, string>();@@ -113,6 +114,10 @@ vi.doMock('@/lib/acp/catalog', async (importOriginal) => ({}));let states: Record<string, InstallState> = {};+let projectDir = '/project';+vi.doMock('@/lib/use-workspace', () => ({+ useWorkspace: () => ({ contentDir: projectDir, pathSeparator: '/' }),+}));vi.doMock('@/components/handoff/useInstalledAgents', () => ({useInstalledAgents: () => ({ states, refresh: () => Promise.resolve() }),}));@@ -244,6 +249,7 @@ function renderSection(beforeEach(() => {localStorage.clear();+ projectDir = '/project';reloadRegisteredAgentsFromStorage();reloadEnabledAgentsFromStorage();fetchCatalog = () => Promise.resolve(catalog);@@ -1008,6 +1014,38 @@ describe('AgentConnectionsSection — connection status and action', () => {reloadEnabledAgentsFromStorage();}+ test('a skipped external app can resume setup checks for this project alone', async () => {+ const key = (target: string, dir: string) =>+ `${scopedStorageKey('ok-external-handoff-setup-dismissed-v1', dir)}:${target}`;+ localStorage.setItem(key('cursor', '/project'), 'true');+ localStorage.setItem(key('claude-code', '/project'), 'true');+ localStorage.setItem(key('cursor', '/other-project'), 'true');+ states = { ...states, cursor: { installed: true } } as Record<string, InstallState>;+ renderSection(async () => result(snapshotWith()));++ const cursorRow = await screen.findByTestId('configure-agents-desktop-row-cursor');+ const resetCursor = within(cursorRow).getByRole('button', {+ name: 'Show prompts again for Cursor in this project',+ });+ expect(resetCursor.textContent).toBe('Show prompts again');+ await userEvent.click(resetCursor);++ expect(+ within(cursorRow).queryByRole('button', {+ name: 'Show prompts again for Cursor in this project',+ }),+ ).toBeNull();+ expect(localStorage.getItem(key('cursor', '/project'))).toBeNull();+ expect(localStorage.getItem(key('cursor', '/other-project'))).toBe('true');+ expect(localStorage.getItem(key('claude-code', '/project'))).toBe('true');+ expect(+ within(await screen.findByTestId('configure-agents-desktop-row-claude-code')).getByRole(+ 'button',+ { name: 'Show prompts again for Claude in this project' },+ ),+ ).toBeTruthy();+ });+test('a connectable CLI with its MCP entry reads Connected and offers Manage', async () => {const snapshot = snapshotWith([satisfierId('claude', 'mcp', 'project')]);renderSection(async () => result(snapshot));diff --git a/packages/app/src/components/settings/AgentConnectionsSection.tsx b/packages/app/src/components/settings/AgentConnectionsSection.tsxindex 49e9d6c1b..64362c6f7 100644--- a/packages/app/src/components/settings/AgentConnectionsSection.tsx+++ b/packages/app/src/components/settings/AgentConnectionsSection.tsx@@ -17,6 +17,10 @@ import { useQuery } from '@tanstack/react-query';import { ArrowUpRight, Check, Search, TriangleAlert, WifiOff } from 'lucide-react';import { type ReactNode, useEffect, useEffectEvent, useRef, useState } from 'react';import { RegisteredAgentIcon } from '@/components/acp/RegisteredAgentIcon';+import {+ setSetupPromptDismissed,+ setupPromptDismissed,+} from '@/components/handoff/ExternalHandoffGate';import { TargetIcon } from '@/components/handoff/OpenInAgentMenuItem';import { useTerminalLaunch } from '@/components/handoff/TerminalLaunchContext';import { cliIconTargetId } from '@/components/handoff/terminal-cli-display';@@ -56,6 +60,7 @@ import {} from '@/lib/agent-connections';import { followupHintText } from '@/lib/agent-followup-hint';import { VISIBLE_TARGETS } from '@/lib/handoff/targets';+import { useWorkspace } from '@/lib/use-workspace';import {type ApplyConnections,allAvailableCellsChecked,@@ -146,6 +151,34 @@ function AgentRow({);}+function ResetHandoffSetupPrompt({+ target,+ projectDir,+ displayName,+}: {+ target: HandoffTarget;+ projectDir: string;+ displayName: string;+}): ReactNode {+ const { t } = useLingui();+ const [dismissed, setDismissed] = useState(() => setupPromptDismissed(target, projectDir));+ if (!dismissed) return null;+ return (+ <Button+ variant="ghost"+ size="sm"+ className="shrink-0 font-mono uppercase"+ aria-label={t`Show prompts again for ${displayName} in this project`}+ onClick={() => {+ setSetupPromptDismissed(target, projectDir, false);+ setDismissed(setupPromptDismissed(target, projectDir));+ }}+ >+ {t`Show prompts again`}+ </Button>+ );+}+function isToggleLocked(presence: RowPresence, enabled: boolean): boolean {return presence === 'absent' && !enabled;}@@ -475,6 +508,7 @@ export function AgentConnectionsSection({const registered = useRegisteredAgents();const { states, refresh } = useInstalledAgents();const terminalLaunch = useTerminalLaunch();+ const workspace = useWorkspace();const [query, setQuery] = useState('');const [showInAppOverflow, setShowInAppOverflow] = useState(false);const [showTerminalOverflow, setShowTerminalOverflow] = useState(false);@@ -966,7 +1000,19 @@ export function AgentConnectionsSection({: undefined}status={status}- action={action}+ action={+ <>+ {action}+ {workspace === null ? null : (+ <ResetHandoffSetupPrompt+ key={`${workspace.contentDir}:${target.id}`}+ target={target.id}+ projectDir={workspace.contentDir}+ displayName={displayName}+ />+ )}+ </>+ }checked={enabled}disabled={isToggleLocked(presence, enabled)}ariaLabel={t`Enable ${displayName} Desktop`}diff --git a/packages/app/src/lib/agent-connections.test.ts b/packages/app/src/lib/agent-connections.test.tsindex d4109f4ee..cce224353 100644--- a/packages/app/src/lib/agent-connections.test.ts+++ b/packages/app/src/lib/agent-connections.test.ts@@ -98,6 +98,23 @@ describe('applyAgentConnectionIntents', () => {expect(result.snapshot).toEqual(SNAPSHOT);});+ test('forwards the caller web AbortSignal to the local-web fetch', async () => {+ vi.stubGlobal('window', {});+ const controller = new AbortController();+ const fetch = vi.fn(+ async (_input: RequestInfo | URL, _init?: RequestInit) =>+ new Response(+ JSON.stringify({ actions: [], conflicts: [], withheld: [], snapshot: SNAPSHOT }),+ { status: 200, headers: { 'Content-Type': 'application/json' } },+ ),+ );+ vi.stubGlobal('fetch', fetch);+ const result = await applyAgentConnectionIntents([], { webSignal: controller.signal });++ expect(result.ok).toBe(true);+ expect(fetch.mock.calls[0]?.[1]?.signal).toBe(controller.signal);+ });+test('keeps the post-apply snapshot when the host reports a planning conflict', async () => {vi.stubGlobal('window', {});vi.stubGlobal(@@ -192,6 +209,19 @@ describe('applyAgentConnectionIntents', () => {});describe('what a refused desktop apply carries back', () => {+ test('an older desktop bridge without agent integrations fails closed', async () => {+ const fetch = vi.fn();+ vi.stubGlobal('window', { okDesktop: { shell: {} } });+ vi.stubGlobal('fetch', fetch);++ const result = await applyAgentConnectionIntents([]);++ expect(result.ok).toBe(false);+ expect(result.snapshot).toBeNull();+ expect(result.error).toBeTruthy();+ expect(fetch).not.toHaveBeenCalled();+ });+test('keeps the host error text and the unavailable flag', async () => {const apply = vi.fn(async () => ({ok: false as const,diff --git a/packages/app/src/lib/agent-connections.ts b/packages/app/src/lib/agent-connections.tsindex b42141a8f..03f9d01f8 100644--- a/packages/app/src/lib/agent-connections.ts+++ b/packages/app/src/lib/agent-connections.ts@@ -27,6 +27,7 @@ function reportSucceeded(report: ApplyReport): boolean {async function requestAgentConnectionIntents(intents: readonly ApplyIntent[],+ options?: { readonly webSignal?: AbortSignal },): Promise<ApplyAgentConnectionsResult> {const bridge = globalThis.window?.okDesktop;if (bridge !== undefined) {@@ -56,6 +57,7 @@ async function requestAgentConnectionIntents(method: 'POST',headers: { 'Content-Type': 'application/json', Accept: 'application/json' },body: JSON.stringify({ intents }),+ signal: options?.webSignal,});} catch (err) {return failure(err instanceof Error ? err.message : String(err));@@ -104,8 +106,9 @@ export function subscribeAgentConnectionChanges(export async function applyAgentConnectionIntents(intents: readonly ApplyIntent[],+ options?: { readonly webSignal?: AbortSignal },): Promise<ApplyAgentConnectionsResult> {- const result = await requestAgentConnectionIntents(intents);+ const result = await requestAgentConnectionIntents(intents, options);if (intents.length > 0) {const listeners = [...connectionChangeListeners];for (const listener of listeners) {diff --git a/packages/app/src/lib/helper-string-catalog-parity.test.ts b/packages/app/src/lib/helper-string-catalog-parity.test.tsindex 7d2ed593b..95144b923 100644--- a/packages/app/src/lib/helper-string-catalog-parity.test.ts+++ b/packages/app/src/lib/helper-string-catalog-parity.test.ts@@ -21,7 +21,7 @@ const MIGRATED_MODULES: ReadonlyArray<readonly [path: string, messages: number]>['src/hooks/use-folder-config.ts', 2],['src/lib/install-onboarding-toast.ts', 9],['src/lib/install-deep-link-listener.ts', 1],- ['src/components/handoff/useHandoffDispatch.ts', 7],+ ['src/components/handoff/useHandoffDispatch.ts', 8],['src/editor/utils/editor-strings.ts', 2],['src/editor/components/IconPickerInput.tsx', 4],['src/editor/components/ColorPickerInput.tsx', 2],diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex f28f47a43..a1fd8a076 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -1910,6 +1910,7 @@"IA1wNb": ["لم يفتح تطبيق Claude Desktop الملف. هل هو مثبَّت؟ (", ["msg"], ")"],"IA6JW2": ["يجري الاكتشاف"],"ICoNYz": ["يمكنك أيضًا إدارة هذا من الإعدادات."],+ "IDXn2n": ["لا تسألني مجددًا عند فتح هذا التطبيق دون إعداده في هذا المشروع"],"IFALcX": ["وصف ", ["field"]],"IFezUv": ["تعذّر إتمام المراجعة. أعد المحاولة."],"IIgshV": ["مقفلة"],@@ -2008,6 +2009,7 @@"JgaVnN": ["السماح بالوصول الخارجي"],"Jhj_lh": ["عدّل وجهة الرابط والمرساة وتسمية العرض."],"JhqycE": ["لا توجد ملفات أخيرة"],+ "Ji6oie": ["حلّت عملية تسليم أحدث محل إعادة المحاولة هذه."],"JkCD2u": ["المزامنة موقوفة مؤقتًا — ليس لديك إذن بالدفع إلى هذا المستودع"],"JlFcis": ["إرسال"],"JmfgFc": ["(شجرة عمل لـ ", ["0"], ")"],@@ -2212,6 +2214,7 @@["1"],")."],+ "LhVIxY": ["إظهار المطالبات مجددًا"],"LhWYpm": ["تُتتبَّع مسارات OK الأخرى في المستودع البعيد:"],"Li4U-T": ["اعرف المزيد عن ", ["title"]],"Lj_5Uv": ["الفحوصات المطلوبة تفشل"],@@ -2661,6 +2664,7 @@"PrVaZo": ["هل تلغي تثبيت OpenKnowledge؟"],"PrWQiT": ["نقل Terminal إلى اليمين"],"PrhzDE": ["تحريك لأعلى"],+ "Pur9o0": ["لحفظ هذا الإعداد، فعّل خادم MCP للمشروع أو خادم MCP عام."],"Pw5PTU": ["الأصل الخارجي"],"PxZCNM": ["خارج نطاق ما يودعه Open Knowledge."],"Q-DKvr": ["التثبيت من ", ["source"]],@@ -2870,8 +2874,8 @@["scopeLabel"]," هي نسخة مكررة زائدة: تم التحقق من أن الأصل لم يتغير. احذف تلك النسخة ثم أعد محاولة النقل."],- "Rah7yq": ["ما الذي ينبغي أن يفعله الذكاء الاصطناعي؟ (اختياري)"],"Rb1zMa": ["لا يوجد مقتطف"],+ "RcPztQ": ["افتح ", ["handoffLabel"]],"RcrskJ": ["بدا التنسيق خاطئًا"],"RduDYw": ["تعذّر دمج <0>", ["filePath"], "</0> هنا. اختر النسخة التي تريد الاحتفاظ بها."],"RfHNf8": ["فتح لوحة النشاط لـ ", ["tooltipName"]],@@ -3608,7 +3612,6 @@"Z8nach": ["فشل الرفع: ", ["0"]],"ZBF9fn": ["إدارة مجلدات المهارات"],"ZBZEkP": ["التُقطت قبل فتح مربع الحوار هذا، مع تحديد موضع المؤشر."],- "ZBt4rI": ["تعليمات للذكاء الاصطناعي"],"ZBxvV3": ["طرفية جديدة"],"ZDOq9A": ["ما تشاركه يُرسل إلى فريق OpenKnowledge."],"ZGVsOD": ["ادفع هذا الفرع إلى GitHub قبل المشاركة."],@@ -4885,10 +4888,12 @@"jBVUXo": ["تعذّر فتح الطرفية — يرجى المحاولة مرة أخرى."],"jC8Bv4": ["يجري إلقاء نظرة…"],"jC8LSZ": ["إعادة تعيين مرشحات العرض"],+ "jDejAI": ["جارٍ التحقق من الاتصال بـ ", ["checkingLabel"], "…"],"jDhTLC": ["اختيار أيقونة"],"jEVipR": ["تُقرأ هذه حاليًا من مجلد آخر. بعد الربط، ستُقرأ من ", ["keep"], " بدلًا منه."],"jEZ6Lf": ["مؤقت"],"jEdF24": ["صفحة مفقودة: ", ["linkTitle"], ". انقر لإنشائها."],+ "jIWP0P": ["إظهار المطالبات مجددًا لـ ", ["displayName"], " في هذا المشروع"],"jJdwCB": ["التراجع"],"jKd3AP": ["تعذّر تفعيل الطرفية: ", ["0"]],"jKeGuZ": ["يحذف مستندًا أو مجلدًا أو قالبًا أو مهارة أو أصلًا"],@@ -5880,6 +5885,11 @@"sqgz2k": ["تعذر على OpenKnowledge إكمال إعداد هذا المشروع. تم إنشاء شجرة العمل ولكن لم يتم فتحها."],+ "srbby-": [+ "تم حفظ التغييرات، لكن تعذّر على OpenKnowledge تأكيد الاتصال بـ ",+ ["handoffLabel"],+ ". تحقّق من إعدادات خادم MCP لهذا التطبيق، ثم اختر حفظ التغييرات للتحقق مرة أخرى."+ ],"srdlOs": ["المزامنة التلقائية متوقفة مؤقتًا: ليست لديك صلاحية الدفع إلى هذا المستودع. بدّل إلى تلقائي (سحب فقط) لمواصلة تلقي التحديثات."],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex 87193d529..9159f5465 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) غير مثبَّت أو غير موجود في PA#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "واجهة {displayName} السطرية"@@ -1444,6 +1443,10 @@ msgstr "جزء جديد على يسار {0}"msgid "a new pane to the right of {0}"msgstr "جزء جديد على يمين {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "حلّت عملية تسليم أحدث محل إعادة المحاولة هذه."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "اسأل واجهة {0} السطرية"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "اسأل {agentName}"@@ -2851,6 +2853,10 @@ msgstr "تُحفظ التغييرات تلقائيًا."msgid "Changes saved automatically."msgstr "حُفظت التغييرات تلقائيًا."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "تم حفظ التغييرات، لكن تعذّر على OpenKnowledge تأكيد الاتصال بـ {handoffLabel}. تحقّق من إعدادات خادم MCP لهذا التطبيق، ثم اختر حفظ التغييرات للتحقق مرة أخرى."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "ميزانية الأحرف لكل طلب فهرسة"@@ -2908,6 +2914,10 @@ msgstr "تحقق منه: {0}"msgid "Checking"msgstr "يجري التحقق"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "جارٍ التحقق من الاتصال بـ {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "يجري البحث عن الوكلاء"@@ -3542,7 +3552,6 @@ msgstr "تحذيرات الإعداد"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "لم تطابق استجابة المستندات الشكل المتوmsgid "Documents tagged <0>#{tagName}</0>"msgstr "مستندات موسومة بـ <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "لا تسألني مجددًا عند فتح هذا التطبيق دون إعداده في هذا المشروع"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "لا ترى <0>المهارات</0>؟ فعّل <1>الإعدادات <2/> القدرات <3/> تنفيذ الكود وإنشاء الملفات</1> أولًا."@@ -6066,7 +6079,6 @@ msgstr "خارجي"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "تطبيقات خارجية"@@ -7517,7 +7529,6 @@ msgstr "في مستند الفهرس: توجد الإدخالات تحت عنو#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "يُثبَّت في"msgid "installs:"msgstr "التثبيتات:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "تعليمات للذكاء الاصطناعي"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "فتح {displayName} Desktop"msgid "Open {docName}"msgstr "فتح {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "افتح {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "فتح {keyName} في المتصفح"@@ -10299,14 +10310,12 @@ msgstr "افتح بحث المحرر المرئي مع توسيع عناصر ا#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "الفتح بالذكاء الاصطناعي"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "الفتح بالذكاء الاصطناعي {displayName} Desktop"@@ -13351,6 +13360,14 @@ msgstr "إظهار اللوحة"msgid "Show panel ({panelShortcutLabel})"msgstr "إظهار اللوحة ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "إظهار المطالبات مجددًا"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "إظهار المطالبات مجددًا لـ {displayName} في هذا المشروع"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "إظهار الاستبدال"@@ -14316,7 +14333,6 @@ msgstr "قوالب متاحة"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "للقيام به"msgid "To do."msgstr "للقيام به."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "لحفظ هذا الإعداد، فعّل خادم MCP للمشروع أو خادم MCP عام."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "اليوم"@@ -16434,10 +16454,6 @@ msgstr "ما الفرق بين النسخ والروابط الرمزية؟"msgid "What is this knowledge base for?"msgstr "ما الغرض من قاعدة المعرفة هذه؟"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "ما الذي ينبغي أن يفعله الذكاء الاصطناعي؟ (اختياري)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "على ماذا نعمل؟"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 69f47d8f6..d5793e170 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -1616,6 +1616,7 @@"IA1wNb": ["Claude Desktop App ফাইলটি খোলেনি। সেটি কি ইনস্টল করা আছে? (", ["msg"], ")"],"IA6JW2": ["শনাক্ত করা হচ্ছে"],"ICoNYz": ["আপনি এটি Settings-এও সামলাতে পারেন।"],+ "IDXn2n": ["এই প্রকল্পে সেটআপ ছাড়া এই অ্যাপ খুললে আবার জিজ্ঞাসা করবেন না"],"IFALcX": [["field"], "-এর বিবরণ"],"IFezUv": ["নিরীক্ষা সম্পূর্ণ করা যায়নি। আবার চেষ্টা করুন।"],"IIgshV": ["লক করা"],@@ -1703,6 +1704,7 @@"JgaVnN": ["বাহ্যিক অ্যাক্সেস অনুমোদন করুন"],"Jhj_lh": ["লিংকের লক্ষ্য, অ্যাংকর ও প্রদর্শিত লেবেল বদলান।"],"JhqycE": ["কোনো সাম্প্রতিক ফাইল নেই"],+ "Ji6oie": ["একটি নতুন হ্যান্ডঅফ এই পুনরায় চেষ্টার জায়গা নিয়েছে।"],"JkCD2u": ["সিঙ্ক থেমে আছে — এই রিপোজিটরিতে পুশ করার অনুমতি আপনার নেই"],"JlFcis": ["পাঠান"],"JmfgFc": ["(", ["0"], "-এর একটি ওয়ার্কট্রি)"],@@ -1881,6 +1883,7 @@["1"],"।"],+ "LhVIxY": ["আবার নির্দেশনা দেখান"],"LhWYpm": ["অন্য OK পথগুলো আপস্ট্রিমে হিসাবভুক্ত:"],"Li4U-T": [["title"], " সম্পর্কে আরও জানুন"],"Lj_5Uv": ["আবশ্যিক চেক ব্যর্থ হচ্ছে"],@@ -2260,6 +2263,7 @@"PrVaZo": ["OpenKnowledge সরাবেন?"],"PrWQiT": ["Terminal ডান দিকে সরান"],"PrhzDE": ["উপরে সরান"],+ "Pur9o0": ["এই সেটআপ সংরক্ষণ করতে, প্রকল্প MCP সার্ভার বা গ্লোবাল MCP সার্ভার চালু করুন।"],"Pw5PTU": ["বাহ্যিক অরিজিন"],"PxZCNM": ["Open Knowledge যা কমিট করে তার বাইরে।"],"Q-DKvr": [["source"], " থেকে ইনস্টল করুন"],@@ -2430,8 +2434,8 @@["name"],"”-এর কপিটি একটি অপ্রয়োজনীয় নকল: যাচাই করে দেখা গেছে মূলটি অপরিবর্তিত আছে। ওই কপিটি মুছে ফেলুন, তারপর সরানোর কাজটি আবার চেষ্টা করুন।"],- "Rah7yq": ["AI-এর কী করা উচিত? (ঐচ্ছিক)"],"Rb1zMa": ["কোনো উদ্ধৃতাংশ নেই"],+ "RcPztQ": [["handoffLabel"], " খুলুন"],"RcrskJ": ["বিন্যাস ভুল মনে হয়েছে"],"RduDYw": ["<0>", ["filePath"], "</0> এখানে মার্জ করা যাবে না। কোন সংস্করণটি রাখবেন বেছে নিন।"],"RfHNf8": [["tooltipName"], "-এর জন্য কার্যকলাপ প্যানেল খুলুন"],@@ -3046,7 +3050,6 @@"Z8nach": ["আপলোড ব্যর্থ: ", ["0"]],"ZBF9fn": ["স্কিল ফোল্ডার সামলান"],"ZBZEkP": ["এই ডায়ালগের আগে নেওয়া, পয়েন্টার চিহ্নিত আছে।"],- "ZBt4rI": ["AI-এর জন্য নির্দেশ"],"ZBxvV3": ["নতুন টার্মিনাল"],"ZDOq9A": ["আপনি যা ভাগ করেন তা OpenKnowledge দলের কাছে পাঠানো হয়।"],"ZGVsOD": ["শেয়ার করার আগে এই ব্রাঞ্চটি GitHub-এ পুশ করুন।"],@@ -4109,6 +4112,7 @@"jBVUXo": ["টার্মিনাল খোলা যায়নি — অনুগ্রহ করে আবার চেষ্টা করুন।"],"jC8Bv4": ["চারপাশে দেখা হচ্ছে…"],"jC8LSZ": ["দৃশ্যের ছাঁকনি রিসেট করুন"],+ "jDejAI": [["checkingLabel"], "-এর সঙ্গে সংযোগ পরীক্ষা করা হচ্ছে…"],"jDhTLC": ["আইকন বেছে নিন"],"jEVipR": ["এগুলো বর্তমানে অন্য একটি ফোল্ডার থেকে পড়ে। লিংক করার পরে এগুলো পরিবর্তে ",@@ -4117,6 +4121,7 @@],"jEZ6Lf": ["সাময়িক"],"jEdF24": ["অনুপস্থিত পাতা: ", ["linkTitle"], "। তৈরি করতে ক্লিক করুন।"],+ "jIWP0P": ["আবার নির্দেশনা দেখান: এই প্রকল্পে ", ["displayName"], "-এর জন্য"],"jJdwCB": ["ফিরিয়ে নিন"],"jKd3AP": ["টার্মিনাল চালু করা যায়নি: ", ["0"]],"jKeGuZ": ["নথি, ফোল্ডার, টেমপ্লেট, স্কিল বা অ্যাসেট মুছে ফেলে"],@@ -4962,6 +4967,11 @@"sqgz2k": ["OpenKnowledge এই প্রজেক্টের সেটআপ শেষ করতে পারেনি। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"],+ "srbby-": [+ "পরিবর্তনগুলি সংরক্ষিত হয়েছে, কিন্তু OpenKnowledge ",+ ["handoffLabel"],+ "-এর সঙ্গে সংযোগ নিশ্চিত করতে পারেনি। এই অ্যাপের MCP সার্ভারের সেটিংস পরীক্ষা করুন, তারপর আবার পরীক্ষা করতে পরিবর্তনগুলি সংরক্ষণ করুন নির্বাচন করুন।"+ ],"srdlOs": ["স্বয়ংক্রিয় সিঙ্ক বিরতিতে আছে: এই রিপোজিটরিতে পুশ করার অনুমতি আপনার নেই। আপডেট পেতে থাকতে স্বয়ংক্রিয় (শুধু টানুন)-এ যান।"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex 4184f9ffb..f4e5e8f4a 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) ইনস্টল করা নেই বা আ#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1440,6 +1439,10 @@ msgstr "{0}-এর বাঁ পাশে একটি নতুন প্যাmsgid "a new pane to the right of {0}"msgstr "{0}-এর ডান পাশে একটি নতুন প্যান"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "একটি নতুন হ্যান্ডঅফ এই পুনরায় চেষ্টার জায়গা নিয়েছে।"+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2225,7 +2228,6 @@ msgstr "{0} CLI-কে জিজ্ঞেস করুন"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "{agentName}-কে জিজ্ঞেস করুন"@@ -2847,6 +2849,10 @@ msgstr "পরিবর্তনগুলি স্বয়ংক্রিযmsgid "Changes saved automatically."msgstr "পরিবর্তনগুলি স্বয়ংক্রিয়ভাবে সংরক্ষিত হয়েছে।"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "পরিবর্তনগুলি সংরক্ষিত হয়েছে, কিন্তু OpenKnowledge {handoffLabel}-এর সঙ্গে সংযোগ নিশ্চিত করতে পারেনি। এই অ্যাপের MCP সার্ভারের সেটিংস পরীক্ষা করুন, তারপর আবার পরীক্ষা করতে পরিবর্তনগুলি সংরক্ষণ করুন নির্বাচন করুন।"+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "প্রতি ইনডেক্সিং অনুরোধে অক্ষর বাজেট"@@ -2904,6 +2910,10 @@ msgstr "পরীক্ষা করেছেন: {0}"msgid "Checking"msgstr "পরীক্ষা করা হচ্ছে"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "{checkingLabel}-এর সঙ্গে সংযোগ পরীক্ষা করা হচ্ছে…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "এজেন্ট খোঁজা হচ্ছে"@@ -3538,7 +3548,6 @@ msgstr "কনফিগারেশন সতর্কতা"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5307,6 +5316,10 @@ msgstr "নথিগুলোর সাড়া প্রত্যাশিতmsgid "Documents tagged <0>#{tagName}</0>"msgstr "<0>#{tagName}</0> ট্যাগযুক্ত নথি"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "এই প্রকল্পে সেটআপ ছাড়া এই অ্যাপ খুললে আবার জিজ্ঞাসা করবেন না"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>Skills</0> দেখতে পাচ্ছেন না? আগে <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> চালু করুন।"@@ -6062,7 +6075,6 @@ msgstr "বাহ্যিক"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "বাহ্যিক অ্যাপ"@@ -7513,7 +7525,6 @@ msgstr "একটি সূচক নথিতে: এন্ট্রিগু#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7898,10 +7909,6 @@ msgstr "যেখানে ইনস্টল হবে"msgid "installs:"msgstr "ইনস্টল:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "AI-এর জন্য নির্দেশ"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9983,6 +9990,10 @@ msgstr "{displayName} Desktop খুলুন"msgid "Open {docName}"msgstr "{docName} খুলুন"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "{handoffLabel} খুলুন"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "{keyName} ব্রাউজারে খুলুন"@@ -10295,14 +10306,12 @@ msgstr "দৃশ্য-সম্পাদকের খোঁজা বদলা#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "AI দিয়ে খুলুন"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "AI {displayName} Desktop দিয়ে খুলুন"@@ -13347,6 +13356,14 @@ msgstr "প্যানেল দেখান"msgid "Show panel ({panelShortcutLabel})"msgstr "প্যানেল দেখান ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "আবার নির্দেশনা দেখান"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "আবার নির্দেশনা দেখান: এই প্রকল্পে {displayName}-এর জন্য"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "বদলানো দেখান"@@ -14312,7 +14329,6 @@ msgstr "উপলব্ধ টেমপ্লেট"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15514,6 +15530,10 @@ msgstr "করণীয়"msgid "To do."msgstr "করণীয়।"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "এই সেটআপ সংরক্ষণ করতে, প্রকল্প MCP সার্ভার বা গ্লোবাল MCP সার্ভার চালু করুন।"+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "আজ"@@ -16430,10 +16450,6 @@ msgstr "অনুলিপি ও সিমলিংকের মধ্যেmsgid "What is this knowledge base for?"msgstr "এই জ্ঞানভাণ্ডারটি কিসের জন্য?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "AI-এর কী করা উচিত? (ঐচ্ছিক)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "আমরা কী নিয়ে কাজ করব?"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 60ce1c201..f1916fedb 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -1677,6 +1677,7 @@"IA1wNb": ["The Claude Desktop App didn't open the file. Is it installed? (", ["msg"], ")"],"IA6JW2": ["Detecting"],"ICoNYz": ["You can also manage this in Settings."],+ "IDXn2n": ["Don't ask again when opening this app without setup in this project"],"IFALcX": ["Description for ", ["field"]],"IFezUv": ["The audit could not be completed. Try again."],"IIgshV": ["locked"],@@ -1764,6 +1765,7 @@"JgaVnN": ["Allow external access"],"Jhj_lh": ["Modify the link target, anchor, and display label."],"JhqycE": ["No recent files"],+ "Ji6oie": ["A newer handoff replaced this retry."],"JkCD2u": ["Sync paused — you don't have permission to push to this repo"],"JlFcis": ["Send"],"JmfgFc": ["(a worktree of ", ["0"], ")"],@@ -1943,6 +1945,7 @@["1"],")."],+ "LhVIxY": ["Show prompts again"],"LhWYpm": ["Other OK paths are tracked upstream:"],"Li4U-T": ["Learn more about ", ["title"]],"Lj_5Uv": ["Required checks are failing"],@@ -2332,6 +2335,7 @@"PrVaZo": ["Uninstall OpenKnowledge?"],"PrWQiT": ["Move Terminal to right"],"PrhzDE": ["Pan up"],+ "Pur9o0": ["To save this setup, turn on Project MCP server or Global MCP server."],"Pw5PTU": ["External origin"],"PxZCNM": ["Outside what Open Knowledge commits."],"Q-DKvr": ["Install from ", ["source"]],@@ -2510,8 +2514,8 @@["scopeLabel"]," is a redundant duplicate: the original was verified unchanged. Remove that copy, then retry the move."],- "Rah7yq": ["What should the AI do? (optional)"],"Rb1zMa": ["No excerpt"],+ "RcPztQ": ["Open ", ["handoffLabel"]],"RcrskJ": ["Formatting looked wrong"],"RduDYw": ["<0>", ["filePath"], "</0> can't be merged here. Pick the version to keep."],"RfHNf8": ["Open activity panel for ", ["tooltipName"]],@@ -3130,7 +3134,6 @@"Z8nach": ["Upload failed: ", ["0"]],"ZBF9fn": ["Manage skill folders"],"ZBZEkP": ["Captured before this dialog, with the pointer marked."],- "ZBt4rI": ["Instruction for the AI"],"ZBxvV3": ["New Terminal"],"ZDOq9A": ["What you share is sent to the OpenKnowledge team."],"ZGVsOD": ["Push this branch to GitHub before sharing."],@@ -4242,6 +4245,7 @@"jBVUXo": ["Couldn't open the terminal — please try again."],"jC8Bv4": ["Having a look around…"],"jC8LSZ": ["Reset view filters"],+ "jDejAI": ["Checking connection to ", ["checkingLabel"], "…"],"jDhTLC": ["Choose icon"],"jEVipR": ["These currently read from another folder. After linking, they read from ",@@ -4250,6 +4254,7 @@],"jEZ6Lf": ["provisional"],"jEdF24": ["Missing page: ", ["linkTitle"], ". Click to create."],+ "jIWP0P": ["Show prompts again for ", ["displayName"], " in this project"],"jJdwCB": ["Revert"],"jKd3AP": ["Could not enable the terminal: ", ["0"]],"jKeGuZ": ["Deletes a document, folder, template, skill, or asset"],@@ -5141,6 +5146,11 @@"sqgz2k": ["OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."],+ "srbby-": [+ "Changes were saved, but OpenKnowledge could not confirm a connection to ",+ ["handoffLabel"],+ ". Check the MCP server settings for this app, then select Save changes to check again."+ ],"srdlOs": ["Auto-sync is paused — you don't have permission to push to this repo. Switch to Auto (Pull only) to keep receiving updates."],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 13c2446e3..bda1b82ee 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) isn't installed or on your PATH."#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1444,6 +1443,10 @@ msgstr "a new pane to the left of {0}"msgid "a new pane to the right of {0}"msgstr "a new pane to the right of {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "A newer handoff replaced this retry."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "Ask {0} CLI"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "Ask {agentName}"@@ -2851,6 +2853,10 @@ msgstr "Changes save automatically."msgid "Changes saved automatically."msgstr "Changes saved automatically."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "Character budget per indexing request"@@ -2908,6 +2914,10 @@ msgstr "Checked by: {0}"msgid "Checking"msgstr "Checking"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "Checking connection to {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "Checking for agents"@@ -3542,7 +3552,6 @@ msgstr "Configuration warnings"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "Documents response did not match expected shape."msgid "Documents tagged <0>#{tagName}</0>"msgstr "Documents tagged <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "Don't ask again when opening this app without setup in this project"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."@@ -6066,7 +6079,6 @@ msgstr "external"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "External apps"@@ -7517,7 +7529,6 @@ msgstr "In an index document: entries sit under a section heading and each one c#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "Installs to"msgid "installs:"msgstr "installs:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "Instruction for the AI"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "Open {displayName} Desktop"msgid "Open {docName}"msgstr "Open {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "Open {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "Open {keyName} in browser"@@ -10299,14 +10310,12 @@ msgstr "Open visual-editor find with replace controls expanded."#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "Open with AI"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "Open with AI {displayName} Desktop"@@ -13351,6 +13360,14 @@ msgstr "Show panel"msgid "Show panel ({panelShortcutLabel})"msgstr "Show panel ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "Show prompts again"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "Show prompts again for {displayName} in this project"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "Show replace"@@ -14316,7 +14333,6 @@ msgstr "Templates available"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "To do"msgid "To do."msgstr "To do."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "To save this setup, turn on Project MCP server or Global MCP server."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "Today"@@ -16434,10 +16454,6 @@ msgstr "What is the difference between copies and symlinks?"msgid "What is this knowledge base for?"msgstr "What is this knowledge base for?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "What should the AI do? (optional)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "What should we work on?"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex a7499afbc..5766d4522 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -1955,6 +1955,7 @@],"IA6JW2": ["Detectando"],"ICoNYz": ["También puedes gestionar esto en Ajustes."],+ "IDXn2n": ["No volver a preguntar al abrir esta aplicación sin configurarla en este proyecto"],"IFALcX": ["Descripción de ", ["field"]],"IFezUv": ["No se pudo completar la auditoría. Inténtalo de nuevo."],"IIgshV": ["bloqueado"],@@ -2056,6 +2057,7 @@"JgaVnN": ["Permitir acceso externo"],"Jhj_lh": ["Modifica el destino del enlace, el ancla y el texto mostrado."],"JhqycE": ["No hay archivos recientes"],+ "Ji6oie": ["Una transferencia más reciente reemplazó este reintento."],"JkCD2u": ["Sincronización en pausa: no tienes permiso para hacer push a este repositorio"],"JlFcis": ["Enviar"],"JmfgFc": ["(un worktree de ", ["0"], ")"],@@ -2260,6 +2262,7 @@["1"],")."],+ "LhVIxY": ["Mostrar avisos de nuevo"],"LhWYpm": ["Hay otras rutas OK seguidas en el remoto:"],"Li4U-T": ["Más información sobre ", ["title"]],"Lj_5Uv": ["Fallan comprobaciones obligatorias"],@@ -2689,6 +2692,9 @@"PrVaZo": ["¿Desinstalar OpenKnowledge?"],"PrWQiT": ["Mover Terminal a la derecha"],"PrhzDE": ["Desplazar hacia arriba"],+ "Pur9o0": [+ "Para guardar esta configuración, activa el servidor MCP del proyecto o el servidor MCP global."+ ],"Pw5PTU": ["Origen externo"],"PxZCNM": ["Fuera de lo que confirma Open Knowledge."],"Q-DKvr": ["Instalar desde ", ["source"]],@@ -2884,8 +2890,8 @@["scopeLabel"]," es un duplicado redundante: se verificó que el original no cambió. Elimina esa copia y vuelve a intentar el movimiento."],- "Rah7yq": ["¿Qué debería hacer la IA? (opcional)"],"Rb1zMa": ["Sin extracto"],+ "RcPztQ": ["Abrir ", ["handoffLabel"]],"RcrskJ": ["El formato se veía mal"],"RduDYw": ["<0>",@@ -3631,7 +3637,6 @@"Z8nach": ["Falló la subida: ", ["0"]],"ZBF9fn": ["Gestionar las carpetas de habilidades"],"ZBZEkP": ["Capturada antes de este diálogo, con el puntero marcado."],- "ZBt4rI": ["Instrucción para la IA"],"ZBxvV3": ["Terminal nueva"],"ZDOq9A": ["Lo que compartes se envía al equipo de OpenKnowledge."],"ZGVsOD": ["Envía esta rama a GitHub antes de compartir."],@@ -4918,6 +4923,7 @@"jBVUXo": ["No se pudo abrir la terminal; inténtalo de nuevo."],"jC8Bv4": ["Echando un vistazo…"],"jC8LSZ": ["Restablecer los filtros de vista"],+ "jDejAI": ["Comprobando la conexión con ", ["checkingLabel"], "…"],"jDhTLC": ["Elegir icono"],"jEVipR": ["Actualmente se leen desde otra carpeta. Después de vincularlas, se leerán desde ",@@ -4926,6 +4932,7 @@],"jEZ6Lf": ["provisional"],"jEdF24": ["Página inexistente: ", ["linkTitle"], ". Haz clic para crearla."],+ "jIWP0P": ["Mostrar avisos de nuevo para ", ["displayName"], " en este proyecto"],"jJdwCB": ["Revertir"],"jKd3AP": ["No se pudo activar la terminal: ", ["0"]],"jKeGuZ": ["Elimina un documento, carpeta, plantilla, habilidad o recurso"],@@ -5922,6 +5929,11 @@"sqgz2k": ["OpenKnowledge no pudo terminar de configurar este proyecto. El worktree se creó, pero no se abrió."],+ "srbby-": [+ "Los cambios se guardaron, pero OpenKnowledge no pudo confirmar la conexión con ",+ ["handoffLabel"],+ ". Revisa la configuración del servidor MCP de esta aplicación y selecciona Guardar cambios para comprobarlo de nuevo."+ ],"srdlOs": ["La sincronización automática está en pausa: no tienes permiso para hacer push en este repositorio. Cambia a Automático (solo Pull) para seguir recibiendo actualizaciones."],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex b896764e5..678c1cd32 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) no está instalado ni en tu PATH."#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "CLI de {displayName}"@@ -1444,6 +1443,10 @@ msgstr "un panel nuevo a la izquierda de {0}"msgid "a new pane to the right of {0}"msgstr "un panel nuevo a la derecha de {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "Una transferencia más reciente reemplazó este reintento."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "Preguntar a la CLI de {0}"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "Preguntar a {agentName}"@@ -2851,6 +2853,10 @@ msgstr "Los cambios se guardan automáticamente."msgid "Changes saved automatically."msgstr "Los cambios se guardaron automáticamente."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "Los cambios se guardaron, pero OpenKnowledge no pudo confirmar la conexión con {handoffLabel}. Revisa la configuración del servidor MCP de esta aplicación y selecciona Guardar cambios para comprobarlo de nuevo."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "Presupuesto de caracteres por solicitud de indexación"@@ -2908,6 +2914,10 @@ msgstr "Comprobado por: {0}"msgid "Checking"msgstr "Comprobando"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "Comprobando la conexión con {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "Buscando agentes"@@ -3542,7 +3552,6 @@ msgstr "Advertencias de configuración"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "La respuesta de documentos no tenía la forma esperada."msgid "Documents tagged <0>#{tagName}</0>"msgstr "Documentos etiquetados con <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "No volver a preguntar al abrir esta aplicación sin configurarla en este proyecto"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "¿No ves <0>Habilidades</0>? Activa antes <1>Ajustes <2/> Capacidades <3/> Ejecución de código y creación de archivos</1>."@@ -6066,7 +6079,6 @@ msgstr "externo"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "Aplicaciones externas"@@ -7517,7 +7529,6 @@ msgstr "En un documento índice: las entradas se encuentran bajo un título de s#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "Se instala en"msgid "installs:"msgstr "instalaciones:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "Instrucción para la IA"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "Abrir {displayName} Desktop"msgid "Open {docName}"msgstr "Abrir {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "Abrir {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "Abrir {keyName} en el navegador"@@ -10299,14 +10310,12 @@ msgstr "Abre la búsqueda del editor visual con los controles de reemplazo despl#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "Abrir con IA"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "Abrir con la IA {displayName} Desktop"@@ -13351,6 +13360,14 @@ msgstr "Mostrar el panel"msgid "Show panel ({panelShortcutLabel})"msgstr "Mostrar el panel ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "Mostrar avisos de nuevo"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "Mostrar avisos de nuevo para {displayName} en este proyecto"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "Mostrar reemplazar"@@ -14316,7 +14333,6 @@ msgstr "Plantillas disponibles"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "Por hacer"msgid "To do."msgstr "Por hacer."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "Para guardar esta configuración, activa el servidor MCP del proyecto o el servidor MCP global."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "Hoy"@@ -16434,10 +16454,6 @@ msgstr "¿Qué diferencia hay entre las copias y los enlaces simbólicos?"msgid "What is this knowledge base for?"msgstr "¿Para qué es esta base de conocimiento?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "¿Qué debería hacer la IA? (opcional)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "¿En qué trabajamos?"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex f8d63bf32..8786ab415 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -1987,6 +1987,9 @@],"IA6JW2": ["Détection"],"ICoNYz": ["Vous pouvez aussi gérer cela dans les Paramètres."],+ "IDXn2n": [+ "Ne plus demander lors de l’ouverture de cette application sans configuration dans ce projet"+ ],"IFALcX": ["Description de ", ["field"]],"IFezUv": ["L'audit n'a pas pu être terminé. Réessayez."],"IIgshV": ["verrouillé"],@@ -2088,6 +2091,7 @@"JgaVnN": ["Autoriser l'accès externe"],"Jhj_lh": ["Modifiez la cible du lien, l'ancre et le libellé affiché."],"JhqycE": ["Aucun fichier récent"],+ "Ji6oie": ["Un transfert plus récent a remplacé cette nouvelle tentative."],"JkCD2u": ["Synchronisation en pause — vous n'avez pas la permission de pousser vers ce dépôt"],"JlFcis": ["Envoyer"],"JmfgFc": ["(un worktree de ", ["0"], ")"],@@ -2304,6 +2308,7 @@["1"],")."],+ "LhVIxY": ["Réafficher les invites"],"LhWYpm": ["D'autres chemins OK sont suivis en amont :"],"Li4U-T": ["En savoir plus sur ", ["title"]],"Lj_5Uv": ["Des vérifications obligatoires échouent"],@@ -2731,6 +2736,9 @@"PrVaZo": ["Désinstaller OpenKnowledge ?"],"PrWQiT": ["Déplacer Terminal à droite"],"PrhzDE": ["Faire défiler vers le haut"],+ "Pur9o0": [+ "Pour enregistrer cette configuration, activez le serveur MCP du projet ou le serveur MCP global."+ ],"Pw5PTU": ["Origine externe"],"PxZCNM": ["En dehors de ce que valide Open Knowledge."],"Q-DKvr": ["Installer depuis ", ["source"]],@@ -2928,8 +2936,8 @@["scopeLabel"]," est un doublon redondant : l'original a été vérifié comme inchangé. Supprimez cette copie, puis réessayez le déplacement."],- "Rah7yq": ["Que doit faire l'IA ? (facultatif)"],"Rb1zMa": ["Pas d'extrait"],+ "RcPztQ": ["Ouvrir ", ["handoffLabel"]],"RcrskJ": ["La mise en forme semblait incorrecte"],"RduDYw": ["<0>",@@ -3678,7 +3686,6 @@"Z8nach": ["Échec de l'envoi : ", ["0"]],"ZBF9fn": ["Gérer les dossiers de compétences"],"ZBZEkP": ["Capture prise avant cette boîte de dialogue, avec le pointeur marqué."],- "ZBt4rI": ["Instruction pour l'IA"],"ZBxvV3": ["Nouveau terminal"],"ZDOq9A": ["Ce que vous partagez est envoyé à l'équipe OpenKnowledge."],"ZGVsOD": ["Envoyez cette branche sur GitHub avant de partager."],@@ -4957,6 +4964,7 @@"jBVUXo": ["Impossible d'ouvrir le terminal — veuillez réessayer."],"jC8Bv4": ["Petit tour d'horizon…"],"jC8LSZ": ["Réinitialiser les filtres d'affichage"],+ "jDejAI": ["Vérification de la connexion à ", ["checkingLabel"], "…"],"jDhTLC": ["Choisir une icône"],"jEVipR": ["Ces compétences sont actuellement lues depuis un autre dossier. Après la liaison, elles seront lues depuis ",@@ -4965,6 +4973,7 @@],"jEZ6Lf": ["provisoire"],"jEdF24": ["Page manquante : ", ["linkTitle"], ". Cliquez pour la créer."],+ "jIWP0P": ["Réafficher les invites pour ", ["displayName"], " dans ce projet"],"jJdwCB": ["Rétablir"],"jKd3AP": ["Impossible d'activer le terminal : ", ["0"]],"jKeGuZ": ["Supprime un document, un dossier, un modèle, une compétence ou une ressource"],@@ -5988,6 +5997,11 @@"sqgz2k": ["OpenKnowledge n’a pas pu terminer la configuration de ce projet. Le worktree a été créé, mais pas ouvert."],+ "srbby-": [+ "Les modifications ont été enregistrées, mais OpenKnowledge n’a pas pu confirmer la connexion à ",+ ["handoffLabel"],+ ". Vérifiez les paramètres du serveur MCP de cette application, puis sélectionnez Enregistrer les modifications pour vérifier à nouveau."+ ],"srdlOs": ["La synchronisation automatique est en pause : vous n'avez pas la permission de pousser vers ce dépôt. Passez à Auto (Tirer seulement) pour continuer à recevoir les mises à jour."],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 7332f009b..14cc139a7 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) n'est pas installé ni présent dans votre PATH."#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "CLI {displayName}"@@ -1444,6 +1443,10 @@ msgstr "un nouveau volet à gauche de {0}"msgid "a new pane to the right of {0}"msgstr "un nouveau volet à droite de {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "Un transfert plus récent a remplacé cette nouvelle tentative."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "Demander à la CLI {0}"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "Demander à {agentName}"@@ -2851,6 +2853,10 @@ msgstr "Les modifications sont enregistrées automatiquement."msgid "Changes saved automatically."msgstr "Modifications enregistrées automatiquement."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "Les modifications ont été enregistrées, mais OpenKnowledge n’a pas pu confirmer la connexion à {handoffLabel}. Vérifiez les paramètres du serveur MCP de cette application, puis sélectionnez Enregistrer les modifications pour vérifier à nouveau."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "Budget de caractères par requête d'indexation"@@ -2908,6 +2914,10 @@ msgstr "Vérifié par : {0}"msgid "Checking"msgstr "Vérification"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "Vérification de la connexion à {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "Recherche d'agents"@@ -3542,7 +3552,6 @@ msgstr "Avertissements de configuration"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "La réponse des documents ne correspond pas à la forme attendue."msgid "Documents tagged <0>#{tagName}</0>"msgstr "Documents étiquetés <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "Ne plus demander lors de l’ouverture de cette application sans configuration dans ce projet"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Vous ne voyez pas <0>Compétences</0> ? Activez d'abord <1>Paramètres <2/> Fonctionnalités <3/> Exécution de code et création de fichiers</1>."@@ -6066,7 +6079,6 @@ msgstr "externe"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "Applications externes"@@ -7517,7 +7529,6 @@ msgstr "Dans un document d'index : les entrées se trouvent sous un en-tête de#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "S'installe dans"msgid "installs:"msgstr "installations :"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "Instruction pour l'IA"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "Ouvrir {displayName} Desktop"msgid "Open {docName}"msgstr "Ouvrir {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "Ouvrir {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "Ouvrir {keyName} dans le navigateur"@@ -10299,14 +10310,12 @@ msgstr "Ouvre la recherche de l'éditeur visuel avec les contrôles de remplacem#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "Ouvrir avec l'IA"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "Ouvrir avec l'IA {displayName} Desktop"@@ -13351,6 +13360,14 @@ msgstr "Afficher le panneau"msgid "Show panel ({panelShortcutLabel})"msgstr "Afficher le panneau ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "Réafficher les invites"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "Réafficher les invites pour {displayName} dans ce projet"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "Afficher le remplacement"@@ -14316,7 +14333,6 @@ msgstr "Modèles disponibles"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "À faire"msgid "To do."msgstr "À faire."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "Pour enregistrer cette configuration, activez le serveur MCP du projet ou le serveur MCP global."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "Aujourd’hui"@@ -16434,10 +16454,6 @@ msgstr "Quelle est la différence entre les copies et les liens symboliques ?"msgid "What is this knowledge base for?"msgstr "À quoi sert cette base de connaissances ?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "Que doit faire l'IA ? (facultatif)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "Sur quoi travaillons-nous ?"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex 9b0f7cf0e..583b0b49b 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -1617,6 +1617,7 @@"IA1wNb": ["Claude Desktop App ने फ़ाइल नहीं खोली। क्या वह इंस्टॉल है? (", ["msg"], ")"],"IA6JW2": ["खोजा जा रहा है"],"ICoNYz": ["आप इसे Settings में भी सँभाल सकते हैं।"],+ "IDXn2n": ["इस प्रोजेक्ट में बिना सेटअप के यह ऐप खोलते समय दोबारा न पूछें"],"IFALcX": [["field"], " का विवरण"],"IFezUv": ["ऑडिट पूरा नहीं हो सका। फिर कोशिश करें।"],"IIgshV": ["लॉक किया गया"],@@ -1704,6 +1705,7 @@"JgaVnN": ["बाहरी एक्सेस की अनुमति दें"],"Jhj_lh": ["लिंक लक्ष्य, एंकर और प्रदर्शित लेबल बदलें।"],"JhqycE": ["कोई हाल की फ़ाइल नहीं"],+ "Ji6oie": ["एक नए हैंडऑफ़ ने इस दोबारा प्रयास की जगह ले ली।"],"JkCD2u": ["सिंक रुका हुआ — आपके पास इस रिपॉज़िटरी में पुश करने की अनुमति नहीं है"],"JlFcis": ["भेजें"],"JmfgFc": ["(", ["0"], " का एक वर्कट्री)"],@@ -1880,6 +1882,7 @@["1"]," है।"],+ "LhVIxY": ["संकेत फिर से दिखाएँ"],"LhWYpm": ["अन्य OK पथ अपस्ट्रीम ट्रैक किए जाते हैं:"],"Li4U-T": [["title"], " के बारे में और जानें"],"Lj_5Uv": ["ज़रूरी जाँचें विफल हो रही हैं"],@@ -2263,6 +2266,7 @@"PrVaZo": ["OpenKnowledge हटाएँ?"],"PrWQiT": ["Terminal को दाईं ओर ले जाएँ"],"PrhzDE": ["ऊपर खिसकाएँ"],+ "Pur9o0": ["इस सेटअप को सहेजने के लिए, परियोजना MCP सर्वर या वैश्विक MCP सर्वर चालू करें।"],"Pw5PTU": ["बाहरी origin"],"PxZCNM": ["Open Knowledge जो कमिट करता है उसके दायरे से बाहर।"],"Q-DKvr": [["source"], " से इंस्टॉल करें"],@@ -2428,8 +2432,8 @@["name"],"” की कॉपी एक ग़ैरज़रूरी नक़ल है: जाँच में मूल अपरिवर्तित मिला। उस कॉपी को हटाएँ, फिर मूव दोबारा आज़माएँ।"],- "Rah7yq": ["AI को क्या करना चाहिए? (वैकल्पिक)"],"Rb1zMa": ["कोई अंश नहीं"],+ "RcPztQ": [["handoffLabel"], " खोलें"],"RcrskJ": ["फ़ॉर्मैटिंग ग़लत लगी"],"RduDYw": ["<0>", ["filePath"], "</0> को यहाँ मर्ज नहीं किया जा सकता। रखने के लिए संस्करण चुनें।"],"RfHNf8": [["tooltipName"], " के लिए गतिविधि पैनल खोलें"],@@ -3037,7 +3041,6 @@"Z8nach": ["अपलोड विफल: ", ["0"]],"ZBF9fn": ["स्किल फ़ोल्डर सँभालें"],"ZBZEkP": ["इस संवाद से पहले लिया गया, पॉइंटर चिह्नित है।"],- "ZBt4rI": ["AI के लिए निर्देश"],"ZBxvV3": ["नया टर्मिनल"],"ZDOq9A": ["आप जो साझा करते हैं वह OpenKnowledge टीम को भेजा जाता है।"],"ZGVsOD": ["साझा करने से पहले इस ब्रांच को GitHub पर पुश करें।"],@@ -4100,6 +4103,7 @@"jBVUXo": ["टर्मिनल नहीं खोला जा सका — कृपया फिर कोशिश करें।"],"jC8Bv4": ["चारों ओर देखा जा रहा है…"],"jC8LSZ": ["दृश्य फ़िल्टर रीसेट करें"],+ "jDejAI": [["checkingLabel"], " से कनेक्शन जाँचा जा रहा है…"],"jDhTLC": ["आइकन चुनें"],"jEVipR": ["ये अभी किसी दूसरे फ़ोल्डर से पढ़े जाते हैं। लिंक करने के बाद, ये उसकी जगह ",@@ -4108,6 +4112,7 @@],"jEZ6Lf": ["अस्थायी"],"jEdF24": ["अनुपस्थित पेज: ", ["linkTitle"], ". बनाने के लिए क्लिक करें।"],+ "jIWP0P": ["संकेत फिर से दिखाएँ: इस प्रोजेक्ट में ", ["displayName"], " के लिए"],"jJdwCB": ["वापस लें"],"jKd3AP": ["टर्मिनल सक्षम नहीं किया जा सका: ", ["0"]],"jKeGuZ": ["दस्तावेज़, फ़ोल्डर, टेम्पलेट, स्किल या एसेट हटाता है"],@@ -4946,6 +4951,11 @@"sq4WQH": [["0"], " को हल्की थीम के रूप में उपयोग करें"],"sqUrlK": ["मनन किया जा रहा है…"],"sqgz2k": ["OpenKnowledge इस प्रोजेक्ट का सेटअप पूरा नहीं कर सका। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"],+ "srbby-": [+ "बदलाव सहेज दिए गए हैं, लेकिन OpenKnowledge ",+ ["handoffLabel"],+ " से कनेक्शन की पुष्टि नहीं कर सका। इस ऐप की MCP सर्वर सेटिंग जाँचें, फिर दोबारा जाँचने के लिए बदलाव सहेजें चुनें।"+ ],"srdlOs": ["स्वचालित सिंक रुका हुआ है: आपके पास इस रिपॉज़िटरी में पुश करने की अनुमति नहीं है। अपडेट पाते रहने के लिए स्वचालित (केवल खींचें) पर जाएँ।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex e67c05710..c979e909a 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) इंस्टॉल नहीं है या#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1440,6 +1439,10 @@ msgstr "{0} के बाईं ओर एक नया फलक"msgid "a new pane to the right of {0}"msgstr "{0} के दाईं ओर एक नया फलक"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "एक नए हैंडऑफ़ ने इस दोबारा प्रयास की जगह ले ली।"+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2225,7 +2228,6 @@ msgstr "{0} CLI से पूछें"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "{agentName} से पूछें"@@ -2847,6 +2849,10 @@ msgstr "बदलाव अपने आप सहेजे जाते हैmsgid "Changes saved automatically."msgstr "बदलाव अपने आप सहेज दिए गए।"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "बदलाव सहेज दिए गए हैं, लेकिन OpenKnowledge {handoffLabel} से कनेक्शन की पुष्टि नहीं कर सका। इस ऐप की MCP सर्वर सेटिंग जाँचें, फिर दोबारा जाँचने के लिए बदलाव सहेजें चुनें।"+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "प्रति इंडेक्सिंग अनुरोध वर्ण बजट"@@ -2904,6 +2910,10 @@ msgstr "जाँचकर्ता: {0}"msgid "Checking"msgstr "जाँचा जा रहा है"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "{checkingLabel} से कनेक्शन जाँचा जा रहा है…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "एजेंट खोजे जा रहे हैं"@@ -3538,7 +3548,6 @@ msgstr "कॉन्फ़िगरेशन चेतावनियाँ"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5307,6 +5316,10 @@ msgstr "दस्तावेज़ों की प्रतिक्रियmsgid "Documents tagged <0>#{tagName}</0>"msgstr "<0>#{tagName}</0> टैग वाले दस्तावेज़"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "इस प्रोजेक्ट में बिना सेटअप के यह ऐप खोलते समय दोबारा न पूछें"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>Skills</0> नहीं दिख रहा? पहले <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> सक्षम करें।"@@ -6062,7 +6075,6 @@ msgstr "बाहरी"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "बाहरी ऐप्स"@@ -7513,7 +7525,6 @@ msgstr "एक सूचकांक दस्तावेज़ में: प#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7898,10 +7909,6 @@ msgstr "यहाँ इंस्टॉल होगा"msgid "installs:"msgstr "इंस्टॉल:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "AI के लिए निर्देश"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9983,6 +9990,10 @@ msgstr "{displayName} Desktop खोलें"msgid "Open {docName}"msgstr "{docName} खोलें"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "{handoffLabel} खोलें"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "{keyName} को ब्राउज़र में खोलें"@@ -10295,14 +10306,12 @@ msgstr "दृश्य-संपादक की खोज फैले हु#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "AI से खोलें"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "AI {displayName} Desktop से खोलें"@@ -13347,6 +13356,14 @@ msgstr "पैनल दिखाएँ"msgid "Show panel ({panelShortcutLabel})"msgstr "पैनल दिखाएँ ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "संकेत फिर से दिखाएँ"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "संकेत फिर से दिखाएँ: इस प्रोजेक्ट में {displayName} के लिए"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "बदलें दिखाएँ"@@ -14312,7 +14329,6 @@ msgstr "उपलब्ध टेम्पलेट"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15514,6 +15530,10 @@ msgstr "करना है"msgid "To do."msgstr "करना है।"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "इस सेटअप को सहेजने के लिए, परियोजना MCP सर्वर या वैश्विक MCP सर्वर चालू करें।"+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "आज"@@ -16430,10 +16450,6 @@ msgstr "प्रतियों और सिमलिंक में क्msgid "What is this knowledge base for?"msgstr "यह ज्ञान आधार किस लिए है?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "AI को क्या करना चाहिए? (वैकल्पिक)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "हम किस पर काम करें?"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex a5d9f0cb7..d5c8ebb24 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -1702,6 +1702,7 @@],"IA6JW2": ["Mendeteksi"],"ICoNYz": ["Anda juga bisa mengelola ini di Pengaturan."],+ "IDXn2n": ["Jangan tanya lagi saat membuka aplikasi ini tanpa penyiapan di proyek ini"],"IFALcX": ["Deskripsi untuk ", ["field"]],"IFezUv": ["Audit tidak dapat diselesaikan. Coba lagi."],"IIgshV": ["terkunci"],@@ -1791,6 +1792,7 @@"JgaVnN": ["Izinkan akses eksternal"],"Jhj_lh": ["Ubah tujuan tautan, jangkar, dan label tampilannya."],"JhqycE": ["Tidak ada berkas terbaru"],+ "Ji6oie": ["Handoff yang lebih baru menggantikan percobaan ulang ini."],"JkCD2u": ["Sinkronisasi dijeda — Anda tidak punya izin push ke repo ini"],"JlFcis": ["Kirim"],"JmfgFc": ["(sebuah worktree dari ", ["0"], ")"],@@ -1971,6 +1973,7 @@["1"],")."],+ "LhVIxY": ["Tampilkan petunjuk lagi"],"LhWYpm": ["Ada jalur OK lain yang dilacak di remote:"],"Li4U-T": ["Pelajari lebih lanjut tentang ", ["title"]],"Lj_5Uv": ["Pemeriksaan wajib gagal"],@@ -2344,6 +2347,7 @@"PrVaZo": ["Copot OpenKnowledge?"],"PrWQiT": ["Pindahkan Terminal ke kanan"],"PrhzDE": ["Geser ke atas"],+ "Pur9o0": ["Untuk menyimpan penyiapan ini, aktifkan server MCP proyek atau server MCP global."],"Pw5PTU": ["Origin eksternal"],"PxZCNM": ["Di luar cakupan commit Open Knowledge."],"Q-DKvr": ["Pasang dari ", ["source"]],@@ -2513,8 +2517,8 @@["scopeLabel"]," adalah duplikat yang tidak diperlukan: aslinya sudah diverifikasi tidak berubah. Hapus salinan itu, lalu coba pemindahan lagi."],- "Rah7yq": ["Apa yang harus dilakukan AI? (opsional)"],"Rb1zMa": ["Tanpa cuplikan"],+ "RcPztQ": ["Buka ", ["handoffLabel"]],"RcrskJ": ["Format terlihat salah"],"RduDYw": ["<0>",@@ -3151,7 +3155,6 @@"Z8nach": ["Unggahan gagal: ", ["0"]],"ZBF9fn": ["Kelola folder keterampilan"],"ZBZEkP": ["Diambil sebelum dialog ini, dengan penunjuk ditandai."],- "ZBt4rI": ["Instruksi untuk AI"],"ZBxvV3": ["Terminal Baru"],"ZDOq9A": ["Apa yang Anda bagikan dikirim ke tim OpenKnowledge."],"ZGVsOD": ["Push cabang ini ke GitHub sebelum berbagi."],@@ -4252,6 +4255,7 @@"jBVUXo": ["Terminal tidak bisa dibuka — silakan coba lagi."],"jC8Bv4": ["Melihat-lihat sekitar…"],"jC8LSZ": ["Setel ulang filter tampilan"],+ "jDejAI": ["Memeriksa koneksi ke ", ["checkingLabel"], "…"],"jDhTLC": ["Pilih ikon"],"jEVipR": ["Saat ini keterampilan ini dibaca dari folder lain. Setelah ditautkan, keterampilan ini dibaca dari ",@@ -4260,6 +4264,7 @@],"jEZ6Lf": ["sementara"],"jEdF24": ["Halaman belum ada: ", ["linkTitle"], ". Klik untuk membuat."],+ "jIWP0P": ["Tampilkan petunjuk lagi untuk ", ["displayName"], " di proyek ini"],"jJdwCB": ["Kembalikan"],"jKd3AP": ["Terminal tidak dapat diaktifkan: ", ["0"]],"jKeGuZ": ["Menghapus dokumen, folder, templat, keterampilan, atau aset"],@@ -5149,6 +5154,11 @@"sqgz2k": ["OpenKnowledge tidak dapat menyelesaikan penyiapan proyek ini. Worktree dibuat, tetapi tidak dibuka."],+ "srbby-": [+ "Perubahan telah disimpan, tetapi OpenKnowledge tidak dapat memastikan koneksi ke ",+ ["handoffLabel"],+ ". Periksa pengaturan server MCP aplikasi ini, lalu pilih Simpan perubahan untuk memeriksa lagi."+ ],"srdlOs": ["Sinkronisasi otomatis dijeda: Anda tidak punya izin push ke repositori ini. Beralihlah ke Otomatis (hanya Pull) agar tetap menerima pembaruan."],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex cb82ab9b7..ba128b408 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) belum terpasang atau tidak ada di PATH Anda."#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "CLI {displayName}"@@ -1440,6 +1439,10 @@ msgstr "panel baru di sebelah kiri {0}"msgid "a new pane to the right of {0}"msgstr "panel baru di sebelah kanan {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "Handoff yang lebih baru menggantikan percobaan ulang ini."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2225,7 +2228,6 @@ msgstr "Tanya CLI {0}"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "Tanya {agentName}"@@ -2847,6 +2849,10 @@ msgstr "Perubahan disimpan otomatis."msgid "Changes saved automatically."msgstr "Perubahan disimpan otomatis."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "Perubahan telah disimpan, tetapi OpenKnowledge tidak dapat memastikan koneksi ke {handoffLabel}. Periksa pengaturan server MCP aplikasi ini, lalu pilih Simpan perubahan untuk memeriksa lagi."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "Anggaran karakter per permintaan pengindeksan"@@ -2904,6 +2910,10 @@ msgstr "Diperiksa oleh: {0}"msgid "Checking"msgstr "Memeriksa"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "Memeriksa koneksi ke {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "Mencari agen"@@ -3538,7 +3548,6 @@ msgstr "Peringatan konfigurasi"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5307,6 +5316,10 @@ msgstr "Respons dokumen tidak sesuai bentuk yang diharapkan."msgid "Documents tagged <0>#{tagName}</0>"msgstr "Dokumen bertag <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "Jangan tanya lagi saat membuka aplikasi ini tanpa penyiapan di proyek ini"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Tidak melihat <0>Keterampilan</0>? Aktifkan dulu <1>Pengaturan <2/> Kemampuan <3/> Eksekusi kode dan pembuatan berkas</1>."@@ -6062,7 +6075,6 @@ msgstr "eksternal"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "Aplikasi eksternal"@@ -7513,7 +7525,6 @@ msgstr "Dalam dokumen indeks: entri berada di bawah judul bagian dan masing-masi#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7898,10 +7909,6 @@ msgstr "Dipasang di"msgid "installs:"msgstr "pemasangan:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "Instruksi untuk AI"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9983,6 +9990,10 @@ msgstr "Buka {displayName} Desktop"msgid "Open {docName}"msgstr "Buka {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "Buka {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "Buka {keyName} di peramban"@@ -10295,14 +10306,12 @@ msgstr "Membuka pencarian penyunting visual dengan kendali penggantian terbentan#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "Buka dengan AI"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "Buka dengan AI {displayName} Desktop"@@ -13347,6 +13356,14 @@ msgstr "Tampilkan panel"msgid "Show panel ({panelShortcutLabel})"msgstr "Tampilkan panel ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "Tampilkan petunjuk lagi"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "Tampilkan petunjuk lagi untuk {displayName} di proyek ini"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "Tampilkan penggantian"@@ -14312,7 +14329,6 @@ msgstr "Templat tersedia"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15514,6 +15530,10 @@ msgstr "Akan dikerjakan"msgid "To do."msgstr "Akan dikerjakan."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "Untuk menyimpan penyiapan ini, aktifkan server MCP proyek atau server MCP global."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "Hari ini"@@ -16430,10 +16450,6 @@ msgstr "Apa bedanya salinan dan symlink?"msgid "What is this knowledge base for?"msgstr "Untuk apa basis pengetahuan ini?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "Apa yang harus dilakukan AI? (opsional)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "Apa yang ingin kita kerjakan?"diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex cdb811b49..65df31ba0 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -1628,6 +1628,7 @@"IA1wNb": ["Claude Desktop App 파일 열기 실패. 설치 상태 확인: (", ["msg"], ")"],"IA6JW2": ["감지 중"],"ICoNYz": ["설정에서 관리할 수 있습니다."],+ "IDXn2n": ["이 프로젝트에서 설정 없이 이 앱을 열 때 다시 묻지 않기"],"IFALcX": [["field"], " 설명"],"IFezUv": ["감사를 완료하지 못했습니다. 다시 시도하세요."],"IIgshV": ["잠김"],@@ -1714,6 +1715,7 @@"JgaVnN": ["외부 접근 허용"],"Jhj_lh": ["링크 대상, 앵커, 표시 레이블을 수정합니다."],"JhqycE": ["최근 파일 없음"],+ "Ji6oie": ["새로운 핸드오프가 이 재시도를 대체했습니다."],"JkCD2u": ["동기화 일시 중지됨, 이 리포지토리에 푸시할 권한이 없습니다"],"JlFcis": ["전송"],"JmfgFc": ["(", ["0"], "의 워크트리)"],@@ -1885,6 +1887,7 @@["1"],")."],+ "LhVIxY": ["안내 다시 표시"],"LhWYpm": ["다른 OK 경로는 upstream에서 추적됩니다:"],"Li4U-T": [["title"], " 자세히 알아보기"],"Lj_5Uv": ["필수 검사 실패"],@@ -2252,6 +2255,7 @@"PrVaZo": ["OpenKnowledge를 제거하시겠습니까?"],"PrWQiT": ["터미널을 오른쪽으로 이동"],"PrhzDE": ["위로 이동"],+ "Pur9o0": ["이 설정을 저장하려면 프로젝트 MCP 서버 또는 전역 MCP 서버를 켜세요."],"Pw5PTU": ["외부 오리진"],"PxZCNM": ["Open Knowledge가 커밋하는 범위 밖입니다."],"Q-DKvr": [["source"], "에서 설치"],@@ -2402,8 +2406,8 @@["name"],"” 사본은 불필요한 중복입니다. 원본이 변경되지 않았음을 확인했습니다. 그 사본을 삭제한 뒤 이동을 다시 시도하세요."],- "Rah7yq": ["AI 작업 내용? (선택 사항)"],"Rb1zMa": ["발췌문 없음"],+ "RcPztQ": [["handoffLabel"], " 열기"],"RcrskJ": ["서식이 잘못 표시됨"],"RduDYw": ["<0>", ["filePath"], "</0>은 여기에서 병합할 수 없습니다. 유지할 버전을 고르세요."],"RfHNf8": [["tooltipName"], " 활동 패널 열기"],@@ -3014,7 +3018,6 @@"Z8nach": ["업로드 실패: ", ["0"]],"ZBF9fn": ["스킬 폴더 관리"],"ZBZEkP": ["이 대화 상자가 열리기 전에 캡처되었으며 포인터가 표시되어 있습니다."],- "ZBt4rI": ["AI용 지침"],"ZBxvV3": ["새 터미널"],"ZDOq9A": ["공유하신 내용은 OpenKnowledge 팀에 전송됩니다."],"ZGVsOD": ["공유 전에 이 브랜치를 GitHub에 푸시하세요."],@@ -4070,10 +4073,12 @@"jBVUXo": ["터미널 열기 실패. 다시 시도하세요."],"jC8Bv4": ["둘러보는 중…"],"jC8LSZ": ["보기 필터 초기화"],+ "jDejAI": [["checkingLabel"], " 연결 확인 중…"],"jDhTLC": ["아이콘 선택"],"jEVipR": ["현재 다른 폴더에서 읽습니다. 연결한 후에는 대신 ", ["keep"], "에서 읽습니다."],"jEZ6Lf": ["임시"],"jEdF24": ["누락된 페이지: ", ["linkTitle"], ". 클릭하여 만듭니다."],+ "jIWP0P": ["안내 다시 표시: 이 프로젝트의 ", ["displayName"]],"jJdwCB": ["되돌리기"],"jKd3AP": ["터미널을 켜지 못했습니다: ", ["0"]],"jKeGuZ": ["문서, 폴더, 템플릿, 스킬 또는 에셋을 삭제합니다"],@@ -4928,6 +4933,11 @@"sqgz2k": ["OpenKnowledge가 이 프로젝트 설정을 완료하지 못했습니다. 워크트리는 생성되었지만 열리지 않았습니다."],+ "srbby-": [+ "변경 사항을 저장했지만 OpenKnowledge에서 ",+ ["handoffLabel"],+ " 연결을 확인하지 못했습니다. 이 앱의 MCP 서버 설정을 확인한 다음 변경 사항 저장을 선택하여 다시 확인하세요."+ ],"srdlOs": ["자동 동기화가 일시 중지되었습니다. 이 저장소에 푸시할 권한이 없습니다. 계속 업데이트를 받으려면 자동(풀만)으로 전환하세요."],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex dda7fa375..ff8c8dea4 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) 미설치 또는 PATH 미등록"#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1444,6 +1443,10 @@ msgstr "{0} 왼쪽의 새 패널"msgid "a new pane to the right of {0}"msgstr "{0} 오른쪽의 새 패널"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "새로운 핸드오프가 이 재시도를 대체했습니다."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "{0} CLI 질문"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "{agentName}에게 질문"@@ -2851,6 +2853,10 @@ msgstr "변경사항이 자동으로 저장됩니다."msgid "Changes saved automatically."msgstr "변경사항이 자동으로 저장되었습니다."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "변경 사항을 저장했지만 OpenKnowledge에서 {handoffLabel} 연결을 확인하지 못했습니다. 이 앱의 MCP 서버 설정을 확인한 다음 변경 사항 저장을 선택하여 다시 확인하세요."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "인덱싱 요청당 문자 예산"@@ -2908,6 +2914,10 @@ msgstr "확인한 사람: {0}"msgid "Checking"msgstr "확인 중"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "{checkingLabel} 연결 확인 중…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "에이전트 확인 중"@@ -3542,7 +3552,6 @@ msgstr "구성 경고"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "문서 응답이 예상한 형식과 일치하지 않습니다."msgid "Documents tagged <0>#{tagName}</0>"msgstr "<0>#{tagName}</0> 태그가 지정된 문서"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "이 프로젝트에서 설정 없이 이 앱을 열 때 다시 묻지 않기"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>Skills</0> 미표시? 먼저 <1>설정 <2/> 기능 <3/> 코드 실행 및 파일 생성</1> 활성화."@@ -6066,7 +6079,6 @@ msgstr "외부"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "외부 앱"@@ -7517,7 +7529,6 @@ msgstr "인덱스 문서에서는 항목이 섹션 제목 아래에 있고 각#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "설치 위치"msgid "installs:"msgstr "설치 항목:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "AI용 지침"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "{displayName} Desktop 열기"msgid "Open {docName}"msgstr "{docName} 열기"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "{handoffLabel} 열기"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "브라우저에서 {keyName} 열기"@@ -10299,14 +10310,12 @@ msgstr "교체 컨트롤을 확장한 상태로 비주얼 편집기 찾기를#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "AI로 열기"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "AI {displayName} Desktop으로 열기"@@ -13351,6 +13360,14 @@ msgstr "패널 보기"msgid "Show panel ({panelShortcutLabel})"msgstr "패널 보기 ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "안내 다시 표시"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "안내 다시 표시: 이 프로젝트의 {displayName}"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "바꾸기 표시"@@ -14316,7 +14333,6 @@ msgstr "사용 가능한 템플릿"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "할 일"msgid "To do."msgstr "할 일"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "이 설정을 저장하려면 프로젝트 MCP 서버 또는 전역 MCP 서버를 켜세요."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "오늘"@@ -16434,10 +16454,6 @@ msgstr "복사본과 심볼릭 링크의 차이는 무엇인가요?"msgid "What is this knowledge base for?"msgstr "이 지식 베이스는 무엇에 쓰나요?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "AI 작업 내용? (선택 사항)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "무엇을 작업할까요?"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 49f7e94cd..b84081e46 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -1677,6 +1677,7 @@"IA1wNb": ["Ţĥē Ćĺàũďē Ďēśķţōƥ Àƥƥ ďĩďń'ţ ōƥēń ţĥē ƒĩĺē. Ĩś ĩţ ĩńśţàĺĺēď? (", ["msg"], ")"],"IA6JW2": ["Ďēţēćţĩńĝ"],"ICoNYz": ["Ŷōũ ćàń àĺśō ḿàńàĝē ţĥĩś ĩń Śēţţĩńĝś."],+ "IDXn2n": ["Ďōń'ţ àśķ àĝàĩń ŵĥēń ōƥēńĩńĝ ţĥĩś àƥƥ ŵĩţĥōũţ śēţũƥ ĩń ţĥĩś ƥŕōĴēćţ"],"IFALcX": ["Ďēśćŕĩƥţĩōń ƒōŕ ", ["field"]],"IFezUv": ["Ţĥē àũďĩţ ćōũĺď ńōţ ƀē ćōḿƥĺēţēď. Ţŕŷ àĝàĩń."],"IIgshV": ["ĺōćķēď"],@@ -1764,6 +1765,7 @@"JgaVnN": ["Àĺĺōŵ ēxţēŕńàĺ àććēśś"],"Jhj_lh": ["Ḿōďĩƒŷ ţĥē ĺĩńķ ţàŕĝēţ, àńćĥōŕ, àńď ďĩśƥĺàŷ ĺàƀēĺ."],"JhqycE": ["Ńō ŕēćēńţ ƒĩĺēś"],+ "Ji6oie": ["À ńēŵēŕ ĥàńďōƒƒ ŕēƥĺàćēď ţĥĩś ŕēţŕŷ."],"JkCD2u": ["Śŷńć ƥàũśēď — ŷōũ ďōń'ţ ĥàvē ƥēŕḿĩśśĩōń ţō ƥũśĥ ţō ţĥĩś ŕēƥō"],"JlFcis": ["Śēńď"],"JmfgFc": ["(à ŵōŕķţŕēē ōƒ ", ["0"], ")"],@@ -1943,6 +1945,7 @@["1"],")."],+ "LhVIxY": ["Śĥōŵ ƥŕōḿƥţś àĝàĩń"],"LhWYpm": ["Ōţĥēŕ ŌĶ ƥàţĥś àŕē ţŕàćķēď ũƥśţŕēàḿ:"],"Li4U-T": ["Ĺēàŕń ḿōŕē àƀōũţ ", ["title"]],"Lj_5Uv": ["Ŕēǫũĩŕēď ćĥēćķś àŕē ƒàĩĺĩńĝ"],@@ -2332,6 +2335,7 @@"PrVaZo": ["Ũńĩńśţàĺĺ ŌƥēńĶńōŵĺēďĝē?"],"PrWQiT": ["Ḿōvē Ţēŕḿĩńàĺ ţō ŕĩĝĥţ"],"PrhzDE": ["Ƥàń ũƥ"],+ "Pur9o0": ["Ţō śàvē ţĥĩś śēţũƥ, ţũŕń ōń ƤŕōĴēćţ ḾĆƤ śēŕvēŕ ōŕ Ĝĺōƀàĺ ḾĆƤ śēŕvēŕ."],"Pw5PTU": ["Ēxţēŕńàĺ ōŕĩĝĩń"],"PxZCNM": ["Ōũţśĩďē ŵĥàţ Ōƥēń Ķńōŵĺēďĝē ćōḿḿĩţś."],"Q-DKvr": ["Ĩńśţàĺĺ ƒŕōḿ ", ["source"]],@@ -2510,8 +2514,8 @@["scopeLabel"]," ĩś à ŕēďũńďàńţ ďũƥĺĩćàţē: ţĥē ōŕĩĝĩńàĺ ŵàś vēŕĩƒĩēď ũńćĥàńĝēď. Ŕēḿōvē ţĥàţ ćōƥŷ, ţĥēń ŕēţŕŷ ţĥē ḿōvē."],- "Rah7yq": ["Ŵĥàţ śĥōũĺď ţĥē ÀĨ ďō? (ōƥţĩōńàĺ)"],"Rb1zMa": ["Ńō ēxćēŕƥţ"],+ "RcPztQ": ["Ōƥēń ", ["handoffLabel"]],"RcrskJ": ["Ƒōŕḿàţţĩńĝ ĺōōķēď ŵŕōńĝ"],"RduDYw": ["<0>", ["filePath"], "</0> ćàń'ţ ƀē ḿēŕĝēď ĥēŕē. Ƥĩćķ ţĥē vēŕśĩōń ţō ķēēƥ."],"RfHNf8": ["Ōƥēń àćţĩvĩţŷ ƥàńēĺ ƒōŕ ", ["tooltipName"]],@@ -3130,7 +3134,6 @@"Z8nach": ["Ũƥĺōàď ƒàĩĺēď: ", ["0"]],"ZBF9fn": ["Ḿàńàĝē śķĩĺĺ ƒōĺďēŕś"],"ZBZEkP": ["Ćàƥţũŕēď ƀēƒōŕē ţĥĩś ďĩàĺōĝ, ŵĩţĥ ţĥē ƥōĩńţēŕ ḿàŕķēď."],- "ZBt4rI": ["Ĩńśţŕũćţĩōń ƒōŕ ţĥē ÀĨ"],"ZBxvV3": ["Ńēŵ Ţēŕḿĩńàĺ"],"ZDOq9A": ["Ŵĥàţ ŷōũ śĥàŕē ĩś śēńţ ţō ţĥē ŌƥēńĶńōŵĺēďĝē ţēàḿ."],"ZGVsOD": ["Ƥũśĥ ţĥĩś ƀŕàńćĥ ţō ĜĩţĤũƀ ƀēƒōŕē śĥàŕĩńĝ."],@@ -4242,6 +4245,7 @@"jBVUXo": ["Ćōũĺďń'ţ ōƥēń ţĥē ţēŕḿĩńàĺ — ƥĺēàśē ţŕŷ àĝàĩń."],"jC8Bv4": ["Ĥàvĩńĝ à ĺōōķ àŕōũńď…"],"jC8LSZ": ["Ŕēśēţ vĩēŵ ƒĩĺţēŕś"],+ "jDejAI": ["Ćĥēćķĩńĝ ćōńńēćţĩōń ţō ", ["checkingLabel"], "…"],"jDhTLC": ["Ćĥōōśē ĩćōń"],"jEVipR": ["Ţĥēśē ćũŕŕēńţĺŷ ŕēàď ƒŕōḿ àńōţĥēŕ ƒōĺďēŕ. Àƒţēŕ ĺĩńķĩńĝ, ţĥēŷ ŕēàď ƒŕōḿ ",@@ -4250,6 +4254,7 @@],"jEZ6Lf": ["ƥŕōvĩśĩōńàĺ"],"jEdF24": ["Ḿĩśśĩńĝ ƥàĝē: ", ["linkTitle"], ". Ćĺĩćķ ţō ćŕēàţē."],+ "jIWP0P": ["Śĥōŵ ƥŕōḿƥţś àĝàĩń ƒōŕ ", ["displayName"], " ĩń ţĥĩś ƥŕōĴēćţ"],"jJdwCB": ["Ŕēvēŕţ"],"jKd3AP": ["Ćōũĺď ńōţ ēńàƀĺē ţĥē ţēŕḿĩńàĺ: ", ["0"]],"jKeGuZ": ["Ďēĺēţēś à ďōćũḿēńţ, ƒōĺďēŕ, ţēḿƥĺàţē, śķĩĺĺ, ōŕ àśśēţ"],@@ -5141,6 +5146,11 @@"sqgz2k": ["ŌƥēńĶńōŵĺēďĝē ćōũĺďń'ţ ƒĩńĩśĥ śēţţĩńĝ ũƥ ţĥĩś ƥŕōĴēćţ. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."],+ "srbby-": [+ "Ćĥàńĝēś ŵēŕē śàvēď, ƀũţ ŌƥēńĶńōŵĺēďĝē ćōũĺď ńōţ ćōńƒĩŕḿ à ćōńńēćţĩōń ţō ",+ ["handoffLabel"],+ ". Ćĥēćķ ţĥē ḾĆƤ śēŕvēŕ śēţţĩńĝś ƒōŕ ţĥĩś àƥƥ, ţĥēń śēĺēćţ Śàvē ćĥàńĝēś ţō ćĥēćķ àĝàĩń."+ ],"srdlOs": ["Àũţō-śŷńć ĩś ƥàũśēď — ŷōũ ďōń'ţ ĥàvē ƥēŕḿĩśśĩōń ţō ƥũśĥ ţō ţĥĩś ŕēƥō. Śŵĩţćĥ ţō Àũţō (Ƥũĺĺ ōńĺŷ) ţō ķēēƥ ŕēćēĩvĩńĝ ũƥďàţēś."],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex 51aa03b6a..a7a111622 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -842,7 +842,6 @@ msgstr ""#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr ""@@ -1440,6 +1439,10 @@ msgstr ""msgid "a new pane to the right of {0}"msgstr ""+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr ""+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2225,7 +2228,6 @@ msgstr ""#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr ""@@ -2847,6 +2849,10 @@ msgstr ""msgid "Changes saved automatically."msgstr ""+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr ""+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr ""@@ -2904,6 +2910,10 @@ msgstr ""msgid "Checking"msgstr ""+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr ""+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr ""@@ -3538,7 +3548,6 @@ msgstr ""#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5307,6 +5316,10 @@ msgstr ""msgid "Documents tagged <0>#{tagName}</0>"msgstr ""+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr ""+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr ""@@ -6062,7 +6075,6 @@ msgstr ""#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr ""@@ -7513,7 +7525,6 @@ msgstr ""#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7898,10 +7909,6 @@ msgstr ""msgid "installs:"msgstr ""-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr ""-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9983,6 +9990,10 @@ msgstr ""msgid "Open {docName}"msgstr ""+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr ""+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr ""@@ -10295,14 +10306,12 @@ msgstr ""#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr ""#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr ""@@ -13347,6 +13356,14 @@ msgstr ""msgid "Show panel ({panelShortcutLabel})"msgstr ""+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr ""++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr ""+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr ""@@ -14312,7 +14329,6 @@ msgstr ""#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15514,6 +15530,10 @@ msgstr ""msgid "To do."msgstr ""+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr ""+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr ""@@ -16430,10 +16450,6 @@ msgstr ""msgid "What is this knowledge base for?"msgstr ""-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr ""-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr ""diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 5e7c7afa8..056ae8473 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -1928,6 +1928,7 @@"IA1wNb": ["O app Claude Desktop não abriu o arquivo. Ele está instalado? (", ["msg"], ")"],"IA6JW2": ["Detectando"],"ICoNYz": ["Você também pode gerenciar isto em Configurações."],+ "IDXn2n": ["Não perguntar novamente ao abrir este aplicativo sem configuração neste projeto"],"IFALcX": ["Descrição de ", ["field"]],"IFezUv": ["Não foi possível concluir a auditoria. Tente de novo."],"IIgshV": ["bloqueada"],@@ -2031,6 +2032,7 @@"JgaVnN": ["Permitir acesso externo"],"Jhj_lh": ["Altere o destino do link, a âncora e o texto exibido."],"JhqycE": ["Nenhum arquivo recente"],+ "Ji6oie": ["Uma transferência mais recente substituiu esta nova tentativa."],"JkCD2u": ["Sincronização pausada — você não tem permissão para enviar a este repositório"],"JlFcis": ["Enviar"],"JmfgFc": ["(um worktree de ", ["0"], ")"],@@ -2229,6 +2231,7 @@["1"],")."],+ "LhVIxY": ["Mostrar avisos novamente"],"LhWYpm": ["Há outros caminhos OK rastreados no remoto:"],"Li4U-T": ["Saiba mais sobre ", ["title"]],"Lj_5Uv": ["Verificações obrigatórias estão falhando"],@@ -2654,6 +2657,9 @@"PrVaZo": ["Desinstalar o OpenKnowledge?"],"PrWQiT": ["Mover o Terminal para a direita"],"PrhzDE": ["Deslocar para cima"],+ "Pur9o0": [+ "Para salvar esta configuração, ative o servidor MCP do projeto ou o servidor MCP global."+ ],"Pw5PTU": ["Origem externa"],"PxZCNM": ["Fora do que o Open Knowledge faz commit."],"Q-DKvr": ["Instalar a partir de ", ["source"]],@@ -2845,8 +2851,8 @@["scopeLabel"]," é uma duplicata redundante: o original foi verificado e está inalterado. Remova essa cópia e tente a movimentação de novo."],- "Rah7yq": ["O que a IA deve fazer? (opcional)"],"Rb1zMa": ["Sem trecho"],+ "RcPztQ": ["Abrir ", ["handoffLabel"]],"RcrskJ": ["A formatação parecia errada"],"RduDYw": ["<0>",@@ -3569,7 +3575,6 @@"Z8nach": ["Falha no envio: ", ["0"]],"ZBF9fn": ["Gerenciar as pastas de habilidades"],"ZBZEkP": ["Capturada antes desta caixa de diálogo, com o ponteiro marcado."],- "ZBt4rI": ["Instrução para a IA"],"ZBxvV3": ["Novo terminal"],"ZDOq9A": ["O que você compartilha é enviado para a equipe do OpenKnowledge."],"ZGVsOD": ["Envie este ramo para o GitHub antes de compartilhar."],@@ -4822,6 +4827,7 @@"jBVUXo": ["Não deu para abrir o terminal — tente de novo."],"jC8Bv4": ["Dando uma olhada…"],"jC8LSZ": ["Redefinir os filtros de visualização"],+ "jDejAI": ["Verificando a conexão com ", ["checkingLabel"], "…"],"jDhTLC": ["Escolher ícone"],"jEVipR": ["Elas são lidas de outra pasta no momento. Após a vinculação, serão lidas de ",@@ -4830,6 +4836,7 @@],"jEZ6Lf": ["provisório"],"jEdF24": ["Página inexistente: ", ["linkTitle"], ". Clique para criar."],+ "jIWP0P": ["Mostrar avisos novamente para ", ["displayName"], " neste projeto"],"jJdwCB": ["Reverter"],"jKd3AP": ["Não foi possível ativar o terminal: ", ["0"]],"jKeGuZ": ["Exclui um documento, pasta, modelo, habilidade ou recurso"],@@ -5807,6 +5814,11 @@"sqgz2k": ["O OpenKnowledge não conseguiu concluir a configuração deste projeto. O worktree foi criado, mas não foi aberto."],+ "srbby-": [+ "As alterações foram salvas, mas o OpenKnowledge não conseguiu confirmar a conexão com ",+ ["handoffLabel"],+ ". Verifique as configurações do servidor MCP deste aplicativo e selecione Salvar alterações para conferir novamente."+ ],"srdlOs": ["A sincronização automática está pausada: você não tem permissão para fazer push neste repositório. Mude para Automático (somente Pull) para continuar recebendo atualizações."],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex d9fb61139..03c024a54 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) não está instalado nem no seu PATH."#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "CLI do {displayName}"@@ -1440,6 +1439,10 @@ msgstr "um novo painel à esquerda de {0}"msgid "a new pane to the right of {0}"msgstr "um novo painel à direita de {0}"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "Uma transferência mais recente substituiu esta nova tentativa."+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2225,7 +2228,6 @@ msgstr "Perguntar à CLI do {0}"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "Perguntar ao {agentName}"@@ -2847,6 +2849,10 @@ msgstr "As alterações são salvas automaticamente."msgid "Changes saved automatically."msgstr "Alterações salvas automaticamente."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "As alterações foram salvas, mas o OpenKnowledge não conseguiu confirmar a conexão com {handoffLabel}. Verifique as configurações do servidor MCP deste aplicativo e selecione Salvar alterações para conferir novamente."+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "Orçamento de caracteres por requisição de indexação"@@ -2904,6 +2910,10 @@ msgstr "Verificado por: {0}"msgid "Checking"msgstr "Verificando"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "Verificando a conexão com {checkingLabel}…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "Procurando agentes"@@ -3538,7 +3548,6 @@ msgstr "Avisos de configuração"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5307,6 +5316,10 @@ msgstr "A resposta de documentos não tinha o formato esperado."msgid "Documents tagged <0>#{tagName}</0>"msgstr "Documentos com a tag <0>#{tagName}</0>"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "Não perguntar novamente ao abrir este aplicativo sem configuração neste projeto"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "Não vê <0>Habilidades</0>? Ative antes <1>Configurações <2/> Recursos <3/> Execução de código e criação de arquivos</1>."@@ -6062,7 +6075,6 @@ msgstr "externa"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "Aplicativos externos"@@ -7513,7 +7525,6 @@ msgstr "Em um documento de índice: as entradas ficam sob o título de uma seç#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7898,10 +7909,6 @@ msgstr "Instala em"msgid "installs:"msgstr "instalações:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "Instrução para a IA"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9983,6 +9990,10 @@ msgstr "Abrir {displayName} Desktop"msgid "Open {docName}"msgstr "Abrir {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "Abrir {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "Abrir {keyName} no navegador"@@ -10295,14 +10306,12 @@ msgstr "Abre a busca do editor visual com os controles de substituição expandi#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "Abrir com IA"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "Abrir com a IA {displayName} Desktop"@@ -13347,6 +13356,14 @@ msgstr "Mostrar o painel"msgid "Show panel ({panelShortcutLabel})"msgstr "Mostrar o painel ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "Mostrar avisos novamente"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "Mostrar avisos novamente para {displayName} neste projeto"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "Mostrar substituir"@@ -14312,7 +14329,6 @@ msgstr "Modelos disponíveis"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15514,6 +15530,10 @@ msgstr "A fazer"msgid "To do."msgstr "A fazer."+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "Para salvar esta configuração, ative o servidor MCP do projeto ou o servidor MCP global."+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "Hoje"@@ -16430,10 +16450,6 @@ msgstr "Qual é a diferença entre cópias e links simbólicos?"msgid "What is this knowledge base for?"msgstr "Para que serve esta base de conhecimento?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "O que a IA deve fazer? (opcional)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "No que vamos trabalhar?"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex 21093ba8b..ed18158fe 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -1703,6 +1703,7 @@"IA1wNb": ["Claude Desktop App نے فائل نہیں کھولی۔ کیا یہ نصب ہے؟ (", ["msg"], ")"],"IA6JW2": ["پتا لگایا جا رہا ہے"],"ICoNYz": ["آپ اسے ترتیبات میں بھی سنبھال سکتے ہیں۔"],+ "IDXn2n": ["اس پروجیکٹ میں سیٹ اپ کے بغیر یہ ایپ کھولتے وقت دوبارہ نہ پوچھیں"],"IFALcX": [["field"], " کی تفصیل"],"IFezUv": ["آڈٹ مکمل نہیں ہو سکا۔ دوبارہ کوشش کریں۔"],"IIgshV": ["مقفل"],@@ -1792,6 +1793,7 @@"JgaVnN": ["بیرونی رسائی کی اجازت دیں"],"Jhj_lh": ["لنک کا ہدف، اینکر اور ظاہری لیبل تبدیل کریں۔"],"JhqycE": ["کوئی حالیہ فائل نہیں"],+ "Ji6oie": ["ایک نئی ہینڈ آف نے اس دوبارہ کوشش کی جگہ لے لی۔"],"JkCD2u": ["مطابقت پذیری روکی ہوئی — آپ کو اس ریپو میں پُش کرنے کی اجازت نہیں"],"JlFcis": ["بھیجیں"],"JmfgFc": ["(", ["0"], " کا ورک ٹری)"],@@ -1982,6 +1984,7 @@["1"],") سے۔"],+ "LhVIxY": ["ہدایات دوبارہ دکھائیں"],"LhWYpm": ["OK کے دیگر راستے اپ سٹریم ٹریک ہوتے ہیں:"],"Li4U-T": [["title"], " کے بارے میں مزید جانیں"],"Lj_5Uv": ["لازمی جانچیں ناکام ہو رہی ہیں"],@@ -2377,6 +2380,7 @@"PrVaZo": ["OpenKnowledge کی تنصیب ختم کریں؟"],"PrWQiT": ["Terminal کو دائیں منتقل کریں"],"PrhzDE": ["اوپر کھسکائیں"],+ "Pur9o0": ["اس سیٹ اپ کو محفوظ کرنے کے لیے، پروجیکٹ MCP سرور یا گلوبل MCP سرور آن کریں۔"],"Pw5PTU": ["بیرونی اوریجن"],"PxZCNM": ["اس دائرے سے باہر جسے Open Knowledge کمٹ کرتا ہے۔"],"Q-DKvr": [["source"], " سے نصب کریں"],@@ -2553,8 +2557,8 @@["name"],"” کی کاپی ایک غیر ضروری نقل ہے: جانچ میں اصل غیر تبدیل شدہ پایا گیا۔ وہ کاپی حذف کریں، پھر منتقلی دوبارہ آزمائیں۔"],- "Rah7yq": ["AI کو کیا کرنا چاہیے؟ (اختیاری)"],"Rb1zMa": ["کوئی اقتباس نہیں"],+ "RcPztQ": [["handoffLabel"], " کھولیں"],"RcrskJ": ["فارمیٹنگ غلط لگی"],"RduDYw": ["<0>", ["filePath"], "</0> کو یہاں مرج نہیں کیا جا سکتا۔ رکھنے کے لیے ورژن چنیں۔"],"RfHNf8": [["tooltipName"], " کے لیے سرگرمی کا پینل کھولیں"],@@ -3195,7 +3199,6 @@"Z8nach": ["اپ لوڈ ناکام: ", ["0"]],"ZBF9fn": ["مہارت کے فولڈرز سنبھالیں"],"ZBZEkP": ["اس ڈائیلاگ سے پہلے لی گئی، پوائنٹر نشان زد ہے۔"],- "ZBt4rI": ["AI کے لیے ہدایت"],"ZBxvV3": ["نیا ٹرمینل"],"ZDOq9A": ["آپ جو شیئر کرتے ہیں وہ OpenKnowledge ٹیم کو بھیجا جاتا ہے۔"],"ZGVsOD": ["شیئر کرنے سے پہلے اس برانچ کو GitHub پر پش کریں۔"],@@ -4324,6 +4327,7 @@"jBVUXo": ["ٹرمینل نہیں کھل سکا — براہِ کرم دوبارہ کوشش کریں۔"],"jC8Bv4": ["جائزہ لیا جا رہا ہے…"],"jC8LSZ": ["منظر کے فلٹرز دوبارہ ترتیب دیں"],+ "jDejAI": [["checkingLabel"], " سے کنکشن جانچا جا رہا ہے…"],"jDhTLC": ["آئیکن منتخب کریں"],"jEVipR": ["یہ اس وقت کسی دوسرے فولڈر سے پڑھی جاتی ہیں۔ لنک کرنے کے بعد، یہ اس کی بجائے ",@@ -4332,6 +4336,7 @@],"jEZ6Lf": ["عارضی"],"jEdF24": ["غائب صفحہ: ", ["linkTitle"], "۔ بنانے کے لیے کلک کریں۔"],+ "jIWP0P": ["ہدایات دوبارہ دکھائیں: اس پروجیکٹ میں ", ["displayName"], " کے لیے"],"jJdwCB": ["واپس پلٹیں"],"jKd3AP": ["ٹرمینل فعال نہیں ہو سکا: ", ["0"]],"jKeGuZ": ["دستاویز، فولڈر، ٹیمپلیٹ، اسکل یا اثاثہ حذف کرتا ہے"],@@ -5227,6 +5232,11 @@"sqgz2k": ["OpenKnowledge اس پروجیکٹ کا سیٹ اپ مکمل نہیں کر سکا۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"],+ "srbby-": [+ "تبدیلیاں محفوظ ہو گئیں، لیکن OpenKnowledge ",+ ["handoffLabel"],+ " سے کنکشن کی تصدیق نہیں کر سکا۔ اس ایپ کی MCP سرور ترتیبات چیک کریں، پھر دوبارہ جانچنے کے لیے تبدیلیاں محفوظ کریں منتخب کریں۔"+ ],"srdlOs": ["خودکار مطابقت پذیری روکی گئی ہے: آپ کو اس ریپازٹری میں پُش کرنے کی اجازت نہیں۔ اپ ڈیٹس ملتے رہنے کے لیے خودکار (صرف کھینچیں) پر جائیں۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex f90e5a502..4ea0b0d9e 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName} ({bin}) نصب نہیں ہے یا آپ کے PATH میں ن#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1444,6 +1443,10 @@ msgstr "{0} کے بائیں جانب ایک نیا پین"msgid "a new pane to the right of {0}"msgstr "{0} کے دائیں جانب ایک نیا پین"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "ایک نئی ہینڈ آف نے اس دوبارہ کوشش کی جگہ لے لی۔"+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "{0} CLI سے پوچھیں"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "{agentName} سے پوچھیں"@@ -2851,6 +2853,10 @@ msgstr "تبدیلیاں خودکار طور پر محفوظ ہو جاتی ہیmsgid "Changes saved automatically."msgstr "تبدیلیاں خودکار طور پر محفوظ ہو گئیں۔"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "تبدیلیاں محفوظ ہو گئیں، لیکن OpenKnowledge {handoffLabel} سے کنکشن کی تصدیق نہیں کر سکا۔ اس ایپ کی MCP سرور ترتیبات چیک کریں، پھر دوبارہ جانچنے کے لیے تبدیلیاں محفوظ کریں منتخب کریں۔"+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "فی انڈیکسنگ درخواست حروف کا بجٹ"@@ -2908,6 +2914,10 @@ msgstr "جانچا گیا: {0}"msgid "Checking"msgstr "جانچا جا رہا ہے"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "{checkingLabel} سے کنکشن جانچا جا رہا ہے…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "ایجنٹس تلاش کیے جا رہے ہیں"@@ -3542,7 +3552,6 @@ msgstr "کنفیگریشن کے انتباہات"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "دستاویزات کا جواب متوقع ساخت سے میل نہیmsgid "Documents tagged <0>#{tagName}</0>"msgstr "<0>#{tagName}</0> سے ٹیگ شدہ دستاویزات"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "اس پروجیکٹ میں سیٹ اپ کے بغیر یہ ایپ کھولتے وقت دوبارہ نہ پوچھیں"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "<0>مہارتیں</0> نظر نہیں آ رہیں؟ پہلے <1>ترتیبات <2/> صلاحیتیں <3/> کوڈ کا اجرا اور فائل سازی</1> فعال کریں۔"@@ -6066,7 +6079,6 @@ msgstr "بیرونی"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "بیرونی ایپس"@@ -7517,7 +7529,6 @@ msgstr "انڈیکس دستاویز میں: اندراجات ایک سیکشن#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "یہاں نصب ہوگا"msgid "installs:"msgstr "تنصیبات:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "AI کے لیے ہدایت"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "{displayName} Desktop کھولیں"msgid "Open {docName}"msgstr "{docName} کھولیں"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "{handoffLabel} کھولیں"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "{keyName} براؤزر میں کھولیں"@@ -10299,14 +10310,12 @@ msgstr "بصری ایڈیٹر کی تلاش تبدیلی کے کنٹرولز ک#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "AI کے ساتھ کھولیں"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "AI {displayName} Desktop کے ساتھ کھولیں"@@ -13351,6 +13360,14 @@ msgstr "پینل دکھائیں"msgid "Show panel ({panelShortcutLabel})"msgstr "پینل دکھائیں ({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "ہدایات دوبارہ دکھائیں"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "ہدایات دوبارہ دکھائیں: اس پروجیکٹ میں {displayName} کے لیے"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "تبدیلی دکھائیں"@@ -14316,7 +14333,6 @@ msgstr "دستیاب ٹیمپلیٹس"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "کرنا ہے"msgid "To do."msgstr "کرنا ہے۔"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "اس سیٹ اپ کو محفوظ کرنے کے لیے، پروجیکٹ MCP سرور یا گلوبل MCP سرور آن کریں۔"+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "آج"@@ -16434,10 +16454,6 @@ msgstr "نقول اور سِم لنکس میں کیا فرق ہے؟"msgid "What is this knowledge base for?"msgstr "یہ نالج بیس کس لیے ہے؟"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "AI کو کیا کرنا چاہیے؟ (اختیاری)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "ہم کس چیز پر کام کریں؟"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 43e28ef76..252f30702 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -1449,6 +1449,7 @@"IA1wNb": ["Claude 桌面应用没有打开这个文件。它安装了吗?(", ["msg"], ")"],"IA6JW2": ["正在检测"],"ICoNYz": ["你也可以在「设置」中管理这一项。"],+ "IDXn2n": ["在此项目中未经设置打开此应用时不再询问"],"IFALcX": [["field"], " 的描述"],"IFezUv": ["审查未能完成。请重试。"],"IIgshV": ["已锁定"],@@ -1531,6 +1532,7 @@"JgaVnN": ["允许外部访问"],"Jhj_lh": ["修改链接目标、锚点和显示标签。"],"JhqycE": ["没有最近的文件"],+ "Ji6oie": ["新的移交操作取代了这次重试。"],"JkCD2u": ["同步已暂停——你没有推送到这个仓库的权限"],"JlFcis": ["发送"],"JmfgFc": ["(", ["0"], " 的一个 worktree)"],@@ -1685,6 +1687,7 @@"LdKIHS": ["起草一份规格"],"LeGeTf": ["GitHub 上的 OpenKnowledge"],"LhQlGR": ["这个项目运行的 OpenKnowledge 版本(v", ["0"], ")比这个应用(v", ["1"], ")旧。"],+ "LhVIxY": ["重新显示提示"],"LhWYpm": ["其他 OK 路径在远程受跟踪:"],"Li4U-T": ["了解更多关于 ", ["title"], " 的信息"],"Lj_5Uv": ["必需的检查未通过"],@@ -2034,6 +2037,7 @@"PrVaZo": ["要卸载 OpenKnowledge 吗?"],"PrWQiT": ["将 Terminal 移到右侧"],"PrhzDE": ["向上平移"],+ "Pur9o0": ["要保存此设置,请开启项目 MCP 服务器或全局 MCP 服务器。"],"Pw5PTU": ["外部来源"],"PxZCNM": ["不在 Open Knowledge 的提交范围内。"],"Q-DKvr": ["从 ", ["source"], " 安装"],@@ -2178,8 +2182,8 @@["name"],"”副本是多余的重复:原件已核实未被改动。请删除该副本,然后重试移动。"],- "Rah7yq": ["希望 AI 做什么?(可选)"],"Rb1zMa": ["没有摘要"],+ "RcPztQ": ["打开 ", ["handoffLabel"]],"RcrskJ": ["排版看起来不对"],"RduDYw": ["<0>", ["filePath"], "</0> 无法在这里合并。请选择要保留的版本。"],"RfHNf8": ["打开 ", ["tooltipName"], " 的活动面板"],@@ -2741,7 +2745,6 @@"Z8nach": ["上传失败:", ["0"]],"ZBF9fn": ["管理技能文件夹"],"ZBZEkP": ["在此对话框打开前截取,已标记指针位置。"],- "ZBt4rI": ["给 AI 的指令"],"ZBxvV3": ["新建终端"],"ZDOq9A": ["你分享的内容会发送给 OpenKnowledge 团队。"],"ZGVsOD": ["共享前请先将此分支推送到 GitHub。"],@@ -3696,10 +3699,12 @@"jBVUXo": ["无法打开终端——请重试。"],"jC8Bv4": ["正在四处看看…"],"jC8LSZ": ["重置视图筛选条件"],+ "jDejAI": ["正在检查与 ", ["checkingLabel"], " 的连接…"],"jDhTLC": ["选择图标"],"jEVipR": ["这些技能目前从另一个文件夹读取。链接后,它们将改为从 ", ["keep"], " 读取。"],"jEZ6Lf": ["临时"],"jEdF24": ["页面不存在:", ["linkTitle"], "。点击可创建。"],+ "jIWP0P": ["重新显示提示:此项目中的 ", ["displayName"]],"jJdwCB": ["还原"],"jKd3AP": ["无法启用终端:", ["0"]],"jKeGuZ": ["删除文档、文件夹、模板、技能或资源"],@@ -4470,6 +4475,11 @@"sq4WQH": ["把 ", ["0"], " 用作浅色主题"],"sqUrlK": ["正在沉思…"],"sqgz2k": ["OpenKnowledge 无法完成此项目的设置。工作树已创建,但未打开。"],+ "srbby-": [+ "更改已保存,但 OpenKnowledge 无法确认与 ",+ ["handoffLabel"],+ " 的连接。请检查此应用的 MCP 服务器设置,然后选择“保存更改”再次检查。"+ ],"srdlOs": ["自动同步已暂停:你没有向此仓库推送的权限。切换到自动(仅拉取)以继续接收更新。"],"ssk6rl": ["技能自己的文件夹(", ["path"], ")——其他位置从这里复制或链接"],"ssuwjF": ["分支"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex 3cf064fe9..fead1ccab 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName}({bin})未安装,也不在你的 PATH 中。"#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1444,6 +1443,10 @@ msgstr "{0} 左侧的新窗格"msgid "a new pane to the right of {0}"msgstr "{0} 右侧的新窗格"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "新的移交操作取代了这次重试。"+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "询问 {0} CLI"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "询问 {agentName}"@@ -2851,6 +2853,10 @@ msgstr "更改会自动保存。"msgid "Changes saved automatically."msgstr "更改已自动保存。"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "更改已保存,但 OpenKnowledge 无法确认与 {handoffLabel} 的连接。请检查此应用的 MCP 服务器设置,然后选择“保存更改”再次检查。"+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "每次索引请求的字符预算"@@ -2908,6 +2914,10 @@ msgstr "检查者:{0}"msgid "Checking"msgstr "正在检查"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "正在检查与 {checkingLabel} 的连接…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "正在查找智能体"@@ -3542,7 +3552,6 @@ msgstr "配置警告"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "文档响应的结构与预期不符。"msgid "Documents tagged <0>#{tagName}</0>"msgstr "带 <0>#{tagName}</0> 标签的文档"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "在此项目中未经设置打开此应用时不再询问"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "没看到<0>技能</0>?请先启用<1>设置 <2/> 功能 <3/> 代码执行与文件创建</1>。"@@ -6066,7 +6079,6 @@ msgstr "外部"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "外部应用"@@ -7517,7 +7529,6 @@ msgstr "在索引文档中:条目位于节标题下,每个条目都带有一#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "安装到"msgid "installs:"msgstr "安装量:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "给 AI 的指令"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "打开 {displayName} Desktop"msgid "Open {docName}"msgstr "打开 {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "打开 {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "在浏览器中打开 {keyName}"@@ -10299,14 +10310,12 @@ msgstr "打开可视化编辑器的查找,并展开替换控件。"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "用 AI 打开"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "用 AI {displayName} Desktop 打开"@@ -13351,6 +13360,14 @@ msgstr "显示面板"msgid "Show panel ({panelShortcutLabel})"msgstr "显示面板({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "重新显示提示"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "重新显示提示:此项目中的 {displayName}"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "显示替换"@@ -14316,7 +14333,6 @@ msgstr "可用模板"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "待办"msgid "To do."msgstr "待办。"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "要保存此设置,请开启项目 MCP 服务器或全局 MCP 服务器。"+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "今天"@@ -16434,10 +16454,6 @@ msgstr "副本和符号链接有什么区别?"msgid "What is this knowledge base for?"msgstr "这个知识库是做什么用的?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "希望 AI 做什么?(可选)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "我们来做些什么?"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex 9f3591c9f..49511738c 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -1457,6 +1457,7 @@"IA1wNb": ["Claude Desktop App 沒有開啟這個檔案。它有安裝嗎?(", ["msg"], ")"],"IA6JW2": ["正在偵測"],"ICoNYz": ["你也可以在「設定」中管理這一項。"],+ "IDXn2n": ["在此專案中未經設定開啟此應用程式時不再詢問"],"IFALcX": [["field"], " 的描述"],"IFezUv": ["稽核未能完成。請再試一次。"],"IIgshV": ["已鎖定"],@@ -1539,6 +1540,7 @@"JgaVnN": ["允許外部存取"],"Jhj_lh": ["修改連結目標、錨點和顯示標籤。"],"JhqycE": ["沒有最近的檔案"],+ "Ji6oie": ["新的移交操作取代了這次重試。"],"JkCD2u": ["同步已暫停——你沒有推送到這個儲存庫的權限"],"JlFcis": ["傳送"],"JmfgFc": ["(", ["0"], " 的一個 worktree)"],@@ -1703,6 +1705,7 @@["1"],")舊。"],+ "LhVIxY": ["重新顯示提示"],"LhWYpm": ["其他 OK 路徑在上游受追蹤:"],"Li4U-T": ["進一步了解 ", ["title"]],"Lj_5Uv": ["必要的檢查未通過"],@@ -2052,6 +2055,7 @@"PrVaZo": ["要解除安裝 OpenKnowledge 嗎?"],"PrWQiT": ["將 Terminal 移到右側"],"PrhzDE": ["向上平移"],+ "Pur9o0": ["若要儲存此設定,請開啟專案 MCP 伺服器或全域 MCP 伺服器。"],"Pw5PTU": ["外部來源"],"PxZCNM": ["不在 Open Knowledge 的提交範圍內。"],"Q-DKvr": ["從 ", ["source"], " 安裝"],@@ -2196,8 +2200,8 @@["name"],"」副本是多餘的重複:原件已核實未被更動。請刪除該副本,然後重試移動。"],- "Rah7yq": ["希望 AI 做什麼?(選填)"],"Rb1zMa": ["沒有摘錄"],+ "RcPztQ": ["開啟 ", ["handoffLabel"]],"RcrskJ": ["排版看起來不對"],"RduDYw": ["<0>", ["filePath"], "</0> 無法在這裡合併。請選擇要保留的版本。"],"RfHNf8": ["開啟 ", ["tooltipName"], " 的活動面板"],@@ -2757,7 +2761,6 @@"Z8nach": ["上傳失敗:", ["0"]],"ZBF9fn": ["管理技能資料夾"],"ZBZEkP": ["在開啟此對話框前擷取,已標示游標位置。"],- "ZBt4rI": ["給 AI 的指示"],"ZBxvV3": ["新增終端機"],"ZDOq9A": ["你分享的內容會寄給 OpenKnowledge 團隊。"],"ZGVsOD": ["分享前請先將這個分支推送到 GitHub。"],@@ -3712,10 +3715,12 @@"jBVUXo": ["無法開啟終端機——請再試一次。"],"jC8Bv4": ["四處看看…"],"jC8LSZ": ["重設檢視篩選條件"],+ "jDejAI": ["正在檢查與 ", ["checkingLabel"], " 的連線…"],"jDhTLC": ["選擇圖示"],"jEVipR": ["這些技能目前從另一個資料夾讀取。連結後,它們將改為從 ", ["keep"], " 讀取。"],"jEZ6Lf": ["暫定"],"jEdF24": ["頁面不存在:", ["linkTitle"], "。點一下可建立。"],+ "jIWP0P": ["重新顯示提示:此專案中的 ", ["displayName"]],"jJdwCB": ["回復"],"jKd3AP": ["無法啟用終端機:", ["0"]],"jKeGuZ": ["刪除文件、資料夾、範本、技能或資源"],@@ -4488,6 +4493,11 @@"sq4WQH": ["把 ", ["0"], " 用作淺色主題"],"sqUrlK": ["沉思中…"],"sqgz2k": ["OpenKnowledge 無法完成此專案的設定。工作樹已建立,但未開啟。"],+ "srbby-": [+ "變更已儲存,但 OpenKnowledge 無法確認與 ",+ ["handoffLabel"],+ " 的連線。請檢查此應用程式的 MCP 伺服器設定,然後選擇「儲存變更」再次檢查。"+ ],"srdlOs": ["自動同步已暫停:你沒有向此儲存庫推送的權限。切換到自動(僅拉取)以繼續接收更新。"],"ssk6rl": ["技能自己的資料夾(", ["path"], ")——其他位置從這裡複製或連結"],"ssuwjF": ["分支"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex fe826f007..92af471e3 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -842,7 +842,6 @@ msgstr "{displayName}({bin})未安裝,也不在你的 PATH 中。"#: src/components/empty-state/CreatePromptComposer.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "{displayName} CLI"msgstr "{displayName} CLI"@@ -1444,6 +1443,10 @@ msgstr "{0} 左側的新窗格"msgid "a new pane to the right of {0}"msgstr "{0} 右側的新窗格"+#: src/components/handoff/useHandoffDispatch.ts+msgid "A newer handoff replaced this retry."+msgstr "新的移交操作取代了這次重試。"+#: src/components/settings/SettingsDialogErrorBoundary.tsx#: src/components/TerminalGate.tsxmsgid "A newer version may have been deployed since this tab opened."@@ -2229,7 +2232,6 @@ msgstr "詢問 {0} CLI"#: src/components/handoff/agent-launcher-labels.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Ask {agentName}"msgstr "詢問 {agentName}"@@ -2851,6 +2853,10 @@ msgstr "變更會自動儲存。"msgid "Changes saved automatically."msgstr "變更已自動儲存。"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Changes were saved, but OpenKnowledge could not confirm a connection to {handoffLabel}. Check the MCP server settings for this app, then select Save changes to check again."+msgstr "變更已儲存,但 OpenKnowledge 無法確認與 {handoffLabel} 的連線。請檢查此應用程式的 MCP 伺服器設定,然後選擇「儲存變更」再次檢查。"+#: src/components/settings/SearchSection.tsxmsgid "Character budget per indexing request"msgstr "每次索引請求的字元預算"@@ -2908,6 +2914,10 @@ msgstr "檢查者:{0}"msgid "Checking"msgstr "正在檢查"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Checking connection to {checkingLabel}…"+msgstr "正在檢查與 {checkingLabel} 的連線…"+#: src/components/BottomComposer.tsxmsgid "Checking for agents"msgstr "正在尋找代理"@@ -3542,7 +3552,6 @@ msgstr "設定警告"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/SessionsHost.tsx#: src/components/settings/SettingsDialogShell.tsx#: src/components/TerminalNewChatButton.tsx@@ -5311,6 +5320,10 @@ msgstr "文件回應的結構與預期不符。"msgid "Documents tagged <0>#{tagName}</0>"msgstr "標了 <0>#{tagName}</0> 的文件"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Don't ask again when opening this app without setup in this project"+msgstr "在此專案中未經設定開啟此應用程式時不再詢問"+#: src/components/InstallInClaudeDesktopDialog.tsxmsgid "Don't see <0>Skills</0>? Enable <1>Settings <2/> Capabilities <3/> Code execution and file creation</1> first."msgstr "沒看到<0>技能</0>嗎?請先啟用<1>設定 <2/> 功能 <3/> 程式碼執行與檔案建立</1>。"@@ -6066,7 +6079,6 @@ msgstr "外部"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsxmsgid "External apps"msgstr "外部應用程式"@@ -7517,7 +7529,6 @@ msgstr "在索引文件中:條目位於節標題下,每個條目都帶有連#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/TerminalNewChatButton.tsxmsgid "In app"@@ -7902,10 +7913,6 @@ msgstr "安裝到"msgid "installs:"msgstr "安裝次數:"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "Instruction for the AI"-msgstr "給 AI 的指示"-#: src/components/settings/IntegrationsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Integrations"@@ -9987,6 +9994,10 @@ msgstr "開啟 {displayName} Desktop"msgid "Open {docName}"msgstr "開啟 {docName}"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "Open {handoffLabel}"+msgstr "開啟 {handoffLabel}"+#: src/components/PropertyWidgets.tsxmsgid "Open {keyName} in browser"msgstr "在瀏覽器中開啟 {keyName}"@@ -10299,14 +10310,12 @@ msgstr "開啟視覺化編輯器的尋找,並展開取代控制項。"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI"msgstr "用 AI 開啟"#: src/components/CommandPalette.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsxmsgid "Open with AI {displayName} Desktop"msgstr "用 AI {displayName} Desktop 開啟"@@ -13351,6 +13360,14 @@ msgstr "顯示面板"msgid "Show panel ({panelShortcutLabel})"msgstr "顯示面板({panelShortcutLabel})"+#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again"+msgstr "重新顯示提示"++#: src/components/settings/AgentConnectionsSection.tsx+msgid "Show prompts again for {displayName} in this project"+msgstr "重新顯示提示:此專案中的 {displayName}"+#: src/editor/find-replace/FindReplaceBar.tsxmsgid "Show replace"msgstr "顯示取代"@@ -14316,7 +14333,6 @@ msgstr "可用的範本"#: src/components/handoff/AgentSplitButton.tsx#: src/components/handoff/OpenInAgentContextSubmenu.tsx#: src/components/handoff/OpenInAgentEmptySpaceSubmenu.tsx-#: src/components/handoff/OpenInAgentMenu.tsx#: src/components/McpConsentDialogBody.tsx#: src/components/settings/AgentConnectionsSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -15518,6 +15534,10 @@ msgstr "待辦"msgid "To do."msgstr "待辦。"+#: src/components/handoff/ExternalHandoffGate.tsx+msgid "To save this setup, turn on Project MCP server or Global MCP server."+msgstr "若要儲存此設定,請開啟專案 MCP 伺服器或全域 MCP 伺服器。"+#: src/components/acp/ThreadHistoryPanel.tsxmsgid "Today"msgstr "今天"@@ -16434,10 +16454,6 @@ msgstr "副本和符號連結有什麼差別?"msgid "What is this knowledge base for?"msgstr "這個知識庫是要做什麼用的?"-#: src/components/handoff/OpenInAgentMenu.tsx-msgid "What should the AI do? (optional)"-msgstr "希望 AI 做什麼?(選填)"-#: src/components/acp/ThreadView.tsxmsgid "What should we work on?"msgstr "我們來做些什麼?"diff --git a/packages/app/tests/stress/fixtures/handoff-mocks.ts b/packages/app/tests/stress/fixtures/handoff-mocks.tsindex d3f3196f0..199ded88e 100644--- a/packages/app/tests/stress/fixtures/handoff-mocks.ts+++ b/packages/app/tests/stress/fixtures/handoff-mocks.ts@@ -1,3 +1,4 @@+import { AGENT_REGISTRY, type HostSnapshot } from '@inkeep/open-knowledge-core';import type { Page } from '@playwright/test';import type { OkDesktopBridge } from '@/lib/desktop-bridge-types';@@ -12,6 +13,12 @@ export interface HandoffMockConfig {readonly install: InstallMap;readonly workerBaseURL: string;readonly workerContentDir: string;+ readonly initialConnectionSnapshot?: HostSnapshot;+}++interface HandoffMockInitConfig extends HandoffMockConfig {+ readonly snapshot: HostSnapshot;+ readonly connectedSnapshot: HostSnapshot;}export interface CapturedHandoff {@@ -26,7 +33,29 @@ export interface CapturedHandoff {readonly recordHandoffCalls: ReadonlyArray<Record<string, unknown>>;}+function connectedAgentSnapshot(): HostSnapshot {+ return {+ probes: {+ env: 'desktop',+ satisfiers: Object.fromEntries(+ Object.values(AGENT_REGISTRY).flatMap((agent) =>+ agent.satisfiers+ .filter((satisfier) => satisfier.probe.mode === 'probeable')+ .map((satisfier) => [satisfier.id, { state: 'satisfied' }] as const),+ ),+ ),+ },+ detection: { detected: ['claude', 'codex', 'cursor'], probed: true },+ };+}+export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): Promise<void> {+ const connectionSnapshot = connectedAgentSnapshot();+ const initConfig: HandoffMockInitConfig = {+ ...cfg,+ snapshot: cfg.initialConnectionSnapshot ?? connectionSnapshot,+ connectedSnapshot: connectionSnapshot,+ };await page.route('**/api/handoff', async (route) => {await route.fulfill({status: 200,@@ -35,6 +64,18 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): P});});if (cfg.host === 'web') {+ await page.route('**/api/agent-integrations/apply', async (route) => {+ await route.fulfill({+ status: 200,+ contentType: 'application/json',+ body: JSON.stringify({+ actions: [],+ conflicts: [],+ withheld: [],+ snapshot: connectionSnapshot,+ }),+ });+ });await page.route('**/api/installed-agents', async (route) => {await route.fulfill({status: 200,@@ -74,7 +115,8 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): P});await page.addInitScript((args) => {- const { host, install, workerBaseURL, workerContentDir } = args as HandoffMockConfig;+ const init = args as HandoffMockInitConfig;+ const { host, install, workerBaseURL, workerContentDir } = init;interface HandoffApiCall {target: string;@@ -171,6 +213,7 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): PDate.now = () => realDateNow() + mocks.fakeTimeOffset;if (host === 'electron') {+ let connectionSnapshot = init.snapshot;const shellStub = {openExternal: async (url: string): Promise<void> => {mocks.openExternalCalls.push(url);@@ -427,15 +470,14 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): P}),},agentIntegrations: {- apply: async () => ({- ok: false as const,- error: 'unavailable in tests',- report: { actions: [], conflicts: [], withheld: [] },- snapshot: {- probes: { env: 'desktop' as const, satisfiers: {} },- detection: { detected: [], probed: false },- },- }),+ apply: async ({ intents }) => {+ if (intents.length > 0) connectionSnapshot = init.connectedSnapshot;+ return {+ ok: true as const,+ report: { actions: [], conflicts: [], withheld: [] },+ snapshot: connectionSnapshot,+ };+ },},remoteAccess: {probePort: async () => true,@@ -533,7 +575,7 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): Pconst ver = (window as any).okDesktop?.appVersion ?? 'unknown';window.localStorage.setItem(`ok:skill:cowork:installed:v${ver}`, '1');} catch {}- }, cfg);+ }, initConfig);}export async function readCapturedHandoff(page: Page): Promise<CapturedHandoff> {diff --git a/packages/app/tests/stress/handoff.e2e.ts b/packages/app/tests/stress/handoff.e2e.tsindex 82a3b0334..2cabd9475 100644--- a/packages/app/tests/stress/handoff.e2e.ts+++ b/packages/app/tests/stress/handoff.e2e.ts@@ -1,4 +1,5 @@import { realpathSync } from 'node:fs';+import { AGENT_REGISTRY, type HostSnapshot } from '@inkeep/open-knowledge-core';import type { Page } from '@playwright/test';import { expect, test, waitForActiveProviderSynced } from './_helpers';import {@@ -18,6 +19,22 @@ function resolvedContentDir(contentDir: string): string {}}+function disconnectedAgentSnapshot(): HostSnapshot {+ return {+ probes: {+ env: 'desktop',+ satisfiers: Object.fromEntries(+ Object.values(AGENT_REGISTRY).flatMap((agent) =>+ agent.satisfiers+ .filter((satisfier) => satisfier.probe.mode === 'probeable')+ .map((satisfier) => [satisfier.id, { state: 'absent' }] as const),+ ),+ ),+ },+ detection: { detected: ['claude', 'codex', 'cursor'], probed: true },+ };+}+function seededDocRow(page: Page) {return page.locator('[data-slot="sidebar-container"]')@@ -86,7 +103,7 @@ async function waitForProbeSettled(page: Page, host: 'electron' | 'web'): Promis.toBe(true);}-test.describe('handoff — 8-cell matrix', () => {+test.describe('handoff — 9-cell matrix', () => {test('cell 1: Electron — claude-cowork row stays hidden even when Claude Desktop is installed', async ({page,api,@@ -332,4 +349,87 @@ test.describe('handoff — 8-cell matrix', () => {expect(line?.outcome).toBe('error');expect(line?.reason).toBe('not-installed');});++ test('cell 9: Electron blocked Cursor handoff opens setup and resumes once after save', async ({+ page,+ api,+ workerServer,+ }) => {+ const cfg: HandoffMockConfig = {+ host: 'electron',+ install: { claude: true, codex: true, cursor: true },+ workerBaseURL: workerServer.baseURL,+ workerContentDir: resolvedContentDir(workerServer.contentDir),+ initialConnectionSnapshot: disconnectedAgentSnapshot(),+ };+ await installHandoffMocks(page, cfg);+ await seedAndNavigate(page, api);++ await waitForProbeSettled(page, 'electron');+ await openHandoffSubmenu(page);+ await page.getByTestId('file-tree-open-in-cursor').click();++ const dialog = page.getByRole('dialog');+ await expect(dialog).toBeVisible();+ await expect(dialog).toContainText('Cursor');+ expect((await readCapturedHandoff(page)).handoffApiCalls).toEqual([]);++ const save = dialog.getByRole('button', { name: 'Save changes' });+ await expect(save).toBeEnabled();+ await save.click();++ await expect(dialog).toHaveCount(0);+ await expect(page.getByText('Opened in Cursor.')).toBeVisible();+ await expect.poll(async () => (await readCapturedHandoff(page)).handoffApiCalls.length).toBe(1);+ const captured = await readCapturedHandoff(page);+ expect(captured.handoffApiCalls[0]?.target).toBe('cursor');+ });++ test('setup save failure keeps the blocking dialog usable without dispatching', async ({+ page,+ api,+ workerServer,+ }) => {+ const cfg: HandoffMockConfig = {+ host: 'web',+ install: { claude: true, codex: true, cursor: true },+ workerBaseURL: workerServer.baseURL,+ workerContentDir: resolvedContentDir(workerServer.contentDir),+ };+ await installHandoffMocks(page, cfg);+ await page.unroute('**/api/agent-integrations/apply');+ let applyCalls = 0;+ await page.route('**/api/agent-integrations/apply', async (route) => {+ applyCalls++;+ if (applyCalls === 1) {+ await route.fulfill({+ status: 200,+ contentType: 'application/json',+ body: JSON.stringify({+ actions: [],+ conflicts: [],+ withheld: [],+ snapshot: disconnectedAgentSnapshot(),+ }),+ });+ return;+ }+ await route.fulfill({ status: 503, body: 'unavailable' });+ });+ await seedAndNavigate(page, api);++ await waitForProbeSettled(page, 'web');+ await openHandoffSubmenu(page);+ await page.getByTestId('file-tree-open-in-cursor').click();+ const dialog = page.getByRole('dialog');+ await expect(dialog).toBeVisible();+ await dialog.getByRole('button', { name: 'Save changes' }).click();++ await expect(dialog.getByRole('alert')).toContainText(+ 'Something went wrong. Please try again.',+ );+ await expect(dialog.getByRole('button', { name: 'Save changes' })).toBeEnabled();+ await expect(dialog.getByRole('button', { name: 'Cancel' })).toBeEnabled();+ expect((await readCapturedHandoff(page)).handoffApiCalls).toEqual([]);+ });});diff --git a/packages/core/src/handoff/types.ts b/packages/core/src/handoff/types.tsindex cd5a64b3b..568f131cc 100644--- a/packages/core/src/handoff/types.ts+++ b/packages/core/src/handoff/types.ts@@ -28,6 +28,8 @@ export type HandoffFailureReason =| 'web-endpoint-error'| 'invalid-payload'| 'dispatch-error'+ | 'setup-canceled'+ | 'superseded'| 'web-host-cursor-unsupported';export type HandoffScope = 'selection';diff --git a/packages/desktop/tests/integration/ok-bin-child-spawn-path.test.ts b/packages/desktop/tests/integration/ok-bin-child-spawn-path.test.tsindex 84982a19c..cb64039d5 100644--- a/packages/desktop/tests/integration/ok-bin-child-spawn-path.test.ts+++ b/packages/desktop/tests/integration/ok-bin-child-spawn-path.test.ts@@ -51,6 +51,7 @@ import {createScratchHomeWithOkBin,firstShellOnDisk,MINIMAL_PARENT_PATH,+ RC_FILES,RC_WITHOUT_MANAGED_BLOCK,} from '../support/ok-bin-scratch-home.test-helper.ts';@@ -118,6 +119,12 @@ describe.skipIf(process.platform === 'win32')(exitCode: SENTINEL_EXIT_CODE,recordPath: childPathRecord,});+ for (const rcFile of RC_FILES) {+ writeFileSync(+ join(scratchHome, rcFile),+ `${RC_WITHOUT_MANAGED_BLOCK}export PATH='${MINIMAL_PARENT_PATH}'\n`,+ );+ }previousHome = process.env.HOME;previousPath = process.env.PATH;previousZdotdir = process.env.ZDOTDIR;diff --git a/packages/server/src/git-pathspec-name-invariance.test.ts b/packages/server/src/git-pathspec-name-invariance.test.tsindex b1b9e01ef..2794a9a54 100644--- a/packages/server/src/git-pathspec-name-invariance.test.ts+++ b/packages/server/src/git-pathspec-name-invariance.test.ts@@ -517,6 +517,7 @@ describe('pathspec name invariance — pull-only overlay restore (site 6)', () =const project = simpleGit(cloneDir);await project.raw('config', 'user.name', 'Project');await project.raw('config', 'user.email', '[email protected]');+ await project.raw('config', 'merge.conflictStyle', 'merge');writeFileSync(join(sisterDir, docName), 'v2 remote\n', 'utf-8');await sister.add('-A');