Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

feat(ok): discover local Git worktrees (#4853)

Andrew Mikofalvy80c56f11e86a
diff --git a/.changeset/desktop-project-worktree-inventory.md b/.changeset/desktop-project-worktree-inventory.md
new file mode 100644
index 000000000..2fb2457fc
--- /dev/null
+++ b/.changeset/desktop-project-worktree-inventory.md
@@ -0,0 +1,6 @@
+---
+"@inkeep/open-knowledge": patch
+"@inkeep/open-knowledge-desktop": patch
+---
+
+Project switching now discovers every local Git worktree on demand, preserves nested project paths, distinguishes internal and external checkouts, and refuses stale targets before opening them.
diff --git a/docs/content/features/github-sync.mdx b/docs/content/features/github-sync.mdx
index 58ae2dd67..0610956c7 100644
--- a/docs/content/features/github-sync.mdx
+++ b/docs/content/features/github-sync.mdx
@@ -147,7 +147,11 @@ Another app can also save an exact older copy over an edit OpenKnowledge already
## Work on multiple branches
-In the desktop app you can open several branches of the same project at once, each in its own window. Click your project name in the bottom left and pick a branch or worktree from the project switcher (open worktrees also appear in the Command Palette); **New worktree** starts a fresh branch or checks out an existing one. Opening a branch that has no worktree yet creates one on demand under `.ok/worktrees/`, kept out of `git status`, so each window runs its own editor and server without touching your main working copy.
+In the desktop app you can open several branches of the same project at once, each in its own window. Click your project name in the bottom left and pick a branch or worktree from the project switcher (open worktrees also appear in the Command Palette); **New worktree** starts a fresh branch or checks out an existing one. The switcher discovers Git's complete local worktree list when you open a repository, including checkouts that have never been opened in OpenKnowledge. Each checkout shows its path and a location label: **primary** is the original clone, **internal** is beneath that clone's `.ok/worktrees/` directory, and **external** is anywhere else. A generic **worktree** label means the location could not be resolved yet, such as a recent checkout shown before its inventory loads or a checkout whose directory is unavailable. These labels describe location only.
+
+Opening a branch that has no worktree yet creates one on demand under `.ok/worktrees/`, kept out of `git status`, so each window runs its own editor and server without touching your main working copy. Detached and Git-locked worktrees remain available. A row marked **project missing**, **path unreadable**, or **stale Git entry** is shown for diagnosis but cannot be opened until its filesystem or Git state is repaired.
+
+If the matching OpenKnowledge project cannot be opened safely, or its local setup fails, the checkout is still created under `.ok/worktrees/` and appears in the switcher. It is labelled **project missing** or **path unreadable** when its project folder or `.ok/config.yml` is absent or unreadable; otherwise it appears as an ordinary checkout.
## Common failure modes
diff --git a/knip.config.ts b/knip.config.ts
index 6a38348d8..8b615429f 100644
--- a/knip.config.ts
+++ b/knip.config.ts
@@ -143,11 +143,15 @@ export default {
'packages/server': {
entry: ['src/**/*.test.ts', 'src/parse-worker.ts'],
project: 'src/**',
- ignoreDependencies: ['@types/shell-quote'],
+ ignoreDependencies: [
+ '@types/shell-quote',
+ ],
},
'packages/cli': {
entry: ['src/**/*.test.ts', 'scripts/*.ts', 'tests/**/*.ts', 'src/parse-worker.ts'],
- ignoreDependencies: ['yjs'],
+ ignoreDependencies: [
+ 'yjs',
+ ],
},
'packages/desktop': {
entry: [
diff --git a/packages/app/BUNDLE-SIZE.md b/packages/app/BUNDLE-SIZE.md
index cc611e090..a278c73f9 100644
--- a/packages/app/BUNDLE-SIZE.md
+++ b/packages/app/BUNDLE-SIZE.md
@@ -93,3 +93,5 @@ Combined-chunks 6.55->6.56 MB for the merged agents settings page. CI measured 6
Combined-chunks 6.56->6.57 MB while hiding connection options an agent has no surface for. The branch's own contribution is small and the ceiling was already breached without it: measured base-vs-branch on one machine at merge base `3372c64`, `feat/agent-integration-requirements-matrix` alone builds to 6,564,728 B — 4.73 kB *over* the 6.56 MB ceiling it ships with — while this branch builds under 6.57 MB. So the raise carries growth that arrived on the base (the merged agents-settings work plus its new strings across the twelve locale catalogs), not primarily this branch's dialog change. CI measured this branch at 6,560,777 B before review cleanups and 6,560,730 B after, against the prior 6,560,000 B ceiling. The main app bundle is byte-identical between base and branch at 438.68 kB against its 487 kB limit, and CSS at 8.36 kB against 59 kB, so the growth is chunk inventory rather than eager weight. Recording the base measurement explicitly because the earlier note on this branch asserted the overage was the branch's own — that was inferred from it being the only app-code change, not measured, and the measurement contradicts it. The lazy-load levers above remain the reclamation path, and the base being over its own ceiling is worth an owner independent of this branch.
Combined-chunks 8.8->8.82 MB for the searchable chat-history side panel, its responsive presentation state, and the new strings compiled into every locale catalog. CI measured 8,804,992 B against the prior 8,800,000 B ceiling; the eager main bundle remained at 437.22 kB against 487 kB and CSS at 8.36 kB against 59 kB. The 20 kB ratchet records the feature's total chunk inventory with about 15 kB of headroom while preserving the existing eager-load budgets.
+
+Combined-chunks 8.84->8.86 MB for repository-aware worktree discovery and presentation. A forced clean local build measured 8,840,825 B against the prior 8,840,000 B ceiling, with 26,938 B of growth over the same-machine `main` build at 8,813,887 B. The eager main-app and CSS budgets remain unchanged at 487 kB and 59 kB because this ratchet records the feature's aggregate chunk inventory rather than a new first-load allowance. The new ceiling leaves 19,175 B of headroom over that local measurement; the corresponding CI size job passed.
diff --git a/packages/app/package.json b/packages/app/package.json
index b33381cdf..52498efcc 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -64,7 +64,7 @@
{
"name": "all JS chunks combined (gzipped)",
"path": "dist/assets/*.js",
- "limit": "8.84 MB",
+ "limit": "8.86 MB",
"gzip": true,
"running": false
},
diff --git a/packages/app/src/components/CommandPalette.dom.test.tsx b/packages/app/src/components/CommandPalette.dom.test.tsx
index 0afe7588a..25d6160d2 100644
--- a/packages/app/src/components/CommandPalette.dom.test.tsx
+++ b/packages/app/src/components/CommandPalette.dom.test.tsx
@@ -8,6 +8,11 @@ import {
import { __resetViewMenuStateForTests, setViewMenuState } from '@/lib/view-menu-state-store';
import { renderLinguiTemplate } from '@/test-utils/lingui-mock';
+const toastError = vi.fn((_message: string) => {});
+vi.doMock('sonner', () => ({
+ toast: { error: toastError, info: vi.fn(() => {}), success: vi.fn(() => {}) },
+}));
+
type CommandDialogProps = {
children?: ReactNode;
open?: boolean;
@@ -332,6 +337,7 @@ describe('CommandPalette DOM behavior', () => {
refreshInstallStatesCalls = 0;
worktreeModelMock = null;
refreshWorktreesMock.mockClear();
+ toastError.mockClear();
window.location.hash = '';
globalThis.fetch = vi.fn(() =>
Promise.resolve(new Response(JSON.stringify({ results: [] }), { status: 200 })),
@@ -820,6 +826,7 @@ describe('CommandPalette DOM behavior', () => {
path: '/projects/current/.ok/worktrees/feature-x',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
expect(refreshWorktreesMock).toHaveBeenCalled();
@@ -842,6 +849,41 @@ describe('CommandPalette DOM behavior', () => {
expect(screen.queryByTestId('command-palette-report-bug')).toBeNull();
});
+ test('a rejected worktree scope shows its cause, refreshes, and never opens', async () => {
+ worktreeModelMock = {
+ mainRoot: '/projects/current',
+ currentBranch: 'main',
+ remoteBranches: [],
+ entries: [
+ {
+ branch: 'feature-x',
+ worktreePath: null,
+ isCurrent: false,
+ isMain: false,
+ locked: false,
+ },
+ ],
+ };
+ const bridge = createBridge();
+ bridge.worktree.create = vi.fn(async () => ({
+ ok: false as const,
+ reason: 'project-scope-unavailable' as const,
+ issue: 'unsafe-setup-path' as const,
+ path: '/projects/current/.ok/worktrees/feature-x',
+ created: true as const,
+ }));
+ await renderPalette({ bridge });
+
+ fireEvent.click(screen.getByTestId('command-palette-worktree-feature-x'));
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith(
+ 'This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened.',
+ ),
+ );
+ expect(refreshWorktreesMock).toHaveBeenCalledTimes(1);
+ expect(bridge.project.open).not.toHaveBeenCalled();
+ });
+
test('recent-project rows match multi-word queries spanning the name and the path', async () => {
const { bridge } = await renderPalette();
await waitFor(() => expect(bridge?.project.listRecent).toHaveBeenCalledTimes(1));
diff --git a/packages/app/src/components/CommandPalette.tsx b/packages/app/src/components/CommandPalette.tsx
index ed5d35af6..e12107217 100644
--- a/packages/app/src/components/CommandPalette.tsx
+++ b/packages/app/src/components/CommandPalette.tsx
@@ -22,6 +22,7 @@ import {
useRef,
useState,
} from 'react';
+import { toast } from 'sonner';
import { CreateProjectDialog } from '@/components/CreateProjectDialog';
import {
PALETTE_COMMANDS,
@@ -107,6 +108,7 @@ import { useSingleFileMode } from '@/lib/single-file-mode';
import { useWorkspace } from '@/lib/use-workspace';
import { cn } from '@/lib/utils.ts';
import { useViewMenuState } from '@/lib/view-menu-state-store';
+import { worktreeCreateErrorCopy } from '@/lib/worktree-create-error';
import { refreshWorktrees } from '@/lib/worktree-store';
import { buildHandoffInput, useHandoffDispatch } from './handoff/useHandoffDispatch';
import { useInstalledAgents } from './handoff/useInstalledAgents';
@@ -598,12 +600,17 @@ export function CommandPalette({ bridge = null, open, onOpenChange }: CommandPal
if (branch === null) return;
runAction(async () => {
const result = await bridge.worktree.create({ branch, createBranch: false });
- if (!result.ok) throw new Error(result.reason);
+ if (!result.ok) {
+ if (result.reason === 'project-scope-unavailable') refreshWorktrees();
+ toast.error(t(worktreeCreateErrorCopy(result)));
+ return;
+ }
refreshWorktrees();
await bridge.project.open({
path: result.path,
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
}, t`Failed to open worktree.`);
};
diff --git a/packages/app/src/components/NewWorktreeDialog.dom.test.tsx b/packages/app/src/components/NewWorktreeDialog.dom.test.tsx
index 9613875d4..a637cc8b4 100644
--- a/packages/app/src/components/NewWorktreeDialog.dom.test.tsx
+++ b/packages/app/src/components/NewWorktreeDialog.dom.test.tsx
@@ -50,6 +50,7 @@ describe('NewWorktreeDialog', () => {
path: '/repo/.ok/worktrees/my-feature',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
}),
);
});
@@ -198,6 +199,33 @@ describe('NewWorktreeDialog', () => {
expect(screen.queryByTestId('new-worktree-error-detail')).toBeNull();
});
+ test('explains when a nested project is absent without opening the rejected path', async () => {
+ const bridge = createBridge({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'missing',
+ path: '/repo/.ok/worktrees/dev',
+ created: true,
+ });
+ render(
+ <NewWorktreeDialog
+ open={true}
+ onOpenChange={noop}
+ bridge={bridge as never}
+ currentBranch="main"
+ />,
+ );
+ fireEvent.change(await screen.findByTestId('new-worktree-branch'), {
+ target: { value: 'dev' },
+ });
+ fireEvent.click(screen.getByTestId('new-worktree-create'));
+ const error = await screen.findByTestId('new-worktree-error');
+ expect(error.textContent).toContain('does not contain this OpenKnowledge project');
+ expect(error.textContent).toContain('created but not opened');
+ expect(refreshWorktrees).toHaveBeenCalledTimes(1);
+ expect(bridge.project.open).not.toHaveBeenCalled();
+ });
+
test('checks out an existing branch (createBranch false, no base) and refreshes the cache', async () => {
const bridge = createBridge({
ok: true,
@@ -230,6 +258,7 @@ describe('NewWorktreeDialog', () => {
path: '/repo/.ok/worktrees/dev',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
}),
);
expect(refreshWorktrees).toHaveBeenCalled();
@@ -537,6 +566,7 @@ describe('NewWorktreeDialog', () => {
path: '/repo/.ok/worktrees/dev',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
}),
);
expect(refreshWorktrees).toHaveBeenCalled();
@@ -610,6 +640,7 @@ describe('NewWorktreeDialog', () => {
path: '/repo/.ok/worktrees/feature-x',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
}),
);
});
diff --git a/packages/app/src/components/NewWorktreeDialog.tsx b/packages/app/src/components/NewWorktreeDialog.tsx
index 287c5902b..f02ee9fbe 100644
--- a/packages/app/src/components/NewWorktreeDialog.tsx
+++ b/packages/app/src/components/NewWorktreeDialog.tsx
@@ -2,7 +2,6 @@
import { stripRemotePrefix } from '@inkeep/open-knowledge-core';
import type { MessageDescriptor } from '@lingui/core';
-import { msg } from '@lingui/core/macro';
import { Trans, useLingui } from '@lingui/react/macro';
import { Check, ChevronsUpDown, Cloud, FolderOpen, GitBranch, Plus, Search } from 'lucide-react';
import { useEffect, useId, useRef, useState } from 'react';
@@ -22,6 +21,7 @@ import { InputGroup, InputGroupAddon, InputGroupInput } from '@/components/ui/in
import { Label } from '@/components/ui/label';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
import type { OkDesktopBridge } from '@/lib/desktop-bridge-types';
+import { worktreeCreateErrorCopy } from '@/lib/worktree-create-error';
import { refreshWorktrees } from '@/lib/worktree-store';
interface NewWorktreeDialogProps {
@@ -53,27 +53,6 @@ function findRemoteRef(name: string, remoteBranches: readonly string[]): string
return remoteBranches.find((ref) => stripRemotePrefix(ref) === name) ?? null;
}
-function createErrorCopy(reason: string): MessageDescriptor {
- switch (reason) {
- case 'branch-exists':
- return msg`A branch with that name already exists. Open its worktree from the switcher instead.`;
- case 'already-checked-out':
- return msg`That branch is already open in another worktree.`;
- case 'path-exists':
- return msg`A worktree folder for that branch already exists.`;
- case 'invalid-branch':
- return msg`Enter a valid branch name (no spaces, no leading dot, no "..").`;
- case 'no-git':
- return msg`This project isn't a git repository, so worktrees aren't available.`;
- case 'empty-repo':
- return msg`This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again.`;
- case 'helper-not-found':
- return msg`Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again.`;
- default:
- return msg`Couldn't create the worktree. Try a different name.`;
- }
-}
-
interface CreateFailure {
readonly copy: MessageDescriptor;
readonly detail?: string;
@@ -175,7 +154,8 @@ export function NewWorktreeDialog({
};
const result = await bridge.worktree.create(request);
if (!result.ok) {
- setError({ copy: createErrorCopy(result.reason), detail: result.message });
+ if (result.reason === 'project-scope-unavailable') refreshWorktrees();
+ setError({ copy: worktreeCreateErrorCopy(result), detail: result.message });
setBusy(false);
return;
}
@@ -185,6 +165,7 @@ export function NewWorktreeDialog({
path: result.path,
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
} catch (err) {
console.warn('[NewWorktreeDialog] worktree create/open failed:', err);
diff --git a/packages/app/src/components/ProjectSwitcher.dom.test.tsx b/packages/app/src/components/ProjectSwitcher.dom.test.tsx
index 755a2dae7..043ea2856 100644
--- a/packages/app/src/components/ProjectSwitcher.dom.test.tsx
+++ b/packages/app/src/components/ProjectSwitcher.dom.test.tsx
@@ -216,6 +216,8 @@ function createBridge() {
},
worktree: {
list: vi.fn(() => Promise.resolve({ ok: false as const, reason: 'no-git' as const })),
+ inventory: vi.fn(() => Promise.resolve({ ok: false as const, reason: 'no-git' as const })),
+ openInventory: vi.fn(() => Promise.resolve({ ok: true as const })),
create: vi.fn(() => Promise.resolve({ ok: false as const, reason: 'no-git' as const })),
},
onMenuAction: vi.fn(() => () => {}),
@@ -249,7 +251,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
const bridge = createBridge();
render(<ProjectSwitcher bridge={bridge as never} />);
- expect(screen.getByTestId('project-switcher-trigger').textContent).toContain('Current Project');
+ expect(screen.getByTestId('project-switcher-trigger').textContent).toContain('current');
+ expect(screen.getByTestId('project-switcher-trigger').textContent).toContain('main');
await openMenu();
@@ -303,6 +306,16 @@ describe('ProjectSwitcher dropdown behavior', () => {
expect(createDialogProps.at(-1)?.bridge).toBe(bridge);
});
+ test('keeps a nested project name visible alongside its repository and branch', () => {
+ const bridge = createBridge();
+ bridge.config.projectName = 'docs';
+ render(<ProjectSwitcher bridge={bridge as never} />);
+ const trigger = screen.getByTestId('project-switcher-trigger');
+ expect(trigger.textContent).toContain('current');
+ expect(trigger.textContent).toContain('docs');
+ expect(trigger.textContent).toContain('main');
+ });
+
test('the per-row × removes a recent from the list without opening it', async () => {
const bridge = createBridge();
bridge.project.removeRecent = vi.fn(() => Promise.resolve());
@@ -319,7 +332,7 @@ describe('ProjectSwitcher dropdown behavior', () => {
});
});
- test('search matches projects only (not worktrees/branches), announces empty results, stops typeahead bubbling, and clears on close', async () => {
+ test('search includes linked recents, announces empty results, stops typeahead bubbling, and clears on close', async () => {
const bridge = createBridge();
render(<ProjectSwitcher bridge={bridge as never} />);
@@ -338,8 +351,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
expect(screen.getByTestId('project-switcher-recent-/archive/omega-project')).not.toBeNull();
});
expect(screen.queryByTestId('project-switcher-recent-/projects/project-1')).toBeNull();
- expect(screen.queryByTestId('project-switcher-worktree-/archive/omega-wt')).toBeNull();
- expect(screen.queryByTestId('project-switcher-branch-omega-branch')).toBeNull();
+ expect(screen.getByTestId('project-switcher-worktree-/archive/omega-wt')).not.toBeNull();
+ expect(screen.getByTestId('project-switcher-branch-omega-branch')).not.toBeNull();
fireEvent.change(search, { target: { value: 'does-not-exist' } });
@@ -379,6 +392,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
path: '/projects/current',
gitCommonDir: '/projects/current/.git',
mainRoot: '/projects/current',
+ checkoutRoot: '/projects/current',
+ projectSubPath: '',
isLinkedWorktree: false,
branch: 'main',
lastOpenedAt: '2026-07-01',
@@ -388,6 +403,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
path: '/projects/current/.ok/worktrees/has-worktree',
gitCommonDir: '/projects/current/.git',
mainRoot: '/projects/current',
+ checkoutRoot: '/projects/current/.ok/worktrees/has-worktree',
+ projectSubPath: '',
isLinkedWorktree: true,
branch: 'has-worktree',
lastOpenedAt: '2026-07-01',
@@ -424,6 +441,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
path: '/projects/current',
gitCommonDir: '/projects/current/.git',
mainRoot: '/projects/current',
+ checkoutRoot: '/projects/current',
+ projectSubPath: '',
isLinkedWorktree: false,
branch: 'main',
lastOpenedAt: '2026-07-01',
@@ -433,6 +452,8 @@ describe('ProjectSwitcher dropdown behavior', () => {
path: '/projects/current/.ok/worktrees/has-worktree',
gitCommonDir: '/projects/current/.git',
mainRoot: '/projects/current',
+ checkoutRoot: '/projects/current/.ok/worktrees/has-worktree',
+ projectSubPath: '',
isLinkedWorktree: true,
branch: 'has-worktree',
lastOpenedAt: '2026-07-01',
diff --git a/packages/app/src/components/ProjectSwitcher.tsx b/packages/app/src/components/ProjectSwitcher.tsx
index 19c47a9c4..760519c5a 100644
--- a/packages/app/src/components/ProjectSwitcher.tsx
+++ b/packages/app/src/components/ProjectSwitcher.tsx
@@ -27,6 +27,7 @@ import { subscribeLocalMenuAction } from '@/lib/local-menu-action-bus';
import { cn } from '@/lib/utils';
import { CreateProjectDialog } from './CreateProjectDialog';
import { NewWorktreeDialog } from './NewWorktreeDialog';
+import { basenameOf } from './project-switcher-recents';
import { RecentProjectsMenu } from './RecentProjectsMenu';
export const runWithToast = (
@@ -142,12 +143,22 @@ export function ProjectSwitcher({ bridge }: ProjectSwitcherProps) {
const currentPath = bridge.config.projectPath;
const query = search.trim().toLowerCase();
- const isSearching = query !== '';
const loadedRecents = recents ?? [];
- const menuRecents = isSearching
- ? loadedRecents.filter((r) => !r.isLinkedWorktree)
- : loadedRecents;
- const menuWorktreeModel = isSearching ? null : worktreeModel;
+ const menuRecents = loadedRecents;
+ const menuWorktreeModel = worktreeModel;
+ const triggerName =
+ worktreeModel !== null ? basenameOf(worktreeModel.mainRoot) : bridge.config.projectName;
+ const currentCheckout = worktreeModel?.entries.find((entry) => entry.isCurrent) ?? null;
+ const checkoutName =
+ branch ??
+ (currentCheckout?.worktreePath !== null && currentCheckout?.worktreePath !== undefined
+ ? basenameOf(currentCheckout.worktreePath)
+ : null);
+ const projectScopeName =
+ bridge.config.projectName === triggerName ? null : bridge.config.projectName;
+ const triggerCheckout = [projectScopeName, checkoutName]
+ .filter((value) => value !== null)
+ .join(' · ');
return (
<>
@@ -157,7 +168,7 @@ export function ProjectSwitcher({ bridge }: ProjectSwitcherProps) {
<SidebarMenuButton
className={cn(
'justify-between text-sidebar-foreground/70 hover:text-sidebar-foreground! data-open:hover:text-sidebar-foreground!',
- branch !== null && 'h-auto py-1.5',
+ triggerCheckout.length > 0 && 'h-auto py-1.5',
)}
data-testid="project-switcher-trigger"
aria-label={t`Open project menu`}
@@ -182,14 +193,14 @@ export function ProjectSwitcher({ bridge }: ProjectSwitcherProps) {
}
>
<span className="flex min-w-0 flex-col gap-0.5">
- <span className="truncate">{bridge.config.projectName}</span>
- {branch !== null ? (
+ <span className="truncate">{triggerName}</span>
+ {triggerCheckout.length > 0 ? (
<span
className="flex min-w-0 items-center gap-1 text-xs text-sidebar-foreground/50 group-hover/menu-button:text-sidebar-foreground"
data-testid="project-switcher-branch"
>
<GitBranch aria-hidden="true" className="size-3! shrink-0" />
- <span className="truncate">{branch}</span>
+ <span className="truncate">{triggerCheckout}</span>
</span>
) : null}
</span>
diff --git a/packages/app/src/components/RecentProjectsMenu.dom.test.tsx b/packages/app/src/components/RecentProjectsMenu.dom.test.tsx
index f6f1c5c56..b63810437 100644
--- a/packages/app/src/components/RecentProjectsMenu.dom.test.tsx
+++ b/packages/app/src/components/RecentProjectsMenu.dom.test.tsx
@@ -110,6 +110,8 @@ function main(path: string, commonDir: string, branch = 'main'): RecentProjectEn
lastOpenedAt: '2026-07-01',
gitCommonDir: commonDir,
mainRoot: path,
+ checkoutRoot: path,
+ projectSubPath: '',
isLinkedWorktree: false,
branch,
};
@@ -127,6 +129,8 @@ function worktree(
lastOpenedAt,
gitCommonDir: commonDir,
mainRoot,
+ checkoutRoot: path,
+ projectSubPath: '',
isLinkedWorktree: true,
branch,
};
@@ -146,6 +150,8 @@ function createBridge() {
return {
project: { open: vi.fn(() => Promise.resolve()) },
worktree: {
+ inventory: vi.fn(() => Promise.resolve({ ok: false as const, reason: 'no-git' as const })),
+ openInventory: vi.fn(() => Promise.resolve({ ok: true as const })),
create: vi.fn(() =>
Promise.resolve({
ok: true as const,
@@ -207,7 +213,7 @@ function renderMenu(
const bridge = overrides.bridge ?? createBridge();
const closeMenu = overrides.closeMenu ?? vi.fn(() => {});
const openNewWorktreeWith = overrides.openNewWorktreeWith ?? vi.fn((_name: string) => {});
- render(
+ const rendered = render(
<Host
bridge={bridge}
recents={overrides.recents ?? []}
@@ -218,7 +224,7 @@ function renderMenu(
openNewWorktreeWith={openNewWorktreeWith}
/>,
);
- return { bridge, closeMenu, openNewWorktreeWith };
+ return { bridge, closeMenu, openNewWorktreeWith, ...rendered };
}
const { RecentProjectsMenu } = await import('./RecentProjectsMenu');
@@ -244,12 +250,8 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
expect(groupRow.textContent).toContain('/repo');
expect(screen.queryByTestId('project-switcher-flyout-/repo')).toBeNull();
- const toggle = screen.getByTestId('project-switcher-toggle-/repo');
- expect(toggle.querySelectorAll('svg').length).toBe(0);
- expect(toggle.textContent).toContain('1 worktree');
- expect(toggle.textContent).not.toContain('1 worktrees');
-
- fireEvent.click(toggle);
+ expect(screen.queryByTestId('project-switcher-toggle-/repo')).toBeNull();
+ fireEvent.click(groupRow);
await waitFor(() => {
expect(screen.getByTestId('project-switcher-flyout-/repo')).not.toBeNull();
});
@@ -410,6 +412,7 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
path: '/repo/.ok/worktrees/dev',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
});
@@ -430,6 +433,7 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
},
{ branch: 'main', worktreePath: null, isCurrent: false, isMain: false, locked: false },
]),
+ currentPath: '/repo',
});
fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
@@ -451,9 +455,7 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
worktree('/repo/.ok/worktrees/newer', '/repo/.git', '/repo', 'newer', '2026-06-30'),
],
});
- expect(screen.getByTestId('project-switcher-toggle-/repo').textContent).toContain(
- '2 worktrees',
- );
+ expect(screen.queryByTestId('project-switcher-toggle-/repo')).toBeNull();
fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
const flyout = await screen.findByTestId('project-switcher-flyout-/repo');
@@ -467,8 +469,40 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
]);
});
- test('count chip + flyout affordance single-source from the builder: a model-known opened worktree not in Recents still counts', async () => {
+ test('lazy inventory adds a registered checkout that was never in Recents', async () => {
+ const bridge = createBridge();
+ bridge.worktree.inventory.mockResolvedValue({
+ ok: true,
+ inventory: {
+ gitCommonDir: '/repo/.git',
+ primaryCheckoutRoot: '/repo',
+ projectSubPath: '',
+ entries: [
+ {
+ checkoutRoot: '/repo',
+ projectPath: '/repo',
+ branch: 'main',
+ headSha: '1',
+ location: 'primary',
+ availability: 'available',
+ locked: false,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/repo/.ok/worktrees/ghost',
+ projectPath: '/repo/.ok/worktrees/ghost',
+ branch: 'ghost',
+ headSha: '2',
+ location: 'internal',
+ availability: 'available',
+ locked: false,
+ prunable: false,
+ },
+ ],
+ },
+ });
renderMenu({
+ bridge,
recents: [main('/repo', '/repo/.git')],
currentPath: '/repo',
worktreeModel: model([
@@ -483,13 +517,39 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
]),
});
expect(screen.getByTestId('project-switcher-group-/repo')).not.toBeNull();
- expect(screen.getByTestId('project-switcher-toggle-/repo').textContent).toContain('1 worktree');
+ expect(screen.queryByTestId('project-switcher-toggle-/repo')).toBeNull();
fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
await screen.findByTestId('project-switcher-flyout-/repo');
+ await waitFor(() => {
+ expect(screen.getByTestId('project-switcher-toggle-/repo').textContent).toContain(
+ '1 worktree',
+ );
+ });
expect(
screen.getByTestId('project-switcher-flyout-entry-/repo/.ok/worktrees/ghost'),
).not.toBeNull();
+ fireEvent.mouseLeave(screen.getByTestId('project-switcher-flyout-/repo'));
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
+ await waitFor(() => expect(bridge.worktree.inventory).toHaveBeenCalledTimes(2));
+ });
+
+ test('a zero-worktree repository exposes loading and initial-error states on first open', async () => {
+ const bridge = createBridge();
+ let resolveInventory:
+ | ((result: { ok: false; reason: 'enumeration-failed' }) => void)
+ | undefined;
+ bridge.worktree.inventory.mockImplementation(
+ () =>
+ new Promise((resolve) => {
+ resolveInventory = resolve;
+ }),
+ );
+ renderMenu({ bridge, recents: [main('/repo', '/repo/.git')] });
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
+ expect(await screen.findByText('Loading worktrees…')).not.toBeNull();
+ resolveInventory?.({ ok: false, reason: 'enumeration-failed' });
+ expect(await screen.findByText("Couldn't load worktrees.")).not.toBeNull();
});
test('the flyout search filters that project’s worktrees + branches; a create-on-demand branch creates its worktree', async () => {
@@ -542,6 +602,7 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
path: '/repo/.ok/worktrees/feature-x',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
expect(refreshWorktrees).toHaveBeenCalled();
@@ -721,16 +782,206 @@ describe('RecentProjectsMenu — grouped browse (no query)', () => {
renderMenu({
recents: [worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev')],
});
- const groupRow = screen.getByTestId('project-switcher-group-/repo');
- expect(groupRow.textContent).toContain('/repo');
- fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
- await screen.findByTestId('project-switcher-flyout-/repo');
+ const groupRow = screen.getByTestId('project-switcher-group-/repo/.ok/worktrees/dev');
+ expect(groupRow.textContent).toContain('/repo/.ok/worktrees/dev');
+ fireEvent.mouseEnter(groupRow);
+ await screen.findByTestId('project-switcher-flyout-/repo/.ok/worktrees/dev');
const devEntry = screen.getByTestId('project-switcher-flyout-entry-/repo/.ok/worktrees/dev');
expect(devEntry).not.toBeNull();
expect(screen.queryByTestId('project-switcher-flyout-entry-/repo')).toBeNull();
expect(devEntry.textContent).toContain('worktree');
expect(devEntry.textContent).not.toContain('primary');
});
+
+ test('another repository loads lazily, searches never-opened external paths, and opens exact inventory identity', async () => {
+ const bridge = createBridge();
+ bridge.worktree.inventory.mockImplementation(async ({ projectPath }) => {
+ if (projectPath !== '/other') return { ok: false as const, reason: 'no-git' as const };
+ return {
+ ok: true as const,
+ inventory: {
+ gitCommonDir: '/other/.git',
+ primaryCheckoutRoot: '/other',
+ projectSubPath: '',
+ entries: [
+ {
+ checkoutRoot: '/other',
+ projectPath: '/other',
+ branch: 'main',
+ headSha: '1',
+ location: 'primary' as const,
+ availability: 'available' as const,
+ locked: false,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/outside/other-locked',
+ projectPath: '/outside/other-locked',
+ branch: 'locked-feature',
+ headSha: '2',
+ location: 'external' as const,
+ availability: 'available' as const,
+ locked: true,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/outside/other-missing',
+ projectPath: '/outside/other-missing',
+ branch: 'missing-feature',
+ headSha: '3',
+ location: 'external' as const,
+ availability: 'missing' as const,
+ locked: false,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/outside/other-prunable',
+ projectPath: '/outside/other-prunable',
+ branch: 'prunable-feature',
+ headSha: '4',
+ location: 'external' as const,
+ availability: 'missing' as const,
+ locked: false,
+ prunable: true,
+ },
+ ],
+ },
+ };
+ });
+ renderMenu({
+ bridge,
+ recents: [main('/repo', '/repo/.git'), main('/other', '/other/.git')],
+ currentPath: '/repo',
+ });
+
+ expect(bridge.worktree.inventory).not.toHaveBeenCalled();
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/other'));
+ await waitFor(() => {
+ expect(bridge.worktree.inventory).toHaveBeenCalledWith({ projectPath: '/other' });
+ });
+
+ const search = screen.getByTestId('project-switcher-flyout-search-/other');
+ fireEvent.change(search, { target: { value: 'other-locked' } });
+ const locked = await screen.findByTestId('project-switcher-flyout-entry-/outside/other-locked');
+ expect(locked.textContent).toContain('locked');
+ fireEvent.click(locked);
+ await waitFor(() => {
+ expect(bridge.worktree.openInventory).toHaveBeenCalledWith({
+ anchorProjectPath: '/other',
+ gitCommonDir: '/other/.git',
+ projectSubPath: '',
+ checkoutRoot: '/outside/other-locked',
+ projectPath: '/outside/other-locked',
+ });
+ });
+ expect(bridge.project.open).not.toHaveBeenCalledWith(
+ expect.objectContaining({ path: '/outside/other-locked' }),
+ );
+
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/other'));
+ await screen.findByTestId('project-switcher-flyout-/other');
+ fireEvent.change(screen.getByTestId('project-switcher-flyout-search-/other'), {
+ target: { value: '' },
+ });
+ expect(
+ screen
+ .getByTestId('project-switcher-flyout-entry-/outside/other-missing')
+ .getAttribute('aria-disabled'),
+ ).toBe('true');
+ expect(
+ screen
+ .getByTestId('project-switcher-flyout-entry-/outside/other-prunable')
+ .getAttribute('aria-disabled'),
+ ).toBe('true');
+ fireEvent.keyDown(screen.getByTestId('project-switcher-flyout-entry-/outside/other-missing'), {
+ key: 'Enter',
+ });
+ expect(bridge.worktree.openInventory).toHaveBeenCalledTimes(1);
+ });
+
+ test('global search retains inventory-only checkouts from every repository already loaded', async () => {
+ const bridge = createBridge();
+ bridge.worktree.inventory.mockImplementation(async ({ projectPath }) => ({
+ ok: true as const,
+ inventory: {
+ gitCommonDir: `${projectPath}/.git`,
+ primaryCheckoutRoot: projectPath,
+ projectSubPath: '',
+ entries: [
+ {
+ checkoutRoot: projectPath,
+ projectPath,
+ branch: 'main',
+ headSha: '1',
+ location: 'primary' as const,
+ availability: 'available' as const,
+ locked: false,
+ prunable: false,
+ },
+ {
+ checkoutRoot: `/outside${projectPath}-only`,
+ projectPath: `/outside${projectPath}-only`,
+ branch: `${projectPath.slice(1)}-only`,
+ headSha: '2',
+ location: 'external' as const,
+ availability: 'available' as const,
+ locked: false,
+ prunable: false,
+ },
+ ],
+ },
+ }));
+ const recents = [main('/repo', '/repo/.git'), main('/other', '/other/.git')];
+ const rendered = renderMenu({ bridge, recents, currentPath: '/repo' });
+
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
+ await waitFor(() =>
+ expect(bridge.worktree.inventory).toHaveBeenCalledWith({ projectPath: '/repo' }),
+ );
+ fireEvent.mouseLeave(await screen.findByTestId('project-switcher-flyout-/repo'));
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/other'));
+ await waitFor(() =>
+ expect(bridge.worktree.inventory).toHaveBeenCalledWith({ projectPath: '/other' }),
+ );
+
+ rendered.rerender(
+ <Host
+ bridge={bridge}
+ recents={recents}
+ currentPath="/repo"
+ query="repo-only"
+ worktreeModel={null}
+ closeMenu={rendered.closeMenu}
+ openNewWorktreeWith={rendered.openNewWorktreeWith}
+ />,
+ );
+ expect(screen.getByTestId('project-switcher-inventory-/outside/repo-only')).not.toBeNull();
+ });
+
+ test('Enter never opens a disabled recent-only worktree row', async () => {
+ const missing = {
+ ...worktree('/repo/.ok/worktrees/missing', '/repo/.git', '/repo', 'missing'),
+ missing: true,
+ };
+ const { bridge } = renderMenu({
+ recents: [main('/repo', '/repo/.git'), missing],
+ currentPath: '/repo',
+ });
+ fireEvent.mouseEnter(screen.getByTestId('project-switcher-group-/repo'));
+ const row = await screen.findByTestId(
+ 'project-switcher-flyout-entry-/repo/.ok/worktrees/missing',
+ );
+ expect(row.getAttribute('aria-disabled')).toBe('true');
+ expect(row.textContent).toContain('project missing');
+ const search = screen.getByTestId('project-switcher-flyout-search-/repo');
+ fireEvent.keyDown(search, { key: 'ArrowDown' });
+ const primary = screen.getByTestId('project-switcher-flyout-entry-/repo');
+ fireEvent.keyDown(primary, { key: 'ArrowDown' });
+ expect(document.activeElement).toBe(row);
+ fireEvent.keyDown(row, { key: 'Enter' });
+ expect(bridge.worktree.openInventory).not.toHaveBeenCalled();
+ expect(bridge.project.open).not.toHaveBeenCalled();
+ });
});
describe('RecentProjectsMenu — flyout keyboard navigation (item 29)', () => {
@@ -808,6 +1059,7 @@ describe('RecentProjectsMenu — flyout keyboard navigation (item 29)', () => {
path: '/repo/.ok/worktrees/newer',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
});
@@ -856,6 +1108,7 @@ describe('RecentProjectsMenu — search (cross-project)', () => {
path: '/repo/.ok/worktrees/dev',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
});
@@ -880,6 +1133,7 @@ describe('RecentProjectsMenu — search (cross-project)', () => {
path: '/repo/.ok/worktrees/feature-x',
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
});
expect(refreshWorktrees).toHaveBeenCalled();
@@ -926,4 +1180,34 @@ describe('RecentProjectsMenu — search (cross-project)', () => {
await waitFor(() => expect(toastError).toHaveBeenCalled());
expect(bridge.project.open).not.toHaveBeenCalled();
});
+
+ test('a rejected project scope shows its cause, refreshes, and never opens', async () => {
+ toastError.mockClear();
+ refreshWorktrees.mockClear();
+ const bridge = createBridge();
+ bridge.worktree.create = vi.fn(() =>
+ Promise.resolve({
+ ok: false as const,
+ reason: 'project-scope-unavailable' as const,
+ issue: 'outside-worktree' as const,
+ path: '/repo/.ok/worktrees/feature-x',
+ created: true as const,
+ }),
+ );
+ renderMenu({
+ bridge,
+ query: 'feature',
+ worktreeModel: model([
+ { branch: 'feature-x', worktreePath: null, isCurrent: false, isMain: false, locked: false },
+ ]),
+ });
+ fireEvent.click(screen.getByTestId('project-switcher-branch-feature-x'));
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith(
+ 'The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened.',
+ ),
+ );
+ expect(refreshWorktrees).toHaveBeenCalledTimes(1);
+ expect(bridge.project.open).not.toHaveBeenCalled();
+ });
});
diff --git a/packages/app/src/components/RecentProjectsMenu.tsx b/packages/app/src/components/RecentProjectsMenu.tsx
index 1ede0cf1c..ab8a19074 100644
--- a/packages/app/src/components/RecentProjectsMenu.tsx
+++ b/packages/app/src/components/RecentProjectsMenu.tsx
@@ -1,6 +1,10 @@
// oxlint-disable ok/no-physical-direction-utility -- pre-rule backlog — physical margin/padding/inset utilities predate the rule; drain by swapping ml/mr → ms/me, pl/pr → ps/pe, left/right → start/end, then deleting this line. See https://github.com/inkeep/open-knowledge/blob/main/lint-plugins/ok-rules/README.md#no-physical-direction-utility
-import type { WorktreeSelectorEntry, WorktreeSelectorModel } from '@inkeep/open-knowledge-core';
+import type {
+ WorktreeInventoryModel,
+ WorktreeSelectorEntry,
+ WorktreeSelectorModel,
+} from '@inkeep/open-knowledge-core';
import { Plural, Trans, useLingui } from '@lingui/react/macro';
import { Check, GitBranch, Plus, Search } from 'lucide-react';
import type * as React from 'react';
@@ -17,6 +21,7 @@ import {
import { InputGroup, InputGroupAddon, InputGroupInput } from '@/components/ui/input-group';
import type { OkDesktopBridge, RecentProjectEntry } from '@/lib/desktop-bridge-types';
import { cn } from '@/lib/utils';
+import { worktreeCreateErrorCopy } from '@/lib/worktree-create-error';
import { refreshWorktrees } from '@/lib/worktree-store';
import {
basenameOf,
@@ -43,6 +48,12 @@ interface RecentProjectsMenuProps {
openNewWorktreeWith: (name: string) => void;
}
+interface InventoryViewState {
+ readonly inventory: WorktreeInventoryModel | null;
+ readonly loading: boolean;
+ readonly error: boolean;
+}
+
export function RecentProjectsMenu({
bridge,
recents,
@@ -57,20 +68,63 @@ export function RecentProjectsMenu({
openNewWorktreeWith,
}: RecentProjectsMenuProps) {
const { t } = useLingui();
+ const [inventoryViews, setInventoryViews] = useState<Record<string, InventoryViewState>>({});
+ const groups = groupRecentsByRepo(recents);
+
+ async function loadInventory(group: RecentRepoGroup): Promise<void> {
+ if (group.inventoryAnchorPath === null || group.gitCommonDir === null) return;
+ setInventoryViews((current) => ({
+ ...current,
+ [group.key]: {
+ inventory: current[group.key]?.inventory ?? null,
+ loading: true,
+ error: false,
+ },
+ }));
+ try {
+ const result = await bridge.worktree.inventory({ projectPath: group.inventoryAnchorPath });
+ setInventoryViews((current) => ({
+ ...current,
+ [group.key]: {
+ inventory: result.ok ? result.inventory : (current[group.key]?.inventory ?? null),
+ loading: false,
+ error: !result.ok,
+ },
+ }));
+ } catch (error) {
+ console.warn('[RecentProjectsMenu] worktree inventory failed:', error);
+ setInventoryViews((current) => ({
+ ...current,
+ [group.key]: {
+ inventory: current[group.key]?.inventory ?? null,
+ loading: false,
+ error: true,
+ },
+ }));
+ }
+ }
function openPath(path: string, entryPoint: 'recents' | 'worktree'): void {
closeMenu();
- void bridge.project.open({ path, target: 'new-window', entryPoint }).catch((err) => {
- console.warn('[RecentProjectsMenu] project.open failed:', err);
- toast.error(t`Failed to open.`);
- });
+ void bridge.project
+ .open({
+ path,
+ target: 'new-window',
+ entryPoint,
+ ...(entryPoint === 'worktree' ? { requireExactManagedProject: true } : {}),
+ })
+ .catch((err) => {
+ console.warn('[RecentProjectsMenu] project.open failed:', err);
+ toast.error(t`Failed to open.`);
+ });
}
async function createAndOpenBranch(branch: string): Promise<void> {
try {
const result = await bridge.worktree.create({ branch, createBranch: false });
if (!result.ok) {
- toast.error(t`Couldn't open a worktree for that branch.`);
+ if (result.reason === 'project-scope-unavailable') refreshWorktrees();
+ toast.error(t(worktreeCreateErrorCopy(result)));
return;
}
refreshWorktrees();
@@ -78,6 +132,7 @@ export function RecentProjectsMenu({
path: result.path,
target: 'new-window',
entryPoint: 'worktree',
+ requireExactManagedProject: true,
});
} catch (err) {
console.warn('[RecentProjectsMenu] create/open branch failed:', err);
@@ -94,12 +149,32 @@ export function RecentProjectsMenu({
}
function onPickFlyoutEntry(entry: WorktreeFlyoutEntry): void {
+ if (entry.kind === 'checkout' && (entry.prunable || entry.availability !== 'available')) return;
+ if (entry.kind === 'checkout' && entry.inventoryOpenRequest !== null) {
+ if (entry.path === currentPath) {
+ closeMenu();
+ return;
+ }
+ closeMenu();
+ void bridge.worktree
+ .openInventory(entry.inventoryOpenRequest)
+ .then((result) => {
+ if (!result.ok && result.reason !== 'open-failed') {
+ toast.error(t`This worktree is no longer available.`);
+ }
+ })
+ .catch((error) => {
+ console.warn('[RecentProjectsMenu] worktree.openInventory failed:', error);
+ toast.error(t`Failed to open worktree.`);
+ });
+ return;
+ }
if (entry.path !== null) {
if (entry.path === currentPath) {
closeMenu();
return;
}
- openPath(entry.path, entry.isMain ? 'recents' : 'worktree');
+ openPath(entry.path, entry.location === 'primary' ? 'recents' : 'worktree');
return;
}
if (entry.branch !== null) {
@@ -109,44 +184,55 @@ export function RecentProjectsMenu({
}
if (query !== '') {
+ const inventoryEntries = groups.flatMap((group) => {
+ const inventory = inventoryViews[group.key]?.inventory ?? null;
+ return inventory === null
+ ? []
+ : buildWorktreeFlyoutEntries(group, inventory, null, currentPath).filter(
+ (entry) => entry.kind === 'checkout',
+ );
+ });
return (
<SearchResults
recents={recents}
currentPath={currentPath}
query={query}
worktreeModel={worktreeModel}
+ inventoryEntries={inventoryEntries}
onPickEntry={onPickEntry}
onPickBranch={(branch) => {
closeMenu();
void createAndOpenBranch(branch);
}}
+ onPickInventoryEntry={onPickFlyoutEntry}
guardStaleSelect={guardStaleSelect}
onRemoveRecent={onRemoveRecent}
/>
);
}
- const groups = groupRecentsByRepo(recents);
return (
<>
{groups.map((group) => (
<GroupRow
- key={group.project.path}
+ key={group.key}
group={group}
currentPath={currentPath}
worktreeModel={worktreeModel}
- flyoutOpen={flyoutPath === group.project.path}
- setFlyoutOpen={(next) =>
- setFlyoutPath((cur) =>
- next ? group.project.path : cur === group.project.path ? null : cur,
- )
- }
+ inventoryView={inventoryViews[group.key] ?? null}
+ flyoutOpen={flyoutPath === group.key}
+ setFlyoutOpen={(next) => {
+ setFlyoutPath((cur) => (next ? group.key : cur === group.key ? null : cur));
+ if (next) void loadInventory(group);
+ }}
onPickProject={() => {
- if (group.project.path === currentPath) {
+ const primary = group.primaryProject;
+ if (primary === null || primary.missing === true) return;
+ if (primary.path === currentPath) {
closeMenu();
return;
}
- openPath(group.project.path, 'recents');
+ openPath(primary.path, 'recents');
}}
onPickFlyoutEntry={onPickFlyoutEntry}
guardStaleSelect={guardStaleSelect}
@@ -162,6 +248,7 @@ function GroupRow({
group,
currentPath,
worktreeModel,
+ inventoryView,
flyoutOpen,
setFlyoutOpen,
onPickProject,
@@ -173,6 +260,7 @@ function GroupRow({
group: RecentRepoGroup;
currentPath: string;
worktreeModel: WorktreeSelectorModel | null;
+ inventoryView: InventoryViewState | null;
flyoutOpen: boolean;
setFlyoutOpen: (open: boolean) => void;
onPickProject: () => void;
@@ -181,12 +269,20 @@ function GroupRow({
onRemoveRecent: (path: string) => void;
openNewWorktreeWith: (name: string) => void;
}) {
- const projectIsCurrent = group.project.path === currentPath;
-
- const flyoutEntries = buildWorktreeFlyoutEntries(group, worktreeModel, currentPath);
- const openedWorktreeCount = flyoutEntries.filter((e) => e.opened && !e.isMain).length;
+ const projectIsCurrent = group.primaryProject?.path === currentPath;
+ const flyoutEntries = buildWorktreeFlyoutEntries(
+ group,
+ inventoryView?.inventory ?? null,
+ worktreeModel,
+ currentPath,
+ );
+ const openedWorktreeCount =
+ inventoryView?.inventory === null || inventoryView === null
+ ? null
+ : flyoutEntries.filter((entry) => entry.kind === 'checkout' && entry.location !== 'primary')
+ .length;
- if (openedWorktreeCount === 0) {
+ if (group.gitCommonDir === null) {
return (
<RecentItemContextMenu
path={group.project.path}
@@ -220,13 +316,13 @@ function GroupRow({
);
}
- const containsCurrent = projectIsCurrent || group.worktrees.some((w) => w.path === currentPath);
+ const containsCurrent = group.recentEntries.some((entry) => entry.path === currentPath);
return (
<FlyoutGroup
group={group}
currentPath={currentPath}
containsCurrent={containsCurrent}
- worktreeModel={worktreeModel}
+ inventoryView={inventoryView}
flyoutEntries={flyoutEntries}
openedWorktreeCount={openedWorktreeCount}
flyoutOpen={flyoutOpen}
@@ -243,7 +339,7 @@ function FlyoutGroup({
group,
currentPath,
containsCurrent,
- worktreeModel,
+ inventoryView,
flyoutEntries,
openedWorktreeCount,
flyoutOpen,
@@ -256,9 +352,9 @@ function FlyoutGroup({
group: RecentRepoGroup;
currentPath: string;
containsCurrent: boolean;
- worktreeModel: WorktreeSelectorModel | null;
+ inventoryView: InventoryViewState | null;
flyoutEntries: WorktreeFlyoutEntry[];
- openedWorktreeCount: number;
+ openedWorktreeCount: number | null;
flyoutOpen: boolean;
setFlyoutOpen: (open: boolean) => void;
onPickProject: () => void;
@@ -267,9 +363,11 @@ function FlyoutGroup({
openNewWorktreeWith: (name: string) => void;
}) {
const { t } = useLingui();
- const projectIsCurrent = group.project.path === currentPath;
+ const projectIsCurrent = group.primaryProject?.path === currentPath;
+ const primaryIsOpenable = group.primaryProject !== null && group.primaryProject.missing !== true;
const openProjectFromRow = (nativeEvent: Event): void => {
+ if (!primaryIsOpenable) return;
if (guardStaleSelect(nativeEvent)) return;
onPickProject();
};
@@ -297,10 +395,10 @@ function FlyoutGroup({
{}
<span
className="truncate font-medium text-sm"
- data-project-open=""
- title={group.project.name}
+ data-project-open={primaryIsOpenable ? '' : undefined}
+ title={group.repositoryName}
>
- {group.project.name}
+ {group.repositoryName}
</span>
<span className="truncate text-muted-foreground text-xs" title={group.project.path}>
{group.project.path}
@@ -312,19 +410,25 @@ function FlyoutGroup({
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
/>
) : null}
+ {group.primaryProject?.missing === true ? (
+ <MissingCheckoutStatus className="mt-0.5" />
+ ) : null}
{}
- <span
- className="mt-0.5 shrink-0 text-muted-foreground text-xs"
- data-testid={`project-switcher-toggle-${group.project.path}`}
- >
- <span className="tabular-nums">{openedWorktreeCount}</span>{' '}
- <Plural value={openedWorktreeCount} one="worktree" other="worktrees" />
- </span>
+ {openedWorktreeCount === null ? null : (
+ <span
+ className="mt-0.5 shrink-0 text-muted-foreground text-xs"
+ data-testid={`project-switcher-toggle-${group.project.path}`}
+ >
+ <span className="tabular-nums">{openedWorktreeCount}</span>{' '}
+ <Plural value={openedWorktreeCount} one="worktree" other="worktrees" />
+ </span>
+ )}
</DropdownMenuSubTrigger>
<WorktreeFlyout
group={group}
+ currentPath={currentPath}
open={flyoutOpen}
- worktreeModel={worktreeModel}
+ inventoryView={inventoryView}
entries={flyoutEntries}
onPickFlyoutEntry={onPickFlyoutEntry}
guardStaleSelect={guardStaleSelect}
@@ -336,16 +440,18 @@ function FlyoutGroup({
function WorktreeFlyout({
group,
+ currentPath,
open,
- worktreeModel,
+ inventoryView,
entries,
onPickFlyoutEntry,
guardStaleSelect,
openNewWorktreeWith,
}: {
group: RecentRepoGroup;
+ currentPath: string;
open: boolean;
- worktreeModel: WorktreeSelectorModel | null;
+ inventoryView: InventoryViewState | null;
entries: WorktreeFlyoutEntry[];
onPickFlyoutEntry: (entry: WorktreeFlyoutEntry) => void;
guardStaleSelect: (event: Event) => boolean;
@@ -363,7 +469,7 @@ function WorktreeFlyout({
function focusableRows(): HTMLElement[] {
const container = listRef.current;
if (container === null) return [];
- return [...container.querySelectorAll<HTMLElement>('[role="menuitem"]')];
+ return [...container.querySelectorAll<HTMLElement>('[role="menuitem"]:not([data-disabled])')];
}
function focusRowAt(index: number): void {
const rows = focusableRows();
@@ -392,9 +498,14 @@ function WorktreeFlyout({
const q = flyoutQuery.trim().toLowerCase();
const visible =
- q === '' ? entries : entries.filter((e) => (e.branch ?? '').toLowerCase().includes(q));
- const isCurrentProject =
- worktreeModel !== null && worktreeModel.mainRoot === group.project.mainRoot;
+ q === ''
+ ? entries
+ : entries.filter(
+ (entry) =>
+ (entry.branch ?? '').toLowerCase().includes(q) ||
+ (entry.path ?? '').toLowerCase().includes(q),
+ );
+ const isCurrentProject = group.recentEntries.some((entry) => entry.path === currentPath);
const typedName = flyoutQuery.trim();
const canCreate = isCurrentProject && typedName.length > 0;
@@ -431,14 +542,34 @@ function WorktreeFlyout({
ref={listRef}
className="min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain subtle-scrollbar"
>
- {visible.length === 0 ? (
+ {inventoryView?.loading === true && inventoryView.inventory === null ? (
+ <DropdownMenuLabel
+ className="font-normal text-muted-foreground text-xs"
+ role="status"
+ aria-live="polite"
+ >
+ {t`Loading worktrees…`}
+ </DropdownMenuLabel>
+ ) : null}
+ {inventoryView?.error === true ? (
+ <DropdownMenuLabel
+ className="font-normal text-destructive text-xs"
+ role="status"
+ aria-live="polite"
+ >
+ {t`Couldn't load worktrees.`}
+ </DropdownMenuLabel>
+ ) : null}
+ {visible.length === 0 &&
+ inventoryView?.loading !== true &&
+ (inventoryView?.error !== true || q !== '') ? (
<>
<DropdownMenuLabel
className="font-normal text-muted-foreground text-xs"
role="status"
aria-live="polite"
>
- {t`No matching worktrees or branches.`}
+ {q === '' ? t`No worktrees found.` : t`No matching worktrees or branches.`}
</DropdownMenuLabel>
{}
{canCreate ? (
@@ -466,23 +597,46 @@ function WorktreeFlyout({
) : (
visible.map((entry) => {
const key = entry.path ?? `branch:${entry.branch}`;
- const label = entry.branch ?? t`(detached)`;
+ const label =
+ entry.branch ??
+ (entry.headSha === null
+ ? t`(detached)`
+ : t`Detached at ${entry.headSha.slice(0, 8)}`);
+ const disabled =
+ entry.kind === 'checkout' && (entry.prunable || entry.availability !== 'available');
return (
<DropdownMenuItem
key={key}
onSelect={(e) => {
if (guardStaleSelect(e)) return;
+ if (disabled) {
+ e.preventDefault();
+ return;
+ }
onPickFlyoutEntry(entry);
}}
- onKeyDown={(e) => onRowKeyDown(e, () => onPickFlyoutEntry(entry))}
- className="flex items-center gap-2"
+ onKeyDown={(e) =>
+ onRowKeyDown(e, () => {
+ if (!disabled) onPickFlyoutEntry(entry);
+ })
+ }
+ className="flex items-center gap-2 aria-disabled:opacity-50"
+ aria-disabled={disabled}
data-testid={`project-switcher-flyout-entry-${key}`}
data-current={entry.isCurrent ? 'true' : undefined}
>
- <span className="min-w-0 flex-1 truncate text-sm" title={label}>
- {label}
+ <span className="flex min-w-0 flex-1 flex-col gap-0.5">
+ <span className="truncate text-sm" title={label}>
+ {label}
+ </span>
+ {entry.path !== null ? (
+ <span className="truncate text-muted-foreground text-xs" title={entry.path}>
+ {entry.path}
+ </span>
+ ) : null}
</span>
<RowLocationBadge entry={entry} />
+ <CheckoutStatus entry={entry} />
{entry.isCurrent ? <CurrentCheck /> : null}
</DropdownMenuItem>
);
@@ -494,6 +648,54 @@ function WorktreeFlyout({
);
}
+function CheckoutStatus({ entry }: { entry: WorktreeFlyoutEntry }) {
+ const { t } = useLingui();
+ if (entry.kind !== 'checkout') return null;
+ if (entry.prunable) {
+ return (
+ <span
+ className="shrink-0 text-destructive text-xs"
+ title={t`Git marks this worktree as prunable.`}
+ >
+ {t`stale Git entry`}
+ </span>
+ );
+ }
+ if (entry.availability === 'missing') {
+ return <MissingCheckoutStatus />;
+ }
+ if (entry.availability === 'unreadable') {
+ return (
+ <span
+ className="shrink-0 text-destructive text-xs"
+ title={t`This checkout path cannot be read.`}
+ >
+ {t`path unreadable`}
+ </span>
+ );
+ }
+ return entry.locked ? (
+ <span
+ className="shrink-0 text-muted-foreground text-xs"
+ title={t`Git has locked this worktree, but it can still be opened.`}
+ >
+ {t`locked`}
+ </span>
+ ) : null;
+}
+
+function MissingCheckoutStatus({ className }: { className?: string }) {
+ const { t } = useLingui();
+ return (
+ <span
+ className={cn('shrink-0 text-destructive text-xs', className)}
+ title={t`The OpenKnowledge project is missing at this checkout path.`}
+ >
+ {t`project missing`}
+ </span>
+ );
+}
+
function RowLocationBadge({ entry }: { entry: WorktreeFlyoutEntry }) {
const { t } = useLingui();
const copy: Record<RowLocation, { label: string; description: string }> = {
@@ -501,9 +703,17 @@ function RowLocationBadge({ entry }: { entry: WorktreeFlyoutEntry }) {
label: t`primary`,
description: t`The repository's original clone directory`,
},
- worktree: {
+ internal: {
+ label: t`internal`,
+ description: t`Inside this repository's OpenKnowledge worktrees folder`,
+ },
+ external: {
+ label: t`external`,
+ description: t`Outside this repository's OpenKnowledge worktrees folder`,
+ },
+ unknown: {
label: t`worktree`,
- description: t`A linked worktree of this repository`,
+ description: t`A linked worktree whose location could not be loaded`,
},
none: {
label: t`create worktree`,
@@ -523,8 +733,10 @@ function SearchResults({
currentPath,
query,
worktreeModel,
+ inventoryEntries,
onPickEntry,
onPickBranch,
+ onPickInventoryEntry,
guardStaleSelect,
onRemoveRecent,
}: {
@@ -532,8 +744,10 @@ function SearchResults({
currentPath: string;
query: string;
worktreeModel: WorktreeSelectorModel | null;
+ inventoryEntries: readonly WorktreeFlyoutEntry[];
onPickEntry: (entry: RecentProjectEntry) => void;
onPickBranch: (branch: string) => void;
+ onPickInventoryEntry: (entry: WorktreeFlyoutEntry) => void;
guardStaleSelect: (event: Event) => boolean;
onRemoveRecent: (path: string) => void;
}) {
@@ -546,18 +760,22 @@ function SearchResults({
const openedWorktreeMatches = recents.filter(
(r) => r.isLinkedWorktree === true && (matches(r.branch ?? '') || matches(r.path)),
);
- const openedWorktreePaths = new Set(openedWorktreeMatches.map((w) => w.path));
+ const recentPaths = new Set(recents.map((entry) => entry.path));
+ const inventoryMatches = inventoryEntries.filter(
+ (entry) =>
+ entry.kind === 'checkout' &&
+ entry.path !== currentPath &&
+ !recentPaths.has(entry.path) &&
+ (matches(entry.branch ?? '') || matches(entry.path)),
+ );
const branchMatches: WorktreeSelectorEntry[] = (worktreeModel?.entries ?? []).filter(
- (e) =>
- e.branch !== null &&
- matches(e.branch) &&
- (e.worktreePath === null || !openedWorktreePaths.has(e.worktreePath)) &&
- e.worktreePath !== currentPath,
+ (e) => e.branch !== null && matches(e.branch) && e.worktreePath === null,
);
if (
projectMatches.length === 0 &&
openedWorktreeMatches.length === 0 &&
+ inventoryMatches.length === 0 &&
branchMatches.length === 0
) {
return (
@@ -584,12 +802,18 @@ function SearchResults({
<DropdownMenuItem
onSelect={(e) => {
if (guardStaleSelect(e)) return;
+ if (r.missing === true) {
+ e.preventDefault();
+ return;
+ }
onPickEntry(r);
}}
- className="flex w-full min-w-0 flex-col items-start gap-0.5 pr-8"
+ aria-disabled={r.missing === true}
+ className="flex w-full min-w-0 flex-col items-start gap-0.5 pr-8 aria-disabled:opacity-50"
data-testid={`project-switcher-recent-${r.path}`}
>
<ProjectLabel name={r.name} path={r.path} current={r.path === currentPath} />
+ {r.missing === true ? <MissingCheckoutStatus /> : null}
</DropdownMenuItem>
<RecentRemoveButton
path={r.path}
@@ -605,9 +829,14 @@ function SearchResults({
key={r.path}
onSelect={(e) => {
if (guardStaleSelect(e)) return;
+ if (r.missing === true) {
+ e.preventDefault();
+ return;
+ }
onPickEntry(r);
}}
- className="flex items-start gap-2"
+ aria-disabled={r.missing === true}
+ className="flex items-start gap-2 aria-disabled:opacity-50"
data-testid={`project-switcher-worktree-${r.path}`}
data-current={r.path === currentPath ? 'true' : undefined}
>
@@ -616,8 +845,34 @@ function SearchResults({
branch={r.branch ?? r.name}
project={r.mainRoot !== undefined ? basenameOf(r.mainRoot) : null}
/>
+ {r.missing === true ? <MissingCheckoutStatus /> : null}
</DropdownMenuItem>
))}
+ {inventoryMatches.map((entry) => {
+ if (entry.kind !== 'checkout') return null;
+ const label = entry.branch ?? entry.headSha?.slice(0, 8) ?? t`(detached)`;
+ const disabled = entry.prunable || entry.availability !== 'available';
+ return (
+ <DropdownMenuItem
+ key={`inventory:${entry.path}`}
+ onSelect={(event) => {
+ if (guardStaleSelect(event)) return;
+ if (disabled) {
+ event.preventDefault();
+ return;
+ }
+ onPickInventoryEntry(entry);
+ }}
+ aria-disabled={disabled}
+ className="flex items-start gap-2 aria-disabled:opacity-50"
+ data-testid={`project-switcher-inventory-${entry.path}`}
+ >
+ <GitBranch aria-hidden="true" className="mt-0.5 size-3.5 shrink-0" />
+ <WorktreeResultLabel branch={label} project={entry.path} />
+ <CheckoutStatus entry={entry} />
+ </DropdownMenuItem>
+ );
+ })}
{branchMatches.map((e) => (
<DropdownMenuItem
key={`branch:${e.branch}`}
diff --git a/packages/app/src/components/ShareBranchSwitchDialog.dom.test.tsx b/packages/app/src/components/ShareBranchSwitchDialog.dom.test.tsx
index b731275d9..c907fd35a 100644
--- a/packages/app/src/components/ShareBranchSwitchDialog.dom.test.tsx
+++ b/packages/app/src/components/ShareBranchSwitchDialog.dom.test.tsx
@@ -1104,6 +1104,34 @@ describe('ShareBranchSwitchDialog — worktree leg', () => {
expect(calls.open).not.toHaveBeenCalled();
});
+ test('a rejected project scope shows its exact cause, refreshes, and never opens', async () => {
+ const store = createShareReceiveStore();
+ const { bridge, calls } = makeBridge({
+ checkout: vi.fn(async () => ({
+ ok: false as const,
+ reason: 'project-scope-unavailable' as const,
+ issue: 'unsafe-setup-path' as const,
+ path: '/repo/.ok/worktrees/feat-branch-x',
+ created: true as const,
+ })),
+ });
+ renderDialog(bridge, store);
+
+ const worktreeBtn = await findEnabledWorktreeButton();
+ await act(async () => {
+ fireEvent.click(worktreeBtn);
+ await Promise.resolve();
+ });
+
+ await waitFor(() =>
+ expect(toastError).toHaveBeenCalledWith(
+ 'This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened.',
+ ),
+ );
+ expect(refreshWorktrees).toHaveBeenCalledTimes(1);
+ expect(calls.open).not.toHaveBeenCalled();
+ });
+
test('a not-found fetch failure shows the not-found copy, not the connection toast', async () => {
const store = createShareReceiveStore();
const { bridge } = makeBridge({
diff --git a/packages/app/src/components/ShareBranchSwitchDialog.tsx b/packages/app/src/components/ShareBranchSwitchDialog.tsx
index c5befbc7b..2117866fa 100644
--- a/packages/app/src/components/ShareBranchSwitchDialog.tsx
+++ b/packages/app/src/components/ShareBranchSwitchDialog.tsx
@@ -39,11 +39,12 @@ import {
selectBranchSwitchVariant,
shouldProbeTargetStatus,
type VerdictCellKind,
- type WorktreeCheckoutSideEffectReason,
+ type WorktreeCheckoutSideEffect,
} from '@/lib/share/branch-switch-flow';
import { missDialogStore } from '@/lib/share/miss-dialog-store';
import { formatReceiveLog } from '@/lib/share/receive-flow';
import { type ShareReceiveStore, shareReceiveStore } from '@/lib/share/receive-store';
+import { worktreeCreateErrorCopy } from '@/lib/worktree-create-error';
import { refreshWorktrees } from '@/lib/worktree-store';
export interface ShareBranchSwitchDialogProps {
@@ -368,14 +369,12 @@ export function ShareBranchSwitchDialog({
store.dismiss();
}
- function showWorktreeFailureToast(
- reason: WorktreeCheckoutSideEffectReason,
- {
- helper,
- authFailed,
- notFoundAsIdentity,
- }: { helper?: string; authFailed?: true; notFoundAsIdentity?: true } = {},
- ): void {
+ function showWorktreeFailureToast(failure: WorktreeCheckoutSideEffect): void {
+ const { reason } = failure;
+ const helper = 'helper' in failure ? failure.helper : undefined;
+ const authFailed = 'authFailed' in failure ? failure.authFailed : undefined;
+ const notFoundAsIdentity =
+ 'notFoundAsIdentity' in failure ? failure.notFoundAsIdentity : undefined;
if (reason === 'fetch-failed' && notFoundAsIdentity) {
toast.error(
t`Repository not found — it may not exist, or the account used may not have access.`,
@@ -427,6 +426,16 @@ export function ShareBranchSwitchDialog({
case 'invalid-branch':
toast.error(t`${shareBranch} isn't a valid branch name.`);
return;
+ case 'project-scope-unavailable':
+ toast.error(
+ t(
+ worktreeCreateErrorCopy({
+ reason,
+ issue: failure.projectScopeIssue,
+ }),
+ ),
+ );
+ return;
case 'proxy-null':
case 'error':
toast.error(t`Could not open ${shareBranch} in a worktree. Try again.`);
@@ -439,19 +448,16 @@ export function ShareBranchSwitchDialog({
}
function applyWorktreeOutcome(result: WorktreeCreateResult | null): void {
- let failureReason: WorktreeCheckoutSideEffectReason | null = null;
- let failureHelper: string | undefined;
- let failureAuth: true | undefined;
- let failureNotFoundAsIdentity: true | undefined;
+ if (result?.ok === false && result.reason === 'project-scope-unavailable') {
+ refreshWorktrees();
+ }
+ let failureSideEffect: WorktreeCheckoutSideEffect | undefined;
let shouldDismiss = false;
let openPath: string | null = null;
setBranchSwitchState((prev) => {
const { state: next, sideEffect } = applyWorktreeCheckoutOutcome(prev, result);
if (sideEffect) {
- failureReason = sideEffect.reason;
- failureHelper = sideEffect.helper;
- failureAuth = sideEffect.authFailed;
- failureNotFoundAsIdentity = sideEffect.notFoundAsIdentity;
+ failureSideEffect = sideEffect;
shouldDismiss = next.phase === 'dismissed';
}
if (next.phase === 'opening-worktree') {
@@ -459,18 +465,14 @@ export function ShareBranchSwitchDialog({
}
return next;
});
- if (failureReason !== null) {
+ if (failureSideEffect !== undefined) {
console.log(
formatReceiveLog({
- branch_dialog_action: `open-worktree-failed:${failureReason}`,
+ branch_dialog_action: `open-worktree-failed:${failureSideEffect.reason}`,
branch: shareBranch,
}),
);
- showWorktreeFailureToast(failureReason, {
- helper: failureHelper,
- authFailed: failureAuth,
- notFoundAsIdentity: failureNotFoundAsIdentity,
- });
+ showWorktreeFailureToast(failureSideEffect);
}
if (openPath !== null) {
refreshWorktrees();
diff --git a/packages/app/src/components/project-switcher-recents.test.ts b/packages/app/src/components/project-switcher-recents.test.ts
index 081036e29..01b1ff91f 100644
--- a/packages/app/src/components/project-switcher-recents.test.ts
+++ b/packages/app/src/components/project-switcher-recents.test.ts
@@ -1,4 +1,4 @@
-import type { WorktreeSelectorModel } from '@inkeep/open-knowledge-core';
+import type { WorktreeInventoryModel, WorktreeSelectorModel } from '@inkeep/open-knowledge-core';
import { describe, expect, test } from 'vitest';
import type { RecentProjectEntry } from '@/lib/desktop-bridge-types';
import {
@@ -8,267 +8,191 @@ import {
rowLocation,
} from './project-switcher-recents.ts';
-function main(path: string, commonDir: string, branch = 'main'): RecentProjectEntry {
+function recent(input: {
+ path: string;
+ commonDir?: string;
+ mainRoot?: string;
+ checkoutRoot?: string;
+ projectSubPath?: string;
+ linked?: boolean;
+ branch?: string;
+ opened?: string;
+}): RecentProjectEntry {
return {
- path,
- name: path.split('/').pop() ?? path,
- lastOpenedAt: '2026-07-01',
- gitCommonDir: commonDir,
- mainRoot: path,
- isLinkedWorktree: false,
- branch,
+ path: input.path,
+ name: basenameOf(input.path),
+ lastOpenedAt: input.opened ?? '2026-07-01',
+ ...(input.commonDir === undefined ? {} : { gitCommonDir: input.commonDir }),
+ ...(input.mainRoot === undefined ? {} : { mainRoot: input.mainRoot }),
+ ...(input.checkoutRoot === undefined ? {} : { checkoutRoot: input.checkoutRoot }),
+ ...(input.projectSubPath === undefined ? {} : { projectSubPath: input.projectSubPath }),
+ ...(input.linked === undefined ? {} : { isLinkedWorktree: input.linked }),
+ ...(input.branch === undefined ? {} : { branch: input.branch }),
};
}
-function worktree(
+
+function repoRecent(
path: string,
- commonDir: string,
- mainRoot: string,
+ checkoutRoot: string,
branch: string,
- lastOpenedAt = '2026-07-01',
+ options: { linked?: boolean; projectSubPath?: string; opened?: string } = {},
): RecentProjectEntry {
- return {
+ const projectSubPath = options.projectSubPath ?? '';
+ return recent({
path,
- name: path.split('/').pop() ?? path,
- lastOpenedAt,
- gitCommonDir: commonDir,
- mainRoot,
- isLinkedWorktree: true,
+ commonDir: '/repo/.git',
+ mainRoot: '/repo',
+ checkoutRoot,
+ projectSubPath,
+ linked: options.linked ?? checkoutRoot !== '/repo',
branch,
- };
+ opened: options.opened,
+ });
}
-function nonGit(path: string): RecentProjectEntry {
- return { path, name: path.split('/').pop() ?? path, lastOpenedAt: '2026-07-01' };
+
+function inventory(projectSubPath = ''): WorktreeInventoryModel {
+ const suffix = projectSubPath === '' ? '' : `/${projectSubPath}`;
+ return {
+ gitCommonDir: '/repo/.git',
+ primaryCheckoutRoot: '/repo',
+ projectSubPath,
+ entries: [
+ {
+ checkoutRoot: '/repo',
+ projectPath: `/repo${suffix}`,
+ branch: 'main',
+ headSha: '11111111',
+ location: 'primary',
+ availability: 'available',
+ locked: false,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/repo/.ok/worktrees/dev',
+ projectPath: `/repo/.ok/worktrees/dev${suffix}`,
+ branch: 'dev',
+ headSha: '22222222',
+ location: 'internal',
+ availability: 'available',
+ locked: true,
+ prunable: false,
+ },
+ {
+ checkoutRoot: '/external/repo-feat',
+ projectPath: `/external/repo-feat${suffix}`,
+ branch: null,
+ headSha: '33333333',
+ location: 'external',
+ availability: 'missing',
+ locked: false,
+ prunable: true,
+ },
+ ],
+ };
}
-function model(
- entries: WorktreeSelectorModel['entries'],
- mainRoot = '/repo',
-): WorktreeSelectorModel {
- return { mainRoot, currentBranch: 'main', entries, remoteBranches: [] };
+function selector(entries: WorktreeSelectorModel['entries']): WorktreeSelectorModel {
+ return { mainRoot: '/repo', currentBranch: 'main', entries, remoteBranches: [] };
}
describe('basenameOf', () => {
- test('handles / and \\ and trailing slashes', () => {
- expect(basenameOf('/a/b/test')).toBe('test');
+ test('handles platform separators and trailing slashes', () => {
expect(basenameOf('/a/b/test/')).toBe('test');
expect(basenameOf('C:\\a\\b\\test')).toBe('test');
- expect(basenameOf('solo')).toBe('solo');
});
});
describe('groupRecentsByRepo', () => {
- test('groups a repo main + its linked worktrees under one group', () => {
+ test('groups by repository identity plus project-relative root', () => {
const groups = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
- worktree('/repo/.ok/worktrees/feat', '/repo/.git', '/repo', 'feat'),
+ repoRecent('/repo', '/repo', 'main'),
+ repoRecent('/repo/.ok/worktrees/dev', '/repo/.ok/worktrees/dev', 'dev'),
+ repoRecent('/repo/packages/docs', '/repo', 'main', { projectSubPath: 'packages/docs' }),
+ repoRecent('/external/repo-docs/packages/docs', '/external/repo-docs', 'docs', {
+ linked: true,
+ projectSubPath: 'packages/docs',
+ }),
]);
- expect(groups).toHaveLength(1);
- expect(groups[0]?.project.path).toBe('/repo');
- expect(groups[0]?.projectSynthesized).toBe(false);
- expect(groups[0]?.worktrees.map((w) => w.branch)).toEqual(['dev', 'feat']);
- });
-
- test('non-git recents become singleton groups with no worktrees', () => {
- const groups = groupRecentsByRepo([nonGit('/notes'), nonGit('/scratch')]);
expect(groups).toHaveLength(2);
- expect(groups.every((g) => g.worktrees.length === 0)).toBe(true);
- expect(groups.map((g) => g.project.path)).toEqual(['/notes', '/scratch']);
- });
-
- test('synthesizes the project row when only a worktree is in recents', () => {
- const groups = groupRecentsByRepo([
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
- ]);
- expect(groups).toHaveLength(1);
- expect(groups[0]?.project.path).toBe('/repo');
- expect(groups[0]?.project.name).toBe('repo');
- expect(groups[0]?.projectSynthesized).toBe(true);
- expect(groups[0]?.worktrees).toHaveLength(1);
+ expect(groups.map((group) => group.projectSubPath)).toEqual(['', 'packages/docs']);
+ expect(groups[0]?.worktrees.map((entry) => entry.branch)).toEqual(['dev']);
+ expect(groups[1]?.worktrees.map((entry) => entry.branch)).toEqual(['docs']);
});
- test('preserves recents order across groups', () => {
- const groups = groupRecentsByRepo([
- main('/alpha', '/alpha/.git'),
- nonGit('/notes'),
- main('/beta', '/beta/.git'),
- worktree('/alpha/.ok/worktrees/x', '/alpha/.git', '/alpha', 'x'),
- ]);
- expect(groups.map((g) => g.project.path)).toEqual(['/alpha', '/notes', '/beta']);
- expect(groups[0]?.worktrees).toHaveLength(1);
+ test('linked-only history keeps repository identity without fabricating a primary path', () => {
+ const linked = repoRecent('/external/repo-feat', '/external/repo-feat', 'feat');
+ const [group] = groupRecentsByRepo([linked]);
+ expect(group?.gitCommonDir).toBe('/repo/.git');
+ expect(group?.repositoryName).toBe('repo');
+ expect(group?.primaryProject).toBeNull();
+ expect(group?.project.path).toBe(linked.path);
+ expect(group?.inventoryAnchorPath).toBe(linked.path);
});
- test('two different repos stay separate', () => {
- const groups = groupRecentsByRepo([
- main('/a', '/a/.git'),
- worktree('/a/.ok/worktrees/x', '/a/.git', '/a', 'x'),
- main('/b', '/b/.git'),
- ]);
- expect(groups).toHaveLength(2);
+ test('non-Git recents remain independent project groups', () => {
+ const groups = groupRecentsByRepo([recent({ path: '/notes' }), recent({ path: '/scratch' })]);
+ expect(groups.map((group) => group.project.path)).toEqual(['/notes', '/scratch']);
+ expect(groups.every((group) => group.gitCommonDir === null)).toBe(true);
});
});
describe('buildWorktreeFlyoutEntries', () => {
- test('pins main first, then opened worktrees by recency (newest first)', () => {
+ test('a linked-only recent receives the full selected-scope inventory', () => {
const [group] = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/older', '/repo/.git', '/repo', 'older', '2026-06-01'),
- worktree('/repo/.ok/worktrees/newer', '/repo/.git', '/repo', 'newer', '2026-06-30'),
+ repoRecent('/repo/.ok/worktrees/dev', '/repo/.ok/worktrees/dev', 'dev'),
]);
- if (group === undefined) throw new Error('group');
- const entries = buildWorktreeFlyoutEntries(group, null, '/other');
- expect(entries.map((e) => e.path)).toEqual([
+ if (group === undefined) throw new Error('missing group');
+ const entries = buildWorktreeFlyoutEntries(group, inventory(), null, '/elsewhere');
+ expect(entries.map((entry) => entry.path)).toEqual([
'/repo',
- '/repo/.ok/worktrees/newer',
- '/repo/.ok/worktrees/older',
- ]);
- expect(entries[0]?.isMain).toBe(true);
- expect(entries[0]?.branch).toBe('main');
- });
-
- test('flags the current entry', () => {
- const [group] = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
+ '/repo/.ok/worktrees/dev',
+ '/external/repo-feat',
]);
- if (group === undefined) throw new Error('group');
- const entries = buildWorktreeFlyoutEntries(group, null, '/repo/.ok/worktrees/dev');
- expect(entries.find((e) => e.path === '/repo/.ok/worktrees/dev')?.isCurrent).toBe(true);
- expect(entries.find((e) => e.isMain)?.isCurrent).toBe(false);
+ expect(entries.map(rowLocation)).toEqual(['primary', 'internal', 'external']);
+ expect(entries[1]).toMatchObject({ locked: true, availability: 'available' });
+ expect(entries[2]).toMatchObject({ prunable: true, availability: 'missing' });
});
- test('a synthesized project row contributes no pinned main entry', () => {
+ test('nested project inventory keeps the projected project path as open identity', () => {
const [group] = groupRecentsByRepo([
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
+ repoRecent('/repo/packages/docs', '/repo', 'main', { projectSubPath: 'packages/docs' }),
]);
- if (group === undefined) throw new Error('group');
- const entries = buildWorktreeFlyoutEntries(group, null, '/other');
- expect(entries.some((e) => e.isMain)).toBe(false);
- expect(entries.map((e) => e.path)).toEqual(['/repo/.ok/worktrees/dev']);
- });
-
- test('merges the current project’s un-opened branches (create-on-demand) after opened worktrees', () => {
- const [group] = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
- ]);
- if (group === undefined) throw new Error('group');
+ if (group === undefined) throw new Error('missing group');
const entries = buildWorktreeFlyoutEntries(
group,
- model([
- { branch: 'main', worktreePath: '/repo', isCurrent: false, isMain: true, locked: false },
- {
- branch: 'dev',
- worktreePath: '/repo/.ok/worktrees/dev',
- isCurrent: false,
- isMain: false,
- locked: false,
- },
- { branch: 'zeta', worktreePath: null, isCurrent: false, isMain: false, locked: false },
- { branch: 'alpha', worktreePath: null, isCurrent: false, isMain: false, locked: false },
- ]),
- '/other',
+ inventory('packages/docs'),
+ null,
+ '/repo/packages/docs',
);
- expect(entries.map((e) => e.branch)).toEqual(['main', 'dev', 'alpha', 'zeta']);
- const alpha = entries.find((e) => e.branch === 'alpha');
- expect(alpha?.opened).toBe(false);
- expect(alpha?.path).toBeNull();
- });
-
- test('does not merge a branch model belonging to a different project', () => {
- const [group] = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
+ expect(entries.find((entry) => entry.location === 'internal')).toMatchObject({
+ path: '/repo/.ok/worktrees/dev/packages/docs',
+ checkoutRoot: '/repo/.ok/worktrees/dev',
+ isCurrent: false,
+ inventoryOpenRequest: {
+ projectSubPath: 'packages/docs',
+ projectPath: '/repo/.ok/worktrees/dev/packages/docs',
+ },
+ });
+ });
+
+ test('branch creation entries appear only for the active project scope', () => {
+ const [active] = groupRecentsByRepo([repoRecent('/repo', '/repo', 'main')]);
+ const [inactive] = groupRecentsByRepo([
+ repoRecent('/repo/packages/docs', '/repo', 'main', { projectSubPath: 'packages/docs' }),
]);
- if (group === undefined) throw new Error('group');
- const entries = buildWorktreeFlyoutEntries(
- group,
- model(
- [{ branch: 'leak', worktreePath: null, isCurrent: false, isMain: false, locked: false }],
- '/elsewhere',
- ),
- '/other',
- );
- expect(entries.some((e) => e.branch === 'leak')).toBe(false);
- });
-
- test('does not double-list a branch already present as an opened worktree', () => {
- const [group] = groupRecentsByRepo([
- main('/repo', '/repo/.git'),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
+ if (active === undefined || inactive === undefined) throw new Error('missing group');
+ const branchModel = selector([
+ { branch: 'new-branch', worktreePath: null, isCurrent: false, isMain: false, locked: false },
]);
- if (group === undefined) throw new Error('group');
- const entries = buildWorktreeFlyoutEntries(
- group,
- model([
- {
- branch: 'dev',
- worktreePath: '/repo/.ok/worktrees/dev',
- isCurrent: false,
- isMain: false,
- locked: false,
- },
- ]),
- '/other',
- );
- expect(entries.filter((e) => e.branch === 'dev')).toHaveLength(1);
- });
-});
-
-describe('rowLocation', () => {
- test('classifies each row into exactly one location', () => {
- expect(rowLocation({ isMain: true, opened: true })).toBe('primary');
- expect(rowLocation({ isMain: false, opened: true })).toBe('worktree');
- expect(rowLocation({ isMain: false, opened: false })).toBe('none');
- });
-
- test('a row with no worktree keeps its creation affordance even when flagged as the original clone', () => {
- expect(rowLocation({ isMain: true, opened: false })).toBe('none');
- });
-
- test('every combination of the two inputs yields the expected location', () => {
- const locations = [true, false].flatMap((isMain) =>
- [true, false].map((opened) => rowLocation({ isMain, opened })),
- );
- expect(locations).toEqual(['primary', 'none', 'worktree', 'none']);
- });
-});
-
-describe('the original clone is identified by directory, not by branch (PRD-7330)', () => {
- function group(rootBranch: string) {
- const [g] = groupRecentsByRepo([
- main('/repo', '/repo/.git', rootBranch),
- worktree('/repo/.ok/worktrees/dev', '/repo/.git', '/repo', 'dev'),
- ]);
- if (g === undefined) throw new Error('group');
- return g;
- }
-
- test('the original clone is `primary` whatever branch is checked out there', () => {
- for (const rootBranch of ['main', 'feat/login', 'fix/crash']) {
- const entries = buildWorktreeFlyoutEntries(group(rootBranch), null, '/repo');
- const primary = entries.filter((e) => rowLocation(e) === 'primary');
- expect(primary).toHaveLength(1);
- expect(primary[0]?.branch).toBe(rootBranch);
- }
- });
-
- test('the repository default branch is not badged `primary` when the original clone is elsewhere', () => {
- const entries = buildWorktreeFlyoutEntries(
- group('feat/login'),
- model([
- { branch: 'main', worktreePath: null, isCurrent: false, isMain: false, locked: false },
- ]),
- '/repo',
- );
- const mainRow = entries.find((e) => e.branch === 'main');
- if (mainRow === undefined) throw new Error('expected a row for the default branch');
- expect(rowLocation(mainRow)).toBe('none');
- });
-
- test('linked worktrees are badged `worktree`, so neither category is inferred from absence', () => {
- const entries = buildWorktreeFlyoutEntries(group('feat/login'), null, '/repo');
- expect(entries.map((e) => rowLocation(e)).filter((l) => l === 'worktree')).toHaveLength(1);
- expect(entries.map((e) => rowLocation(e))).toHaveLength(entries.length);
+ expect(
+ buildWorktreeFlyoutEntries(active, inventory(), branchModel, '/repo').map(
+ (entry) => entry.branch,
+ ),
+ ).toContain('new-branch');
+ expect(
+ buildWorktreeFlyoutEntries(inactive, inventory('packages/docs'), branchModel, '/repo').map(
+ (entry) => entry.branch,
+ ),
+ ).not.toContain('new-branch');
});
});
diff --git a/packages/app/src/components/project-switcher-recents.ts b/packages/app/src/components/project-switcher-recents.ts
index 8f16f58a4..b8ccd523a 100644
--- a/packages/app/src/components/project-switcher-recents.ts
+++ b/packages/app/src/components/project-switcher-recents.ts
@@ -1,139 +1,269 @@
-import type { WorktreeSelectorModel } from '@inkeep/open-knowledge-core';
+import type {
+ WorktreeInventoryEntry,
+ WorktreeInventoryLocation,
+ WorktreeInventoryModel,
+ WorktreeInventoryOpenRequest,
+ WorktreeSelectorModel,
+} from '@inkeep/open-knowledge-core';
import type { RecentProjectEntry } from '@/lib/desktop-bridge-types';
export interface RecentRepoGroup {
+ readonly key: string;
readonly project: RecentProjectEntry;
+ readonly primaryProject: RecentProjectEntry | null;
readonly worktrees: readonly RecentProjectEntry[];
+ readonly recentEntries: readonly RecentProjectEntry[];
readonly projectSynthesized: boolean;
+ readonly repositoryName: string;
+ readonly gitCommonDir: string | null;
+ readonly projectSubPath: string | null;
+ readonly inventoryAnchorPath: string | null;
}
-export interface WorktreeFlyoutEntry {
+interface WorktreeCheckoutFlyoutEntry {
+ readonly kind: 'checkout';
readonly branch: string | null;
- readonly path: string | null;
- readonly opened: boolean;
- readonly isMain: boolean;
+ readonly headSha: string | null;
+ readonly path: string;
+ readonly checkoutRoot: string;
+ readonly location: WorktreeInventoryLocation | 'unknown';
+ readonly availability: 'available' | 'missing' | 'unreadable';
+ readonly locked: boolean;
+ readonly prunable: boolean;
readonly isCurrent: boolean;
+ readonly inventoryOpenRequest: WorktreeInventoryOpenRequest | null;
}
-export type RowLocation = 'primary' | 'worktree' | 'none';
+interface WorktreeBranchFlyoutEntry {
+ readonly kind: 'branch';
+ readonly branch: string;
+ readonly headSha: null;
+ readonly path: null;
+ readonly checkoutRoot: null;
+ readonly location: 'none';
+ readonly availability: 'available';
+ readonly locked: false;
+ readonly prunable: false;
+ readonly isCurrent: false;
+ readonly inventoryOpenRequest: null;
+}
+
+export type WorktreeFlyoutEntry = WorktreeCheckoutFlyoutEntry | WorktreeBranchFlyoutEntry;
-export function rowLocation(entry: Pick<WorktreeFlyoutEntry, 'isMain' | 'opened'>): RowLocation {
- if (!entry.opened) return 'none';
- return entry.isMain ? 'primary' : 'worktree';
+export type RowLocation = WorktreeInventoryLocation | 'unknown' | 'none';
+
+export function rowLocation(entry: WorktreeFlyoutEntry): RowLocation {
+ return entry.location;
}
export function buildWorktreeFlyoutEntries(
group: RecentRepoGroup,
+ inventory: WorktreeInventoryModel | null,
worktreeModel: WorktreeSelectorModel | null,
currentPath: string,
): WorktreeFlyoutEntry[] {
const entries: WorktreeFlyoutEntry[] = [];
const seenPaths = new Set<string>();
const seenBranches = new Set<string>();
+ const recentRank = new Map(
+ [...group.recentEntries]
+ .sort((a, b) => b.lastOpenedAt.localeCompare(a.lastOpenedAt))
+ .map((entry, index) => [entry.path, index]),
+ );
- const isCurrentModel =
- worktreeModel !== null && worktreeModel.mainRoot === group.project.mainRoot;
-
- if (!group.projectSynthesized) {
- entries.push({
- branch: group.project.branch ?? null,
- path: group.project.path,
- opened: true,
- isMain: true,
- isCurrent: group.project.path === currentPath,
- });
- seenPaths.add(group.project.path);
- if (group.project.branch != null) seenBranches.add(group.project.branch);
+ if (inventoryMatchesGroup(inventory, group)) {
+ for (const entry of inventory.entries) {
+ entries.push(inventoryFlyoutEntry(entry, inventory, group, currentPath));
+ seenPaths.add(entry.projectPath);
+ if (entry.branch !== null) seenBranches.add(entry.branch);
+ }
}
- const openedByRecency = [...group.worktrees].sort((a, b) =>
- b.lastOpenedAt.localeCompare(a.lastOpenedAt),
- );
- for (const wt of openedByRecency) {
- if (seenPaths.has(wt.path)) continue;
+ for (const recent of group.recentEntries) {
+ if (seenPaths.has(recent.path)) continue;
+ const isPrimary = recent.isLinkedWorktree !== true;
entries.push({
- branch: wt.branch ?? null,
- path: wt.path,
- opened: true,
- isMain: false,
- isCurrent: wt.path === currentPath,
+ kind: 'checkout',
+ branch: recent.branch ?? null,
+ headSha: null,
+ path: recent.path,
+ checkoutRoot: recent.checkoutRoot ?? recent.path,
+ location: isPrimary ? 'primary' : 'unknown',
+ availability: recent.missing === true ? 'missing' : 'available',
+ locked: false,
+ prunable: false,
+ isCurrent: recent.path === currentPath,
+ inventoryOpenRequest: null,
});
- seenPaths.add(wt.path);
- if (wt.branch != null) seenBranches.add(wt.branch);
+ seenPaths.add(recent.path);
+ if (recent.branch != null) seenBranches.add(recent.branch);
}
- if (isCurrentModel) {
- const modelExtras = worktreeModel.entries
- .filter(
- (e) =>
- e.branch !== null &&
- !seenBranches.has(e.branch) &&
- (e.worktreePath === null || !seenPaths.has(e.worktreePath)),
- )
- .sort((a, b) => (a.branch ?? '').localeCompare(b.branch ?? ''));
- for (const e of modelExtras) {
+ if (group.recentEntries.some((entry) => entry.path === currentPath)) {
+ for (const selectorEntry of worktreeModel?.entries ?? []) {
+ if (
+ selectorEntry.branch === null ||
+ selectorEntry.worktreePath !== null ||
+ seenBranches.has(selectorEntry.branch)
+ ) {
+ continue;
+ }
entries.push({
- branch: e.branch,
- path: e.worktreePath,
- opened: e.worktreePath !== null,
- isMain: e.isMain,
- isCurrent: e.isCurrent,
+ kind: 'branch',
+ branch: selectorEntry.branch,
+ headSha: null,
+ path: null,
+ checkoutRoot: null,
+ location: 'none',
+ availability: 'available',
+ locked: false,
+ prunable: false,
+ isCurrent: false,
+ inventoryOpenRequest: null,
});
- if (e.branch != null) seenBranches.add(e.branch);
- if (e.worktreePath != null) seenPaths.add(e.worktreePath);
+ seenBranches.add(selectorEntry.branch);
}
}
- return entries.sort((a, b) => rankFlyout(a) - rankFlyout(b));
+ return entries.sort((a, b) => compareFlyout(a, b, recentRank));
}
-function rankFlyout(e: WorktreeFlyoutEntry): number {
- if (e.isMain) return 0;
- if (e.opened) return 1;
- return 2;
+function inventoryFlyoutEntry(
+ entry: WorktreeInventoryEntry,
+ inventory: WorktreeInventoryModel,
+ group: RecentRepoGroup,
+ currentPath: string,
+): WorktreeCheckoutFlyoutEntry {
+ return {
+ kind: 'checkout',
+ branch: entry.branch,
+ headSha: entry.headSha,
+ path: entry.projectPath,
+ checkoutRoot: entry.checkoutRoot,
+ location: entry.location,
+ availability: entry.availability,
+ locked: entry.locked,
+ prunable: entry.prunable,
+ isCurrent: entry.projectPath === currentPath,
+ inventoryOpenRequest:
+ group.inventoryAnchorPath === null
+ ? null
+ : {
+ anchorProjectPath: group.inventoryAnchorPath,
+ gitCommonDir: inventory.gitCommonDir,
+ projectSubPath: inventory.projectSubPath,
+ checkoutRoot: entry.checkoutRoot,
+ projectPath: entry.projectPath,
+ },
+ };
+}
+
+function compareFlyout(
+ a: WorktreeFlyoutEntry,
+ b: WorktreeFlyoutEntry,
+ recentRank: ReadonlyMap<string, number>,
+): number {
+ const rank = (entry: WorktreeFlyoutEntry): readonly [number, number, string] => {
+ if (entry.kind === 'checkout' && entry.location === 'primary') return [0, 0, entry.path];
+ if (entry.kind === 'checkout') {
+ const recent = recentRank.get(entry.path);
+ return [recent === undefined ? 2 : 1, recent ?? 0, entry.branch ?? entry.path];
+ }
+ return [3, 0, entry.branch];
+ };
+ const ar = rank(a);
+ const br = rank(b);
+ return ar[0] - br[0] || ar[1] - br[1] || ar[2].localeCompare(br[2]);
+}
+
+function inventoryMatchesGroup(
+ inventory: WorktreeInventoryModel | null,
+ group: RecentRepoGroup,
+): inventory is WorktreeInventoryModel {
+ return (
+ inventory !== null &&
+ inventory.gitCommonDir === group.gitCommonDir &&
+ inventory.projectSubPath === group.projectSubPath
+ );
}
export function basenameOf(path: string): string {
- const segments = path.split(/[/\\]/).filter((s) => s.length > 0);
+ const segments = path.split(/[/\\]/).filter((segment) => segment.length > 0);
return segments.length > 0 ? (segments[segments.length - 1] ?? path) : path;
}
interface GroupBuilder {
- project: RecentProjectEntry | null;
- mainRoot: string;
- worktrees: RecentProjectEntry[];
+ readonly key: string;
+ readonly gitCommonDir: string;
+ readonly mainRoot: string;
+ readonly projectSubPath: string;
+ readonly recentEntries: RecentProjectEntry[];
}
export function groupRecentsByRepo(recents: readonly RecentProjectEntry[]): RecentRepoGroup[] {
- const builders: GroupBuilder[] = [];
- const gitGroupIndex = new Map<string, number>();
+ const order: Array<RecentRepoGroup | GroupBuilder> = [];
+ const builders = new Map<string, GroupBuilder>();
for (const entry of recents) {
- const commonDir = entry.gitCommonDir;
- const mainRoot = entry.mainRoot;
- if (commonDir === undefined || mainRoot === undefined) {
- builders.push({ project: entry, mainRoot: entry.path, worktrees: [] });
+ if (
+ entry.gitCommonDir === undefined ||
+ entry.mainRoot === undefined ||
+ entry.projectSubPath === undefined
+ ) {
+ order.push(singleProjectGroup(entry));
continue;
}
- let idx = gitGroupIndex.get(commonDir);
- if (idx === undefined) {
- idx = builders.length;
- gitGroupIndex.set(commonDir, idx);
- builders.push({ project: null, mainRoot, worktrees: [] });
+ const key = `${entry.gitCommonDir}\0${entry.projectSubPath}`;
+ let builder = builders.get(key);
+ if (builder === undefined) {
+ builder = {
+ key,
+ gitCommonDir: entry.gitCommonDir,
+ mainRoot: entry.mainRoot,
+ projectSubPath: entry.projectSubPath,
+ recentEntries: [],
+ };
+ builders.set(key, builder);
+ order.push(builder);
}
- const builder = builders[idx];
- if (builder === undefined) continue;
- if (entry.isLinkedWorktree) builder.worktrees.push(entry);
- else if (builder.project === null) builder.project = entry;
+ builder.recentEntries.push(entry);
}
- return builders.map((builder) => {
- const synthesized = builder.project === null;
- const project = builder.project ?? {
- path: builder.mainRoot,
- name: basenameOf(builder.mainRoot),
- lastOpenedAt: '',
- };
- return { project, worktrees: builder.worktrees, projectSynthesized: synthesized };
- });
+ return order.map((item) => ('mainRoot' in item ? finalizeGitGroup(item) : item));
+}
+
+function finalizeGitGroup(builder: GroupBuilder): RecentRepoGroup {
+ const ordered = [...builder.recentEntries].sort((a, b) =>
+ b.lastOpenedAt.localeCompare(a.lastOpenedAt),
+ );
+ const primaryProject = ordered.find((entry) => entry.isLinkedWorktree !== true) ?? null;
+ const project = primaryProject ?? ordered[0];
+ if (project === undefined) throw new Error('Git-backed recent group has no entries');
+ return {
+ key: builder.key,
+ project,
+ primaryProject,
+ worktrees: ordered.filter((entry) => entry.isLinkedWorktree === true),
+ recentEntries: ordered,
+ projectSynthesized: primaryProject === null,
+ repositoryName: basenameOf(builder.mainRoot),
+ gitCommonDir: builder.gitCommonDir,
+ projectSubPath: builder.projectSubPath,
+ inventoryAnchorPath: ordered.find((entry) => entry.missing !== true)?.path ?? null,
+ };
+}
+
+function singleProjectGroup(project: RecentProjectEntry): RecentRepoGroup {
+ return {
+ key: `project:${project.path}`,
+ project,
+ primaryProject: project,
+ worktrees: [],
+ recentEntries: [project],
+ projectSynthesized: false,
+ repositoryName: project.name,
+ gitCommonDir: null,
+ projectSubPath: null,
+ inventoryAnchorPath: null,
+ };
}
diff --git a/packages/app/src/lib/share/branch-switch-flow.test.ts b/packages/app/src/lib/share/branch-switch-flow.test.ts
index 26300e671..dd36fb545 100644
--- a/packages/app/src/lib/share/branch-switch-flow.test.ts
+++ b/packages/app/src/lib/share/branch-switch-flow.test.ts
@@ -677,6 +677,22 @@ describe('applyWorktreeCheckoutOutcome (worktree leg)', () => {
expect(result.sideEffect?.authFailed).toBeUndefined();
});
+ test('a rejected project scope stays closed and carries its cause to user-facing copy', () => {
+ const result = applyWorktreeCheckoutOutcome(creating, {
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'unsafe-setup-path',
+ path: '/repo/.ok/worktrees/unsafe',
+ created: true,
+ });
+ expect(result.state).toEqual({ phase: 'ready', info: cleanInfo() });
+ expect(result.sideEffect).toMatchObject({
+ kind: 'toast',
+ reason: 'project-scope-unavailable',
+ projectScopeIssue: 'unsafe-setup-path',
+ });
+ });
+
test('branch-not-found dismisses with the branch-gone toast signal (terminal, mirrors the switch leg)', () => {
const result = applyWorktreeCheckoutOutcome(creating, {
ok: false,
diff --git a/packages/app/src/lib/share/branch-switch-flow.ts b/packages/app/src/lib/share/branch-switch-flow.ts
index 9095f368b..6a2adf1a3 100644
--- a/packages/app/src/lib/share/branch-switch-flow.ts
+++ b/packages/app/src/lib/share/branch-switch-flow.ts
@@ -264,16 +264,27 @@ export function applyCheckoutOutcome(
export type WorktreeCheckoutSideEffectReason =
| 'proxy-null'
| Extract<WorktreeCreateResult, { ok: false }>['reason'];
+type WorktreeProjectScopeIssue = Extract<
+ WorktreeCreateResult,
+ { reason: 'project-scope-unavailable' }
+>['issue'];
+export type WorktreeCheckoutSideEffect =
+ | {
+ readonly kind: 'toast';
+ readonly reason: 'project-scope-unavailable';
+ readonly projectScopeIssue: WorktreeProjectScopeIssue;
+ }
+ | {
+ readonly kind: 'toast';
+ readonly reason: Exclude<WorktreeCheckoutSideEffectReason, 'project-scope-unavailable'>;
+ readonly helper?: string;
+ readonly authFailed?: true;
+ readonly notFoundAsIdentity?: true;
+ };
export interface ApplyWorktreeCheckoutOutcomeResult {
readonly state: BranchSwitchDialogState;
- readonly sideEffect?: {
- readonly kind: 'toast';
- readonly reason: WorktreeCheckoutSideEffectReason;
- readonly helper?: string;
- readonly authFailed?: true;
- readonly notFoundAsIdentity?: true;
- };
+ readonly sideEffect?: WorktreeCheckoutSideEffect;
}
export function applyWorktreeCheckoutOutcome(
@@ -296,6 +307,16 @@ export function applyWorktreeCheckoutOutcome(
sideEffect: { kind: 'toast', reason: 'branch-not-found' },
};
}
+ if (result.reason === 'project-scope-unavailable') {
+ return {
+ state: { phase: 'ready', info: state.info },
+ sideEffect: {
+ kind: 'toast',
+ reason: result.reason,
+ projectScopeIssue: result.issue,
+ },
+ };
+ }
return {
state: { phase: 'ready', info: state.info },
sideEffect: {
diff --git a/packages/app/src/lib/worktree-create-error.ts b/packages/app/src/lib/worktree-create-error.ts
new file mode 100644
index 000000000..af678fb4a
--- /dev/null
+++ b/packages/app/src/lib/worktree-create-error.ts
@@ -0,0 +1,54 @@
+import type { WorktreeCreateResult } from '@inkeep/open-knowledge-core';
+import type { MessageDescriptor } from '@lingui/core';
+import { msg } from '@lingui/core/macro';
+
+type WorktreeCreateFailure = Extract<WorktreeCreateResult, { readonly ok: false }>;
+type WorktreeCreateErrorInput =
+ | {
+ readonly reason: 'project-scope-unavailable';
+ readonly issue: Extract<
+ WorktreeCreateFailure,
+ { readonly reason: 'project-scope-unavailable' }
+ >['issue'];
+ }
+ | {
+ readonly reason: Exclude<WorktreeCreateFailure['reason'], 'project-scope-unavailable'>;
+ };
+
+export function worktreeCreateErrorCopy(result: WorktreeCreateErrorInput): MessageDescriptor {
+ switch (result.reason) {
+ case 'branch-exists':
+ return msg`A branch with that name already exists. Open its worktree from the switcher instead.`;
+ case 'already-checked-out':
+ return msg`That branch is already open in another worktree.`;
+ case 'path-exists':
+ return msg`A worktree folder for that branch already exists.`;
+ case 'invalid-branch':
+ return msg`Enter a valid branch name (no spaces, no leading dot, no "..").`;
+ case 'no-git':
+ return msg`This project isn't a git repository, so worktrees aren't available.`;
+ case 'empty-repo':
+ return msg`This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again.`;
+ case 'helper-not-found':
+ return msg`Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again.`;
+ case 'project-scope-unavailable':
+ switch (result.issue) {
+ case 'missing':
+ return msg`This branch does not contain this OpenKnowledge project. The worktree was created but not opened.`;
+ case 'unreadable':
+ return msg`The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened.`;
+ case 'outside-worktree':
+ return msg`The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened.`;
+ case 'unsafe-setup-path':
+ return msg`This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened.`;
+ case 'setup-failed':
+ return msg`OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened.`;
+ default: {
+ const exhaustive: never = result.issue;
+ throw new Error(`Unhandled project scope issue: ${String(exhaustive)}`);
+ }
+ }
+ default:
+ return msg`Couldn't create the worktree. Try a different name.`;
+ }
+}
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 270f2a1be..f2e0f8dfe 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -298,6 +298,7 @@
"2CHoQv": ["إعادة تحميل قسرية"],
"2Ce6hp": ["تنتقل"],
"2D1x3Y": ["تطبيق وإعادة تشغيل خادم المشروع"],
+ "2EcUjH": ["داخلي"],
"2FYpfJ": ["المزيد"],
"2G-56b": ["فشل تحديث قواعد markdownlint"],
"2GT3Hf": ["عام"],
@@ -352,6 +353,7 @@
"3-1BY2": ["لم تعد جلسة الطرفية هذه متاحة."],
"322lyb": ["أبرِز النصائح والتحذيرات والملاحظات."],
"32TTpa": ["مراسلة الدعم بشأن هذا التقرير"],
+ "33FYnv": ["المسار غير قابل للقراءة"],
"34qyH5": ["تعذّر الوصول إلى الخادم"],
"36WXSC": ["تعذّر حذف القالب: ", ["error"]],
"36aWJD": ["انضم إلينا على Discord"],
@@ -415,7 +417,6 @@
"3SZrdj": ["التحقق من التحديثات…"],
"3TSz9S": ["تصغير"],
"3Uuuft": ["تقرير من ", ["0"]],
- "3UzaS-": ["شجرة عمل مرتبطة بهذا المستودع"],
"3V94ia": ["تعذّر إرسال تعليقاتك — مساحة العمل غير جاهزة."],
"3VbwPp": ["فتح ", ["keyName"], " في المتصفح"],
"3VsNTI": ["يجري تحميل المستند"],
@@ -659,6 +660,7 @@
"636K3K": ["حذف الرقاقة المجاورة"],
"64sesb": ["تلفت المربعات التنبيهية الانتباه إلى المعلومات الأساسية."],
"65Ea2s": ["يثبّت الكشف منفذًا ثابتًا لكي يبقى هدف النفق مستقرًا عبر عمليات إعادة التشغيل."],
+ "66JlOb": ["شجرة عمل مرتبطة تعذر تحميل موقعها"],
"67Dpmh": ["اقتراحات أوامر الشرطة المائلة"],
"67f-3g": ["نجح التكرار لكن الشريط الجانبي قد يكون قديمًا — حدّث لإعادة المزامنة"],
"69E1Pq": [
@@ -812,6 +814,9 @@
],
"7Ag-Xu": ["اسأل ", ["agentName"], "، ", ["hint"]],
"7Bj3x9": ["فشل"],
+ "7C9JcA": [
+ "يخرج مسار مشروع OpenKnowledge في هذا الفرع من شجرة العمل. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+ ],
"7FA2iI": ["تعذّرت قراءة التعليقات المنتظرة للإرسال — لم يُرسل شيء."],
"7FamGZ": ["الانتقال إلى سطر"],
"7Fkcej": ["+ إضافة ", ["addChildName"]],
@@ -1086,20 +1091,7 @@
"AIn2Yv": ["واجهة ", ["displayName"], " السطرية، ", ["hint"]],
"AItsE5": ["افتحه هناك"],
"AJ7_B2": ["إنشاء سمة جديدة"],
- "AKxFtn": [
- [
- "openedWorktreeCount",
- "plural",
- {
- "zero": ["أشجار عمل"],
- "one": ["شجرة عمل"],
- "two": ["شجرتا عمل"],
- "few": ["أشجار عمل"],
- "many": ["شجرة عمل"],
- "other": ["شجرة عمل"]
- }
- ]
- ],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["شجرة عمل"], "other": ["أشجار عمل"] }]],
"ALhMYW": ["الطرفية"],
"AMU00p": [
"النسختان متطابقتان. اختيار قبول الحالي يُبقي حماية OpenKnowledge مفعّلة، لذا سيُرفض مجددًا أي حفظ آخر للنسخة الأقدم. اختيار قبول الوارد يوقف تلك الحماية."
@@ -1274,6 +1266,7 @@
"C0Ciaj": ["استُورد باسم «", ["0"], "» — الاسم «", ["1"], "» كان مأخوذًا."],
"C0hoX6": ["مُدرج دائمًا"],
"C2abof": ["غير متتبَّع"],
+ "C37ssn": ["جارٍ تحميل أشجار العمل…"],
"C3Zc44": ["استكشاف المهارات"],
"C62P6b": ["تحديد المحرر"],
"C7PKTv": ["إرسال التعليقات المحددة إلى المحادثة"],
@@ -1480,6 +1473,7 @@
"E5WeIy": ["أعد فتح آخر تبويب محرر مغلق."],
"E6lrpp": ["أدِر حساب GitHub الذي يستخدمه OpenKnowledge لاستعراض مستودعاتك ومزامنتها."],
"E7BhZn": ["ملاحظة فارغة"],
+ "E8NbNG": ["تعذر تحميل أشجار العمل."],
"E91VZY": ["فتح في نافذة جديدة"],
"E9bKSA": ["يجري الإنشاء"],
"E9gh86": ["يمكنك إرفاق ما يصل إلى ", ["MAX_ATTACHMENTS"], " صور."],
@@ -1594,6 +1588,7 @@
"FCAcjR": ["شغّل طرفية حقيقية مرسّاة داخل OpenKnowledge، تبدأ في مجلد هذا المشروع."],
"FCKppt": ["نقطة النهاية"],
"FCMaBz": ["أي مهارة"],
+ "FCS8de": ["خارجي"],
"FCxvG5": ["العنصر الأول"],
"FDBwmS": ["فتح مجلد…"],
"FEK4oC": [
@@ -1886,6 +1881,7 @@
"ICoNYz": ["يمكنك أيضًا إدارة هذا من الإعدادات."],
"IFALcX": ["وصف ", ["field"]],
"IFezUv": ["تعذّر إتمام المراجعة. أعد المحاولة."],
+ "IIgshV": ["مقفلة"],
"IInnZo": ["تعارض"],
"IKoTAC": ["إبقاؤه معطّلًا"],
"IMLUBh": ["قيمة لون غير صالحة"],
@@ -2532,6 +2528,9 @@
"PVSwOe": ["إعادة توجيه — في انتظار توقّف التشغيل الحالي…"],
"PVUn_c": ["فتح مجلد"],
"PVggyD": ["مخططات frontmatter"],
+ "PW-5kK": [
+ "يعيد هذا الفرع توجيه مسار إعداد OpenKnowledge إلى خارج شجرة العمل. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+ ],
"PWh9Ii": ["تطبيق التغييرات"],
"PWqtgd": ["جارٍ تحميل المحادثة"],
"PXaT32": ["أعاد الخادم استجابة وجهات المهارات غير مكتملة."],
@@ -2614,6 +2613,9 @@
"QQghPu": ["التثبيت في Claude Desktop"],
"QR5SP1": ["أنشأ قالبًا"],
"QRSdsO": ["مهلة طلب الفهرسة (بالثواني)"],
+ "QSH_Sn": [
+ "لا يحتوي هذا الفرع على مشروع OpenKnowledge هذا. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+ ],
"QVk3SK": ["تم حذف هذا الملف على الفرع الوارد (تعارض تعديل/حذف)."],
"QWdKwH": ["نقل"],
"QYTOaN": ["يمكنك تغيير هذا لاحقًا من <0>الإعدادات ← المزامنة</0>."],
@@ -3740,6 +3742,7 @@
"bGa3Fk": ["يجري رفع الملف"],
"bH382I": ["حرّر هذا الـ HTML — تتحدث المعاينة مباشرةً."],
"bKt9Jk": ["لم يُعثر على مشاريع OpenKnowledge نشطة أو حديثة."],
+ "bRyLwy": ["رأس منفصل عند ", ["0"]],
"bSD4im": ["البحث في أشجار العمل والفروع"],
"bS_boY": ["استبدال التطابق الحالي"],
"bUUVED": ["أصل"],
@@ -4457,6 +4460,7 @@
"hDEaQu": ["اربط OpenKnowledge بالأدوات الأخرى التي تستخدمها."],
"hDKtoF": ["قبل ", ["diffHrs"], " ساعة"],
"hDoLrm": ["إزالة ", ["projectName"], " من المشاريع الحديثة"],
+ "hE33RG": ["لم يتم العثور على أشجار عمل."],
"hFmYGU": ["ملفات السمات المرتبطة غير مدعومة"],
"hGmuTc": ["مستندات موسومة بـ #", ["tagDocsName"]],
"hHMv6l": ["حذف الكتلة"],
@@ -4620,6 +4624,7 @@
"ij-Elv": ["معاينة الصورة"],
"ijLc3m": ["قائمة نقطية"],
"ikSw6W": ["تم النقل إلى أسفل."],
+ "ikk3no": ["خارج مجلد أشجار العمل الخاص بـ OpenKnowledge في هذا المستودع"],
"ilodsp": ["دع الوكلاء يستخدمون OpenKnowledge دون سؤال"],
"inJhKB": ["استبدال وحفظ"],
"ioMn4Z": ["جديد من قالب…"],
@@ -4672,6 +4677,9 @@
"jKeGuZ": ["يحذف مستندًا أو مجلدًا أو قالبًا أو مهارة أو أصلًا"],
"jL3gox": ["اختر قيمة"],
"jLOL1H": ["انتقل إلى أحد الفروع للمشاركة."],
+ "jMb2SQ": [
+ "لا يمكن قراءة مسار مشروع OpenKnowledge في هذا الفرع. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+ ],
"jO18NZ": ["أنتقل إلى أداة أخرى"],
"jPUPvG": ["تعذّر حل التعارض في ", ["filePath"], "."],
"jRAGrQ": ["إعداد الوكلاء"],
@@ -4817,6 +4825,7 @@
"kpqWwG": ["أُزيل هذا ", ["targetNoun"], " من الفرع <0>", ["branch"], "</0>."],
"ktspdq": ["لوّن وأشِر إلى الملفات التي بها مشكلات فحص أو روابط، دون فتحها."],
"ku0yLQ": ["تُضمَّن الصفحات أول مرة يحتاجها فيها بحث."],
+ "kvWZ9R": ["إدخال Git قديم"],
"kwNS82": ["لا يمكن استخدام هذه السمة حتى يُصلح الملف."],
"ky9Tuc": ["تحرير مصدر ", ["0"]],
"kzpkcn": ["تعذّر حفظ ذلك التعديل."],
@@ -5200,11 +5209,13 @@
"oCZkaG": ["نسخ المسار"],
"oJl7eO": ["مكوّن غير معروف: ", ["componentName"], " — يمكن تحرير المصدر أدناه"],
"oKBnk5": ["حُظرت طلبات إضافية."],
+ "oKE6QZ": ["قام Git بقفل شجرة العمل هذه، ولكن لا يزال من الممكن فتحها."],
"oLyLo6": ["خدمة الطرفية الخلفية ليست قيد التشغيل."],
"oP-FQW": ["استخدم مسارًا نسبيًا داخل المهارة"],
"oPU_4D": ["الإرسال عندما يكون الوكيل متفرغًا"],
"oPbSBQ": ["ينشئ رابطًا قابلًا للمشاركة لمستند أو مجلد"],
"oQA-cA": ["المسار الكامل"],
+ "oQubcL": ["داخل مجلد أشجار العمل الخاص بـ OpenKnowledge في هذا المستودع"],
"oS1YpJ": ["افتح متصفح المشاريع."],
"oVW7VD": ["يُثبَّت في هذا المشروع"],
"oWsZk8": ["إنشاء الصفحة المفقودة ", ["target"]],
@@ -5266,6 +5277,7 @@
"pMPnZv": ["تم حذف ", ["deleted"], " مهارات"],
"pOo4Aa": ["نص عادي"],
"pPiV8s": ["تفعيل تلقائي (سحب ودفع)"],
+ "pSF7TJ": ["يتعذر قراءة مسار نسخة العمل هذه."],
"pSimwP": ["اسم جديد لنسخة ", ["editor"]],
"pTPqMK": ["بدّل كتلة الكود المحصورة."],
"pTyA_t": ["وسوم"],
@@ -5649,6 +5661,9 @@
"snrVQ7": ["فشل الفحص"],
"sq4WQH": ["استخدام ", ["0"], " كسمة فاتحة"],
"sqUrlK": ["يجري التفكّر…"],
+ "sqgz2k": [
+ "تعذر على OpenKnowledge إكمال إعداد هذا المشروع. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+ ],
"srdlOs": [
"المزامنة التلقائية متوقفة مؤقتًا: ليست لديك صلاحية الدفع إلى هذا المستودع. بدّل إلى تلقائي (سحب فقط) لمواصلة تلقي التحديثات."
],
@@ -5711,7 +5726,6 @@
"t_YqKh": ["إزالة"],
"tc65fD": ["الأكثر تثبيتًا"],
"tcjTlU": ["حزم البداية"],
- "teD0H9": ["تعذّر فتح شجرة عمل لذلك الفرع."],
"teFjfG": ["لم يُعدّ أي وكيل بعد — اختر واحدًا من قائمة الإرسال."],
"ten9en": ["مشروع حديث"],
"tfDRzk": ["حفظ"],
@@ -5826,6 +5840,7 @@
"uAQUqI": ["الحالة"],
"uA_jXp": ["تبديل الفرع وتحديثه"],
"uBAxNB": ["المحرر"],
+ "uCZNXY": ["لم تعد شجرة العمل هذه متاحة."],
"uCaIdy": ["تسجيل الدخول إلى GitHub مفقود أو منتهي الصلاحية. أعد الاتصال لاستئناف المزامنة."],
"uDlyqd": [
"وثّق بنية هذا المستودع: أنشئ صفحة نظرة عامة ترتبط بصفحة لكل وحدة رئيسية تصف مسؤولياتها ونقاط دخولها."
@@ -6068,6 +6083,7 @@
"wHZ58m": ["الفتح بالذكاء الاصطناعي ", ["displayName"], " Desktop"],
"wJijgU": ["الموقع"],
"wJo9oS": ["إغلاق البحث"],
+ "wKJo7h": ["مشروع OpenKnowledge مفقود في مسار نسخة العمل هذه."],
"wQp1V3": ["مرآة لـ <0>", ["src"], "</0>"],
"wQvvZY": ["ملف مهارة جديد"],
"wRni1Z": ["تعطيل Slidev"],
@@ -6091,6 +6107,7 @@
"wbpoGe": ["تعذّر تثبيت مهارة OpenKnowledge: ", ["message"]],
"wbv9xO": ["إنشاء مشروع جديد"],
"wc54KE": ["يجري التجريب…"],
+ "wcZNHh": ["يضع Git علامة على شجرة العمل هذه باعتبارها قابلة للإزالة."],
"wcfO9r": ["لا توجد تقارير علل بعد."],
"wckWOP": ["إدارة"],
"wdRxTD": ["جارٍ التطبيق…"],
@@ -6109,6 +6126,7 @@
"wlwXUk": ["اخترت ~/Downloads. الملفات هناك عابرة عادةً — ففكّر في مجلد ثابت بدلًا من ذلك."],
"wndeIl": ["صفحات على مستوى المشروع بلا حواف واردة ولا صادرة في الرسم البياني."],
"wqD3pI": ["تعذّر تحديث ", ["failed"], " من ", ["0"], " تعليقات."],
+ "wrdxmT": ["المشروع مفقود"],
"ws5o1F": ["تحقق منه: ", ["0"]],
"wsLj3t": [
"يحتوي هذا المجلد بالفعل على شيفرة لم تكتبها Open Knowledge وستسمح الثقة نفسها لـ ",
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index 10fadd408..4a7a67767 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, zero {# تغيير خصائص إضافي غير معر
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, zero {أشجار عمل} one {شجرة عمل} two {شجرتا عمل} few {أشجار عمل} many {شجرة عمل} other {شجرة عمل}}"
+msgstr "{openedWorktreeCount, plural, one {شجرة عمل} other {أشجار عمل}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1343,7 +1343,7 @@ msgstr "تشير شارة <0>معدَّل</0> إلى القواعد التي ي
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "يوجد بالفعل فرع باسم {shareBranch}. افتح شجرة عمله من المبدِّل بدلًا من ذلك."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "يوجد بالفعل فرع بهذا الاسم. افتح شجرة عمله من المبدِّل بدلًا من ذلك."
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "سطر مع حاشية<0><1>[1]</1></0> وتعريف معروض أدناه."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "شجرة عمل مرتبطة بهذا المستودع"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "شجرة عمل مرتبطة تعذر تحميل موقعها"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "عنوان، وصف، وسوم — أي شيء يصف هذا المجل
msgid "A worktree folder for {shareBranch} already exists."
msgstr "يوجد بالفعل مجلد شجرة عمل للفرع {shareBranch}."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "يوجد بالفعل مجلد شجرة عمل لذلك الفرع."
@@ -4072,7 +4072,7 @@ msgstr "تعذّر إنشاء القالب: {error}"
msgid "Couldn't create the report"
msgstr "تعذّر إنشاء التقرير"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "تعذّر إنشاء شجرة العمل. جرّب اسمًا مختلفًا."
@@ -4201,6 +4201,10 @@ msgstr "تعذّر تحميل مهارات OpenKnowledge. أعد المحاول
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "تعذّر تحميل معاينة النسخة. لا يزال بإمكانك اختيار طريقة الحل أدناه."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "تعذر تحميل أشجار العمل."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "تعذّر تحميل وكلائك."
@@ -4244,10 +4248,6 @@ msgstr "تعذّر فتح «{name}»: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "تعذّر فتح {0} للتحرير: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "تعذّر فتح شجرة عمل لذلك الفرع."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "تعذّر فتح المستند"
@@ -5034,6 +5034,11 @@ msgstr "توكنات الوصف"
msgid "Design"
msgstr "التصميم"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "رأس منفصل عند {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "HEAD منفصل"
@@ -5812,7 +5817,7 @@ msgstr "أدخل رابط مستودع أو owner/repo"
msgid "Enter a title for this template."
msgstr "أدخل عنوانًا لهذا القالب."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "أدخل اسم فرع صالحًا (بلا مسافات، وبلا نقطة في البداية، وبلا «..»)."
@@ -5985,6 +5990,10 @@ msgstr "هل تريد كشف هذا المشروع على الشبكة؟"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "يثبّت الكشف منفذًا ثابتًا لكي يبقى هدف النفق مستقرًا عبر عمليات إعادة التشغيل."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "خارجي"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git وطلبات السحب"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "لا يستطيع Git تتبع هذا المجلد — فهو فارغ أو يحتوي على ملفات متجاهَلة فقط. لن يعمل الرابط حتى تضيف مستندًا متتبَّعًا."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "قام Git بقفل شجرة العمل هذه، ولكن لا يزال من الممكن فتحها."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "هوية Git غير مضبوطة — تستخدم الإيداعات مؤلفًا افتراضيًا. اضبط هويتك ليرى زملاؤك اسمك."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "يضع Git علامة على شجرة العمل هذه باعتبارها قابلة للإزالة."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git قاعدة الدمج"
@@ -6787,7 +6804,7 @@ msgstr "Git قاعدة الدمج"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "يحتاج Git إلى {tool} لهذا المستودع، لكنه غير مثبَّت أو تعذّر العثور عليه. ثبّته، ثم أعد المحاولة."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "يحتاج Git إلى أداة مساعدة (مثل git-lfs) غير مثبَّتة أو تعذّر العثور عليها. ثبّتها، ثم أعد المحاولة."
@@ -7580,6 +7597,10 @@ msgstr "إدراج صف أدناه"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "أدرج أسطر محرر المصدر واحذفها وانقلها وانسخها وأزحها عبر خريطة مفاتيح CodeMirror الافتراضية."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "داخل مجلد أشجار العمل الخاص بـ OpenKnowledge في هذا المستودع"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "تعليمات للذكاء الاصطناعي"
msgid "Integrations"
msgstr "التكاملات"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "داخلي"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "قيمة لون غير صالحة"
@@ -8292,6 +8317,10 @@ msgstr "جارٍ تحميل المحادثة"
msgid "Loading timeline history"
msgstr "يجري تحميل سجل الخط الزمني"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "جارٍ تحميل أشجار العمل…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "يجري تحميل تقاريرك"
@@ -8344,6 +8373,10 @@ msgstr "طُلب الوضع المحلي فقط، لكن لم يُنشأ أي م
msgid "Location"
msgstr "الموقع"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "مقفلة"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "السجلات ومعلومات النظام"
@@ -9520,6 +9553,10 @@ msgstr "لا توجد قوالب بعد. أضف واحدًا لتمنح المس
msgid "No workspace"
msgstr "لا مساحة عمل"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "لم يتم العثور على أشجار عمل."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "لا شيء"
@@ -10178,6 +10215,10 @@ msgstr "تحقق OpenKnowledge من المشروع"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "لم يتمكن OpenKnowledge من العثور على هذا الوكيل على هذا الجهاز."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "تعذر على OpenKnowledge إكمال إعداد هذا المشروع. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "تعذّر على OpenKnowledge قراءة terminal.shell في .ok/local/config.yml. سيتم استخدام صدفة Windows متاحة بدلًا منها."
@@ -10491,6 +10532,10 @@ msgstr "المخطط"
msgid "Outside any block"
msgstr "خارج أي كتلة"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "خارج مجلد أشجار العمل الخاص بـ OpenKnowledge في هذا المستودع"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "خارج نطاق ما يودعه Open Knowledge."
@@ -10689,6 +10734,10 @@ msgstr "يُحلّ المسار إلى خارج المشروع"
msgid "Path suggestions"
msgstr "اقتراحات المسارات"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "المسار غير قابل للقراءة"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "النمط (تعبير نمطي)"
@@ -11014,6 +11063,10 @@ msgstr "أُنشئ مجلد المشروع، لكن فشل git init. أعد ال
msgid "Project MCP server"
msgstr "خادم MCP للمشروع"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "المشروع مفقود"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "اسم المشروع"
@@ -13548,6 +13601,10 @@ msgstr "تقسيم عنصر القائمة"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "تجهيز المقطع المحدد في لوحة الوكلاء، جاهزًا للإضافة والإرسال."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "إدخال Git قديم"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "امنحنا نجمة على GitHub"
@@ -14133,8 +14190,8 @@ msgstr "شكرًا على ملاحظاتك!"
msgid "Thanks for the report!"
msgstr "شكرًا على التقرير!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "ذلك الفرع مفتوح بالفعل في شجرة عمل أخرى."
@@ -14331,6 +14388,18 @@ msgstr "معرّف النموذج الذي تخدمه نقطة نهايتك. ي
msgid "the open agent"
msgstr "الوكيل المفتوح"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "مشروع OpenKnowledge مفقود في مسار نسخة العمل هذه."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "لا يمكن قراءة مسار مشروع OpenKnowledge في هذا الفرع. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "يخرج مسار مشروع OpenKnowledge في هذا الفرع من شجرة العمل. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "استغرق خادم OpenKnowledge وقتا طويلا للرد، وربما يكون التغيير قد طبق بالفعل. اطلب من الوكيل التحقق قبل المحاولة مرة أخرى."
@@ -14694,14 +14763,26 @@ msgstr "يعمل هذا الوكيل عبر {0}، وهو غير مثبَّت. ي
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "يؤدي هذا أيضًا إلى تثبيت {packSkillCount, plural, zero {# مهارة} one {مهارة واحدة} two {مهارتين} few {# مهارات} many {# مهارة} other {# مهارة}} من الحزمة."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "لا يحتوي هذا الفرع على مشروع OpenKnowledge هذا. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "هذا الفرع مسحوب في:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "يعيد هذا الفرع توجيه مسار إعداد OpenKnowledge إلى خارج شجرة العمل. تم إنشاء شجرة العمل ولكن لم يتم فتحها."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "يمكن ضبط هذا في الإعدادات > أدوات الذكاء الاصطناعي وواجهة سطر الأوامر"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "يتعذر قراءة مسار نسخة العمل هذه."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "يحتوي هذا الأمر على أحرف مخفية قد تجعله يبدو مختلفًا عمّا يُنفَّذ فعلًا. تظهر هنا بصيغة ⟨U+…⟩."
@@ -14990,8 +15071,8 @@ msgstr "يزيل هذا {path} نهائيًا. ستفشل الوكلاء الت
msgid "This project"
msgstr "هذا المشروع"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "لا يحتوي هذا المشروع على أي إيداعات بعد، لذا لا يوجد فرع لبناء worktree عليه. أنشئ أول إيداع ثم أعد المحاولة."
@@ -15014,8 +15095,8 @@ msgstr "يشغّل هذا المشروع نسخة مختلفة وغير متوا
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "يشغّل هذا المشروع نسخة أقدم من OpenKnowledge (v{0}) من هذا التطبيق (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "هذا المشروع ليس مستودع git، لذا أشجار العمل غير متاحة."
@@ -15122,6 +15203,10 @@ msgstr "يعني هذا عادةً أحد الأمور التالية:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "لا تستطيع هذه النافذة تخزين رمز — افتح الإعدادات من نافذة التطبيق الرئيسية."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "لم تعد شجرة العمل هذه متاحة."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "يجري الترتيب…"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index 9b7552491..eaea2f5de 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -242,6 +242,7 @@
"2CHoQv": ["জোর করে আবার লোড করুন"],
"2Ce6hp": ["সরে যাবে"],
"2D1x3Y": ["প্রয়োগ করুন এবং প্রজেক্ট সার্ভার পুনরায় চালু করুন"],
+ "2EcUjH": ["অভ্যন্তরীণ"],
"2FYpfJ": ["আরও"],
"2G-56b": ["markdownlint নিয়ম হালনাগাদ করতে ব্যর্থ"],
"2GT3Hf": ["বৈশ্বিক"],
@@ -295,6 +296,7 @@
"3-1BY2": ["এই টার্মিনাল সেশনটি আর উপলব্ধ নেই।"],
"322lyb": ["পরামর্শ, সতর্কতা ও নোট হাইলাইট করুন।"],
"32TTpa": ["এই রিপোর্ট সম্পর্কে সাপোর্টে ইমেইল করুন"],
+ "33FYnv": ["পাথ পড়া যাচ্ছে না"],
"34qyH5": ["সার্ভারের নাগাল পাওয়া যায়নি"],
"36WXSC": ["টেমপ্লেট মুছে ফেলা যায়নি: ", ["error"]],
"36aWJD": ["Discord-এ আমাদের সঙ্গে যোগ দিন"],
@@ -342,7 +344,6 @@
"3SZrdj": ["হালনাগাদ দেখুন…"],
"3TSz9S": ["ছোট করুন"],
"3Uuuft": [["0"], " থেকে রিপোর্ট"],
- "3UzaS-": ["এই রিপোজিটরির একটি লিংকড ওয়ার্কট্রি"],
"3V94ia": ["আপনার মন্তব্য পাঠানো যায়নি — ওয়ার্কস্পেস প্রস্তুত নয়।"],
"3VbwPp": [["keyName"], " ব্রাউজারে খুলুন"],
"3VsNTI": ["নথি লোড হচ্ছে"],
@@ -555,6 +556,7 @@
"65Ea2s": [
"এক্সপোজ করলে একটি নির্দিষ্ট পোর্ট পিন হয় যাতে পুনরায় চালু হওয়ার পরেও টানেলের টার্গেট স্থিতিশীল থাকে।"
],
+ "66JlOb": ["একটি লিঙ্ক করা ওয়ার্কট্রি যার অবস্থান লোড করা যায়নি"],
"67Dpmh": ["স্ল্যাশ কমান্ডের প্রস্তাবনা"],
"67f-3g": ["প্রতিলিপি সফল হয়েছে কিন্তু সাইডবার পুরোনো হতে পারে — আবার সিঙ্ক করতে সতেজ করুন"],
"69E1Pq": [
@@ -653,6 +655,9 @@
"78G7R3": ["নথির frontmatter JSON Schema ফাইলের বিপরীতে যাচাই করুন, গ্লোব দিয়ে নথি-গুচ্ছে সীমাবদ্ধ।"],
"7Ag-Xu": [["agentName"], "-কে জিজ্ঞেস করুন, ", ["hint"]],
"7Bj3x9": ["ব্যর্থ"],
+ "7C9JcA": [
+ "এই ব্রাঞ্চের OpenKnowledge প্রজেক্ট পাথ ওয়ার্কট্রির বাইরে চলে যায়। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+ ],
"7FA2iI": ["পাঠানোর অপেক্ষায় থাকা মন্তব্যগুলো পড়া যায়নি — কিছুই পাঠানো হয়নি।"],
"7FamGZ": ["লাইনে যান"],
"7Fkcej": ["+ ", ["addChildName"], " যোগ করুন"],
@@ -1043,6 +1048,7 @@
"C0Ciaj": ["\"", ["0"], "\" হিসেবে আমদানি করা হয়েছে — \"", ["1"], "\" নামটি আগেই নেওয়া ছিল।"],
"C0hoX6": ["সবসময় অন্তর্ভুক্ত"],
"C2abof": ["ট্র্যাক করা হয়নি"],
+ "C37ssn": ["ওয়ার্কট্রি লোড হচ্ছে…"],
"C3Zc44": ["স্কিল ঘুরে দেখুন"],
"C62P6b": ["সম্পাদকের নির্বাচন"],
"C7PKTv": ["চেক করা মন্তব্য আলাপে পাঠান"],
@@ -1212,6 +1218,7 @@
"E5WeIy": ["সবচেয়ে সম্প্রতি বন্ধ করা সম্পাদক ট্যাবটি আবার খুলুন।"],
"E6lrpp": ["আপনার রিপোজিটরি ব্রাউজ ও সিঙ্ক করতে OpenKnowledge যে GitHub অ্যাকাউন্ট ব্যবহার করে তা সামলান।"],
"E7BhZn": ["খালি নোট"],
+ "E8NbNG": ["ওয়ার্কট্রিগুলি লোড করা যায়নি।"],
"E91VZY": ["নতুন উইন্ডোতে খুলুন"],
"E9bKSA": ["তৈরি করা হচ্ছে"],
"E9gh86": ["আপনি সর্বোচ্চ ", ["MAX_ATTACHMENTS"], "টি ছবি সংযুক্ত করতে পারেন।"],
@@ -1336,6 +1343,7 @@
],
"FCKppt": ["এন্ডপয়েন্ট"],
"FCMaBz": ["কোন স্কিল"],
+ "FCS8de": ["বাহ্যিক"],
"FCxvG5": ["প্রথম আইটেম"],
"FDBwmS": ["ফোল্ডার খুলুন…"],
"FEK4oC": [
@@ -1579,6 +1587,7 @@
"ICoNYz": ["আপনি এটি Settings-এও সামলাতে পারেন।"],
"IFALcX": [["field"], "-এর বিবরণ"],
"IFezUv": ["নিরীক্ষা সম্পূর্ণ করা যায়নি। আবার চেষ্টা করুন।"],
+ "IIgshV": ["লক করা"],
"IInnZo": ["দ্বন্দ্ব"],
"IKoTAC": ["নিষ্ক্রিয়ই রাখুন"],
"IMLUBh": ["অবৈধ রঙের মান"],
@@ -2149,6 +2158,9 @@
"PVSwOe": ["দিক পরিবর্তন করা হচ্ছে — বর্তমান কাজ থামার অপেক্ষায়…"],
"PVUn_c": ["ফোল্ডার খুলুন"],
"PVggyD": ["Frontmatter স্কিমা"],
+ "PW-5kK": [
+ "এই ব্রাঞ্চ OpenKnowledge সেটআপ পাথকে ওয়ার্কট্রির বাইরে পাঠায়। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+ ],
"PWh9Ii": ["পরিবর্তন প্রয়োগ করুন"],
"PWqtgd": ["চ্যাট লোড হচ্ছে"],
"PXaT32": ["সার্ভার একটি অসম্পূর্ণ স্কিল-টার্গেট প্রতিক্রিয়া ফেরত দিয়েছে।"],
@@ -2230,6 +2242,7 @@
"QQghPu": ["Claude Desktop-এ ইনস্টল করুন"],
"QR5SP1": ["টেমপ্লেট তৈরি হয়েছে"],
"QRSdsO": ["ইনডেক্সিং অনুরোধের সময়সীমা (সেকেন্ড)"],
+ "QSH_Sn": ["এই ব্রাঞ্চে এই OpenKnowledge প্রজেক্টটি নেই। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"],
"QVk3SK": ["এই ফাইলটি আগত ব্রাঞ্চে মুছে ফেলা হয়েছে (modify-delete দ্বন্দ্ব)।"],
"QWdKwH": ["সরান"],
"QYTOaN": ["আপনি এটি পরে <0>Settings → Sync</0>-এ বদলাতে পারেন।"],
@@ -3195,6 +3208,7 @@
"bGa3Fk": ["ফাইল আপলোড করা হচ্ছে"],
"bH382I": ["এই HTML সম্পাদনা করুন — প্রাকদর্শন সঙ্গে সঙ্গে হালনাগাদ হয়।"],
"bKt9Jk": ["সক্রিয় বা সাম্প্রতিক কোনো OpenKnowledge প্রকল্প পাওয়া যায়নি।"],
+ "bRyLwy": [["0"], "-এ বিচ্ছিন্ন"],
"bSD4im": ["ওয়ার্কট্রি ও ব্রাঞ্চ খুঁজুন"],
"bS_boY": ["বর্তমান মিল বদলান"],
"bUUVED": ["সম্পদ"],
@@ -3759,6 +3773,7 @@
"hDEaQu": ["OpenKnowledge-কে আপনার ব্যবহৃত অন্য টুলের সঙ্গে যুক্ত করুন।"],
"hDKtoF": [["diffHrs"], " ঘণ্টা আগে"],
"hDoLrm": [["projectName"], " সাম্প্রতিক প্রকল্প থেকে সরান"],
+ "hE33RG": ["কোনো ওয়ার্কট্রি পাওয়া যায়নি।"],
"hFmYGU": ["লিঙ্ক করা থিম ফাইল সমর্থিত নয়"],
"hGmuTc": ["#", ["tagDocsName"], " ট্যাগযুক্ত নথি"],
"hHMv6l": ["ব্লক মুছুন"],
@@ -3912,6 +3927,7 @@
"ij-Elv": ["ছবির প্রিভিউ"],
"ijLc3m": ["বুলেট তালিকা"],
"ikSw6W": ["নিচে সরানো হয়েছে।"],
+ "ikk3no": ["এই রিপোজিটরির OpenKnowledge ওয়ার্কট্রি ফোল্ডারের বাইরে"],
"ilodsp": ["এজেন্টদের না জিজ্ঞেস করেই OpenKnowledge ব্যবহার করতে দিন"],
"inJhKB": ["প্রতিস্থাপন করে সংরক্ষণ করুন"],
"ioMn4Z": ["টেমপ্লেট থেকে নতুন…"],
@@ -3968,6 +3984,7 @@
"jKeGuZ": ["নথি, ফোল্ডার, টেমপ্লেট, স্কিল বা অ্যাসেট মুছে ফেলে"],
"jL3gox": ["একটি মান নির্বাচন করুন"],
"jLOL1H": ["শেয়ার করতে কোনো ব্রাঞ্চে যান।"],
+ "jMb2SQ": ["এই ব্রাঞ্চে OpenKnowledge প্রজেক্টের পাথ পড়া যাচ্ছে না। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"],
"jO18NZ": ["আমি অন্য একটি টুলে যাচ্ছি"],
"jPUPvG": [["filePath"], "-এর দ্বন্দ্ব মীমাংসা করা যায়নি।"],
"jRAGrQ": ["এজেন্ট কনফিগার করুন"],
@@ -4110,6 +4127,7 @@
"kpqWwG": ["এই ", ["targetNoun"], " ব্রাঞ্চ <0>", ["branch"], "</0> থেকে সরানো হয়েছে।"],
"ktspdq": ["যেসব ফাইলে lint বা লিংকের সমস্যা আছে সেগুলো না খুলেই রঙ ও ব্যাজ দিন।"],
"ku0yLQ": ["কোনো অনুসন্ধানের প্রথমবার দরকার পড়লেই পাতাগুলো এমবেড করা হয়।"],
+ "kvWZ9R": ["অচল Git এন্ট্রি"],
"kwNS82": ["ফাইলটি ঠিক না করা পর্যন্ত এই থিম ব্যবহার করা যাবে না।"],
"ky9Tuc": [["0"], " সোর্স সম্পাদনা করুন"],
"kzpkcn": ["ওই সম্পাদনাটি সংরক্ষণ করা যায়নি।"],
@@ -4435,11 +4453,13 @@
"oCZkaG": ["পথ কপি করুন"],
"oJl7eO": ["অজানা কম্পোনেন্ট: ", ["componentName"], " — সোর্স নিচে সম্পাদনাযোগ্য"],
"oKBnk5": ["আরও অনুরোধ আটকে দেওয়া হয়েছে।"],
+ "oKE6QZ": ["Git এই ওয়ার্কট্রিটি লক করেছে, তবে এটি এখনও খোলা যাবে।"],
"oLyLo6": ["টার্মিনালের ব্যাকগ্রাউন্ড সার্ভিস চলছে না।"],
"oP-FQW": ["স্কিলের ভিতরে একটি আপেক্ষিক পাথ ব্যবহার করুন"],
"oPU_4D": ["এজেন্ট মুক্ত হলে পাঠান"],
"oPbSBQ": ["কোনো নথি বা ফোল্ডারের শেয়ারযোগ্য লিংক তৈরি করে"],
"oQA-cA": ["পূর্ণ পথ"],
+ "oQubcL": ["এই রিপোজিটরির OpenKnowledge ওয়ার্কট্রি ফোল্ডারের ভিতরে"],
"oS1YpJ": ["Project Navigator খুলুন।"],
"oVW7VD": ["এই প্রকল্পে ইনস্টল হবে"],
"oWsZk8": ["অনুপস্থিত পাতা ", ["target"], " তৈরি করুন"],
@@ -4501,6 +4521,7 @@
"pMPnZv": [["deleted"], "টি স্কিল মুছে ফেলা হয়েছে"],
"pOo4Aa": ["সাধারণ টেক্সট"],
"pPiV8s": ["স্বয়ংক্রিয় (টানুন ও পাঠান) চালু করুন"],
+ "pSF7TJ": ["এই চেকআউট পাথ পড়া যাচ্ছে না।"],
"pSimwP": [["editor"], " সংস্করণের জন্য নতুন নাম"],
"pTPqMK": ["বেড়া দেওয়া কোড ব্লক চালু বা বন্ধ করুন।"],
"pTyA_t": ["ট্যাগ"],
@@ -4796,6 +4817,9 @@
"snrVQ7": ["পরখ ব্যর্থ"],
"sq4WQH": [["0"], "-কে হালকা থিম হিসেবে ব্যবহার করুন"],
"sqUrlK": ["চিন্তা করা হচ্ছে…"],
+ "sqgz2k": [
+ "OpenKnowledge এই প্রজেক্টের সেটআপ শেষ করতে পারেনি। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+ ],
"srdlOs": [
"স্বয়ংক্রিয় সিঙ্ক বিরতিতে আছে: এই রিপোজিটরিতে পুশ করার অনুমতি আপনার নেই। আপডেট পেতে থাকতে স্বয়ংক্রিয় (শুধু টানুন)-এ যান।"
],
@@ -4858,7 +4882,6 @@
"t_YqKh": ["সরান"],
"tc65fD": ["সবচেয়ে বেশি ইনস্টল হওয়া"],
"tcjTlU": ["স্টার্টার প্যাক"],
- "teD0H9": ["ওই ব্রাঞ্চের জন্য কোনো ওয়ার্কট্রি খোলা যায়নি।"],
"teFjfG": ["এখনও কোনো এজেন্ট সেট আপ করা নেই — পাঠানোর মেনু থেকে একটি বাছুন।"],
"ten9en": ["সাম্প্রতিক প্রকল্প"],
"tfDRzk": ["সংরক্ষণ করুন"],
@@ -4951,6 +4974,7 @@
"uAQUqI": ["অবস্থা"],
"uA_jXp": ["ব্রাঞ্চ বদলে হালনাগাদ করুন"],
"uBAxNB": ["সম্পাদক"],
+ "uCZNXY": ["এই ওয়ার্কট্রিটি আর উপলভ্য নেই।"],
"uCaIdy": ["GitHub সাইন-ইন অনুপস্থিত বা এর মেয়াদ শেষ। সিঙ্ক আবার শুরু করতে পুনরায় যুক্ত হোন।"],
"uDlyqd": [
"এই রিপোজিটরির স্থাপত্য নথিভুক্ত করুন: একটি সংক্ষিপ্তসার পাতা তৈরি করুন যা প্রতিটি প্রধান মডিউলের পাতার সঙ্গে যুক্ত থাকে এবং তার দায়িত্ব ও প্রবেশবিন্দু বর্ণনা করে।"
@@ -5143,6 +5167,7 @@
"wHZ58m": ["AI ", ["displayName"], " Desktop দিয়ে খুলুন"],
"wJijgU": ["জায়গা"],
"wJo9oS": ["খোঁজা বন্ধ করুন"],
+ "wKJo7h": ["এই চেকআউট পাথে OpenKnowledge প্রজেক্টটি নেই।"],
"wQp1V3": ["<0>", ["src"], "</0>-এর মিরর"],
"wQvvZY": ["নতুন স্কিল ফাইল"],
"wRni1Z": ["Slidev বন্ধ করুন"],
@@ -5166,6 +5191,7 @@
"wbpoGe": ["OpenKnowledge স্কিল ইনস্টল করা যায়নি: ", ["message"]],
"wbv9xO": ["নতুন প্রকল্প তৈরি করুন"],
"wc54KE": ["চেষ্টা করে দেখা হচ্ছে…"],
+ "wcZNHh": ["Git এই ওয়ার্কট্রিটিকে অপসারণযোগ্য হিসেবে চিহ্নিত করেছে।"],
"wcfO9r": ["এখনও কোনো বাগ রিপোর্ট নেই।"],
"wckWOP": ["পরিচালনা করুন"],
"wdRxTD": ["প্রয়োগ করা হচ্ছে…"],
@@ -5186,6 +5212,7 @@
],
"wndeIl": ["যেসব প্রকল্প-স্তরের পাতার আগত বা বহির্গামী কোনো গ্রাফ প্রান্তই নেই।"],
"wqD3pI": [["0"], "টির মধ্যে ", ["failed"], "টি মন্তব্য আপডেট করা যায়নি।"],
+ "wrdxmT": ["প্রজেক্ট নেই"],
"ws5o1F": ["পরীক্ষা করেছেন: ", ["0"]],
"wsLj3t": [
"ওই ফোল্ডারে ইতিমধ্যেই এমন কোড আছে যা Open Knowledge লেখেনি এবং একই বিশ্বাস ",
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index e69251c2b..86c9b97f1 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -1339,7 +1339,7 @@ msgstr "<0>পরিবর্তিত</0> ব্যাজ সেই নিয
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "{shareBranch} নামে একটি ব্রাঞ্চ আগে থেকেই আছে। বদলে সুইচার থেকে এর ওয়ার্কট্রি খুলুন।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "ওই নামে একটি ব্রাঞ্চ আগে থেকেই আছে। বদলে সুইচার থেকে এর ওয়ার্কট্রি খুলুন।"
@@ -1389,8 +1389,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "একটি পাদটীকা<0><1>[1]</1></0> সহ একটি লাইন এবং নিচে দেখানো একটি সংজ্ঞা।"
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "এই রিপোজিটরির একটি লিংকড ওয়ার্কট্রি"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "একটি লিঙ্ক করা ওয়ার্কট্রি যার অবস্থান লোড করা যায়নি"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1507,7 +1507,7 @@ msgstr "একটি শিরোনাম, বিবরণ, ট্যাগ —
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch}-এর জন্য একটি ওয়ার্কট্রি ফোল্ডার আগে থেকেই আছে।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "ওই ব্রাঞ্চের জন্য একটি ওয়ার্কট্রি ফোল্ডার আগে থেকেই আছে।"
@@ -4068,7 +4068,7 @@ msgstr "টেমপ্লেট তৈরি করা যায়নি: {err
msgid "Couldn't create the report"
msgstr "রিপোর্ট তৈরি করা যায়নি"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "ওয়ার্কট্রি তৈরি করা যায়নি। অন্য নাম চেষ্টা করুন।"
@@ -4197,6 +4197,10 @@ msgstr "OpenKnowledge স্কিল লোড করা যায়নি।
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "সংস্করণের প্রাকদর্শন লোড করা যায়নি। আপনি তবুও নিচে বেছে নিতে পারেন কীভাবে এটি মীমাংসা করবেন।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "ওয়ার্কট্রিগুলি লোড করা যায়নি।"
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "আপনার এজেন্ট লোড করা যায়নি।"
@@ -4240,10 +4244,6 @@ msgstr "\"{name}\" খোলা যায়নি: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "{0} সম্পাদনার জন্য খোলা যায়নি: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "ওই ব্রাঞ্চের জন্য কোনো ওয়ার্কট্রি খোলা যায়নি।"
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "নথি খোলা যায়নি"
@@ -5030,6 +5030,11 @@ msgstr "বিবরণ টোকেন"
msgid "Design"
msgstr "নকশা"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "{0}-এ বিচ্ছিন্ন"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "বিচ্ছিন্ন HEAD"
@@ -5808,7 +5813,7 @@ msgstr "একটি রিপোজিটরি URL বা owner/repo দিন
msgid "Enter a title for this template."
msgstr "এই টেমপ্লেটের জন্য একটি শিরোনাম দিন।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "একটি বৈধ ব্রাঞ্চ নাম দিন (ফাঁকা জায়গা নয়, শুরুতে বিন্দু নয়, \"..\" নয়)।"
@@ -5981,6 +5986,10 @@ msgstr "এই প্রজেক্টটি নেটওয়ার্কে
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "এক্সপোজ করলে একটি নির্দিষ্ট পোর্ট পিন হয় যাতে পুনরায় চালু হওয়ার পরেও টানেলের টার্গেট স্থিতিশীল থাকে।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "বাহ্যিক"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6771,10 +6780,18 @@ msgstr "Git ও PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git এই ফোল্ডারের হিসাব রাখতে পারে না — এটি খালি বা এতে কেবল উপেক্ষিত ফাইল আছে। আপনি একটি হিসাবভুক্ত নথি যোগ না করা পর্যন্ত লিংকটি কাজ করবে না।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git এই ওয়ার্কট্রিটি লক করেছে, তবে এটি এখনও খোলা যাবে।"
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Git পরিচয় নির্ধারিত নেই — কমিটগুলো একটি ডিফল্ট লেখক ব্যবহার করে। আপনারটি নির্ধারণ করুন যাতে সহকর্মীরা আপনার নাম দেখতে পান।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git এই ওয়ার্কট্রিটিকে অপসারণযোগ্য হিসেবে চিহ্নিত করেছে।"
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git মার্জ নিয়ম"
@@ -6783,7 +6800,7 @@ msgstr "Git মার্জ নিয়ম"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "এই রিপোজিটরির জন্য Git-এর {tool} দরকার, কিন্তু সেটি ইনস্টল করা নেই বা পাওয়া যায়নি। সেটি ইনস্টল করে আবার চেষ্টা করুন।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git-এর একটি সহায়ক টুল (যেমন git-lfs) দরকার যা ইনস্টল করা নেই বা পাওয়া যায়নি। সেটি ইনস্টল করে আবার চেষ্টা করুন।"
@@ -7576,6 +7593,10 @@ msgstr "নিচে সারি যোগ করুন"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "CodeMirror-এর ডিফল্ট কীম্যাপ দিয়ে সোর্স সম্পাদকের লাইন ঢোকান, মুছুন, সরান, কপি করুন ও ভেতরে নিন।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "এই রিপোজিটরির OpenKnowledge ওয়ার্কট্রি ফোল্ডারের ভিতরে"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7771,6 +7792,10 @@ msgstr "AI-এর জন্য নির্দেশ"
msgid "Integrations"
msgstr "সংযুক্তি"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "অভ্যন্তরীণ"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "অবৈধ রঙের মান"
@@ -8288,6 +8313,10 @@ msgstr "চ্যাট লোড হচ্ছে"
msgid "Loading timeline history"
msgstr "কালানুক্রমের ইতিহাস লোড হচ্ছে"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "ওয়ার্কট্রি লোড হচ্ছে…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "আপনার রিপোর্ট লোড হচ্ছে"
@@ -8340,6 +8369,10 @@ msgstr "শুধু-স্থানীয় চাওয়া হয়েছ
msgid "Location"
msgstr "জায়গা"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "লক করা"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "লগ ও সিস্টেমের তথ্য"
@@ -9516,6 +9549,10 @@ msgstr "এখনও কোনো টেমপ্লেট নেই। এই
msgid "No workspace"
msgstr "কোনো ওয়ার্কস্পেস নেই"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "কোনো ওয়ার্কট্রি পাওয়া যায়নি।"
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "কোনোটিই নয়"
@@ -10174,6 +10211,10 @@ msgstr "OpenKnowledge প্রকল্প পরীক্ষা করেছ
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge এই মেশিনে এই এজেন্টটি খুঁজে পায়নি।"
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge এই প্রজেক্টের সেটআপ শেষ করতে পারেনি। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge .ok/local/config.yml-এ terminal.shell পড়তে পারেনি। পরিবর্তে একটি উপলভ্য Windows শেল ব্যবহার করা হচ্ছে।"
@@ -10487,6 +10528,10 @@ msgstr "রূপরেখা"
msgid "Outside any block"
msgstr "সব ব্লকের বাইরে"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "এই রিপোজিটরির OpenKnowledge ওয়ার্কট্রি ফোল্ডারের বাইরে"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Open Knowledge যা কমিট করে তার বাইরে।"
@@ -10685,6 +10730,10 @@ msgstr "পথটি প্রকল্পের বাইরে গিয়ে
msgid "Path suggestions"
msgstr "পথের পরামর্শ"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "পাথ পড়া যাচ্ছে না"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "প্যাটার্ন (regex)"
@@ -11010,6 +11059,10 @@ msgstr "প্রকল্পের ফোল্ডার তৈরি হয়
msgid "Project MCP server"
msgstr "প্রকল্প MCP সার্ভার"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "প্রজেক্ট নেই"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "প্রকল্পের নাম"
@@ -13544,6 +13597,10 @@ msgstr "তালিকা আইটেম ভাগ করুন"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "নির্বাচিত অংশ এজেন্ট প্যানেলে প্রস্তুত রাখুন, যোগ করে পাঠানোর জন্য তৈরি।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "অচল Git এন্ট্রি"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "GitHub-এ আমাদের স্টার দিন"
@@ -14129,8 +14186,8 @@ msgstr "মতামতের জন্য ধন্যবাদ!"
msgid "Thanks for the report!"
msgstr "রিপোর্টের জন্য ধন্যবাদ!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "ওই ব্রাঞ্চটি আগে থেকেই অন্য একটি ওয়ার্কট্রিতে খোলা।"
@@ -14327,6 +14384,18 @@ msgstr "আপনার এন্ডপয়েন্ট যে মডেল id
msgid "the open agent"
msgstr "খোলা এজেন্ট"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "এই চেকআউট পাথে OpenKnowledge প্রজেক্টটি নেই।"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "এই ব্রাঞ্চে OpenKnowledge প্রজেক্টের পাথ পড়া যাচ্ছে না। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "এই ব্রাঞ্চের OpenKnowledge প্রজেক্ট পাথ ওয়ার্কট্রির বাইরে চলে যায়। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge সার্ভার সাড়া দিতে অনেক সময় নিয়েছে, এবং পরিবর্তনটি তবুও প্রয়োগ হয়ে থাকতে পারে। আবার চেষ্টা করার আগে এজেন্টকে যাচাই করতে বলুন।"
@@ -14690,14 +14759,26 @@ msgstr "এই এজেন্টটি {0}-এর মাধ্যমে চল
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "এটি প্যাকের {packSkillCount, plural, one {# স্কিল} other {# স্কিল}}ও ইনস্টল করে।"
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "এই ব্রাঞ্চে এই OpenKnowledge প্রজেক্টটি নেই। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "এই ব্রাঞ্চটি এখানে চেক আউট করা আছে:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "এই ব্রাঞ্চ OpenKnowledge সেটআপ পাথকে ওয়ার্কট্রির বাইরে পাঠায়। ওয়ার্কট্রি তৈরি হয়েছে, কিন্তু খোলা হয়নি।"
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "এটি Settings > AI tools & CLI-তে কনফিগার করা যায়"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "এই চেকআউট পাথ পড়া যাচ্ছে না।"
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "এই কমান্ডে লুকানো অক্ষর আছে, যার ফলে এটি আসলে যা চলে তার থেকে আলাদা দেখাতে পারে। এগুলো এখানে ⟨U+…⟩ হিসেবে দেখানো হয়েছে।"
@@ -14986,8 +15067,8 @@ msgstr "এটি {path}-কে স্থায়ীভাবে সরিয
msgid "This project"
msgstr "এই প্রকল্প"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "এই প্রকল্পে এখনও কোনো কমিট নেই, তাই worktree-এর ভিত্তি হিসেবে কোনো ব্রাঞ্চ নেই। প্রথমে একটি কমিট করুন, তারপর আবার চেষ্টা করুন।"
@@ -15010,8 +15091,8 @@ msgstr "এই প্রকল্পটি OpenKnowledge-এর একটি ভ
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "এই প্রকল্পটি OpenKnowledge-এর একটি পুরোনো সংস্করণ (v{0}) চালাচ্ছে, যেখানে এই অ্যাপটি v{1}।"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "এই প্রকল্পটি একটি git রিপোজিটরি নয়, তাই ওয়ার্কট্রি পাওয়া যায় না।"
@@ -15118,6 +15199,10 @@ msgstr "এর সাধারণত অর্থ এগুলোর একট
msgid "This window can't store a token — open Settings from the main app window."
msgstr "এই জানালাটি কোনো টোকেন সংরক্ষণ করতে পারে না — মূল অ্যাপ জানালা থেকে Settings খুলুন।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "এই ওয়ার্কট্রিটি আর উপলভ্য নেই।"
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "গুছিয়ে নেওয়া হচ্ছে…"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index ee5cd71c1..6084ad4e7 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -249,6 +249,7 @@
"2CHoQv": ["Force Reload"],
"2Ce6hp": ["Move across"],
"2D1x3Y": ["Apply and restart project server"],
+ "2EcUjH": ["internal"],
"2FYpfJ": ["More"],
"2G-56b": ["Failed to update markdownlint rules"],
"2GT3Hf": ["Global"],
@@ -303,6 +304,7 @@
"3-1BY2": ["This terminal session is no longer available."],
"322lyb": ["Highlight tips, warnings, and notes."],
"32TTpa": ["Email support about this report"],
+ "33FYnv": ["path unreadable"],
"34qyH5": ["Could not reach server"],
"36WXSC": ["Couldn't delete template: ", ["error"]],
"36aWJD": ["Join us on Discord"],
@@ -351,7 +353,6 @@
"3SZrdj": ["Check for updates…"],
"3TSz9S": ["Minimize"],
"3Uuuft": ["Report from ", ["0"]],
- "3UzaS-": ["A linked worktree of this repository"],
"3V94ia": ["Couldn't send your comments — the workspace isn't ready."],
"3VbwPp": ["Open ", ["keyName"], " in browser"],
"3VsNTI": ["Loading document"],
@@ -564,6 +565,7 @@
"636K3K": ["Delete adjacent chip"],
"64sesb": ["Callouts draw attention to key information."],
"65Ea2s": ["Exposing pins a fixed port so the tunnel's target stays stable across restarts."],
+ "66JlOb": ["A linked worktree whose location could not be loaded"],
"67Dpmh": ["Slash command suggestions"],
"67f-3g": ["Duplicate succeeded but the sidebar may be out of date — refresh to resync"],
"69E1Pq": [
@@ -665,6 +667,9 @@
],
"7Ag-Xu": ["Ask ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Failed"],
+ "7C9JcA": [
+ "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+ ],
"7FA2iI": ["Couldn't read the comments waiting to send — nothing was sent."],
"7FamGZ": ["Go to line"],
"7Fkcej": ["+ Add ", ["addChildName"]],
@@ -1079,6 +1084,7 @@
"C0Ciaj": ["Imported as \"", ["0"], "\" — the name \"", ["1"], "\" was taken."],
"C0hoX6": ["Always included"],
"C2abof": ["Untracked"],
+ "C37ssn": ["Loading worktrees…"],
"C3Zc44": ["Explore skills"],
"C62P6b": ["Editor selection"],
"C7PKTv": ["Send checked comments to chat"],
@@ -1252,6 +1258,7 @@
"Manage the GitHub account OpenKnowledge uses to browse and sync your repositories."
],
"E7BhZn": ["Blank note"],
+ "E8NbNG": ["Couldn't load worktrees."],
"E91VZY": ["Open in New Window"],
"E9bKSA": ["Creating"],
"E9gh86": ["You can attach up to ", ["MAX_ATTACHMENTS"], " images."],
@@ -1374,6 +1381,7 @@
],
"FCKppt": ["Endpoint"],
"FCMaBz": ["Which skill"],
+ "FCS8de": ["external"],
"FCxvG5": ["First item"],
"FDBwmS": ["Open folder…"],
"FEK4oC": [
@@ -1636,6 +1644,7 @@
"ICoNYz": ["You can also manage this in Settings."],
"IFALcX": ["Description for ", ["field"]],
"IFezUv": ["The audit could not be completed. Try again."],
+ "IIgshV": ["locked"],
"IInnZo": ["Conflict"],
"IKoTAC": ["Keep disabled"],
"IMLUBh": ["Invalid color value"],
@@ -2223,6 +2232,9 @@
"PVSwOe": ["Steering — waiting for the current run to stop…"],
"PVUn_c": ["Open folder"],
"PVggyD": ["Frontmatter schemas"],
+ "PW-5kK": [
+ "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+ ],
"PWh9Ii": ["Apply changes"],
"PWqtgd": ["Loading the chat"],
"PXaT32": ["Server returned an incomplete skill-targets response."],
@@ -2303,6 +2315,9 @@
"QQghPu": ["Install in Claude Desktop"],
"QR5SP1": ["created template"],
"QRSdsO": ["Indexing request timeout (seconds)"],
+ "QSH_Sn": [
+ "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+ ],
"QVk3SK": ["This file was deleted on the incoming branch (modify-delete conflict)."],
"QWdKwH": ["Move"],
"QYTOaN": ["You can change this later in <0>Settings → Sync</0>."],
@@ -3279,6 +3294,7 @@
"bGa3Fk": ["Uploading file"],
"bH382I": ["Edit this HTML — the preview updates live."],
"bKt9Jk": ["No active or recent OpenKnowledge projects were found."],
+ "bRyLwy": ["Detached at ", ["0"]],
"bSD4im": ["Search worktrees and branches"],
"bS_boY": ["Replace current match"],
"bUUVED": ["Asset"],
@@ -3886,6 +3902,7 @@
"hDEaQu": ["Connect OpenKnowledge to other tools you use."],
"hDKtoF": [["diffHrs"], "h ago"],
"hDoLrm": ["Remove ", ["projectName"], " from recent projects"],
+ "hE33RG": ["No worktrees found."],
"hFmYGU": ["Linked theme files aren’t supported"],
"hGmuTc": ["Docs tagged #", ["tagDocsName"]],
"hHMv6l": ["Delete block"],
@@ -4039,6 +4056,7 @@
"ij-Elv": ["Image preview"],
"ijLc3m": ["Bullet list"],
"ikSw6W": ["Moved down."],
+ "ikk3no": ["Outside this repository's OpenKnowledge worktrees folder"],
"ilodsp": ["Let agents use OpenKnowledge without asking"],
"inJhKB": ["Replace and save"],
"ioMn4Z": ["New from Template…"],
@@ -4097,6 +4115,9 @@
"jKeGuZ": ["Deletes a document, folder, template, skill, or asset"],
"jL3gox": ["Select a value"],
"jLOL1H": ["Switch to a branch to share."],
+ "jMb2SQ": [
+ "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+ ],
"jO18NZ": ["I'm switching to another tool"],
"jPUPvG": ["Couldn't resolve the conflict for ", ["filePath"], "."],
"jRAGrQ": ["Configure agents"],
@@ -4244,6 +4265,7 @@
"kpqWwG": ["This ", ["targetNoun"], " was removed from branch <0>", ["branch"], "</0>."],
"ktspdq": ["Tint and badge files that have lint or link problems, without opening them."],
"ku0yLQ": ["Pages are embedded the first time a search needs them."],
+ "kvWZ9R": ["stale Git entry"],
"kwNS82": ["This theme can’t be used until the file is fixed."],
"ky9Tuc": ["Edit ", ["0"], " source"],
"kzpkcn": ["Couldn't save that edit."],
@@ -4583,11 +4605,13 @@
"oCZkaG": ["Copy path"],
"oJl7eO": ["Unknown component: ", ["componentName"], " — source editable below"],
"oKBnk5": ["More requests were blocked."],
+ "oKE6QZ": ["Git has locked this worktree, but it can still be opened."],
"oLyLo6": ["The terminal background service isn't running."],
"oP-FQW": ["Use a relative path inside the skill"],
"oPU_4D": ["Send when the agent is free"],
"oPbSBQ": ["Builds a shareable link to a document or folder"],
"oQA-cA": ["Full path"],
+ "oQubcL": ["Inside this repository's OpenKnowledge worktrees folder"],
"oS1YpJ": ["Open the Project Navigator."],
"oVW7VD": ["Installs into this project"],
"oWsZk8": ["Create missing page ", ["target"]],
@@ -4653,6 +4677,7 @@
"pMPnZv": ["Deleted ", ["deleted"], " skills"],
"pOo4Aa": ["Plain text"],
"pPiV8s": ["Enable Auto (Pull and Push)"],
+ "pSF7TJ": ["This checkout path cannot be read."],
"pSimwP": ["New name for the ", ["editor"], " version"],
"pTPqMK": ["Toggle a fenced code block."],
"pTyA_t": ["tags"],
@@ -4972,6 +4997,9 @@
"snrVQ7": ["probe failed"],
"sq4WQH": ["Use ", ["0"], " as the light theme"],
"sqUrlK": ["Musing…"],
+ "sqgz2k": [
+ "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+ ],
"srdlOs": [
"Auto-sync is paused — you don't have permission to push to this repo. Switch to Auto (Pull only) to keep receiving updates."
],
@@ -5034,7 +5062,6 @@
"t_YqKh": ["Remove"],
"tc65fD": ["Most installed"],
"tcjTlU": ["Starter packs"],
- "teD0H9": ["Couldn't open a worktree for that branch."],
"teFjfG": ["No agent is set up yet — pick one from the send menu."],
"ten9en": ["Recent project"],
"tfDRzk": ["Save"],
@@ -5137,6 +5164,7 @@
"uAQUqI": ["Status"],
"uA_jXp": ["Switch and update branch"],
"uBAxNB": ["Editor"],
+ "uCZNXY": ["This worktree is no longer available."],
"uCaIdy": ["GitHub sign-in is missing or expired. Reconnect to resume syncing."],
"uDlyqd": [
"Document the architecture of this repo: create an overview page that links to a page per major module describing its responsibilities and entry points."
@@ -5337,6 +5365,7 @@
"wHZ58m": ["Open with AI ", ["displayName"], " Desktop"],
"wJijgU": ["Location"],
"wJo9oS": ["Close find"],
+ "wKJo7h": ["The OpenKnowledge project is missing at this checkout path."],
"wQp1V3": ["Mirror of <0>", ["src"], "</0>"],
"wQvvZY": ["New skill file"],
"wRni1Z": ["Disable Slidev"],
@@ -5364,6 +5393,7 @@
"wbpoGe": ["Couldn't install OpenKnowledge skill — ", ["message"]],
"wbv9xO": ["Create new project"],
"wc54KE": ["Trying it out…"],
+ "wcZNHh": ["Git marks this worktree as prunable."],
"wcfO9r": ["No bug reports yet."],
"wckWOP": ["Manage"],
"wdRxTD": ["Applying…"],
@@ -5384,6 +5414,7 @@
],
"wndeIl": ["Project-level pages with neither incoming nor outgoing graph edges."],
"wqD3pI": [["failed"], " of ", ["0"], " comments could not be updated."],
+ "wrdxmT": ["project missing"],
"ws5o1F": ["Checked by: ", ["0"]],
"wsLj3t": [
"That folder already holds code Open Knowledge didn't write, which the same trust would let ",
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index ad4d4ef78..d600d09f7 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -1343,7 +1343,7 @@ msgstr "A <0>Modified</0> badge marks rules your config sets explicitly — dire
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "A branch with that name already exists. Open its worktree from the switcher instead."
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "A linked worktree of this repository"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "A linked worktree whose location could not be loaded"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "A title, description, tags — anything that describes this folder."
msgid "A worktree folder for {shareBranch} already exists."
msgstr "A worktree folder for {shareBranch} already exists."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "A worktree folder for that branch already exists."
@@ -4072,7 +4072,7 @@ msgstr "Couldn't create template: {error}"
msgid "Couldn't create the report"
msgstr "Couldn't create the report"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "Couldn't create the worktree. Try a different name."
@@ -4201,6 +4201,10 @@ msgstr "Couldn't load the OpenKnowledge skills. Try again."
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Couldn't load the version preview. You can still choose how to resolve it below."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "Couldn't load worktrees."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "Couldn't load your agents."
@@ -4244,10 +4248,6 @@ msgstr "Couldn't open \"{name}\": {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "Couldn't open {0} for editing: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "Couldn't open a worktree for that branch."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "Couldn't open document"
@@ -5034,6 +5034,11 @@ msgstr "description tokens"
msgid "Design"
msgstr "Design"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "Detached at {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "detached HEAD"
@@ -5812,7 +5817,7 @@ msgstr "Enter a repository URL or owner/repo"
msgid "Enter a title for this template."
msgstr "Enter a title for this template."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
@@ -5985,6 +5990,10 @@ msgstr "Expose this project to the network?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "external"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git & PRs"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git has locked this worktree, but it can still be opened."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git marks this worktree as prunable."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git merge rule"
@@ -6787,7 +6804,7 @@ msgstr "Git merge rule"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
@@ -7580,6 +7597,10 @@ msgstr "Insert row below"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "Inside this repository's OpenKnowledge worktrees folder"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "Instruction for the AI"
msgid "Integrations"
msgstr "Integrations"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "internal"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "Invalid color value"
@@ -8292,6 +8317,10 @@ msgstr "Loading the chat"
msgid "Loading timeline history"
msgstr "Loading timeline history"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "Loading worktrees…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "Loading your reports"
@@ -8344,6 +8373,10 @@ msgstr "Local-only requested but no git repository was created. Switch later via
msgid "Location"
msgstr "Location"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "locked"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "Logs & system info"
@@ -9520,6 +9553,10 @@ msgstr "No templates yet. Add one to give new docs in this folder a ready-made s
msgid "No workspace"
msgstr "No workspace"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "No worktrees found."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "None"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge checked the project"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge could not find this agent on this machine."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
@@ -10491,6 +10532,10 @@ msgstr "Outline"
msgid "Outside any block"
msgstr "Outside any block"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "Outside this repository's OpenKnowledge worktrees folder"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Outside what Open Knowledge commits."
@@ -10689,6 +10734,10 @@ msgstr "Path resolves outside project"
msgid "Path suggestions"
msgstr "Path suggestions"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "path unreadable"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "Pattern (regex)"
@@ -11014,6 +11063,10 @@ msgstr "Project folder created, but git init failed. Try again."
msgid "Project MCP server"
msgstr "Project MCP server"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "project missing"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "Project name"
@@ -13548,6 +13601,10 @@ msgstr "Split list item"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "Stage the selected passage in the agents panel, ready to extend and send."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "stale Git entry"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "Star us on GitHub"
@@ -14133,8 +14190,8 @@ msgstr "Thanks for the feedback!"
msgid "Thanks for the report!"
msgstr "Thanks for the report!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "That branch is already open in another worktree."
@@ -14331,6 +14388,18 @@ msgstr "The model id your endpoint serves. Its vector size is detected automatic
msgid "the open agent"
msgstr "the open agent"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "The OpenKnowledge project is missing at this checkout path."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
@@ -14694,14 +14763,26 @@ msgstr "This agent runs through {0}, which isn't installed. Open Knowledge can d
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "This branch is checked out in:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "This can be configured in Settings > AI tools & CLI"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "This checkout path cannot be read."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
@@ -14990,8 +15071,8 @@ msgstr "This permanently removes {path}. Agents that reference this template by
msgid "This project"
msgstr "This project"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
@@ -15014,8 +15095,8 @@ msgstr "This project is running a different, incompatible build of OpenKnowledge
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "This project isn't a git repository, so worktrees aren't available."
@@ -15122,6 +15203,10 @@ msgstr "This usually means one of:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "This window can't store a token — open Settings from the main app window."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "This worktree is no longer available."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "Tidying up…"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index dacd91135..affaf33a3 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -287,6 +287,7 @@
"2CHoQv": ["Recargar a la fuerza"],
"2Ce6hp": ["Se trasladan"],
"2D1x3Y": ["Aplicar y reiniciar el servidor del proyecto"],
+ "2EcUjH": ["interno"],
"2FYpfJ": ["Más"],
"2G-56b": ["No se pudieron actualizar las reglas de markdownlint"],
"2GT3Hf": ["Global"],
@@ -343,6 +344,7 @@
"3-1BY2": ["Esta sesión de terminal ya no está disponible."],
"322lyb": ["Resalta consejos, advertencias y notas."],
"32TTpa": ["Escribir a soporte sobre este informe"],
+ "33FYnv": ["ruta ilegible"],
"34qyH5": ["No se pudo contactar con el servidor"],
"36WXSC": ["No se pudo eliminar la plantilla: ", ["error"]],
"36aWJD": ["Únete a nosotros en Discord"],
@@ -404,7 +406,6 @@
"3SZrdj": ["Buscar actualizaciones…"],
"3TSz9S": ["Minimizar"],
"3Uuuft": ["Informe de ", ["0"]],
- "3UzaS-": ["Un worktree vinculado de este repositorio"],
"3V94ia": ["No se pudieron enviar tus comentarios: el espacio de trabajo no está listo."],
"3VbwPp": ["Abrir ", ["keyName"], " en el navegador"],
"3VsNTI": ["Cargando el documento"],
@@ -667,6 +668,7 @@
"65Ea2s": [
"Exponer fija un puerto para que el destino del túnel permanezca estable entre reinicios."
],
+ "66JlOb": ["Un árbol de trabajo vinculado cuya ubicación no se pudo cargar"],
"67Dpmh": ["Sugerencias de comandos de barra"],
"67f-3g": [
"Se duplicó correctamente, pero puede que la barra lateral esté desactualizada; actualízala para resincronizar"
@@ -797,6 +799,9 @@
],
"7Ag-Xu": ["Preguntar a ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Falló"],
+ "7C9JcA": [
+ "La ruta del proyecto de OpenKnowledge en esta rama sale del worktree. El worktree se creó, pero no se abrió."
+ ],
"7FA2iI": ["No se pudieron leer los comentarios pendientes de envío; no se envió nada."],
"7FamGZ": ["Ir a la línea"],
"7Fkcej": ["+ Añadir ", ["addChildName"]],
@@ -1272,6 +1277,7 @@
"C0Ciaj": ["Se importó como \"", ["0"], "\": el nombre \"", ["1"], "\" ya estaba ocupado."],
"C0hoX6": ["Siempre incluido"],
"C2abof": ["Sin seguimiento"],
+ "C37ssn": ["Cargando worktrees…"],
"C3Zc44": ["Explorar habilidades"],
"C62P6b": ["Selección del editor"],
"C7PKTv": ["Enviar los comentarios marcados al chat"],
@@ -1476,6 +1482,7 @@
"Gestiona la cuenta de GitHub que usa OpenKnowledge para explorar y sincronizar tus repositorios."
],
"E7BhZn": ["Nota en blanco"],
+ "E8NbNG": ["No se pudieron cargar los árboles de trabajo."],
"E91VZY": ["Abrir en una ventana nueva"],
"E9bKSA": ["Creando"],
"E9gh86": ["Puedes adjuntar hasta ", ["MAX_ATTACHMENTS"], " imágenes."],
@@ -1604,6 +1611,7 @@
],
"FCKppt": ["Endpoint"],
"FCMaBz": ["Qué habilidad"],
+ "FCS8de": ["externo"],
"FCxvG5": ["Primer elemento"],
"FDBwmS": ["Abrir carpeta…"],
"FEK4oC": [
@@ -1916,6 +1924,7 @@
"ICoNYz": ["También puedes gestionar esto en Ajustes."],
"IFALcX": ["Descripción de ", ["field"]],
"IFezUv": ["No se pudo completar la auditoría. Inténtalo de nuevo."],
+ "IIgshV": ["bloqueado"],
"IInnZo": ["Conflicto"],
"IKoTAC": ["Dejarlo desactivado"],
"IMLUBh": ["Valor de color no válido"],
@@ -2564,6 +2573,9 @@
"PVSwOe": ["Redirigiendo: esperando a que se detenga la ejecución actual…"],
"PVUn_c": ["Abrir carpeta"],
"PVggyD": ["Esquemas de frontmatter"],
+ "PW-5kK": [
+ "Esta rama redirige una ruta de configuración de OpenKnowledge fuera del worktree. El worktree se creó, pero no se abrió."
+ ],
"PWh9Ii": ["Aplicar cambios"],
"PWqtgd": ["Cargando el chat"],
"PXaT32": ["El servidor devolvió una respuesta de destinos de habilidades incompleta."],
@@ -2657,6 +2669,9 @@
"QQghPu": ["Instalar en Claude Desktop"],
"QR5SP1": ["plantilla creada"],
"QRSdsO": ["Tiempo de espera de la solicitud de indexación (segundos)"],
+ "QSH_Sn": [
+ "Esta rama no contiene este proyecto de OpenKnowledge. El worktree se creó, pero no se abrió."
+ ],
"QVk3SK": ["Este archivo se eliminó en la rama entrante (conflicto modify-delete)."],
"QWdKwH": ["Mover"],
"QYTOaN": ["Puedes cambiarlo más adelante en <0>Ajustes → Sincronización</0>."],
@@ -3802,6 +3817,7 @@
"bGa3Fk": ["Subiendo el archivo"],
"bH382I": ["Edita este HTML: la vista previa se actualiza en vivo."],
"bKt9Jk": ["No se encontró ningún proyecto de OpenKnowledge activo ni reciente."],
+ "bRyLwy": ["Desconectado en ", ["0"]],
"bSD4im": ["Buscar worktrees y ramas"],
"bS_boY": ["Reemplazar la coincidencia actual"],
"bUUVED": ["Recurso"],
@@ -4534,6 +4550,7 @@
"hDEaQu": ["Conecta OpenKnowledge con las demás herramientas que usas."],
"hDKtoF": ["hace ", ["diffHrs"], " h"],
"hDoLrm": ["Quitar ", ["projectName"], " de los proyectos recientes"],
+ "hE33RG": ["No se encontraron árboles de trabajo."],
"hFmYGU": ["No se admiten archivos de tema vinculados"],
"hGmuTc": ["Documentos etiquetados con #", ["tagDocsName"]],
"hHMv6l": ["Eliminar el bloque"],
@@ -4705,6 +4722,7 @@
"ij-Elv": ["Vista previa de imagen"],
"ijLc3m": ["Lista con viñetas"],
"ikSw6W": ["Se movió hacia abajo."],
+ "ikk3no": ["Fuera de la carpeta de árboles de trabajo de OpenKnowledge de este repositorio"],
"ilodsp": ["Dejar que los agentes usen OpenKnowledge sin preguntar"],
"inJhKB": ["Reemplazar y guardar"],
"ioMn4Z": ["Nuevo desde plantilla…"],
@@ -4763,6 +4781,9 @@
"jKeGuZ": ["Elimina un documento, carpeta, plantilla, habilidad o recurso"],
"jL3gox": ["Selecciona un valor"],
"jLOL1H": ["Cambia a una rama para compartir."],
+ "jMb2SQ": [
+ "No se puede leer la ruta del proyecto de OpenKnowledge en esta rama. El worktree se creó, pero no se abrió."
+ ],
"jO18NZ": ["Me paso a otra herramienta"],
"jPUPvG": ["No se pudo resolver el conflicto de ", ["filePath"], "."],
"jRAGrQ": ["Configurar agentes"],
@@ -4923,6 +4944,7 @@
"ku0yLQ": [
"Las páginas se convierten en embeddings la primera vez que una búsqueda las necesita."
],
+ "kvWZ9R": ["entrada de Git obsoleta"],
"kwNS82": ["Este tema no se puede usar hasta que se corrija el archivo."],
"ky9Tuc": ["Editar el código de ", ["0"]],
"kzpkcn": ["No se pudo guardar esa edición."],
@@ -5301,11 +5323,13 @@
"oCZkaG": ["Copiar ruta"],
"oJl7eO": ["Componente desconocido: ", ["componentName"], "; el código se puede editar abajo"],
"oKBnk5": ["Se bloquearon más solicitudes."],
+ "oKE6QZ": ["Git ha bloqueado este worktree, pero aún se puede abrir."],
"oLyLo6": ["El servicio en segundo plano de la terminal no está en ejecución."],
"oP-FQW": ["Usa una ruta relativa dentro de la habilidad"],
"oPU_4D": ["Enviar cuando el agente esté libre"],
"oPbSBQ": ["Crea un enlace compartible a un documento o carpeta"],
"oQA-cA": ["Ruta completa"],
+ "oQubcL": ["Dentro de la carpeta de árboles de trabajo de OpenKnowledge de este repositorio"],
"oS1YpJ": ["Abre el Navegador de proyectos."],
"oVW7VD": ["Se instala en este proyecto"],
"oWsZk8": ["Crear la página inexistente ", ["target"]],
@@ -5377,6 +5401,7 @@
"pMPnZv": [["deleted"], " habilidades eliminadas"],
"pOo4Aa": ["Texto sin formato"],
"pPiV8s": ["Activar Automático (Pull y Push)"],
+ "pSF7TJ": ["No se puede leer esta ruta de checkout."],
"pSimwP": ["Nombre nuevo para la versión de ", ["editor"]],
"pTPqMK": ["Activa o desactiva un bloque de código delimitado."],
"pTyA_t": ["etiquetas"],
@@ -5744,6 +5769,9 @@
"snrVQ7": ["falló la comprobación"],
"sq4WQH": ["Usar ", ["0"], " como tema claro"],
"sqUrlK": ["Cavilando…"],
+ "sqgz2k": [
+ "OpenKnowledge no pudo terminar de configurar este proyecto. El worktree se creó, pero no se abrió."
+ ],
"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."
],
@@ -5810,7 +5838,6 @@
"t_YqKh": ["Quitar"],
"tc65fD": ["Las más instaladas"],
"tcjTlU": ["Paquetes iniciales"],
- "teD0H9": ["No se pudo abrir un worktree para esa rama."],
"teFjfG": ["Todavía no hay ningún agente configurado: elige uno en el menú de envío."],
"ten9en": ["Proyecto reciente"],
"tfDRzk": ["Guardar"],
@@ -5920,6 +5947,7 @@
"uAQUqI": ["Estado"],
"uA_jXp": ["Cambiar de rama y actualizar"],
"uBAxNB": ["Editor"],
+ "uCZNXY": ["Este árbol de trabajo ya no está disponible."],
"uCaIdy": [
"Falta la sesión de GitHub o ha caducado. Vuelve a conectarte para reanudar la sincronización."
],
@@ -6162,6 +6190,7 @@
"wHZ58m": ["Abrir con la IA ", ["displayName"], " Desktop"],
"wJijgU": ["Ubicación"],
"wJo9oS": ["Cerrar búsqueda"],
+ "wKJo7h": ["Falta el proyecto de OpenKnowledge en esta ruta de checkout."],
"wQp1V3": ["Espejo de <0>", ["src"], "</0>"],
"wQvvZY": ["Archivo de habilidad nuevo"],
"wRni1Z": ["Desactivar Slidev"],
@@ -6189,6 +6218,7 @@
"wbpoGe": ["No se pudo instalar la habilidad de OpenKnowledge: ", ["message"]],
"wbv9xO": ["Crear proyecto"],
"wc54KE": ["Probándolo…"],
+ "wcZNHh": ["Git marca este worktree como eliminable."],
"wcfO9r": ["Todavía no hay informes de error."],
"wckWOP": ["Gestionar"],
"wdRxTD": ["Aplicando…"],
@@ -6209,6 +6239,7 @@
],
"wndeIl": ["Páginas de todo el proyecto sin aristas entrantes ni salientes en el grafo."],
"wqD3pI": ["No se pudieron actualizar ", ["failed"], " de ", ["0"], " comentarios."],
+ "wrdxmT": ["falta el proyecto"],
"ws5o1F": ["Comprobado por: ", ["0"]],
"wsLj3t": [
"Esa carpeta ya contiene código que Open Knowledge no escribió y que esa misma confianza permitiría ejecutar a ",
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index 0ffd407c2..a67512766 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -1343,7 +1343,7 @@ msgstr "La etiqueta <0>Modificada</0> marca las reglas que tu configuración def
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "Ya existe una rama llamada {shareBranch}. Abre su worktree desde el selector."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "Ya existe una rama con ese nombre. Abre su worktree desde el selector."
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "Una línea con una nota al pie<0><1>[1]</1></0> y una definición que se muestra abajo."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "Un worktree vinculado de este repositorio"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "Un árbol de trabajo vinculado cuya ubicación no se pudo cargar"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "Un título, una descripción, etiquetas: cualquier cosa que describa est
msgid "A worktree folder for {shareBranch} already exists."
msgstr "Ya existe una carpeta de worktree para {shareBranch}."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "Ya existe una carpeta de worktree para esa rama."
@@ -4072,7 +4072,7 @@ msgstr "No se pudo crear la plantilla: {error}"
msgid "Couldn't create the report"
msgstr "No se pudo crear el informe"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "No se pudo crear el worktree. Prueba con otro nombre."
@@ -4201,6 +4201,10 @@ msgstr "No se pudieron cargar las habilidades de OpenKnowledge. Inténtalo de nu
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "No se pudo cargar la vista previa de la versión. Aun así puedes elegir abajo cómo resolverlo."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "No se pudieron cargar los árboles de trabajo."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "No se pudieron cargar tus agentes."
@@ -4244,10 +4248,6 @@ msgstr "No se pudo abrir \"{name}\": {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "No se pudo abrir {0} para editarlo: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "No se pudo abrir un worktree para esa rama."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "No se pudo abrir el documento"
@@ -5034,6 +5034,11 @@ msgstr "tokens de descripción"
msgid "Design"
msgstr "Diseño"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "Desconectado en {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "HEAD desacoplado"
@@ -5812,7 +5817,7 @@ msgstr "Escribe una URL de repositorio o propietario/repositorio"
msgid "Enter a title for this template."
msgstr "Escribe un título para esta plantilla."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Escribe un nombre de rama válido (sin espacios, sin punto inicial, sin \"..\")."
@@ -5985,6 +5990,10 @@ msgstr "¿Exponer este proyecto a la red?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "Exponer fija un puerto para que el destino del túnel permanezca estable entre reinicios."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "externo"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git y PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git no puede seguir esta carpeta: está vacía o solo contiene archivos ignorados. El enlace no funcionará hasta que añadas un documento seguido por git."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git ha bloqueado este worktree, pero aún se puede abrir."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "No has definido tu identidad de git: los commits usan un autor por defecto. Define la tuya para que tus compañeros vean tu nombre."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git marca este worktree como eliminable."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Regla de combinación de Git"
@@ -6787,7 +6804,7 @@ msgstr "Regla de combinación de Git"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git necesita {tool} para este repositorio, pero no está instalado o no se ha encontrado. Instálalo y vuelve a intentarlo."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git necesita una herramienta auxiliar (como git-lfs) que no está instalada o no se ha encontrado. Instálala y vuelve a intentarlo."
@@ -7580,6 +7597,10 @@ msgstr "Insertar fila debajo"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "Inserta, elimina, mueve, copia y sangra líneas del editor de código con el mapa de teclas por defecto de CodeMirror."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "Dentro de la carpeta de árboles de trabajo de OpenKnowledge de este repositorio"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "Instrucción para la IA"
msgid "Integrations"
msgstr "Integraciones"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "interno"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "Valor de color no válido"
@@ -8292,6 +8317,10 @@ msgstr "Cargando el chat"
msgid "Loading timeline history"
msgstr "Cargando el historial de la cronología"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "Cargando worktrees…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "Cargando tus informes"
@@ -8344,6 +8373,10 @@ msgstr "Se pidió solo local, pero no se creó ningún repositorio de git. Puede
msgid "Location"
msgstr "Ubicación"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "bloqueado"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "Registros e información del sistema"
@@ -9520,6 +9553,10 @@ msgstr "Todavía no hay plantillas. Añade una para dar a los documentos nuevos
msgid "No workspace"
msgstr "Sin espacio de trabajo"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "No se encontraron árboles de trabajo."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "Ninguno"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge revisó el proyecto"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge no encontró este agente en este equipo."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge no pudo terminar de configurar este proyecto. El worktree se creó, pero no se abrió."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge no pudo leer terminal.shell en .ok/local/config.yml. Se usará un shell de Windows disponible."
@@ -10491,6 +10532,10 @@ msgstr "Esquema"
msgid "Outside any block"
msgstr "Fuera de cualquier bloque"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "Fuera de la carpeta de árboles de trabajo de OpenKnowledge de este repositorio"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Fuera de lo que confirma Open Knowledge."
@@ -10689,6 +10734,10 @@ msgstr "La ruta apunta fuera del proyecto"
msgid "Path suggestions"
msgstr "Sugerencias de rutas"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "ruta ilegible"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "Patrón (regex)"
@@ -11014,6 +11063,10 @@ msgstr "Se creó la carpeta del proyecto, pero falló git init. Inténtalo de nu
msgid "Project MCP server"
msgstr "Servidor MCP del proyecto"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "falta el proyecto"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "Nombre del proyecto"
@@ -13548,6 +13601,10 @@ msgstr "Dividir el elemento de lista"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "Prepara el fragmento seleccionado en el panel de agentes, listo para ampliar y enviar."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "entrada de Git obsoleta"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "Danos una estrella en GitHub"
@@ -14133,8 +14190,8 @@ msgstr "¡Gracias por tus comentarios!"
msgid "Thanks for the report!"
msgstr "¡Gracias por el informe!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "Esa rama ya está abierta en otro worktree."
@@ -14331,6 +14388,18 @@ msgstr "El id del modelo que sirve tu endpoint. El tamaño de su vector se detec
msgid "the open agent"
msgstr "el agente abierto"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "Falta el proyecto de OpenKnowledge en esta ruta de checkout."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "No se puede leer la ruta del proyecto de OpenKnowledge en esta rama. El worktree se creó, pero no se abrió."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "La ruta del proyecto de OpenKnowledge en esta rama sale del worktree. El worktree se creó, pero no se abrió."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "El servidor de OpenKnowledge tardo demasiado en responder y es posible que el cambio se haya aplicado igualmente. Pide al agente que lo compruebe antes de volver a intentarlo."
@@ -14694,14 +14763,26 @@ msgstr "Este agente funciona con {0}, que no está instalado. Open Knowledge pue
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "Esto también instala {packSkillCount, plural, one {# habilidad} many {# habilidades} other {# habilidades}} del paquete."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "Esta rama no contiene este proyecto de OpenKnowledge. El worktree se creó, pero no se abrió."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "Esta rama está extraída en:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "Esta rama redirige una ruta de configuración de OpenKnowledge fuera del worktree. El worktree se creó, pero no se abrió."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "Esto se puede configurar en Ajustes > Herramientas de IA y CLI"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "No se puede leer esta ruta de checkout."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "Este comando contiene caracteres ocultos que pueden hacer que se vea distinto de lo que se ejecuta. Aquí se muestran como ⟨U+…⟩."
@@ -14990,8 +15071,8 @@ msgstr "Esto elimina definitivamente {path}. Los agentes que hagan referencia a
msgid "This project"
msgstr "Este proyecto"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "Este proyecto aún no tiene commits, así que no hay ninguna rama en la que basar un worktree. Haz un primer commit y vuelve a intentarlo."
@@ -15014,8 +15095,8 @@ msgstr "Este proyecto está ejecutando una compilación de OpenKnowledge distint
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "Este proyecto está ejecutando una versión de OpenKnowledge (v{0}) más antigua que la de esta aplicación (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "Este proyecto no es un repositorio de git, así que los worktrees no están disponibles."
@@ -15122,6 +15203,10 @@ msgstr "Esto suele significar una de estas cosas:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "Esta ventana no puede guardar un token: abre Ajustes desde la ventana principal de la aplicación."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "Este árbol de trabajo ya no está disponible."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "Ordenando…"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index 0bd84e5e3..880ea6922 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -301,6 +301,7 @@
"2CHoQv": ["Forcer le rechargement"],
"2Ce6hp": ["Déplacées"],
"2D1x3Y": ["Appliquer et redémarrer le serveur du projet"],
+ "2EcUjH": ["interne"],
"2FYpfJ": ["Plus"],
"2G-56b": ["Échec de la mise à jour des règles markdownlint"],
"2GT3Hf": ["Global"],
@@ -357,6 +358,7 @@
"3-1BY2": ["Cette session de terminal n'est plus disponible."],
"322lyb": ["Mettez en avant des conseils, des avertissements et des remarques."],
"32TTpa": ["Écrire au support à propos de ce rapport"],
+ "33FYnv": ["emplacement illisible"],
"34qyH5": ["Impossible de joindre le serveur"],
"36WXSC": ["Impossible de supprimer le modèle : ", ["error"]],
"36aWJD": ["Rejoignez-nous sur Discord"],
@@ -418,7 +420,6 @@
"3SZrdj": ["Rechercher les mises à jour…"],
"3TSz9S": ["Réduire"],
"3Uuuft": ["Rapport de ", ["0"]],
- "3UzaS-": ["Un worktree lié à ce dépôt"],
"3V94ia": ["Impossible d'envoyer vos commentaires — l'espace de travail n'est pas prêt."],
"3VbwPp": ["Ouvrir ", ["keyName"], " dans le navigateur"],
"3VsNTI": ["Chargement du document"],
@@ -692,6 +693,7 @@
"65Ea2s": [
"L'exposition fixe un port afin que la cible du tunnel reste stable d'un redémarrage à l'autre."
],
+ "66JlOb": ["Un arbre de travail lié dont l’emplacement n’a pas pu être chargé"],
"67Dpmh": ["Suggestions de commandes slash"],
"67f-3g": [
"Duplication réussie, mais la barre latérale n'est peut-être pas à jour — actualisez pour resynchroniser"
@@ -826,6 +828,9 @@
],
"7Ag-Xu": ["Demander à ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Échec"],
+ "7C9JcA": [
+ "Le chemin du projet OpenKnowledge de cette branche sort du worktree. Le worktree a été créé, mais pas ouvert."
+ ],
"7FA2iI": ["Impossible de lire les commentaires en attente d'envoi — rien n'a été envoyé."],
"7FamGZ": ["Aller à la ligne"],
"7Fkcej": ["+ Ajouter ", ["addChildName"]],
@@ -1301,6 +1306,7 @@
"C0Ciaj": ["Importé sous « ", ["0"], " » — le nom « ", ["1"], " » était déjà pris."],
"C0hoX6": ["Toujours inclus"],
"C2abof": ["Non suivi"],
+ "C37ssn": ["Chargement des worktrees…"],
"C3Zc44": ["Explorer les compétences"],
"C62P6b": ["Sélection de l'éditeur"],
"C7PKTv": ["Envoyer les commentaires cochés dans la discussion"],
@@ -1509,6 +1515,7 @@
"Gérez le compte GitHub qu'OpenKnowledge utilise pour parcourir et synchroniser vos dépôts."
],
"E7BhZn": ["Note vierge"],
+ "E8NbNG": ["Impossible de charger les arbres de travail."],
"E91VZY": ["Ouvrir dans une nouvelle fenêtre"],
"E9bKSA": ["Création"],
"E9gh86": ["Vous pouvez joindre jusqu'à ", ["MAX_ATTACHMENTS"], " images."],
@@ -1640,6 +1647,7 @@
],
"FCKppt": ["Point de terminaison"],
"FCMaBz": ["Quelle compétence"],
+ "FCS8de": ["externe"],
"FCxvG5": ["Premier élément"],
"FDBwmS": ["Ouvrir un dossier…"],
"FEK4oC": [
@@ -1948,6 +1956,7 @@
"ICoNYz": ["Vous pouvez aussi gérer cela dans les Paramètres."],
"IFALcX": ["Description de ", ["field"]],
"IFezUv": ["L'audit n'a pas pu être terminé. Réessayez."],
+ "IIgshV": ["verrouillé"],
"IInnZo": ["Conflit"],
"IKoTAC": ["Laisser désactivé"],
"IMLUBh": ["Valeur de couleur non valide"],
@@ -2609,6 +2618,9 @@
"PVSwOe": ["Réorientation : attente de l’arrêt de l’exécution en cours…"],
"PVUn_c": ["Ouvrir le dossier"],
"PVggyD": ["Schémas de frontmatter"],
+ "PW-5kK": [
+ "Cette branche redirige un chemin de configuration OpenKnowledge hors du worktree. Le worktree a été créé, mais pas ouvert."
+ ],
"PWh9Ii": ["Appliquer les modifications"],
"PWqtgd": ["Chargement du chat"],
"PXaT32": ["Le serveur a renvoyé une réponse de cibles de compétences incomplète."],
@@ -2698,6 +2710,9 @@
"QQghPu": ["Installer dans Claude Desktop"],
"QR5SP1": ["modèle créé"],
"QRSdsO": ["Délai d'attente de la requête d'indexation (secondes)"],
+ "QSH_Sn": [
+ "Cette branche ne contient pas ce projet OpenKnowledge. Le worktree a été créé, mais pas ouvert."
+ ],
"QVk3SK": ["Ce fichier a été supprimé sur la branche entrante (conflit modify-delete)."],
"QWdKwH": ["Déplacer"],
"QYTOaN": ["Vous pourrez changer cela plus tard dans <0>Paramètres → Synchronisation</0>."],
@@ -3851,6 +3866,7 @@
"bGa3Fk": ["Envoi du fichier"],
"bH382I": ["Modifiez ce HTML — l'aperçu se met à jour en direct."],
"bKt9Jk": ["Aucun projet OpenKnowledge actif ou récent n'a été trouvé."],
+ "bRyLwy": ["Détaché à ", ["0"]],
"bSD4im": ["Rechercher des worktrees et des branches"],
"bS_boY": ["Remplacer l'occurrence actuelle"],
"bUUVED": ["Ressource"],
@@ -4569,6 +4585,7 @@
"hDEaQu": ["Connectez OpenKnowledge aux autres outils que vous utilisez."],
"hDKtoF": ["il y a ", ["diffHrs"], " h"],
"hDoLrm": ["Retirer ", ["projectName"], " des projets récents"],
+ "hE33RG": ["Aucun arbre de travail trouvé."],
"hFmYGU": ["Les fichiers de thème liés ne sont pas pris en charge"],
"hGmuTc": ["Documents étiquetés #", ["tagDocsName"]],
"hHMv6l": ["Supprimer le bloc"],
@@ -4742,6 +4759,7 @@
"ij-Elv": ["Aperçu de l'image"],
"ijLc3m": ["Liste à puces"],
"ikSw6W": ["Déplacé vers le bas."],
+ "ikk3no": ["Hors du dossier des arbres de travail OpenKnowledge de ce dépôt"],
"ilodsp": ["Laisser les agents utiliser OpenKnowledge sans demander"],
"inJhKB": ["Remplacer et enregistrer"],
"ioMn4Z": ["Nouveau à partir d'un modèle…"],
@@ -4800,6 +4818,9 @@
"jKeGuZ": ["Supprime un document, un dossier, un modèle, une compétence ou une ressource"],
"jL3gox": ["Sélectionnez une valeur"],
"jLOL1H": ["Passez sur une branche pour partager."],
+ "jMb2SQ": [
+ "Le chemin du projet OpenKnowledge est illisible sur cette branche. Le worktree a été créé, mais pas ouvert."
+ ],
"jO18NZ": ["Je passe à un autre outil"],
"jPUPvG": ["Impossible de résoudre le conflit pour ", ["filePath"], "."],
"jRAGrQ": ["Configurer les agents"],
@@ -4962,6 +4983,7 @@
"Colore et marque les fichiers qui ont des problèmes de vérification ou de liens, sans les ouvrir."
],
"ku0yLQ": ["Les pages reçoivent leur embedding la première fois qu'une recherche en a besoin."],
+ "kvWZ9R": ["entrée Git obsolète"],
"kwNS82": ["Ce thème ne peut pas être utilisé tant que le fichier n’est pas corrigé."],
"ky9Tuc": ["Modifier la source de ", ["0"]],
"kzpkcn": ["Impossible d'enregistrer cette modification."],
@@ -5344,11 +5366,13 @@
"oCZkaG": ["Copier le chemin"],
"oJl7eO": ["Composant inconnu : ", ["componentName"], " — source modifiable ci-dessous"],
"oKBnk5": ["D'autres requêtes ont été bloquées."],
+ "oKE6QZ": ["Git a verrouillé ce worktree, mais il peut toujours être ouvert."],
"oLyLo6": ["Le service d'arrière-plan du terminal n'est pas en cours d'exécution."],
"oP-FQW": ["Utilisez un chemin relatif à l'intérieur de la compétence"],
"oPU_4D": ["Envoyer quand l’agent sera libre"],
"oPbSBQ": ["Crée un lien partageable vers un document ou un dossier"],
"oQA-cA": ["Chemin complet"],
+ "oQubcL": ["Dans le dossier des arbres de travail OpenKnowledge de ce dépôt"],
"oS1YpJ": ["Ouvre le Navigateur de projets."],
"oVW7VD": ["S'installe dans ce projet"],
"oWsZk8": ["Créer la page manquante ", ["target"]],
@@ -5420,6 +5444,7 @@
"pMPnZv": [["deleted"], " compétences supprimées"],
"pOo4Aa": ["Texte brut"],
"pPiV8s": ["Activer Auto (Tirer et Pousser)"],
+ "pSF7TJ": ["Impossible de lire cet emplacement de checkout."],
"pSimwP": ["Nouveau nom pour la version ", ["editor"]],
"pTPqMK": ["Bascule un bloc de code délimité."],
"pTyA_t": ["étiquettes"],
@@ -5808,6 +5833,9 @@
"snrVQ7": ["échec du test"],
"sq4WQH": ["Utiliser ", ["0"], " comme thème clair"],
"sqUrlK": ["Songerie…"],
+ "sqgz2k": [
+ "OpenKnowledge n’a pas pu terminer la configuration de ce projet. Le worktree a été créé, mais pas ouvert."
+ ],
"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."
],
@@ -5876,7 +5904,6 @@
"t_YqKh": ["Retirer"],
"tc65fD": ["Les plus installées"],
"tcjTlU": ["Packs de démarrage"],
- "teD0H9": ["Impossible d'ouvrir un worktree pour cette branche."],
"teFjfG": ["Aucun agent n'est encore configuré — choisissez-en un dans le menu d'envoi."],
"ten9en": ["Projet récent"],
"tfDRzk": ["Enregistrer"],
@@ -5988,6 +6015,7 @@
"uAQUqI": ["État"],
"uA_jXp": ["Changer de branche et mettre à jour"],
"uBAxNB": ["Éditeur"],
+ "uCZNXY": ["Cet arbre de travail n’est plus disponible."],
"uCaIdy": [
"La connexion GitHub est absente ou expirée. Reconnectez-vous pour reprendre la synchronisation."
],
@@ -6234,6 +6262,7 @@
"wHZ58m": ["Ouvrir avec l'IA ", ["displayName"], " Desktop"],
"wJijgU": ["Emplacement"],
"wJo9oS": ["Fermer la recherche"],
+ "wKJo7h": ["Le projet OpenKnowledge est absent à cet emplacement de checkout."],
"wQp1V3": ["Miroir de <0>", ["src"], "</0>"],
"wQvvZY": ["Nouveau fichier de compétence"],
"wRni1Z": ["Désactiver Slidev"],
@@ -6259,6 +6288,7 @@
"wbpoGe": ["Impossible d'installer la compétence OpenKnowledge : ", ["message"]],
"wbv9xO": ["Créer un projet"],
"wc54KE": ["Essai en cours…"],
+ "wcZNHh": ["Git indique que ce worktree peut être élagué."],
"wcfO9r": ["Pas encore de rapport de bug."],
"wckWOP": ["Gérer"],
"wdRxTD": ["Application…"],
@@ -6279,6 +6309,7 @@
],
"wndeIl": ["Pages du projet sans arête entrante ni sortante dans le graphe."],
"wqD3pI": [["failed"], " commentaires sur ", ["0"], " n'ont pas pu être mis à jour."],
+ "wrdxmT": ["projet manquant"],
"ws5o1F": ["Vérifié par : ", ["0"]],
"wsLj3t": [
"Ce dossier contient déjà du code qu'Open Knowledge n'a pas écrit et que cette même confiance permettrait à ",
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index d9a8dae12..cae32791c 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -1343,7 +1343,7 @@ msgstr "Un badge <0>Modifié</0> signale les règles que votre configuration dé
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "Une branche nommée {shareBranch} existe déjà. Ouvrez plutôt son worktree depuis le sélecteur."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "Une branche portant ce nom existe déjà. Ouvrez plutôt son worktree depuis le sélecteur."
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "Une ligne avec une note de bas de page<0><1>[1]</1></0> et une définition affichée en dessous."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "Un worktree lié à ce dépôt"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "Un arbre de travail lié dont l’emplacement n’a pas pu être chargé"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "Un titre, une description, des étiquettes — tout ce qui décrit ce do
msgid "A worktree folder for {shareBranch} already exists."
msgstr "Un dossier de worktree pour {shareBranch} existe déjà."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "Un dossier de worktree pour cette branche existe déjà."
@@ -4072,7 +4072,7 @@ msgstr "Impossible de créer le modèle : {error}"
msgid "Couldn't create the report"
msgstr "Impossible de créer le rapport"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "Impossible de créer le worktree. Essayez un autre nom."
@@ -4201,6 +4201,10 @@ msgstr "Impossible de charger les compétences OpenKnowledge. Réessayez."
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Impossible de charger l'aperçu de la version. Vous pouvez tout de même choisir ci-dessous comment résoudre le conflit."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "Impossible de charger les arbres de travail."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "Impossible de charger vos agents."
@@ -4244,10 +4248,6 @@ msgstr "Impossible d'ouvrir « {name} » : {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "Impossible d'ouvrir {0} pour modification : {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "Impossible d'ouvrir un worktree pour cette branche."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "Impossible d'ouvrir le document"
@@ -5034,6 +5034,11 @@ msgstr "tokens de description"
msgid "Design"
msgstr "Conception"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "Détaché à {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "HEAD détaché"
@@ -5812,7 +5817,7 @@ msgstr "Saisissez une URL de dépôt ou owner/repo"
msgid "Enter a title for this template."
msgstr "Saisissez un titre pour ce modèle."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Saisissez un nom de branche valide (pas d'espaces, pas de point initial, pas de « .. »)."
@@ -5985,6 +5990,10 @@ msgstr "Exposer ce projet au réseau ?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "L'exposition fixe un port afin que la cible du tunnel reste stable d'un redémarrage à l'autre."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "externe"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git et PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git ne peut pas suivre ce dossier — il est vide ou ne contient que des fichiers ignorés. Le lien ne fonctionnera pas tant que vous n'aurez pas ajouté un document suivi."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git a verrouillé ce worktree, mais il peut toujours être ouvert."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "L'identité git n'est pas définie — les commits utilisent un auteur par défaut. Définissez la vôtre pour que vos coéquipiers voient votre nom."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git indique que ce worktree peut être élagué."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Règle de fusion Git"
@@ -6787,7 +6804,7 @@ msgstr "Règle de fusion Git"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git a besoin de {tool} pour ce dépôt, mais l'outil n'est pas installé ou est introuvable. Installez-le, puis réessayez."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git a besoin d'un outil auxiliaire (comme git-lfs) qui n'est pas installé ou est introuvable. Installez-le, puis réessayez."
@@ -7580,6 +7597,10 @@ msgstr "Insérer une ligne en dessous"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "Insérez, supprimez, déplacez, copiez et mettez en retrait les lignes de l'éditeur de source via le mappage clavier par défaut de CodeMirror."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "Dans le dossier des arbres de travail OpenKnowledge de ce dépôt"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "Instruction pour l'IA"
msgid "Integrations"
msgstr "Intégrations"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "interne"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "Valeur de couleur non valide"
@@ -8292,6 +8317,10 @@ msgstr "Chargement du chat"
msgid "Loading timeline history"
msgstr "Chargement de l'historique de la chronologie"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "Chargement des worktrees…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "Chargement de vos rapports"
@@ -8344,6 +8373,10 @@ msgstr "Mode local uniquement demandé, mais aucun dépôt git n'a été créé.
msgid "Location"
msgstr "Emplacement"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "verrouillé"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "Journaux et informations système"
@@ -9520,6 +9553,10 @@ msgstr "Pas encore de modèles. Ajoutez-en un pour donner aux nouveaux documents
msgid "No workspace"
msgstr "Aucun espace de travail"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "Aucun arbre de travail trouvé."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "Aucun"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge a vérifié le projet"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge n'a pas trouvé cet agent sur cette machine."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge n’a pas pu terminer la configuration de ce projet. Le worktree a été créé, mais pas ouvert."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge n’a pas pu lire terminal.shell dans .ok/local/config.yml. Un shell Windows disponible sera utilisé à la place."
@@ -10491,6 +10532,10 @@ msgstr "Plan"
msgid "Outside any block"
msgstr "En dehors de tout bloc"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "Hors du dossier des arbres de travail OpenKnowledge de ce dépôt"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "En dehors de ce que valide Open Knowledge."
@@ -10689,6 +10734,10 @@ msgstr "Le chemin pointe en dehors du projet"
msgid "Path suggestions"
msgstr "Suggestions de chemins"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "emplacement illisible"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "Motif (expression régulière)"
@@ -11014,6 +11063,10 @@ msgstr "Dossier de projet créé, mais git init a échoué. Réessayez."
msgid "Project MCP server"
msgstr "Serveur MCP du projet"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "projet manquant"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "Nom du projet"
@@ -13548,6 +13601,10 @@ msgstr "Scinder l'élément de liste"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "Prépare le passage sélectionné dans le panneau des agents, prêt à être complété et envoyé."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "entrée Git obsolète"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "Mettez-nous une étoile sur GitHub"
@@ -14133,8 +14190,8 @@ msgstr "Merci pour votre retour !"
msgid "Thanks for the report!"
msgstr "Merci pour ce rapport !"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "Cette branche est déjà ouverte dans un autre worktree."
@@ -14331,6 +14388,18 @@ msgstr "L'id du modèle servi par votre point de terminaison. La taille de ses v
msgid "the open agent"
msgstr "l'agent ouvert"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "Le projet OpenKnowledge est absent à cet emplacement de checkout."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "Le chemin du projet OpenKnowledge est illisible sur cette branche. Le worktree a été créé, mais pas ouvert."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "Le chemin du projet OpenKnowledge de cette branche sort du worktree. Le worktree a été créé, mais pas ouvert."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "Le serveur OpenKnowledge a mis trop de temps a repondre et la modification a peut-etre quand meme ete appliquee. Demandez a l'agent de verifier avant de reessayer."
@@ -14694,14 +14763,26 @@ msgstr "Cet agent fonctionne via {0}, qui n'est pas installé. Open Knowledge pe
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "Cela installe également {packSkillCount, plural, one {# compétence} many {# compétences} other {# compétences}} du pack."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "Cette branche ne contient pas ce projet OpenKnowledge. Le worktree a été créé, mais pas ouvert."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "Cette branche est extraite dans :"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "Cette branche redirige un chemin de configuration OpenKnowledge hors du worktree. Le worktree a été créé, mais pas ouvert."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "Cela se configure dans Paramètres > Outils IA et CLI"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "Impossible de lire cet emplacement de checkout."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "Cette commande contient des caractères masqués qui peuvent la faire paraître différente de ce qui s’exécute. Ils sont affichés ici sous la forme ⟨U+…⟩."
@@ -14990,8 +15071,8 @@ msgstr "Ceci retire définitivement {path}. Les agents qui référencent ce mod
msgid "This project"
msgstr "Ce projet"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "Ce projet n'a encore aucun commit, il n'y a donc aucune branche sur laquelle baser un worktree. Faites un premier commit, puis réessayez."
@@ -15014,8 +15095,8 @@ msgstr "Ce projet utilise une version d'OpenKnowledge différente et incompatibl
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "Ce projet utilise une version d'OpenKnowledge (v{0}) plus ancienne que cette application (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "Ce projet n'est pas un dépôt git, les worktrees ne sont donc pas disponibles."
@@ -15122,6 +15203,10 @@ msgstr "Cela signifie généralement l'une de ces choses :"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "Cette fenêtre ne peut pas stocker de jeton — ouvrez les Paramètres depuis la fenêtre principale de l'application."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "Cet arbre de travail n’est plus disponible."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "Rangement…"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 3f33fdd02..a98f8c3f6 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -244,6 +244,7 @@
"2CHoQv": ["बलपूर्वक फिर से लोड करें"],
"2Ce6hp": ["स्थानांतरित होंगी"],
"2D1x3Y": ["लागू करें और प्रोजेक्ट सर्वर पुनः प्रारंभ करें"],
+ "2EcUjH": ["आंतरिक"],
"2FYpfJ": ["और"],
"2G-56b": ["markdownlint नियम अपडेट करने में विफल"],
"2GT3Hf": ["वैश्विक"],
@@ -297,6 +298,7 @@
"3-1BY2": ["यह टर्मिनल सत्र अब उपलब्ध नहीं है।"],
"322lyb": ["सुझाव, चेतावनियाँ और नोट उभारें।"],
"32TTpa": ["इस रिपोर्ट के बारे में सहायता को ईमेल करें"],
+ "33FYnv": ["पथ पढ़ा नहीं जा सकता"],
"34qyH5": ["सर्वर तक नहीं पहुँचा जा सका"],
"36WXSC": ["टेम्पलेट नहीं हटाया जा सका: ", ["error"]],
"36aWJD": ["Discord पर हमसे जुड़ें"],
@@ -342,7 +344,6 @@
"3SZrdj": ["अपडेट देखें…"],
"3TSz9S": ["छोटा करें"],
"3Uuuft": [["0"], " से रिपोर्ट"],
- "3UzaS-": ["इस रिपॉज़िटरी की एक लिंक्ड वर्कट्री"],
"3V94ia": ["आपकी टिप्पणियाँ नहीं भेजी जा सकीं — कार्यक्षेत्र तैयार नहीं है।"],
"3VbwPp": [["keyName"], " को ब्राउज़र में खोलें"],
"3VsNTI": ["दस्तावेज़ लोड हो रहा है"],
@@ -558,6 +559,7 @@
"65Ea2s": [
"एक्सपोज़ करने पर एक निश्चित port पिन हो जाता है ताकि tunnel का target पुनः प्रारंभ के बीच स्थिर रहे।"
],
+ "66JlOb": ["एक लिंक किया गया वर्कट्री जिसका स्थान लोड नहीं किया जा सका"],
"67Dpmh": ["स्लैश कमांड सुझाव"],
"67f-3g": ["नकल बन गई पर साइडबार पुराना हो सकता है — फिर से सिंक करने के लिए ताज़ा करें"],
"69E1Pq": [
@@ -658,6 +660,9 @@
],
"7Ag-Xu": [["agentName"], " से पूछें, ", ["hint"]],
"7Bj3x9": ["विफल"],
+ "7C9JcA": [
+ "इस ब्रांच पर OpenKnowledge प्रोजेक्ट का पथ वर्कट्री से बाहर जाता है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+ ],
"7FA2iI": ["भेजे जाने की प्रतीक्षा में मौजूद टिप्पणियाँ नहीं पढ़ी जा सकीं — कुछ भी नहीं भेजा गया।"],
"7FamGZ": ["पंक्ति पर जाएँ"],
"7Fkcej": ["+ ", ["addChildName"], " जोड़ें"],
@@ -1054,6 +1059,7 @@
"C0Ciaj": ["\"", ["0"], "\" के रूप में आयात किया गया — नाम \"", ["1"], "\" पहले से लिया जा चुका था।"],
"C0hoX6": ["हमेशा शामिल"],
"C2abof": ["ट्रैक नहीं किया गया"],
+ "C37ssn": ["वर्कट्री लोड हो रहे हैं…"],
"C3Zc44": ["स्किल खोजें"],
"C62P6b": ["संपादक चयन"],
"C7PKTv": ["चुनी हुई टिप्पणियाँ चैट में भेजें"],
@@ -1225,6 +1231,7 @@
"आपकी रिपॉज़िटरी ब्राउज़ और सिंक करने के लिए OpenKnowledge जिस GitHub खाते का उपयोग करता है उसे सँभालें।"
],
"E7BhZn": ["खाली नोट"],
+ "E8NbNG": ["वर्कट्री लोड नहीं किए जा सके।"],
"E91VZY": ["नई विंडो में खोलें"],
"E9bKSA": ["बनाया जा रहा है"],
"E9gh86": ["आप ", ["MAX_ATTACHMENTS"], " तक छवियाँ संलग्न कर सकते हैं।"],
@@ -1343,6 +1350,7 @@
"FCAcjR": ["OpenKnowledge के भीतर जुड़ा एक असली टर्मिनल चलाएँ, जो इस प्रोजेक्ट के फ़ोल्डर से शुरू होता है।"],
"FCKppt": ["एंडपॉइंट"],
"FCMaBz": ["कौन सी स्किल"],
+ "FCS8de": ["बाहरी"],
"FCxvG5": ["पहला आइटम"],
"FDBwmS": ["फ़ोल्डर खोलें…"],
"FEK4oC": [
@@ -1580,6 +1588,7 @@
"ICoNYz": ["आप इसे Settings में भी सँभाल सकते हैं।"],
"IFALcX": [["field"], " का विवरण"],
"IFezUv": ["ऑडिट पूरा नहीं हो सका। फिर कोशिश करें।"],
+ "IIgshV": ["लॉक किया गया"],
"IInnZo": ["टकराव"],
"IKoTAC": ["अक्षम ही रखें"],
"IMLUBh": ["अमान्य रंग मान"],
@@ -2156,6 +2165,9 @@
"PVSwOe": ["दिशा बदली जा रही है — मौजूदा प्रक्रिया के रुकने की प्रतीक्षा…"],
"PVUn_c": ["फ़ोल्डर खोलें"],
"PVggyD": ["Frontmatter स्कीमा"],
+ "PW-5kK": [
+ "यह ब्रांच OpenKnowledge सेटअप पथ को वर्कट्री से बाहर भेजती है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+ ],
"PWh9Ii": ["परिवर्तन लागू करें"],
"PWqtgd": ["चैट लोड हो रही है"],
"PXaT32": ["सर्वर ने अधूरी स्किल-टारगेट प्रतिक्रिया लौटाई।"],
@@ -2233,6 +2245,7 @@
"QQghPu": ["Claude Desktop में इंस्टॉल करें"],
"QR5SP1": ["टेम्पलेट बनाया गया"],
"QRSdsO": ["इंडेक्सिंग अनुरोध टाइमआउट (सेकंड)"],
+ "QSH_Sn": ["इस ब्रांच में यह OpenKnowledge प्रोजेक्ट नहीं है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"],
"QVk3SK": ["यह फ़ाइल आने वाली ब्रांच पर हटा दी गई थी (modify-delete विरोध)।"],
"QWdKwH": ["हिलाएँ"],
"QYTOaN": ["आप इसे बाद में <0>Settings → Sync</0> में बदल सकते हैं।"],
@@ -3194,6 +3207,7 @@
"bGa3Fk": ["फ़ाइल अपलोड की जा रही है"],
"bH382I": ["इस HTML को संपादित करें — पूर्वावलोकन तुरंत अद्यतित होता है।"],
"bKt9Jk": ["कोई सक्रिय या हाल का OpenKnowledge प्रोजेक्ट नहीं मिला।"],
+ "bRyLwy": [["0"], " पर डिटैच किया गया"],
"bSD4im": ["वर्कट्री और ब्रांच खोजें"],
"bS_boY": ["मौजूदा मेल बदलें"],
"bUUVED": ["एसेट"],
@@ -3754,6 +3768,7 @@
"hDEaQu": ["OpenKnowledge को अपने उपयोग के अन्य टूल से जोड़ें।"],
"hDKtoF": [["diffHrs"], " घंटे पहले"],
"hDoLrm": [["projectName"], " को हाल के प्रोजेक्ट से हटाएँ"],
+ "hE33RG": ["कोई वर्कट्री नहीं मिला।"],
"hFmYGU": ["लिंक की गई थीम फ़ाइलें समर्थित नहीं हैं"],
"hGmuTc": ["#", ["tagDocsName"], " टैग वाले दस्तावेज़"],
"hHMv6l": ["ब्लॉक हटाएँ"],
@@ -3905,6 +3920,7 @@
"ij-Elv": ["छवि पूर्वावलोकन"],
"ijLc3m": ["बुलेट सूची"],
"ikSw6W": ["नीचे ले जाया गया।"],
+ "ikk3no": ["इस रिपॉज़िटरी के OpenKnowledge वर्कट्री फ़ोल्डर के बाहर"],
"ilodsp": ["एजेंट को बिना पूछे OpenKnowledge उपयोग करने दें"],
"inJhKB": ["बदलें और सहेजें"],
"ioMn4Z": ["टेम्पलेट से नया…"],
@@ -3963,6 +3979,9 @@
"jKeGuZ": ["दस्तावेज़, फ़ोल्डर, टेम्पलेट, स्किल या एसेट हटाता है"],
"jL3gox": ["कोई मान चुनें"],
"jLOL1H": ["साझा करने के लिए किसी ब्रांच पर स्विच करें।"],
+ "jMb2SQ": [
+ "इस ब्रांच पर OpenKnowledge प्रोजेक्ट का पथ पढ़ा नहीं जा सकता। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+ ],
"jO18NZ": ["मैं किसी दूसरे टूल पर जा रहा हूँ"],
"jPUPvG": [["filePath"], " का टकराव नहीं सुलझाया जा सका।"],
"jRAGrQ": ["एजेंट कॉन्फ़िगर करें"],
@@ -4107,6 +4126,7 @@
"kpqWwG": ["यह ", ["targetNoun"], " ब्रांच <0>", ["branch"], "</0> से हटा दिया गया था।"],
"ktspdq": ["जिन फ़ाइलों में lint या लिंक की समस्याएँ हैं उन्हें बिना खोले रंग और बैज दें।"],
"ku0yLQ": ["पेज पहली बार तभी एम्बेड होते हैं जब किसी खोज को उनकी ज़रूरत पड़ती है।"],
+ "kvWZ9R": ["पुरानी Git एंट्री"],
"kwNS82": ["फ़ाइल ठीक होने तक इस थीम का उपयोग नहीं किया जा सकता।"],
"ky9Tuc": [["0"], " स्रोत संपादित करें"],
"kzpkcn": ["वह संपादन नहीं सहेजा जा सका।"],
@@ -4432,11 +4452,13 @@
"oCZkaG": ["पथ कॉपी करें"],
"oJl7eO": ["अज्ञात कंपोनेंट: ", ["componentName"], " — स्रोत नीचे संपादन योग्य"],
"oKBnk5": ["और अनुरोध रोके गए।"],
+ "oKE6QZ": ["Git ने इस वर्कट्री को लॉक किया है, लेकिन इसे अभी भी खोला जा सकता है।"],
"oLyLo6": ["टर्मिनल की बैकग्राउंड सेवा नहीं चल रही है।"],
"oP-FQW": ["स्किल के भीतर सापेक्ष पथ का उपयोग करें"],
"oPU_4D": ["एजेंट के खाली होने पर भेजें"],
"oPbSBQ": ["किसी दस्तावेज़ या फ़ोल्डर का साझा करने योग्य लिंक बनाता है"],
"oQA-cA": ["पूरा पथ"],
+ "oQubcL": ["इस रिपॉज़िटरी के OpenKnowledge वर्कट्री फ़ोल्डर के अंदर"],
"oS1YpJ": ["Project Navigator खोलें।"],
"oVW7VD": ["इस प्रोजेक्ट में इंस्टॉल होगा"],
"oWsZk8": ["अनुपस्थित पेज ", ["target"], " बनाएँ"],
@@ -4498,6 +4520,7 @@
"pMPnZv": [["deleted"], " स्किलें हटाई गईं"],
"pOo4Aa": ["सादा टेक्स्ट"],
"pPiV8s": ["स्वचालित (खींचें और भेजें) चालू करें"],
+ "pSF7TJ": ["इस चेकआउट पथ को पढ़ा नहीं जा सकता।"],
"pSimwP": [["editor"], " संस्करण के लिए नया नाम"],
"pTPqMK": ["बाड़बंद कोड ब्लॉक चालू या बंद करें।"],
"pTyA_t": ["टैग"],
@@ -4787,6 +4810,7 @@
"snrVQ7": ["जाँच विफल"],
"sq4WQH": [["0"], " को हल्की थीम के रूप में उपयोग करें"],
"sqUrlK": ["मनन किया जा रहा है…"],
+ "sqgz2k": ["OpenKnowledge इस प्रोजेक्ट का सेटअप पूरा नहीं कर सका। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"],
"srdlOs": [
"स्वचालित सिंक रुका हुआ है: आपके पास इस रिपॉज़िटरी में पुश करने की अनुमति नहीं है। अपडेट पाते रहने के लिए स्वचालित (केवल खींचें) पर जाएँ।"
],
@@ -4849,7 +4873,6 @@
"t_YqKh": ["हटाएँ"],
"tc65fD": ["सबसे ज़्यादा इंस्टॉल"],
"tcjTlU": ["स्टार्टर पैक"],
- "teD0H9": ["उस ब्रांच के लिए वर्कट्री नहीं खोला जा सका।"],
"teFjfG": ["अभी कोई एजेंट सेट अप नहीं है — भेजें मेन्यू से कोई चुनें।"],
"ten9en": ["हाल का प्रोजेक्ट"],
"tfDRzk": ["सहेजें"],
@@ -4945,6 +4968,7 @@
"uAQUqI": ["स्थिति"],
"uA_jXp": ["ब्रांच बदलें और अपडेट करें"],
"uBAxNB": ["संपादक"],
+ "uCZNXY": ["यह वर्कट्री अब उपलब्ध नहीं है।"],
"uCaIdy": [
"GitHub साइन-इन अनुपस्थित है या उसकी अवधि समाप्त हो चुकी है। सिंक फिर से शुरू करने के लिए दोबारा जुड़ें।"
],
@@ -5137,6 +5161,7 @@
"wHZ58m": ["AI ", ["displayName"], " Desktop से खोलें"],
"wJijgU": ["स्थान"],
"wJo9oS": ["खोज बंद करें"],
+ "wKJo7h": ["इस चेकआउट पथ पर OpenKnowledge प्रोजेक्ट मौजूद नहीं है।"],
"wQp1V3": ["<0>", ["src"], "</0> का मिरर"],
"wQvvZY": ["नई स्किल फ़ाइल"],
"wRni1Z": ["Slidev बंद करें"],
@@ -5164,6 +5189,7 @@
"wbpoGe": ["OpenKnowledge स्किल इंस्टॉल नहीं हो सकी: ", ["message"]],
"wbv9xO": ["नया प्रोजेक्ट बनाएँ"],
"wc54KE": ["आज़माया जा रहा है…"],
+ "wcZNHh": ["Git ने इस वर्कट्री को हटाने योग्य चिह्नित किया है।"],
"wcfO9r": ["अभी कोई बग रिपोर्ट नहीं।"],
"wckWOP": ["प्रबंधित करें"],
"wdRxTD": ["लागू किया जा रहा है…"],
@@ -5184,6 +5210,7 @@
],
"wndeIl": ["वे प्रोजेक्ट-स्तर के पेज जिनके न आने वाले और न जाने वाले ग्राफ़ किनारे हैं।"],
"wqD3pI": [["0"], " में से ", ["failed"], " टिप्पणियाँ अपडेट नहीं हो सकीं।"],
+ "wrdxmT": ["प्रोजेक्ट मौजूद नहीं है"],
"ws5o1F": ["जाँचकर्ता: ", ["0"]],
"wsLj3t": [
"उस फ़ोल्डर में पहले से ऐसा कोड है जिसे Open Knowledge ने नहीं लिखा और वही भरोसा ",
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index c85a4c486..08c013251 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -1339,7 +1339,7 @@ msgstr "<0>संशोधित</0> बैज उन नियमों को
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "{shareBranch} नाम की एक ब्रांच पहले से मौजूद है। इसके बजाय स्विचर से इसका वर्कट्री खोलें।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "उस नाम की एक ब्रांच पहले से मौजूद है। इसके बजाय स्विचर से इसका वर्कट्री खोलें।"
@@ -1389,8 +1389,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "फ़ुटनोट<0><1>[1]</1></0> वाली एक पंक्ति और नीचे दिखाई गई परिभाषा।"
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "इस रिपॉज़िटरी की एक लिंक्ड वर्कट्री"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "एक लिंक किया गया वर्कट्री जिसका स्थान लोड नहीं किया जा सका"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1507,7 +1507,7 @@ msgstr "एक शीर्षक, विवरण, टैग — कुछ भ
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch} के लिए एक वर्कट्री फ़ोल्डर पहले से मौजूद है।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "उस ब्रांच के लिए एक वर्कट्री फ़ोल्डर पहले से मौजूद है।"
@@ -4068,7 +4068,7 @@ msgstr "टेम्पलेट नहीं बनाया जा सका:
msgid "Couldn't create the report"
msgstr "रिपोर्ट नहीं बनाई जा सकी"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "वर्कट्री नहीं बनाया जा सका। कोई दूसरा नाम आज़माएँ।"
@@ -4197,6 +4197,10 @@ msgstr "OpenKnowledge स्किल लोड नहीं हो सकीं
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "संस्करण पूर्वावलोकन लोड नहीं हो सका। आप फिर भी नीचे तय कर सकते हैं कि इसे कैसे सुलझाना है।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "वर्कट्री लोड नहीं किए जा सके।"
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "आपके एजेंट लोड नहीं हो सके।"
@@ -4240,10 +4244,6 @@ msgstr "\"{name}\" नहीं खोली जा सकी: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "{0} संपादन के लिए नहीं खोली जा सकी: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "उस ब्रांच के लिए वर्कट्री नहीं खोला जा सका।"
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "दस्तावेज़ नहीं खोला जा सका"
@@ -5030,6 +5030,11 @@ msgstr "विवरण टोकन"
msgid "Design"
msgstr "डिज़ाइन"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "{0} पर डिटैच किया गया"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "अलग किया गया HEAD"
@@ -5808,7 +5813,7 @@ msgstr "एक रिपॉज़िटरी URL या owner/repo डाले
msgid "Enter a title for this template."
msgstr "इस टेम्पलेट के लिए एक शीर्षक डालें।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "एक मान्य ब्रांच नाम डालें (कोई रिक्त स्थान नहीं, शुरू में बिंदु नहीं, \"..\" नहीं)।"
@@ -5981,6 +5986,10 @@ msgstr "क्या इस प्रोजेक्ट को नेटवर
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "एक्सपोज़ करने पर एक निश्चित port पिन हो जाता है ताकि tunnel का target पुनः प्रारंभ के बीच स्थिर रहे।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "बाहरी"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6771,10 +6780,18 @@ msgstr "Git और PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git इस फ़ोल्डर पर नज़र नहीं रख सकता — यह खाली है या इसमें केवल अनदेखी की गई फ़ाइलें हैं। जब तक आप कोई ट्रैक की गई दस्तावेज़ नहीं जोड़ते तब तक लिंक काम नहीं करेगा।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git ने इस वर्कट्री को लॉक किया है, लेकिन इसे अभी भी खोला जा सकता है।"
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Git पहचान सेट नहीं है — कमिट एक डिफ़ॉल्ट लेखक का उपयोग करते हैं। अपनी पहचान सेट करें ताकि सहकर्मी आपका नाम देख सकें।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git ने इस वर्कट्री को हटाने योग्य चिह्नित किया है।"
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git मर्ज नियम"
@@ -6783,7 +6800,7 @@ msgstr "Git मर्ज नियम"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git को इस रिपॉज़िटरी के लिए {tool} चाहिए, पर वह इंस्टॉल नहीं है या मिला नहीं। इसे इंस्टॉल करें, फिर कोशिश करें।"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git को एक सहायक टूल (जैसे git-lfs) चाहिए जो इंस्टॉल नहीं है या मिला नहीं। इसे इंस्टॉल करें, फिर कोशिश करें।"
@@ -7576,6 +7593,10 @@ msgstr "नीचे पंक्ति जोड़ें"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "CodeMirror के डिफ़ॉल्ट कीमैप से स्रोत संपादक की पंक्तियाँ डालें, हटाएँ, हिलाएँ, कॉपी करें और अंदर करें।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "इस रिपॉज़िटरी के OpenKnowledge वर्कट्री फ़ोल्डर के अंदर"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7771,6 +7792,10 @@ msgstr "AI के लिए निर्देश"
msgid "Integrations"
msgstr "एकीकरण"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "आंतरिक"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "अमान्य रंग मान"
@@ -8288,6 +8313,10 @@ msgstr "चैट लोड हो रही है"
msgid "Loading timeline history"
msgstr "समयरेखा का इतिहास लोड हो रहा है"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "वर्कट्री लोड हो रहे हैं…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "आपकी रिपोर्ट लोड हो रही हैं"
@@ -8340,6 +8369,10 @@ msgstr "केवल-स्थानीय का अनुरोध किय
msgid "Location"
msgstr "स्थान"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "लॉक किया गया"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "लॉग और सिस्टम जानकारी"
@@ -9516,6 +9549,10 @@ msgstr "अभी कोई टेम्पलेट नहीं। इस फ
msgid "No workspace"
msgstr "कोई कार्यक्षेत्र नहीं"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "कोई वर्कट्री नहीं मिला।"
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "कोई नहीं"
@@ -10174,6 +10211,10 @@ msgstr "OpenKnowledge ने प्रोजेक्ट की जाँच क
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge को इस मशीन पर यह एजेंट नहीं मिला।"
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge इस प्रोजेक्ट का सेटअप पूरा नहीं कर सका। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge .ok/local/config.yml में terminal.shell नहीं पढ़ सका। इसके बजाय उपलब्ध Windows शेल का उपयोग किया जा रहा है।"
@@ -10487,6 +10528,10 @@ msgstr "रूपरेखा"
msgid "Outside any block"
msgstr "किसी भी ब्लॉक के बाहर"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "इस रिपॉज़िटरी के OpenKnowledge वर्कट्री फ़ोल्डर के बाहर"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Open Knowledge जो कमिट करता है उसके दायरे से बाहर।"
@@ -10685,6 +10730,10 @@ msgstr "पथ प्रोजेक्ट के बाहर पहुँच
msgid "Path suggestions"
msgstr "पथ सुझाव"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "पथ पढ़ा नहीं जा सकता"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "पैटर्न (regex)"
@@ -11010,6 +11059,10 @@ msgstr "प्रोजेक्ट फ़ोल्डर बन गया, प
msgid "Project MCP server"
msgstr "परियोजना MCP सर्वर"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "प्रोजेक्ट मौजूद नहीं है"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "प्रोजेक्ट का नाम"
@@ -13544,6 +13597,10 @@ msgstr "सूची आइटम बाँटें"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "चयनित अंश को एजेंट पैनल में तैयार रखें, जोड़कर भेजने के लिए तैयार।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "पुरानी Git एंट्री"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "GitHub पर हमें स्टार दें"
@@ -14129,8 +14186,8 @@ msgstr "प्रतिक्रिया के लिए धन्यवाद
msgid "Thanks for the report!"
msgstr "रिपोर्ट के लिए धन्यवाद!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "वह ब्रांच पहले से किसी दूसरे वर्कट्री में खुली है।"
@@ -14327,6 +14384,18 @@ msgstr "वह मॉडल id जो आपका एंडपॉइंट द
msgid "the open agent"
msgstr "खुला हुआ एजेंट"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "इस चेकआउट पथ पर OpenKnowledge प्रोजेक्ट मौजूद नहीं है।"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "इस ब्रांच पर OpenKnowledge प्रोजेक्ट का पथ पढ़ा नहीं जा सकता। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "इस ब्रांच पर OpenKnowledge प्रोजेक्ट का पथ वर्कट्री से बाहर जाता है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge सर्वर ने जवाब देने में बहुत समय लिया, और हो सकता है कि बदलाव फिर भी लागू हो गया हो। दोबारा कोशिश करने से पहले एजेंट से जाँच करने को कहें।"
@@ -14690,14 +14759,26 @@ msgstr "यह एजेंट {0} के ज़रिए चलता है,
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "यह पैक के {packSkillCount, plural, one {# स्किल} other {# स्किल}} भी इंस्टॉल करता है।"
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "इस ब्रांच में यह OpenKnowledge प्रोजेक्ट नहीं है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "यह ब्रांच यहाँ चेक आउट है:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "यह ब्रांच OpenKnowledge सेटअप पथ को वर्कट्री से बाहर भेजती है। वर्कट्री बनाई गई, लेकिन खोली नहीं गई।"
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "इसे Settings > AI tools & CLI में कॉन्फ़िगर किया जा सकता है"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "इस चेकआउट पथ को पढ़ा नहीं जा सकता।"
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "इस कमांड में छिपे हुए वर्ण हैं, जिनके कारण यह जो असल में चलता है उससे अलग दिख सकता है। इन्हें यहाँ ⟨U+…⟩ के रूप में दिखाया गया है।"
@@ -14986,8 +15067,8 @@ msgstr "यह {path} को स्थायी रूप से हटा द
msgid "This project"
msgstr "यह प्रोजेक्ट"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "इस प्रोजेक्ट में अभी तक कोई कमिट नहीं है, इसलिए worktree को आधार देने के लिए कोई ब्रांच नहीं है। पहला कमिट करें, फिर दोबारा कोशिश करें।"
@@ -15010,8 +15091,8 @@ msgstr "यह प्रोजेक्ट OpenKnowledge का एक अलग
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "यह प्रोजेक्ट OpenKnowledge का एक पुराना संस्करण (v{0}) चला रहा है, जबकि यह ऐप v{1} है।"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "यह प्रोजेक्ट एक git रिपॉज़िटरी नहीं है, इसलिए वर्कट्री उपलब्ध नहीं हैं।"
@@ -15118,6 +15199,10 @@ msgstr "इसका आमतौर पर मतलब इनमें से
msgid "This window can't store a token — open Settings from the main app window."
msgstr "यह विंडो कोई टोकन नहीं सहेज सकती — मुख्य ऐप विंडो से Settings खोलें।"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "यह वर्कट्री अब उपलब्ध नहीं है।"
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "व्यवस्थित किया जा रहा है…"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 353cf81d7..58509ec94 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -247,6 +247,7 @@
"2CHoQv": ["Muat Ulang Paksa"],
"2Ce6hp": ["Dipindahkan"],
"2D1x3Y": ["Terapkan dan mulai ulang server proyek"],
+ "2EcUjH": ["internal"],
"2FYpfJ": ["Lainnya"],
"2G-56b": ["Gagal memperbarui aturan markdownlint"],
"2GT3Hf": ["Global"],
@@ -303,6 +304,7 @@
"3-1BY2": ["Sesi terminal ini sudah tidak tersedia."],
"322lyb": ["Menyoroti tip, peringatan, dan catatan."],
"32TTpa": ["Kirim surel ke dukungan tentang laporan ini"],
+ "33FYnv": ["jalur tidak dapat dibaca"],
"34qyH5": ["Server tidak dapat dihubungi"],
"36WXSC": ["Templat tidak bisa dihapus: ", ["error"]],
"36aWJD": ["Gabung dengan kami di Discord"],
@@ -348,7 +350,6 @@
"3SZrdj": ["Periksa pembaruan…"],
"3TSz9S": ["Perkecil"],
"3Uuuft": ["Laporan dari ", ["0"]],
- "3UzaS-": ["Worktree tertaut dari repositori ini"],
"3V94ia": ["Komentar Anda tidak bisa dikirim — ruang kerjanya belum siap."],
"3VbwPp": ["Buka ", ["keyName"], " di peramban"],
"3VsNTI": ["Memuat dokumen"],
@@ -584,6 +585,7 @@
"65Ea2s": [
"Mengekspos akan menetapkan port tetap agar target tunnel tetap stabil di seluruh mulai ulang."
],
+ "66JlOb": ["Worktree tertaut yang lokasinya tidak dapat dimuat"],
"67Dpmh": ["Saran perintah garis miring"],
"67f-3g": [
"Penggandaan berhasil tetapi bilah sisi mungkin tidak mutakhir — segarkan untuk menyinkronkan ulang"
@@ -682,6 +684,9 @@
],
"7Ag-Xu": ["Tanya ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Gagal"],
+ "7C9JcA": [
+ "Jalur proyek OpenKnowledge pada branch ini keluar dari worktree. Worktree dibuat, tetapi tidak dibuka."
+ ],
"7FA2iI": ["Komentar yang menunggu dikirim tidak bisa dibaca — tidak ada yang dikirim."],
"7FamGZ": ["Ke baris"],
"7Fkcej": ["+ Tambah ", ["addChildName"]],
@@ -941,7 +946,7 @@
"AIn2Yv": ["CLI ", ["displayName"], ", ", ["hint"]],
"AItsE5": ["Buka di sana"],
"AJ7_B2": ["Buat tema baru"],
- "AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["worktree"], "other": ["worktree"] }]],
"ALhMYW": ["Terminal"],
"AMU00p": [
"Kedua versi identik. Memilih Terima yang sekarang membuat perlindungan OpenKnowledge tetap aktif, sehingga penyimpanan versi lama berikutnya akan ditolak lagi. Memilih Terima yang masuk menonaktifkan perlindungan tersebut."
@@ -1079,6 +1084,7 @@
"C0Ciaj": ["Diimpor sebagai \"", ["0"], "\" — nama \"", ["1"], "\" sudah dipakai."],
"C0hoX6": ["Selalu disertakan"],
"C2abof": ["Tidak dilacak"],
+ "C37ssn": ["Memuat worktree…"],
"C3Zc44": ["Jelajahi keterampilan"],
"C62P6b": ["Pilihan penyunting"],
"C7PKTv": ["Kirim komentar yang dicentang ke obrolan"],
@@ -1258,6 +1264,7 @@
"Kelola akun GitHub yang dipakai OpenKnowledge untuk menelusuri dan menyinkronkan repositori Anda."
],
"E7BhZn": ["Catatan kosong"],
+ "E8NbNG": ["Worktree tidak dapat dimuat."],
"E91VZY": ["Buka di Jendela Baru"],
"E9bKSA": ["Membuat"],
"E9gh86": ["Anda bisa melampirkan hingga ", ["MAX_ATTACHMENTS"], " gambar."],
@@ -1384,6 +1391,7 @@
],
"FCKppt": ["Endpoint"],
"FCMaBz": ["Keterampilan yang mana"],
+ "FCS8de": ["eksternal"],
"FCxvG5": ["Item pertama"],
"FDBwmS": ["Buka folder…"],
"FEK4oC": [
@@ -1665,6 +1673,7 @@
"ICoNYz": ["Anda juga bisa mengelola ini di Pengaturan."],
"IFALcX": ["Deskripsi untuk ", ["field"]],
"IFezUv": ["Audit tidak dapat diselesaikan. Coba lagi."],
+ "IIgshV": ["terkunci"],
"IInnZo": ["Konflik"],
"IKoTAC": ["Biarkan nonaktif"],
"IMLUBh": ["Nilai warna tidak valid"],
@@ -2245,6 +2254,9 @@
"PVSwOe": ["Mengalihkan — menunggu proses saat ini berhenti…"],
"PVUn_c": ["Buka folder"],
"PVggyD": ["Skema frontmatter"],
+ "PW-5kK": [
+ "Branch ini mengarahkan jalur penyiapan OpenKnowledge ke luar worktree. Worktree dibuat, tetapi tidak dibuka."
+ ],
"PWh9Ii": ["Terapkan perubahan"],
"PWqtgd": ["Memuat obrolan"],
"PXaT32": ["Server mengembalikan respons target skill yang tidak lengkap."],
@@ -2326,6 +2338,9 @@
"QQghPu": ["Pasang di Claude Desktop"],
"QR5SP1": ["templat dibuat"],
"QRSdsO": ["Batas waktu permintaan pengindeksan (detik)"],
+ "QSH_Sn": [
+ "Branch ini tidak berisi proyek OpenKnowledge ini. Worktree dibuat, tetapi tidak dibuka."
+ ],
"QVk3SK": ["Berkas ini dihapus di cabang masuk (konflik modify-delete)."],
"QWdKwH": ["Pindahkan"],
"QYTOaN": ["Anda bisa mengubah ini nanti di <0>Pengaturan → Sinkronisasi</0>."],
@@ -3316,6 +3331,7 @@
"bGa3Fk": ["Mengunggah berkas"],
"bH382I": ["Sunting HTML ini — pratinjaunya diperbarui langsung."],
"bKt9Jk": ["Tidak ditemukan proyek OpenKnowledge yang aktif maupun yang terbaru."],
+ "bRyLwy": ["Terlepas pada ", ["0"]],
"bSD4im": ["Cari worktree dan cabang"],
"bS_boY": ["Ganti kecocokan saat ini"],
"bUUVED": ["Aset"],
@@ -3914,6 +3930,7 @@
"hDEaQu": ["Hubungkan OpenKnowledge dengan alat lain yang Anda pakai."],
"hDKtoF": [["diffHrs"], " j lalu"],
"hDoLrm": ["Hapus ", ["projectName"], " dari proyek terbaru"],
+ "hE33RG": ["Tidak ada worktree yang ditemukan."],
"hFmYGU": ["Berkas tema tertaut tidak didukung"],
"hGmuTc": ["Dokumen bertag #", ["tagDocsName"]],
"hHMv6l": ["Hapus blok"],
@@ -4072,6 +4089,7 @@
"ij-Elv": ["Pratinjau gambar"],
"ijLc3m": ["Daftar berpoin"],
"ikSw6W": ["Dipindahkan ke bawah."],
+ "ikk3no": ["Di luar folder worktree OpenKnowledge repositori ini"],
"ilodsp": ["Biarkan agen memakai OpenKnowledge tanpa bertanya"],
"inJhKB": ["Ganti dan simpan"],
"ioMn4Z": ["Baru dari Templat…"],
@@ -4130,6 +4148,9 @@
"jKeGuZ": ["Menghapus dokumen, folder, templat, keterampilan, atau aset"],
"jL3gox": ["Pilih sebuah nilai"],
"jLOL1H": ["Beralih ke sebuah cabang untuk berbagi."],
+ "jMb2SQ": [
+ "Jalur proyek OpenKnowledge pada branch ini tidak dapat dibaca. Worktree dibuat, tetapi tidak dibuka."
+ ],
"jO18NZ": ["Saya beralih ke alat lain"],
"jPUPvG": ["Konflik untuk ", ["filePath"], " tidak bisa diselesaikan."],
"jRAGrQ": ["Atur agen"],
@@ -4280,6 +4301,7 @@
"Mewarnai dan menandai berkas yang punya masalah lint atau tautan, tanpa perlu membukanya."
],
"ku0yLQ": ["Halaman di-embed pertama kali ketika sebuah pencarian membutuhkannya."],
+ "kvWZ9R": ["entri Git usang"],
"kwNS82": ["Tema ini tidak dapat digunakan sampai berkasnya diperbaiki."],
"ky9Tuc": ["Sunting sumber ", ["0"]],
"kzpkcn": ["Suntingan itu tidak bisa disimpan."],
@@ -4613,11 +4635,13 @@
"oCZkaG": ["Salin jalur"],
"oJl7eO": ["Komponen tidak dikenal: ", ["componentName"], " — sumber bisa disunting di bawah"],
"oKBnk5": ["Lebih banyak permintaan diblokir."],
+ "oKE6QZ": ["Git telah mengunci worktree ini, tetapi masih dapat dibuka."],
"oLyLo6": ["Layanan latar belakang terminal tidak berjalan."],
"oP-FQW": ["Gunakan jalur relatif di dalam skill"],
"oPU_4D": ["Kirim saat agen sedang senggang"],
"oPbSBQ": ["Membuat tautan yang bisa dibagikan ke dokumen atau folder"],
"oQA-cA": ["Jalur lengkap"],
+ "oQubcL": ["Di dalam folder worktree OpenKnowledge repositori ini"],
"oS1YpJ": ["Membuka Navigator Proyek."],
"oVW7VD": ["Terpasang ke proyek ini"],
"oWsZk8": ["Buat halaman ", ["target"], " yang belum ada"],
@@ -4685,6 +4709,7 @@
"pMPnZv": [["deleted"], " keterampilan dihapus"],
"pOo4Aa": ["Teks biasa"],
"pPiV8s": ["Aktifkan Otomatis (Pull dan Push)"],
+ "pSF7TJ": ["Jalur checkout ini tidak dapat dibaca."],
"pSimwP": ["Nama baru untuk versi ", ["editor"]],
"pTPqMK": ["Menyalakan atau mematikan blok kode berpagar."],
"pTyA_t": ["tag"],
@@ -4996,6 +5021,9 @@
"snrVQ7": ["pemeriksaan gagal"],
"sq4WQH": ["Pakai ", ["0"], " sebagai tema terang"],
"sqUrlK": ["Melamun…"],
+ "sqgz2k": [
+ "OpenKnowledge tidak dapat menyelesaikan penyiapan proyek ini. Worktree dibuat, tetapi tidak dibuka."
+ ],
"srdlOs": [
"Sinkronisasi otomatis dijeda: Anda tidak punya izin push ke repositori ini. Beralihlah ke Otomatis (hanya Pull) agar tetap menerima pembaruan."
],
@@ -5062,7 +5090,6 @@
"t_YqKh": ["Hapus"],
"tc65fD": ["Paling banyak dipasang"],
"tcjTlU": ["Paket awal"],
- "teD0H9": ["Worktree untuk cabang itu tidak bisa dibuka."],
"teFjfG": ["Belum ada agen yang disiapkan — pilih satu dari menu kirim."],
"ten9en": ["Proyek terbaru"],
"tfDRzk": ["Simpan"],
@@ -5165,6 +5192,7 @@
"uAQUqI": ["Status"],
"uA_jXp": ["Ganti cabang dan perbarui"],
"uBAxNB": ["Penyunting"],
+ "uCZNXY": ["Worktree ini tidak lagi tersedia."],
"uCaIdy": [
"Status masuk GitHub tidak ada atau kedaluwarsa. Sambungkan ulang untuk melanjutkan sinkronisasi."
],
@@ -5359,6 +5387,7 @@
"wHZ58m": ["Buka dengan AI ", ["displayName"], " Desktop"],
"wJijgU": ["Lokasi"],
"wJo9oS": ["Tutup pencarian"],
+ "wKJo7h": ["Proyek OpenKnowledge tidak ada di jalur checkout ini."],
"wQp1V3": ["Cermin dari <0>", ["src"], "</0>"],
"wQvvZY": ["Berkas keterampilan baru"],
"wRni1Z": ["Nonaktifkan Slidev"],
@@ -5382,6 +5411,7 @@
"wbpoGe": ["Tidak dapat memasang keterampilan OpenKnowledge: ", ["message"]],
"wbv9xO": ["Buat proyek baru"],
"wc54KE": ["Mencobanya…"],
+ "wcZNHh": ["Git menandai worktree ini sebagai dapat dipangkas."],
"wcfO9r": ["Belum ada laporan bug."],
"wckWOP": ["Kelola"],
"wdRxTD": ["Menerapkan…"],
@@ -5402,6 +5432,7 @@
],
"wndeIl": ["Halaman tingkat proyek yang tidak punya sisi graf masuk maupun keluar."],
"wqD3pI": [["failed"], " dari ", ["0"], " komentar tidak dapat diperbarui."],
+ "wrdxmT": ["proyek tidak ada"],
"ws5o1F": ["Diperiksa oleh: ", ["0"]],
"wsLj3t": [
"Folder itu sudah berisi kode yang tidak ditulis Open Knowledge, dan kepercayaan yang sama akan mengizinkan ",
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index d25dfa4a2..a8516e3ac 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, other {# perubahan properti lainnya tidak ditampilkan}
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, other {worktree}}"
+msgstr "{openedWorktreeCount, plural, one {worktree} other {worktree}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1339,7 +1339,7 @@ msgstr "Lencana <0>Diubah</0> menandai aturan yang disetel konfigurasi Anda seca
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "Cabang bernama {shareBranch} sudah ada. Buka worktree-nya dari pengalih saja."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "Cabang dengan nama itu sudah ada. Buka worktree-nya dari pengalih saja."
@@ -1389,8 +1389,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "Sebuah baris dengan catatan kaki<0><1>[1]</1></0> dan definisi yang ditampilkan di bawah."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "Worktree tertaut dari repositori ini"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "Worktree tertaut yang lokasinya tidak dapat dimuat"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1507,7 +1507,7 @@ msgstr "Judul, deskripsi, tag — apa saja yang menggambarkan folder ini."
msgid "A worktree folder for {shareBranch} already exists."
msgstr "Folder worktree untuk {shareBranch} sudah ada."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "Folder worktree untuk cabang itu sudah ada."
@@ -4068,7 +4068,7 @@ msgstr "Templat tidak bisa dibuat: {error}"
msgid "Couldn't create the report"
msgstr "Laporannya tidak bisa dibuat"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "Worktree-nya tidak bisa dibuat. Coba nama lain."
@@ -4197,6 +4197,10 @@ msgstr "Keterampilan OpenKnowledge tidak dapat dimuat. Coba lagi."
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Pratinjau versinya tidak bisa dimuat. Anda tetap bisa memilih cara menyelesaikannya di bawah."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "Worktree tidak dapat dimuat."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "Agen Anda tidak bisa dimuat."
@@ -4240,10 +4244,6 @@ msgstr "\"{name}\" tidak bisa dibuka: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "{0} tidak bisa dibuka untuk disunting: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "Worktree untuk cabang itu tidak bisa dibuka."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "Dokumen tidak bisa dibuka"
@@ -5030,6 +5030,11 @@ msgstr "token deskripsi"
msgid "Design"
msgstr "Desain"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "Terlepas pada {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "HEAD terlepas"
@@ -5808,7 +5813,7 @@ msgstr "Masukkan URL repositori atau pemilik/repo"
msgid "Enter a title for this template."
msgstr "Masukkan judul untuk templat ini."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Masukkan nama cabang yang valid (tanpa spasi, tanpa titik di awal, tanpa \"..\")."
@@ -5981,6 +5986,10 @@ msgstr "Ekspos proyek ini ke jaringan?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "Mengekspos akan menetapkan port tetap agar target tunnel tetap stabil di seluruh mulai ulang."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "eksternal"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6771,10 +6780,18 @@ msgstr "Git & PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git tidak bisa melacak folder ini — folder ini kosong atau hanya berisi berkas yang diabaikan. Tautannya tidak akan berfungsi sampai Anda menambahkan dokumen yang dilacak."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git telah mengunci worktree ini, tetapi masih dapat dibuka."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Identitas git belum disetel — commit memakai penulis bawaan. Setel milik Anda agar rekan tim melihat nama Anda."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git menandai worktree ini sebagai dapat dipangkas."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git aturan penggabungan"
@@ -6783,7 +6800,7 @@ msgstr "Git aturan penggabungan"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git membutuhkan {tool} untuk repositori ini, tetapi ia belum terpasang atau tidak ditemukan. Pasang dulu, lalu coba lagi."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git membutuhkan alat bantu (seperti git-lfs) yang belum terpasang atau tidak ditemukan. Pasang dulu, lalu coba lagi."
@@ -7576,6 +7593,10 @@ msgstr "Sisipkan baris di bawah"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "Menyisipkan, menghapus, memindahkan, menyalin, dan mengindentasi baris penyunting sumber lewat peta tombol bawaan CodeMirror."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "Di dalam folder worktree OpenKnowledge repositori ini"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7771,6 +7792,10 @@ msgstr "Instruksi untuk AI"
msgid "Integrations"
msgstr "Integrasi"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "internal"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "Nilai warna tidak valid"
@@ -8288,6 +8313,10 @@ msgstr "Memuat obrolan"
msgid "Loading timeline history"
msgstr "Memuat riwayat lini masa"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "Memuat worktree…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "Memuat laporan Anda"
@@ -8340,6 +8369,10 @@ msgstr "Mode hanya lokal diminta, tetapi tidak ada repositori git yang dibuat. A
msgid "Location"
msgstr "Lokasi"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "terkunci"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "Log & info sistem"
@@ -9516,6 +9549,10 @@ msgstr "Belum ada templat. Tambahkan satu agar dokumen baru di folder ini punya
msgid "No workspace"
msgstr "Tanpa ruang kerja"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "Tidak ada worktree yang ditemukan."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "Tidak ada"
@@ -10174,6 +10211,10 @@ msgstr "OpenKnowledge memeriksa proyek"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge tidak menemukan agen ini di mesin ini."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge tidak dapat menyelesaikan penyiapan proyek ini. Worktree dibuat, tetapi tidak dibuka."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge tidak dapat membaca terminal.shell di .ok/local/config.yml. Shell Windows yang tersedia akan digunakan sebagai gantinya."
@@ -10487,6 +10528,10 @@ msgstr "Kerangka"
msgid "Outside any block"
msgstr "Di luar blok mana pun"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "Di luar folder worktree OpenKnowledge repositori ini"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Di luar cakupan commit Open Knowledge."
@@ -10685,6 +10730,10 @@ msgstr "Jalur mengarah ke luar proyek"
msgid "Path suggestions"
msgstr "Saran jalur"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "jalur tidak dapat dibaca"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "Pola (regex)"
@@ -11010,6 +11059,10 @@ msgstr "Folder proyek dibuat, tetapi git init gagal. Coba lagi."
msgid "Project MCP server"
msgstr "Server MCP proyek"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "proyek tidak ada"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "Nama proyek"
@@ -13544,6 +13597,10 @@ msgstr "Pisahkan item daftar"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "Siapkan bagian yang dipilih di panel agen, siap dilengkapi dan dikirim."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "entri Git usang"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "Beri kami bintang di GitHub"
@@ -14129,8 +14186,8 @@ msgstr "Terima kasih atas masukannya!"
msgid "Thanks for the report!"
msgstr "Terima kasih atas laporannya!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "Cabang itu sudah terbuka di worktree lain."
@@ -14327,6 +14384,18 @@ msgstr "Id model yang dilayani endpoint Anda. Ukuran vektornya terdeteksi otomat
msgid "the open agent"
msgstr "agen yang terbuka"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "Proyek OpenKnowledge tidak ada di jalur checkout ini."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "Jalur proyek OpenKnowledge pada branch ini tidak dapat dibaca. Worktree dibuat, tetapi tidak dibuka."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "Jalur proyek OpenKnowledge pada branch ini keluar dari worktree. Worktree dibuat, tetapi tidak dibuka."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "Server OpenKnowledge terlalu lama merespons, dan perubahan mungkin tetap diterapkan. Minta agen memeriksanya sebelum mencoba lagi."
@@ -14690,14 +14759,26 @@ msgstr "Agen ini berjalan lewat {0}, yang belum terpasang. Open Knowledge bisa m
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "Ini juga memasang {packSkillCount, plural, one {# skill} other {# skill}} dari paket."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "Branch ini tidak berisi proyek OpenKnowledge ini. Worktree dibuat, tetapi tidak dibuka."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "Cabang ini sedang dipakai di:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "Branch ini mengarahkan jalur penyiapan OpenKnowledge ke luar worktree. Worktree dibuat, tetapi tidak dibuka."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "Ini bisa diatur di Pengaturan > Alat AI & CLI"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "Jalur checkout ini tidak dapat dibaca."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "Perintah ini berisi karakter tersembunyi yang dapat membuatnya terlihat berbeda dari yang dijalankan. Karakter tersebut ditampilkan di sini sebagai ⟨U+…⟩."
@@ -14986,8 +15067,8 @@ msgstr "Ini menghapus {path} secara permanen. Agen yang merujuk templat ini berd
msgid "This project"
msgstr "Proyek ini"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "Proyek ini belum memiliki commit, jadi tidak ada cabang untuk dijadikan dasar worktree. Buat commit pertama, lalu coba lagi."
@@ -15010,8 +15091,8 @@ msgstr "Proyek ini menjalankan build OpenKnowledge yang berbeda dan tidak kompat
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "Proyek ini menjalankan versi OpenKnowledge (v{0}) yang lebih lama daripada aplikasi ini (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "Proyek ini bukan repositori git, jadi worktree tidak tersedia."
@@ -15118,6 +15199,10 @@ msgstr "Biasanya ini berarti salah satu dari:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "Jendela ini tidak bisa menyimpan token — buka Pengaturan dari jendela utama aplikasi."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "Worktree ini tidak lagi tersedia."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "Merapikan…"
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index 3c24757cf..72e0bb501 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -237,6 +237,7 @@
"2CHoQv": ["강제 새로 고침"],
"2Ce6hp": ["이동됨"],
"2D1x3Y": ["적용하고 프로젝트 서버 재시작"],
+ "2EcUjH": ["내부"],
"2FYpfJ": ["더 보기"],
"2G-56b": ["markdownlint 규칙을 업데이트하지 못했습니다"],
"2GT3Hf": ["전역"],
@@ -292,6 +293,7 @@
"3-1BY2": ["이 터미널 세션은 더 이상 사용할 수 없습니다."],
"322lyb": ["팁, 경고, 노트를 강조합니다."],
"32TTpa": ["이 보고서에 대해 지원팀에 이메일 보내기"],
+ "33FYnv": ["경로를 읽을 수 없음"],
"34qyH5": ["서버에 연결하지 못했습니다"],
"36WXSC": ["템플릿 삭제 실패: ", ["error"]],
"36aWJD": ["Discord에서 함께하기"],
@@ -335,7 +337,6 @@
"3SZrdj": ["업데이트 확인…"],
"3TSz9S": ["최소화"],
"3Uuuft": [["0"], "의 보고서"],
- "3UzaS-": ["이 리포지토리의 연결된 워크트리"],
"3V94ia": ["댓글 전송에 실패했습니다. 워크스페이스 준비 전입니다."],
"3VbwPp": ["브라우저에서 ", ["keyName"], " 열기"],
"3VsNTI": ["문서 불러오는 중"],
@@ -557,6 +558,7 @@
"636K3K": ["인접한 칩 삭제"],
"64sesb": ["콜아웃은 중요한 정보에 주의를 집중시킵니다."],
"65Ea2s": ["노출하면 포트가 고정되어 재시작해도 터널의 대상이 안정적으로 유지됩니다."],
+ "66JlOb": ["위치를 불러올 수 없는 연결된 워크트리"],
"67Dpmh": ["슬래시 명령 제안"],
"67f-3g": [
"복제는 성공했지만 사이드바가 최신 상태가 아닐 수 있습니다. 다시 동기화하려면 새로 고침하세요."
@@ -654,6 +656,9 @@
],
"7Ag-Xu": [["agentName"], "에게 질문, ", ["hint"]],
"7Bj3x9": ["실패"],
+ "7C9JcA": [
+ "이 브랜치의 OpenKnowledge 프로젝트 경로가 워크트리 밖으로 나갑니다. 워크트리는 생성되었지만 열리지 않았습니다."
+ ],
"7FA2iI": ["전송 대기 댓글을 읽지 못했습니다. 전송된 댓글 없음."],
"7FamGZ": ["줄로 이동"],
"7Fkcej": ["+ ", ["addChildName"], " 추가"],
@@ -906,7 +911,7 @@
"AIn2Yv": [["displayName"], " CLI, ", ["hint"]],
"AItsE5": ["그곳에서 열기"],
"AJ7_B2": ["새 테마 만들기"],
- "AKxFtn": [["openedWorktreeCount", "plural", { "other": ["워크트리"] }]],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["워크트리"], "other": ["워크트리"] }]],
"ALhMYW": ["터미널"],
"AMU00p": [
"두 버전이 동일합니다. 현재 항목 적용을 선택하면 OpenKnowledge의 보호가 켜진 상태로 유지되어 이전 버전의 또 다른 저장이 다시 거부됩니다. 수신 항목 적용을 선택하면 그 보호가 해제됩니다."
@@ -1043,6 +1048,7 @@
"C0Ciaj": ["\"", ["0"], "\"으로 가져왔습니다. 이름 \"", ["1"], "\"은 이미 사용 중입니다."],
"C0hoX6": ["항상 포함"],
"C2abof": ["추적 안 됨"],
+ "C37ssn": ["워크트리 불러오는 중…"],
"C3Zc44": ["스킬 탐색"],
"C62P6b": ["편집기 선택 영역"],
"C7PKTv": ["확인한 댓글을 채팅으로 보내기"],
@@ -1216,6 +1222,7 @@
"E5WeIy": ["가장 최근에 닫은 편집기 탭을 다시 엽니다."],
"E6lrpp": ["OpenKnowledge가 저장소를 탐색하고 동기화할 때 사용하는 GitHub 계정을 관리합니다."],
"E7BhZn": ["빈 노트"],
+ "E8NbNG": ["워크트리를 불러올 수 없습니다."],
"E91VZY": ["새 창에서 열기"],
"E9bKSA": ["만드는 중"],
"E9gh86": [["MAX_ATTACHMENTS"], "개 이미지를 첨부할 수 있습니다."],
@@ -1328,6 +1335,7 @@
"FCAcjR": ["이 프로젝트 폴더에서 시작하는 실제 터미널을 OpenKnowledge 안에 고정해 실행합니다."],
"FCKppt": ["엔드포인트"],
"FCMaBz": ["어떤 스킬"],
+ "FCS8de": ["외부"],
"FCxvG5": ["첫 번째 항목"],
"FDBwmS": ["폴더 열기…"],
"FEK4oC": [
@@ -1591,6 +1599,7 @@
"ICoNYz": ["설정에서 관리할 수 있습니다."],
"IFALcX": [["field"], " 설명"],
"IFezUv": ["감사를 완료하지 못했습니다. 다시 시도하세요."],
+ "IIgshV": ["잠김"],
"IInnZo": ["충돌"],
"IKoTAC": ["사용 안 함 유지"],
"IMLUBh": ["잘못된 색상 값"],
@@ -2155,6 +2164,9 @@
"PVSwOe": ["조정 대기 중. 현재 실행 종료 대기…"],
"PVUn_c": ["폴더 열기"],
"PVggyD": ["Frontmatter 스키마"],
+ "PW-5kK": [
+ "이 브랜치가 OpenKnowledge 설정 경로를 워크트리 밖으로 리디렉션합니다. 워크트리는 생성되었지만 열리지 않았습니다."
+ ],
"PWh9Ii": ["변경 사항 적용"],
"PWqtgd": ["채팅 불러오는 중"],
"PXaT32": ["서버에서 불완전한 스킬 대상 응답을 반환했습니다."],
@@ -2227,6 +2239,9 @@
"QQghPu": ["Claude Desktop에 설치"],
"QR5SP1": ["템플릿 생성됨"],
"QRSdsO": ["인덱싱 요청 시간 제한(초)"],
+ "QSH_Sn": [
+ "이 브랜치에 이 OpenKnowledge 프로젝트가 없습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+ ],
"QVk3SK": ["이 파일은 수신 브랜치에서 삭제되었습니다 (modify-delete 충돌)."],
"QWdKwH": ["이동"],
"QYTOaN": ["나중에 <0>설정 → 동기화</0>에서 변경할 수 있습니다."],
@@ -3175,6 +3190,7 @@
"bGa3Fk": ["파일 업로드 중"],
"bH382I": ["이 HTML을 편집하세요. 미리보기가 실시간으로 업데이트됩니다."],
"bKt9Jk": ["활성 상태이거나 최근에 사용한 OpenKnowledge 프로젝트가 없습니다."],
+ "bRyLwy": [["0"], "에서 분리됨"],
"bSD4im": ["워크트리 및 브랜치 검색"],
"bS_boY": ["현재 일치 항목 바꾸기"],
"bUUVED": ["에셋"],
@@ -3748,6 +3764,7 @@
"hDEaQu": ["OpenKnowledge를 사용하는 다른 도구에 연결합니다."],
"hDKtoF": [["diffHrs"], "시간 전"],
"hDoLrm": ["프로젝트 \"", ["projectName"], "\"을 최근 프로젝트에서 제거"],
+ "hE33RG": ["워크트리를 찾을 수 없습니다."],
"hFmYGU": ["연결된 테마 파일은 지원되지 않습니다"],
"hGmuTc": ["#", ["tagDocsName"], " 태그가 지정된 문서"],
"hHMv6l": ["블록 삭제"],
@@ -3895,6 +3912,7 @@
"ij-Elv": ["이미지 미리보기"],
"ijLc3m": ["글머리 기호 목록"],
"ikSw6W": ["아래로 이동했습니다."],
+ "ikk3no": ["이 저장소의 OpenKnowledge 워크트리 폴더 외부"],
"ilodsp": ["에이전트가 확인하지 않고 OpenKnowledge를 사용하도록 허용합니다"],
"inJhKB": ["교체 후 저장"],
"ioMn4Z": ["템플릿에서 새로 만들기…"],
@@ -3949,6 +3967,9 @@
"jKeGuZ": ["문서, 폴더, 템플릿, 스킬 또는 에셋을 삭제합니다"],
"jL3gox": ["값 선택"],
"jLOL1H": ["공유하려면 브랜치로 전환하세요."],
+ "jMb2SQ": [
+ "이 브랜치의 OpenKnowledge 프로젝트 경로를 읽을 수 없습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+ ],
"jO18NZ": ["다른 도구로 전환하려고 합니다"],
"jPUPvG": [["filePath"], "의 충돌을 해결하지 못했습니다."],
"jRAGrQ": ["에이전트 구성"],
@@ -4095,6 +4116,7 @@
"kpqWwG": [["targetNoun"], " 삭제됨: <0>", ["branch"], "</0> 브랜치"],
"ktspdq": ["파일을 열지 않고 lint 또는 링크 문제가 있는 파일에 색조와 배지를 적용합니다."],
"ku0yLQ": ["검색에 필요할 때 페이지를 처음 임베딩합니다."],
+ "kvWZ9R": ["오래된 Git 항목"],
"kwNS82": ["파일을 수정할 때까지 이 테마를 사용할 수 없습니다."],
"ky9Tuc": [["0"], " 소스 편집"],
"kzpkcn": ["편집 내용 저장에 실패했습니다."],
@@ -4414,11 +4436,13 @@
"oCZkaG": ["경로 복사"],
"oJl7eO": ["알 수 없는 컴포넌트: ", ["componentName"], ", 아래에서 소스를 편집할 수 있습니다"],
"oKBnk5": ["더 많은 요청이 차단되었습니다."],
+ "oKE6QZ": ["Git에서 이 워크트리를 잠갔지만 계속 열 수 있습니다."],
"oLyLo6": ["터미널 백그라운드 서비스가 실행되고 있지 않습니다."],
"oP-FQW": ["스킬 내부의 상대 경로를 사용하세요"],
"oPU_4D": ["에이전트 유휴 시 전송"],
"oPbSBQ": ["문서나 폴더의 공유 링크를 만듭니다"],
"oQA-cA": ["전체 경로"],
+ "oQubcL": ["이 저장소의 OpenKnowledge 워크트리 폴더 내부"],
"oS1YpJ": ["프로젝트 탐색기를 엽니다."],
"oVW7VD": ["이 프로젝트에 설치됨"],
"oWsZk8": ["누락된 페이지 ", ["target"], " 만들기"],
@@ -4480,6 +4504,7 @@
"pMPnZv": ["스킬 ", ["deleted"], "개 삭제됨"],
"pOo4Aa": ["일반 텍스트"],
"pPiV8s": ["자동(풀 및 푸시) 활성화"],
+ "pSF7TJ": ["이 체크아웃 경로를 읽을 수 없습니다."],
"pSimwP": [["editor"], " 버전의 새 이름"],
"pTPqMK": ["펜스 코드 블록을 전환합니다."],
"pTyA_t": ["태그"],
@@ -4780,6 +4805,9 @@
"snrVQ7": ["프로브 실패"],
"sq4WQH": ["밝은 테마로 ", ["0"], " 사용"],
"sqUrlK": ["생각 중…"],
+ "sqgz2k": [
+ "OpenKnowledge가 이 프로젝트 설정을 완료하지 못했습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+ ],
"srdlOs": [
"자동 동기화가 일시 중지되었습니다. 이 저장소에 푸시할 권한이 없습니다. 계속 업데이트를 받으려면 자동(풀만)으로 전환하세요."
],
@@ -4842,7 +4870,6 @@
"t_YqKh": ["제거"],
"tc65fD": ["가장 많이 설치됨"],
"tcjTlU": ["스타터 팩"],
- "teD0H9": ["해당 브랜치의 워크트리를 열지 못했습니다."],
"teFjfG": ["아직 설정된 에이전트 없음. 전송 메뉴에서 선택하세요."],
"ten9en": ["최근 프로젝트"],
"tfDRzk": ["저장"],
@@ -4935,6 +4962,7 @@
"uAQUqI": ["상태"],
"uA_jXp": ["브랜치 전환 및 업데이트"],
"uBAxNB": ["편집기"],
+ "uCZNXY": ["이 워크트리는 더 이상 사용할 수 없습니다."],
"uCaIdy": ["GitHub 로그인이 없거나 만료되었습니다. 동기화를 계속하려면 다시 연결하세요."],
"uDlyqd": [
"이 리포지토리의 아키텍처를 문서화합니다. 개요 페이지를 만들고 각 주요 모듈의 책임과 진입점을 설명하는 페이지로 연결합니다."
@@ -5109,6 +5137,7 @@
"wHZ58m": ["AI ", ["displayName"], " Desktop으로 열기"],
"wJijgU": ["위치"],
"wJo9oS": ["검색 닫기"],
+ "wKJo7h": ["이 체크아웃 경로에 OpenKnowledge 프로젝트가 없습니다."],
"wQp1V3": ["<0>", ["src"], "</0>의 미러"],
"wQvvZY": ["새 스킬 파일"],
"wRni1Z": ["Slidev 사용 안 함"],
@@ -5136,6 +5165,7 @@
"wbpoGe": ["OpenKnowledge 스킬 설치 실패: ", ["message"]],
"wbv9xO": ["새 프로젝트 만들기"],
"wc54KE": ["시험 중…"],
+ "wcZNHh": ["Git에서 이 워크트리를 정리 가능한 것으로 표시했습니다."],
"wcfO9r": ["아직 버그 보고서가 없습니다."],
"wckWOP": ["관리"],
"wdRxTD": ["적용 중…"],
@@ -5156,6 +5186,7 @@
],
"wndeIl": ["들어오는 그래프 연결과 나가는 그래프 연결이 모두 없는 프로젝트 수준 페이지입니다."],
"wqD3pI": ["댓글 ", ["0"], "개 중 ", ["failed"], "개 업데이트에 실패했습니다."],
+ "wrdxmT": ["프로젝트 없음"],
"ws5o1F": ["확인한 사람: ", ["0"]],
"wsLj3t": [
"해당 폴더에는 Open Knowledge가 작성하지 않은 코드가 이미 있으며, 같은 신뢰로 ",
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 5a1a957d0..48bcf33ac 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, other {표시되지 않은 속성 변경 #개 더}}"
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, other {워크트리}}"
+msgstr "{openedWorktreeCount, plural, one {워크트리} other {워크트리}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1343,7 +1343,7 @@ msgstr "<0>수정됨</0> 배지는 config가 직접 설정했거나 <1>extends</
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "{shareBranch} 브랜치가 이미 있습니다. 대신 전환기에서 해당 워크트리를 여세요."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "해당 이름의 브랜치가 이미 있습니다. 대신 전환기에서 해당 워크트리를 여세요."
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "각주<0><1>[1]</1></0>와 아래에 표시되는 정의가 있는 줄입니다."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "이 리포지토리의 연결된 워크트리"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "위치를 불러올 수 없는 연결된 워크트리"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "이 폴더를 설명하는 제목, 설명, 태그 등입니다."
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch}용 워크트리 폴더가 이미 있습니다."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "해당 브랜치용 워크트리 폴더가 이미 있습니다."
@@ -4072,7 +4072,7 @@ msgstr "템플릿 생성 실패: {error}"
msgid "Couldn't create the report"
msgstr "보고서를 만들지 못했습니다"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "워크트리를 만들 수 없습니다. 다른 이름을 사용해 보세요."
@@ -4201,6 +4201,10 @@ msgstr "OpenKnowledge 스킬을 불러오지 못했습니다. 다시 시도하
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "버전 미리보기를 불러오지 못했습니다. 아래에서 해결 방법을 선택할 수 있습니다."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "워크트리를 불러올 수 없습니다."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "에이전트를 불러오지 못했습니다."
@@ -4244,10 +4248,6 @@ msgstr "\"{name}\" 열기 실패: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "{0} 편집용 열기 실패: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "해당 브랜치의 워크트리를 열지 못했습니다."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "문서를 열지 못했습니다"
@@ -5034,6 +5034,11 @@ msgstr "설명 토큰"
msgid "Design"
msgstr "디자인"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "{0}에서 분리됨"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "분리된 HEAD"
@@ -5812,7 +5817,7 @@ msgstr "저장소 URL 또는 owner/repo 입력"
msgid "Enter a title for this template."
msgstr "이 템플릿의 제목을 입력하세요."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "유효한 브랜치 이름을 입력하세요(공백, 앞의 점, \"..\" 제외)."
@@ -5985,6 +5990,10 @@ msgstr "이 프로젝트를 네트워크에 노출할까요?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "노출하면 포트가 고정되어 재시작해도 터널의 대상이 안정적으로 유지됩니다."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "외부"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git 및 PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git이 이 폴더를 추적할 수 없습니다. 비어 있거나 무시된 파일만 포함되어 있습니다. 추적할 문서를 추가해야 링크가 작동합니다."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git에서 이 워크트리를 잠갔지만 계속 열 수 있습니다."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Git 사용자 정보가 설정되지 않았습니다. 커밋에 기본 작성자가 사용됩니다. 팀원이 이름을 볼 수 있도록 사용자 정보를 설정하세요."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git에서 이 워크트리를 정리 가능한 것으로 표시했습니다."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git 병합 규칙"
@@ -6787,7 +6804,7 @@ msgstr "Git 병합 규칙"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "이 저장소의 Git 작업에 {tool}이 필요하지만 설치되어 있지 않거나 찾을 수 없습니다. 설치한 후 다시 시도하세요."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "필요한 Git 도우미 도구(예: git-lfs)를 찾을 수 없습니다. 설치한 후 다시 시도하세요."
@@ -7580,6 +7597,10 @@ msgstr "아래에 행 삽입"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "CodeMirror 기본 키맵을 통해 소스 편집기 줄을 삽입, 삭제, 이동, 복사하고 들여씁니다."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "이 저장소의 OpenKnowledge 워크트리 폴더 내부"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "AI용 지침"
msgid "Integrations"
msgstr "통합"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "내부"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "잘못된 색상 값"
@@ -8292,6 +8317,10 @@ msgstr "채팅 불러오는 중"
msgid "Loading timeline history"
msgstr "타임라인 기록 불러오는 중"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "워크트리 불러오는 중…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "보고서 불러오는 중"
@@ -8344,6 +8373,10 @@ msgstr "로컬 전용을 요청했지만 git 저장소가 생성되지 않았습
msgid "Location"
msgstr "위치"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "잠김"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "로그 및 시스템 정보"
@@ -9520,6 +9553,10 @@ msgstr "아직 템플릿이 없습니다. 이 폴더의 새 문서에 바로 쓸
msgid "No workspace"
msgstr "워크스페이스 없음"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "워크트리를 찾을 수 없습니다."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "없음"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge에서 프로젝트 확인"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge가 이 컴퓨터에서 이 에이전트를 찾지 못했습니다."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge가 이 프로젝트 설정을 완료하지 못했습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge가 .ok/local/config.yml의 terminal.shell을 읽을 수 없습니다. 대신 사용 가능한 Windows 셸을 사용합니다."
@@ -10491,6 +10532,10 @@ msgstr "개요"
msgid "Outside any block"
msgstr "블록 밖"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "이 저장소의 OpenKnowledge 워크트리 폴더 외부"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Open Knowledge가 커밋하는 범위 밖입니다."
@@ -10689,6 +10734,10 @@ msgstr "경로가 프로젝트 외부를 가리킴"
msgid "Path suggestions"
msgstr "경로 제안"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "경로를 읽을 수 없음"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "패턴 (정규식)"
@@ -11014,6 +11063,10 @@ msgstr "프로젝트 폴더는 생성되었지만 git init에 실패했습니다
msgid "Project MCP server"
msgstr "프로젝트 MCP 서버"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "프로젝트 없음"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "프로젝트 이름"
@@ -13548,6 +13601,10 @@ msgstr "목록 항목 분할"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "선택한 구절을 에이전트 패널에 올려 이어서 작성하고 전송할 수 있게 합니다."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "오래된 Git 항목"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "GitHub에서 별표를 눌러 주세요"
@@ -14133,8 +14190,8 @@ msgstr "피드백 감사합니다!"
msgid "Thanks for the report!"
msgstr "보고서 감사합니다!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "해당 브랜치는 다른 워크트리에서 이미 열려 있습니다."
@@ -14331,6 +14388,18 @@ msgstr "엔드포인트가 제공하는 모델 ID입니다. 벡터 크기는 자
msgid "the open agent"
msgstr "열린 에이전트"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "이 체크아웃 경로에 OpenKnowledge 프로젝트가 없습니다."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "이 브랜치의 OpenKnowledge 프로젝트 경로를 읽을 수 없습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "이 브랜치의 OpenKnowledge 프로젝트 경로가 워크트리 밖으로 나갑니다. 워크트리는 생성되었지만 열리지 않았습니다."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge 서버의 응답이 너무 오래 걸렸으며 변경 사항이 이미 적용되었을 수 있습니다. 다시 시도하기 전에 에이전트에게 확인해 달라고 요청하세요."
@@ -14694,14 +14763,26 @@ msgstr "이 에이전트는 {0}을 통해 실행됩니다. 현재 설치되어
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "팩의 {packSkillCount, plural, one {스킬 #개} other {스킬 #개}}도 함께 설치됩니다."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "이 브랜치에 이 OpenKnowledge 프로젝트가 없습니다. 워크트리는 생성되었지만 열리지 않았습니다."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "이 브랜치의 체크아웃 위치:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "이 브랜치가 OpenKnowledge 설정 경로를 워크트리 밖으로 리디렉션합니다. 워크트리는 생성되었지만 열리지 않았습니다."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "Settings > AI tools & CLI에서 설정 가능"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "이 체크아웃 경로를 읽을 수 없습니다."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "이 명령에는 실제로 실행되는 내용과 다르게 보이게 할 수 있는 숨겨진 문자가 있습니다. 여기서는 ⟨U+…⟩ 형식으로 표시됩니다."
@@ -14990,8 +15071,8 @@ msgstr "{path}이 영구적으로 삭제됩니다. 이 템플릿을 이름으로
msgid "This project"
msgstr "이 프로젝트"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "이 프로젝트에는 아직 커밋이 없어 워크트리 기반으로 사용할 브랜치가 없습니다. 첫 커밋을 만든 후 다시 시도하세요."
@@ -15014,8 +15095,8 @@ msgstr "이 프로젝트는 이 앱과 다른 호환되지 않는 OpenKnowledge
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "이 프로젝트는 이 앱보다 오래된 OpenKnowledge 버전(v{0})을 실행 중입니다(v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "이 프로젝트는 git 저장소가 아니므로 워크트리를 사용할 수 없습니다."
@@ -15122,6 +15203,10 @@ msgstr "일반적으로 다음 중 하나입니다:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "이 창에는 토큰을 저장할 수 없습니다. 기본 앱 창에서 설정을 여세요."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "이 워크트리는 더 이상 사용할 수 없습니다."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "정리 중…"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index f57074513..15c0790c4 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -249,6 +249,7 @@
"2CHoQv": ["Ƒōŕćē Ŕēĺōàď"],
"2Ce6hp": ["Ḿōvē àćŕōśś"],
"2D1x3Y": ["Àƥƥĺŷ àńď ŕēśţàŕţ ƥŕōĴēćţ śēŕvēŕ"],
+ "2EcUjH": ["ĩńţēŕńàĺ"],
"2FYpfJ": ["Ḿōŕē"],
"2G-56b": ["Ƒàĩĺēď ţō ũƥďàţē ḿàŕķďōŵńĺĩńţ ŕũĺēś"],
"2GT3Hf": ["Ĝĺōƀàĺ"],
@@ -303,6 +304,7 @@
"3-1BY2": ["Ţĥĩś ţēŕḿĩńàĺ śēśśĩōń ĩś ńō ĺōńĝēŕ àvàĩĺàƀĺē."],
"322lyb": ["Ĥĩĝĥĺĩĝĥţ ţĩƥś, ŵàŕńĩńĝś, àńď ńōţēś."],
"32TTpa": ["Ēḿàĩĺ śũƥƥōŕţ àƀōũţ ţĥĩś ŕēƥōŕţ"],
+ "33FYnv": ["ƥàţĥ ũńŕēàďàƀĺē"],
"34qyH5": ["Ćōũĺď ńōţ ŕēàćĥ śēŕvēŕ"],
"36WXSC": ["Ćōũĺďń'ţ ďēĺēţē ţēḿƥĺàţē: ", ["error"]],
"36aWJD": ["ĵōĩń ũś ōń Ďĩśćōŕď"],
@@ -351,7 +353,6 @@
"3SZrdj": ["Ćĥēćķ ƒōŕ ũƥďàţēś…"],
"3TSz9S": ["Ḿĩńĩḿĩźē"],
"3Uuuft": ["Ŕēƥōŕţ ƒŕōḿ ", ["0"]],
- "3UzaS-": ["À ĺĩńķēď ŵōŕķţŕēē ōƒ ţĥĩś ŕēƥōśĩţōŕŷ"],
"3V94ia": ["Ćōũĺďń'ţ śēńď ŷōũŕ ćōḿḿēńţś — ţĥē ŵōŕķśƥàćē ĩśń'ţ ŕēàďŷ."],
"3VbwPp": ["Ōƥēń ", ["keyName"], " ĩń ƀŕōŵśēŕ"],
"3VsNTI": ["Ĺōàďĩńĝ ďōćũḿēńţ"],
@@ -564,6 +565,7 @@
"636K3K": ["Ďēĺēţē àďĴàćēńţ ćĥĩƥ"],
"64sesb": ["Ćàĺĺōũţś ďŕàŵ àţţēńţĩōń ţō ķēŷ ĩńƒōŕḿàţĩōń."],
"65Ea2s": ["Ēxƥōśĩńĝ ƥĩńś à ƒĩxēď ƥōŕţ śō ţĥē ţũńńēĺ'ś ţàŕĝēţ śţàŷś śţàƀĺē àćŕōśś ŕēśţàŕţś."],
+ "66JlOb": ["À ĺĩńķēď ŵōŕķţŕēē ŵĥōśē ĺōćàţĩōń ćōũĺď ńōţ ƀē ĺōàďēď"],
"67Dpmh": ["Śĺàśĥ ćōḿḿàńď śũĝĝēśţĩōńś"],
"67f-3g": ["Ďũƥĺĩćàţē śũććēēďēď ƀũţ ţĥē śĩďēƀàŕ ḿàŷ ƀē ōũţ ōƒ ďàţē — ŕēƒŕēśĥ ţō ŕēśŷńć"],
"69E1Pq": [
@@ -665,6 +667,9 @@
],
"7Ag-Xu": ["Àśķ ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Ƒàĩĺēď"],
+ "7C9JcA": [
+ "Ţĥē ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ ƥàţĥ ōń ţĥĩś ƀŕàńćĥ ĺēàvēś ţĥē ŵōŕķţŕēē. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."
+ ],
"7FA2iI": ["Ćōũĺďń'ţ ŕēàď ţĥē ćōḿḿēńţś ŵàĩţĩńĝ ţō śēńď — ńōţĥĩńĝ ŵàś śēńţ."],
"7FamGZ": ["Ĝō ţō ĺĩńē"],
"7Fkcej": ["+ Àďď ", ["addChildName"]],
@@ -1079,6 +1084,7 @@
"C0Ciaj": ["Ĩḿƥōŕţēď àś \"", ["0"], "\" — ţĥē ńàḿē \"", ["1"], "\" ŵàś ţàķēń."],
"C0hoX6": ["Àĺŵàŷś ĩńćĺũďēď"],
"C2abof": ["Ũńţŕàćķēď"],
+ "C37ssn": ["Ĺōàďĩńĝ ŵōŕķţŕēēś…"],
"C3Zc44": ["Ēxƥĺōŕē śķĩĺĺś"],
"C62P6b": ["Ēďĩţōŕ śēĺēćţĩōń"],
"C7PKTv": ["Śēńď ćĥēćķēď ćōḿḿēńţś ţō ćĥàţ"],
@@ -1252,6 +1258,7 @@
"Ḿàńàĝē ţĥē ĜĩţĤũƀ àććōũńţ ŌƥēńĶńōŵĺēďĝē ũśēś ţō ƀŕōŵśē àńď śŷńć ŷōũŕ ŕēƥōśĩţōŕĩēś."
],
"E7BhZn": ["ßĺàńķ ńōţē"],
+ "E8NbNG": ["Ćōũĺďń'ţ ĺōàď ŵōŕķţŕēēś."],
"E91VZY": ["Ōƥēń ĩń Ńēŵ Ŵĩńďōŵ"],
"E9bKSA": ["Ćŕēàţĩńĝ"],
"E9gh86": ["Ŷōũ ćàń àţţàćĥ ũƥ ţō ", ["MAX_ATTACHMENTS"], " ĩḿàĝēś."],
@@ -1374,6 +1381,7 @@
],
"FCKppt": ["Ēńďƥōĩńţ"],
"FCMaBz": ["Ŵĥĩćĥ śķĩĺĺ"],
+ "FCS8de": ["ēxţēŕńàĺ"],
"FCxvG5": ["Ƒĩŕśţ ĩţēḿ"],
"FDBwmS": ["Ōƥēń ƒōĺďēŕ…"],
"FEK4oC": [
@@ -1636,6 +1644,7 @@
"ICoNYz": ["Ŷōũ ćàń àĺśō ḿàńàĝē ţĥĩś ĩń Śēţţĩńĝś."],
"IFALcX": ["Ďēśćŕĩƥţĩōń ƒōŕ ", ["field"]],
"IFezUv": ["Ţĥē àũďĩţ ćōũĺď ńōţ ƀē ćōḿƥĺēţēď. Ţŕŷ àĝàĩń."],
+ "IIgshV": ["ĺōćķēď"],
"IInnZo": ["Ćōńƒĺĩćţ"],
"IKoTAC": ["Ķēēƥ ďĩśàƀĺēď"],
"IMLUBh": ["Ĩńvàĺĩď ćōĺōŕ vàĺũē"],
@@ -2223,6 +2232,9 @@
"PVSwOe": ["Śţēēŕĩńĝ — ŵàĩţĩńĝ ƒōŕ ţĥē ćũŕŕēńţ ŕũń ţō śţōƥ…"],
"PVUn_c": ["Ōƥēń ƒōĺďēŕ"],
"PVggyD": ["Ƒŕōńţḿàţţēŕ śćĥēḿàś"],
+ "PW-5kK": [
+ "Ţĥĩś ƀŕàńćĥ ŕēďĩŕēćţś àń ŌƥēńĶńōŵĺēďĝē śēţũƥ ƥàţĥ ōũţśĩďē ţĥē ŵōŕķţŕēē. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."
+ ],
"PWh9Ii": ["Àƥƥĺŷ ćĥàńĝēś"],
"PWqtgd": ["Ĺōàďĩńĝ ţĥē ćĥàţ"],
"PXaT32": ["Śēŕvēŕ ŕēţũŕńēď àń ĩńćōḿƥĺēţē śķĩĺĺ-ţàŕĝēţś ŕēśƥōńśē."],
@@ -2303,6 +2315,9 @@
"QQghPu": ["Ĩńśţàĺĺ ĩń Ćĺàũďē Ďēśķţōƥ"],
"QR5SP1": ["ćŕēàţēď ţēḿƥĺàţē"],
"QRSdsO": ["Ĩńďēxĩńĝ ŕēǫũēśţ ţĩḿēōũţ (śēćōńďś)"],
+ "QSH_Sn": [
+ "Ţĥĩś ƀŕàńćĥ ďōēś ńōţ ćōńţàĩń ţĥĩś ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."
+ ],
"QVk3SK": ["Ţĥĩś ƒĩĺē ŵàś ďēĺēţēď ōń ţĥē ĩńćōḿĩńĝ ƀŕàńćĥ (ḿōďĩƒŷ-ďēĺēţē ćōńƒĺĩćţ)."],
"QWdKwH": ["Ḿōvē"],
"QYTOaN": ["Ŷōũ ćàń ćĥàńĝē ţĥĩś ĺàţēŕ ĩń <0>Śēţţĩńĝś → Śŷńć</0>."],
@@ -3279,6 +3294,7 @@
"bGa3Fk": ["Ũƥĺōàďĩńĝ ƒĩĺē"],
"bH382I": ["Ēďĩţ ţĥĩś ĤŢḾĹ — ţĥē ƥŕēvĩēŵ ũƥďàţēś ĺĩvē."],
"bKt9Jk": ["Ńō àćţĩvē ōŕ ŕēćēńţ ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţś ŵēŕē ƒōũńď."],
+ "bRyLwy": ["Ďēţàćĥēď àţ ", ["0"]],
"bSD4im": ["Śēàŕćĥ ŵōŕķţŕēēś àńď ƀŕàńćĥēś"],
"bS_boY": ["Ŕēƥĺàćē ćũŕŕēńţ ḿàţćĥ"],
"bUUVED": ["Àśśēţ"],
@@ -3886,6 +3902,7 @@
"hDEaQu": ["Ćōńńēćţ ŌƥēńĶńōŵĺēďĝē ţō ōţĥēŕ ţōōĺś ŷōũ ũśē."],
"hDKtoF": [["diffHrs"], "ĥ àĝō"],
"hDoLrm": ["Ŕēḿōvē ", ["projectName"], " ƒŕōḿ ŕēćēńţ ƥŕōĴēćţś"],
+ "hE33RG": ["Ńō ŵōŕķţŕēēś ƒōũńď."],
"hFmYGU": ["Ĺĩńķēď ţĥēḿē ƒĩĺēś àŕēń’ţ śũƥƥōŕţēď"],
"hGmuTc": ["Ďōćś ţàĝĝēď #", ["tagDocsName"]],
"hHMv6l": ["Ďēĺēţē ƀĺōćķ"],
@@ -4039,6 +4056,7 @@
"ij-Elv": ["Ĩḿàĝē ƥŕēvĩēŵ"],
"ijLc3m": ["ßũĺĺēţ ĺĩśţ"],
"ikSw6W": ["Ḿōvēď ďōŵń."],
+ "ikk3no": ["Ōũţśĩďē ţĥĩś ŕēƥōśĩţōŕŷ'ś ŌƥēńĶńōŵĺēďĝē ŵōŕķţŕēēś ƒōĺďēŕ"],
"ilodsp": ["Ĺēţ àĝēńţś ũśē ŌƥēńĶńōŵĺēďĝē ŵĩţĥōũţ àśķĩńĝ"],
"inJhKB": ["Ŕēƥĺàćē àńď śàvē"],
"ioMn4Z": ["Ńēŵ ƒŕōḿ Ţēḿƥĺàţē…"],
@@ -4097,6 +4115,9 @@
"jKeGuZ": ["Ďēĺēţēś à ďōćũḿēńţ, ƒōĺďēŕ, ţēḿƥĺàţē, śķĩĺĺ, ōŕ àśśēţ"],
"jL3gox": ["Śēĺēćţ à vàĺũē"],
"jLOL1H": ["Śŵĩţćĥ ţō à ƀŕàńćĥ ţō śĥàŕē."],
+ "jMb2SQ": [
+ "Ţĥē ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ ƥàţĥ ōń ţĥĩś ƀŕàńćĥ ćàńńōţ ƀē ŕēàď. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."
+ ],
"jO18NZ": ["Ĩ'ḿ śŵĩţćĥĩńĝ ţō àńōţĥēŕ ţōōĺ"],
"jPUPvG": ["Ćōũĺďń'ţ ŕēśōĺvē ţĥē ćōńƒĺĩćţ ƒōŕ ", ["filePath"], "."],
"jRAGrQ": ["Ćōńƒĩĝũŕē àĝēńţś"],
@@ -4244,6 +4265,7 @@
"kpqWwG": ["Ţĥĩś ", ["targetNoun"], " ŵàś ŕēḿōvēď ƒŕōḿ ƀŕàńćĥ <0>", ["branch"], "</0>."],
"ktspdq": ["Ţĩńţ àńď ƀàďĝē ƒĩĺēś ţĥàţ ĥàvē ĺĩńţ ōŕ ĺĩńķ ƥŕōƀĺēḿś, ŵĩţĥōũţ ōƥēńĩńĝ ţĥēḿ."],
"ku0yLQ": ["Ƥàĝēś àŕē ēḿƀēďďēď ţĥē ƒĩŕśţ ţĩḿē à śēàŕćĥ ńēēďś ţĥēḿ."],
+ "kvWZ9R": ["śţàĺē Ĝĩţ ēńţŕŷ"],
"kwNS82": ["Ţĥĩś ţĥēḿē ćàń’ţ ƀē ũśēď ũńţĩĺ ţĥē ƒĩĺē ĩś ƒĩxēď."],
"ky9Tuc": ["Ēďĩţ ", ["0"], " śōũŕćē"],
"kzpkcn": ["Ćōũĺďń'ţ śàvē ţĥàţ ēďĩţ."],
@@ -4583,11 +4605,13 @@
"oCZkaG": ["Ćōƥŷ ƥàţĥ"],
"oJl7eO": ["Ũńķńōŵń ćōḿƥōńēńţ: ", ["componentName"], " — śōũŕćē ēďĩţàƀĺē ƀēĺōŵ"],
"oKBnk5": ["Ḿōŕē ŕēǫũēśţś ŵēŕē ƀĺōćķēď."],
+ "oKE6QZ": ["Ĝĩţ ĥàś ĺōćķēď ţĥĩś ŵōŕķţŕēē, ƀũţ ĩţ ćàń śţĩĺĺ ƀē ōƥēńēď."],
"oLyLo6": ["Ţĥē ţēŕḿĩńàĺ ƀàćķĝŕōũńď śēŕvĩćē ĩśń'ţ ŕũńńĩńĝ."],
"oP-FQW": ["Ũśē à ŕēĺàţĩvē ƥàţĥ ĩńśĩďē ţĥē śķĩĺĺ"],
"oPU_4D": ["Śēńď ŵĥēń ţĥē àĝēńţ ĩś ƒŕēē"],
"oPbSBQ": ["ßũĩĺďś à śĥàŕēàƀĺē ĺĩńķ ţō à ďōćũḿēńţ ōŕ ƒōĺďēŕ"],
"oQA-cA": ["Ƒũĺĺ ƥàţĥ"],
+ "oQubcL": ["Ĩńśĩďē ţĥĩś ŕēƥōśĩţōŕŷ'ś ŌƥēńĶńōŵĺēďĝē ŵōŕķţŕēēś ƒōĺďēŕ"],
"oS1YpJ": ["Ōƥēń ţĥē ƤŕōĴēćţ Ńàvĩĝàţōŕ."],
"oVW7VD": ["Ĩńśţàĺĺś ĩńţō ţĥĩś ƥŕōĴēćţ"],
"oWsZk8": ["Ćŕēàţē ḿĩśśĩńĝ ƥàĝē ", ["target"]],
@@ -4653,6 +4677,7 @@
"pMPnZv": ["Ďēĺēţēď ", ["deleted"], " śķĩĺĺś"],
"pOo4Aa": ["Ƥĺàĩń ţēxţ"],
"pPiV8s": ["Ēńàƀĺē Àũţō (Ƥũĺĺ àńď Ƥũśĥ)"],
+ "pSF7TJ": ["Ţĥĩś ćĥēćķōũţ ƥàţĥ ćàńńōţ ƀē ŕēàď."],
"pSimwP": ["Ńēŵ ńàḿē ƒōŕ ţĥē ", ["editor"], " vēŕśĩōń"],
"pTPqMK": ["Ţōĝĝĺē à ƒēńćēď ćōďē ƀĺōćķ."],
"pTyA_t": ["ţàĝś"],
@@ -4972,6 +4997,9 @@
"snrVQ7": ["ƥŕōƀē ƒàĩĺēď"],
"sq4WQH": ["Ũśē ", ["0"], " àś ţĥē ĺĩĝĥţ ţĥēḿē"],
"sqUrlK": ["Ḿũśĩńĝ…"],
+ "sqgz2k": [
+ "ŌƥēńĶńōŵĺēďĝē ćōũĺďń'ţ ƒĩńĩśĥ śēţţĩńĝ ũƥ ţĥĩś ƥŕōĴēćţ. Ţĥē ŵōŕķţŕēē ŵàś ćŕēàţēď ƀũţ ńōţ ōƥēńēď."
+ ],
"srdlOs": [
"Àũţō-śŷńć ĩś ƥàũśēď — ŷōũ ďōń'ţ ĥàvē ƥēŕḿĩśśĩōń ţō ƥũśĥ ţō ţĥĩś ŕēƥō. Śŵĩţćĥ ţō Àũţō (Ƥũĺĺ ōńĺŷ) ţō ķēēƥ ŕēćēĩvĩńĝ ũƥďàţēś."
],
@@ -5034,7 +5062,6 @@
"t_YqKh": ["Ŕēḿōvē"],
"tc65fD": ["Ḿōśţ ĩńśţàĺĺēď"],
"tcjTlU": ["Śţàŕţēŕ ƥàćķś"],
- "teD0H9": ["Ćōũĺďń'ţ ōƥēń à ŵōŕķţŕēē ƒōŕ ţĥàţ ƀŕàńćĥ."],
"teFjfG": ["Ńō àĝēńţ ĩś śēţ ũƥ ŷēţ — ƥĩćķ ōńē ƒŕōḿ ţĥē śēńď ḿēńũ."],
"ten9en": ["Ŕēćēńţ ƥŕōĴēćţ"],
"tfDRzk": ["Śàvē"],
@@ -5137,6 +5164,7 @@
"uAQUqI": ["Śţàţũś"],
"uA_jXp": ["Śŵĩţćĥ àńď ũƥďàţē ƀŕàńćĥ"],
"uBAxNB": ["Ēďĩţōŕ"],
+ "uCZNXY": ["Ţĥĩś ŵōŕķţŕēē ĩś ńō ĺōńĝēŕ àvàĩĺàƀĺē."],
"uCaIdy": ["ĜĩţĤũƀ śĩĝń-ĩń ĩś ḿĩśśĩńĝ ōŕ ēxƥĩŕēď. Ŕēćōńńēćţ ţō ŕēśũḿē śŷńćĩńĝ."],
"uDlyqd": [
"Ďōćũḿēńţ ţĥē àŕćĥĩţēćţũŕē ōƒ ţĥĩś ŕēƥō: ćŕēàţē àń ōvēŕvĩēŵ ƥàĝē ţĥàţ ĺĩńķś ţō à ƥàĝē ƥēŕ ḿàĴōŕ ḿōďũĺē ďēśćŕĩƀĩńĝ ĩţś ŕēśƥōńśĩƀĩĺĩţĩēś àńď ēńţŕŷ ƥōĩńţś."
@@ -5337,6 +5365,7 @@
"wHZ58m": ["Ōƥēń ŵĩţĥ ÀĨ ", ["displayName"], " Ďēśķţōƥ"],
"wJijgU": ["Ĺōćàţĩōń"],
"wJo9oS": ["Ćĺōśē ƒĩńď"],
+ "wKJo7h": ["Ţĥē ŌƥēńĶńōŵĺēďĝē ƥŕōĴēćţ ĩś ḿĩśśĩńĝ àţ ţĥĩś ćĥēćķōũţ ƥàţĥ."],
"wQp1V3": ["Ḿĩŕŕōŕ ōƒ <0>", ["src"], "</0>"],
"wQvvZY": ["Ńēŵ śķĩĺĺ ƒĩĺē"],
"wRni1Z": ["Ďĩśàƀĺē Śĺĩďēv"],
@@ -5364,6 +5393,7 @@
"wbpoGe": ["Ćōũĺďń'ţ ĩńśţàĺĺ ŌƥēńĶńōŵĺēďĝē śķĩĺĺ — ", ["message"]],
"wbv9xO": ["Ćŕēàţē ńēŵ ƥŕōĴēćţ"],
"wc54KE": ["Ţŕŷĩńĝ ĩţ ōũţ…"],
+ "wcZNHh": ["Ĝĩţ ḿàŕķś ţĥĩś ŵōŕķţŕēē àś ƥŕũńàƀĺē."],
"wcfO9r": ["Ńō ƀũĝ ŕēƥōŕţś ŷēţ."],
"wckWOP": ["Ḿàńàĝē"],
"wdRxTD": ["Àƥƥĺŷĩńĝ…"],
@@ -5384,6 +5414,7 @@
],
"wndeIl": ["ƤŕōĴēćţ-ĺēvēĺ ƥàĝēś ŵĩţĥ ńēĩţĥēŕ ĩńćōḿĩńĝ ńōŕ ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."],
"wqD3pI": [["failed"], " ōƒ ", ["0"], " ćōḿḿēńţś ćōũĺď ńōţ ƀē ũƥďàţēď."],
+ "wrdxmT": ["ƥŕōĴēćţ ḿĩśśĩńĝ"],
"ws5o1F": ["Ćĥēćķēď ƀŷ: ", ["0"]],
"wsLj3t": [
"Ţĥàţ ƒōĺďēŕ àĺŕēàďŷ ĥōĺďś ćōďē Ōƥēń Ķńōŵĺēďĝē ďĩďń'ţ ŵŕĩţē, ŵĥĩćĥ ţĥē śàḿē ţŕũśţ ŵōũĺď ĺēţ ",
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index bd62e22cd..36657ad6b 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -1339,7 +1339,7 @@ msgstr ""
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr ""
@@ -1389,7 +1389,7 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr ""
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
+msgid "A linked worktree whose location could not be loaded"
msgstr ""
#: src/components/ReportBugDialogBody.tsx
@@ -1507,7 +1507,7 @@ msgstr ""
msgid "A worktree folder for {shareBranch} already exists."
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr ""
@@ -4068,7 +4068,7 @@ msgstr ""
msgid "Couldn't create the report"
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr ""
@@ -4197,6 +4197,10 @@ msgstr ""
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr ""
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr ""
@@ -4240,10 +4244,6 @@ msgstr ""
msgid "Couldn't open {0} for editing: {1}"
msgstr ""
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr ""
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr ""
@@ -5030,6 +5030,11 @@ msgstr ""
msgid "Design"
msgstr ""
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr ""
@@ -5808,7 +5813,7 @@ msgstr ""
msgid "Enter a title for this template."
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr ""
@@ -5981,6 +5986,10 @@ msgstr ""
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr ""
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6771,10 +6780,18 @@ msgstr ""
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr ""
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr ""
@@ -6783,7 +6800,7 @@ msgstr ""
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr ""
@@ -7576,6 +7593,10 @@ msgstr ""
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr ""
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7771,6 +7792,10 @@ msgstr ""
msgid "Integrations"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr ""
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr ""
@@ -8288,6 +8313,10 @@ msgstr ""
msgid "Loading timeline history"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr ""
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr ""
@@ -8340,6 +8369,10 @@ msgstr ""
msgid "Location"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr ""
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr ""
@@ -9516,6 +9549,10 @@ msgstr ""
msgid "No workspace"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr ""
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr ""
@@ -10174,6 +10211,10 @@ msgstr ""
msgid "OpenKnowledge could not find this agent on this machine."
msgstr ""
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr ""
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr ""
@@ -10487,6 +10528,10 @@ msgstr ""
msgid "Outside any block"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr ""
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr ""
@@ -10685,6 +10730,10 @@ msgstr ""
msgid "Path suggestions"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr ""
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr ""
@@ -11010,6 +11059,10 @@ msgstr ""
msgid "Project MCP server"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr ""
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr ""
@@ -13544,6 +13597,10 @@ msgstr ""
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr ""
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr ""
@@ -14129,8 +14186,8 @@ msgstr ""
msgid "Thanks for the report!"
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr ""
@@ -14327,6 +14384,18 @@ msgstr ""
msgid "the open agent"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr ""
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr ""
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr ""
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr ""
@@ -14690,14 +14759,26 @@ msgstr ""
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr ""
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr ""
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr ""
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr ""
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr ""
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr ""
@@ -14986,8 +15067,8 @@ msgstr ""
msgid "This project"
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr ""
@@ -15010,8 +15091,8 @@ msgstr ""
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr ""
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr ""
@@ -15118,6 +15199,10 @@ msgstr ""
msgid "This window can't store a token — open Settings from the main app window."
msgstr ""
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr ""
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 7a05e9d0a..b7e868c20 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -287,6 +287,7 @@
"2CHoQv": ["Recarregar à força"],
"2Ce6hp": ["São movidas"],
"2D1x3Y": ["Aplicar e reiniciar o servidor do projeto"],
+ "2EcUjH": ["interna"],
"2FYpfJ": ["Mais"],
"2G-56b": ["Falha ao atualizar as regras do markdownlint"],
"2GT3Hf": ["Global"],
@@ -343,6 +344,7 @@
"3-1BY2": ["Esta sessão de terminal não está mais disponível."],
"322lyb": ["Destaca dicas, avisos e notas."],
"32TTpa": ["Escrever para o suporte sobre este relatório"],
+ "33FYnv": ["caminho ilegível"],
"34qyH5": ["Não foi possível contatar o servidor"],
"36WXSC": ["Não deu para excluir o modelo: ", ["error"]],
"36aWJD": ["Entre no nosso Discord"],
@@ -404,7 +406,6 @@
"3SZrdj": ["Buscar atualizações…"],
"3TSz9S": ["Minimizar"],
"3Uuuft": ["Relatório de ", ["0"]],
- "3UzaS-": ["Um worktree vinculado deste repositório"],
"3V94ia": ["Não deu para enviar seus comentários — o espaço de trabalho não está pronto."],
"3VbwPp": ["Abrir ", ["keyName"], " no navegador"],
"3VsNTI": ["Carregando o documento"],
@@ -665,6 +666,7 @@
"65Ea2s": [
"Expor fixa uma porta para que o alvo do túnel permaneça estável entre reinicializações."
],
+ "66JlOb": ["Uma árvore de trabalho vinculada cujo local não pôde ser carregado"],
"67Dpmh": ["Sugestões de comandos de barra"],
"67f-3g": [
"A duplicação deu certo, mas a barra lateral pode estar desatualizada — atualize para ressincronizar"
@@ -797,6 +799,9 @@
],
"7Ag-Xu": ["Perguntar ao ", ["agentName"], ", ", ["hint"]],
"7Bj3x9": ["Falhou"],
+ "7C9JcA": [
+ "O caminho do projeto do OpenKnowledge neste branch sai do worktree. O worktree foi criado, mas não foi aberto."
+ ],
"7FA2iI": ["Não deu para ler os comentários que aguardam envio — nada foi enviado."],
"7FamGZ": ["Ir para a linha"],
"7Fkcej": ["+ Adicionar ", ["addChildName"]],
@@ -1254,6 +1259,7 @@
"C0Ciaj": ["Importado como \"", ["0"], "\" — o nome \"", ["1"], "\" já estava em uso."],
"C0hoX6": ["Sempre incluído"],
"C2abof": ["Não rastreado"],
+ "C37ssn": ["Carregando worktrees…"],
"C3Zc44": ["Explorar habilidades"],
"C62P6b": ["Seleção do editor"],
"C7PKTv": ["Enviar os comentários marcados para o chat"],
@@ -1454,6 +1460,7 @@
"Gerencie a conta do GitHub que o OpenKnowledge usa para explorar e sincronizar seus repositórios."
],
"E7BhZn": ["Nota em branco"],
+ "E8NbNG": ["Não foi possível carregar as árvores de trabalho."],
"E91VZY": ["Abrir em nova janela"],
"E9bKSA": ["Criando"],
"E9gh86": ["Você pode anexar até ", ["MAX_ATTACHMENTS"], " imagens."],
@@ -1584,6 +1591,7 @@
],
"FCKppt": ["Endpoint"],
"FCMaBz": ["Qual habilidade"],
+ "FCS8de": ["externa"],
"FCxvG5": ["Primeiro item"],
"FDBwmS": ["Abrir pasta…"],
"FEK4oC": [
@@ -1893,6 +1901,7 @@
"ICoNYz": ["Você também pode gerenciar isto em Configurações."],
"IFALcX": ["Descrição de ", ["field"]],
"IFezUv": ["Não foi possível concluir a auditoria. Tente de novo."],
+ "IIgshV": ["bloqueada"],
"IInnZo": ["Conflito"],
"IKoTAC": ["Deixar desativado"],
"IMLUBh": ["Valor de cor inválido"],
@@ -2533,6 +2542,9 @@
"PVSwOe": ["Redirecionando — aguardando a execução atual parar…"],
"PVUn_c": ["Abrir pasta"],
"PVggyD": ["Esquemas de frontmatter"],
+ "PW-5kK": [
+ "Este branch redireciona um caminho de configuração do OpenKnowledge para fora do worktree. O worktree foi criado, mas não foi aberto."
+ ],
"PWh9Ii": ["Aplicar alterações"],
"PWqtgd": ["Carregando o chat"],
"PXaT32": ["O servidor retornou uma resposta de destinos de habilidades incompleta."],
@@ -2624,6 +2636,9 @@
"QQghPu": ["Instalar no Claude Desktop"],
"QR5SP1": ["modelo criado"],
"QRSdsO": ["Tempo limite da requisição de indexação (segundos)"],
+ "QSH_Sn": [
+ "Este branch não contém este projeto do OpenKnowledge. O worktree foi criado, mas não foi aberto."
+ ],
"QVk3SK": ["Este arquivo foi excluído no ramo recebido (conflito modify-delete)."],
"QWdKwH": ["Mover"],
"QYTOaN": ["Você pode mudar isto depois em <0>Configurações → Sincronização</0>."],
@@ -3728,6 +3743,7 @@
"bGa3Fk": ["Enviando o arquivo"],
"bH382I": ["Edite este HTML — a pré-visualização se atualiza ao vivo."],
"bKt9Jk": ["Nenhum projeto do OpenKnowledge ativo ou recente foi encontrado."],
+ "bRyLwy": ["Desanexado em ", ["0"]],
"bSD4im": ["Buscar worktrees e ramos"],
"bS_boY": ["Substituir a ocorrência atual"],
"bUUVED": ["Recurso"],
@@ -4436,6 +4452,7 @@
"hDEaQu": ["Conecte o OpenKnowledge às outras ferramentas que você usa."],
"hDKtoF": ["há ", ["diffHrs"], " h"],
"hDoLrm": ["Remover ", ["projectName"], " dos projetos recentes"],
+ "hE33RG": ["Nenhuma árvore de trabalho encontrada."],
"hFmYGU": ["Arquivos de tema vinculados não são compatíveis"],
"hGmuTc": ["Documentos com a tag #", ["tagDocsName"]],
"hHMv6l": ["Excluir o bloco"],
@@ -4607,6 +4624,7 @@
"ij-Elv": ["Pré-visualização de imagem"],
"ijLc3m": ["Lista com marcadores"],
"ikSw6W": ["Movido para baixo."],
+ "ikk3no": ["Fora da pasta de árvores de trabalho do OpenKnowledge deste repositório"],
"ilodsp": ["Deixar os agentes usarem o OpenKnowledge sem perguntar"],
"inJhKB": ["Substituir e salvar"],
"ioMn4Z": ["Novo a partir de um modelo…"],
@@ -4665,6 +4683,9 @@
"jKeGuZ": ["Exclui um documento, pasta, modelo, habilidade ou recurso"],
"jL3gox": ["Selecione um valor"],
"jLOL1H": ["Mude para um ramo para compartilhar."],
+ "jMb2SQ": [
+ "O caminho do projeto do OpenKnowledge neste branch não pode ser lido. O worktree foi criado, mas não foi aberto."
+ ],
"jO18NZ": ["Estou mudando para outra ferramenta"],
"jPUPvG": ["Não deu para resolver o conflito de ", ["filePath"], "."],
"jRAGrQ": ["Configurar agentes"],
@@ -4823,6 +4844,7 @@
"Colore e marca os arquivos com problemas de análise ou de links, sem precisar abri-los."
],
"ku0yLQ": ["As páginas viram embeddings na primeira vez que uma busca precisa delas."],
+ "kvWZ9R": ["entrada Git obsoleta"],
"kwNS82": ["Este tema não pode ser usado até que o arquivo seja corrigido."],
"ky9Tuc": ["Editar o código de ", ["0"]],
"kzpkcn": ["Não deu para salvar essa edição."],
@@ -5193,11 +5215,13 @@
"oCZkaG": ["Copiar caminho"],
"oJl7eO": ["Componente desconhecido: ", ["componentName"], " — código editável abaixo"],
"oKBnk5": ["Mais requisições foram bloqueadas."],
+ "oKE6QZ": ["O Git bloqueou este worktree, mas ele ainda pode ser aberto."],
"oLyLo6": ["O serviço em segundo plano do terminal não está em execução."],
"oP-FQW": ["Use um caminho relativo dentro da habilidade"],
"oPU_4D": ["Enviar quando o agente estiver livre"],
"oPbSBQ": ["Cria um link compartilhável para um documento ou pasta"],
"oQA-cA": ["Caminho completo"],
+ "oQubcL": ["Dentro da pasta de árvores de trabalho do OpenKnowledge deste repositório"],
"oS1YpJ": ["Abre o Navegador de projetos."],
"oVW7VD": ["Instala neste projeto"],
"oWsZk8": ["Criar a página inexistente ", ["target"]],
@@ -5263,6 +5287,7 @@
"pMPnZv": [["deleted"], " habilidades excluídas"],
"pOo4Aa": ["Texto simples"],
"pPiV8s": ["Ativar Automático (Pull e Push)"],
+ "pSF7TJ": ["Não é possível ler este caminho de checkout."],
"pSimwP": ["Novo nome para a versão do ", ["editor"]],
"pTPqMK": ["Liga ou desliga um bloco de código delimitado."],
"pTyA_t": ["tags"],
@@ -5627,6 +5652,9 @@
"snrVQ7": ["a verificação falhou"],
"sq4WQH": ["Usar ", ["0"], " como tema claro"],
"sqUrlK": ["Divagando…"],
+ "sqgz2k": [
+ "O OpenKnowledge não conseguiu concluir a configuração deste projeto. O worktree foi criado, mas não foi aberto."
+ ],
"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."
],
@@ -5691,7 +5719,6 @@
"t_YqKh": ["Remover"],
"tc65fD": ["Mais instaladas"],
"tcjTlU": ["Pacotes iniciais"],
- "teD0H9": ["Não deu para abrir um worktree para esse ramo."],
"teFjfG": ["Nenhum agente foi configurado ainda — escolha um no menu de envio."],
"ten9en": ["Projeto recente"],
"tfDRzk": ["Salvar"],
@@ -5804,6 +5831,7 @@
"uAQUqI": ["Status"],
"uA_jXp": ["Trocar de ramo e atualizar"],
"uBAxNB": ["Editor"],
+ "uCZNXY": ["Esta árvore de trabalho não está mais disponível."],
"uCaIdy": [
"O login do GitHub está ausente ou expirou. Reconecte para retomar a sincronização."
],
@@ -6030,6 +6058,7 @@
"wHZ58m": ["Abrir com a IA ", ["displayName"], " Desktop"],
"wJijgU": ["Local"],
"wJo9oS": ["Fechar busca"],
+ "wKJo7h": ["O projeto do OpenKnowledge está ausente neste caminho de checkout."],
"wQp1V3": ["Espelho de <0>", ["src"], "</0>"],
"wQvvZY": ["Novo arquivo de habilidade"],
"wRni1Z": ["Desativar Slidev"],
@@ -6057,6 +6086,7 @@
"wbpoGe": ["Não foi possível instalar a habilidade do OpenKnowledge: ", ["message"]],
"wbv9xO": ["Criar novo projeto"],
"wc54KE": ["Experimentando…"],
+ "wcZNHh": ["O Git marca este worktree como removível."],
"wcfO9r": ["Ainda não há relatórios de erro."],
"wckWOP": ["Gerenciar"],
"wdRxTD": ["Aplicando…"],
@@ -6077,6 +6107,7 @@
],
"wndeIl": ["Páginas de todo o projeto sem arestas de entrada nem de saída no grafo."],
"wqD3pI": ["Não foi possível atualizar ", ["failed"], " de ", ["0"], " comentários."],
+ "wrdxmT": ["projeto ausente"],
"ws5o1F": ["Verificado por: ", ["0"]],
"wsLj3t": [
"Essa pasta já contém código que o Open Knowledge não escreveu e que essa mesma confiança permitiria a ",
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 5bab71152..4e5ab79e5 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -1339,7 +1339,7 @@ msgstr "O selo <0>Modificada</0> marca as regras que sua configuração define e
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "Já existe um ramo chamado {shareBranch}. Abra o worktree dele pelo seletor."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "Já existe um ramo com esse nome. Abra o worktree dele pelo seletor."
@@ -1389,8 +1389,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "Uma linha com uma nota de rodapé<0><1>[1]</1></0> e uma definição mostrada abaixo."
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "Um worktree vinculado deste repositório"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "Uma árvore de trabalho vinculada cujo local não pôde ser carregado"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1507,7 +1507,7 @@ msgstr "Um título, uma descrição, tags — qualquer coisa que descreva esta p
msgid "A worktree folder for {shareBranch} already exists."
msgstr "Já existe uma pasta de worktree para {shareBranch}."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "Já existe uma pasta de worktree para esse ramo."
@@ -4068,7 +4068,7 @@ msgstr "Não deu para criar o modelo: {error}"
msgid "Couldn't create the report"
msgstr "Não deu para criar o relatório"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "Não deu para criar o worktree. Tente outro nome."
@@ -4197,6 +4197,10 @@ msgstr "Não foi possível carregar as habilidades do OpenKnowledge. Tente de no
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "Não foi possível carregar a pré-visualização da versão. Você ainda pode escolher abaixo como resolver."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "Não foi possível carregar as árvores de trabalho."
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "Não foi possível carregar seus agentes."
@@ -4240,10 +4244,6 @@ msgstr "Não deu para abrir \"{name}\": {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "Não deu para abrir {0} para edição: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "Não deu para abrir um worktree para esse ramo."
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "Não deu para abrir o documento"
@@ -5030,6 +5030,11 @@ msgstr "tokens de descrição"
msgid "Design"
msgstr "Design"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "Desanexado em {0}"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "HEAD desanexado"
@@ -5808,7 +5813,7 @@ msgstr "Digite uma URL de repositório ou dono/repositório"
msgid "Enter a title for this template."
msgstr "Digite um título para este modelo."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "Digite um nome de ramo válido (sem espaços, sem ponto inicial, sem \"..\")."
@@ -5981,6 +5986,10 @@ msgstr "Expor este projeto à rede?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "Expor fixa uma porta para que o alvo do túnel permaneça estável entre reinicializações."
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "externa"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6771,10 +6780,18 @@ msgstr "Git e PRs"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "O git não consegue rastrear esta pasta — ela está vazia ou só tem arquivos ignorados. O link não vai funcionar até você adicionar um documento rastreado."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "O Git bloqueou este worktree, mas ele ainda pode ser aberto."
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Sua identidade do git não está definida — os commits usam um autor padrão. Defina a sua para que os colegas vejam seu nome."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "O Git marca este worktree como removível."
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git regra de mesclagem"
@@ -6783,7 +6800,7 @@ msgstr "Git regra de mesclagem"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "O git precisa de {tool} para este repositório, mas ele não está instalado nem foi encontrado. Instale-o e tente de novo."
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "O git precisa de uma ferramenta auxiliar (como o git-lfs) que não está instalada nem foi encontrada. Instale-a e tente de novo."
@@ -7576,6 +7593,10 @@ msgstr "Inserir linha abaixo"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "Insere, exclui, move, copia e recua linhas do editor de código pelo mapa de teclas padrão do CodeMirror."
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "Dentro da pasta de árvores de trabalho do OpenKnowledge deste repositório"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7771,6 +7792,10 @@ msgstr "Instrução para a IA"
msgid "Integrations"
msgstr "Integrações"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "interna"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "Valor de cor inválido"
@@ -8288,6 +8313,10 @@ msgstr "Carregando o chat"
msgid "Loading timeline history"
msgstr "Carregando o histórico da linha do tempo"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "Carregando worktrees…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "Carregando seus relatórios"
@@ -8340,6 +8369,10 @@ msgstr "Somente local foi solicitado, mas nenhum repositório git foi criado. Vo
msgid "Location"
msgstr "Local"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "bloqueada"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "Logs e informações do sistema"
@@ -9516,6 +9549,10 @@ msgstr "Ainda não há modelos. Adicione um para dar aos novos documentos desta
msgid "No workspace"
msgstr "Sem espaço de trabalho"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "Nenhuma árvore de trabalho encontrada."
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "Nenhum"
@@ -10174,6 +10211,10 @@ msgstr "OpenKnowledge verificou o projeto"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "O OpenKnowledge não encontrou este agente nesta máquina."
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "O OpenKnowledge não conseguiu concluir a configuração deste projeto. O worktree foi criado, mas não foi aberto."
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "O OpenKnowledge não conseguiu ler terminal.shell em .ok/local/config.yml. Um shell do Windows disponível será usado."
@@ -10487,6 +10528,10 @@ msgstr "Estrutura"
msgid "Outside any block"
msgstr "Fora de qualquer bloco"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "Fora da pasta de árvores de trabalho do OpenKnowledge deste repositório"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "Fora do que o Open Knowledge faz commit."
@@ -10685,6 +10730,10 @@ msgstr "O caminho aponta para fora do projeto"
msgid "Path suggestions"
msgstr "Sugestões de caminho"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "caminho ilegível"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "Padrão (regex)"
@@ -11010,6 +11059,10 @@ msgstr "A pasta do projeto foi criada, mas o git init falhou. Tente de novo."
msgid "Project MCP server"
msgstr "Servidor MCP do projeto"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "projeto ausente"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "Nome do projeto"
@@ -13544,6 +13597,10 @@ msgstr "Dividir o item de lista"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "Prepara o trecho selecionado no painel de agentes, pronto para complementar e enviar."
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "entrada Git obsoleta"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "Dê uma estrela no GitHub"
@@ -14129,8 +14186,8 @@ msgstr "Obrigado pelo retorno!"
msgid "Thanks for the report!"
msgstr "Obrigado pelo relatório!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "Esse ramo já está aberto em outro worktree."
@@ -14327,6 +14384,18 @@ msgstr "O id do modelo que seu endpoint serve. O tamanho do vector é detectado
msgid "the open agent"
msgstr "o agente aberto"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "O projeto do OpenKnowledge está ausente neste caminho de checkout."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "O caminho do projeto do OpenKnowledge neste branch não pode ser lido. O worktree foi criado, mas não foi aberto."
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "O caminho do projeto do OpenKnowledge neste branch sai do worktree. O worktree foi criado, mas não foi aberto."
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "O servidor do OpenKnowledge demorou demais para responder e a alteracao pode ter sido aplicada mesmo assim. Peca ao agente que verifique antes de tentar de novo."
@@ -14690,14 +14759,26 @@ msgstr "Este agente roda pelo {0}, que não está instalado. O Open Knowledge po
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "Isto também instala {packSkillCount, plural, one {# habilidade} many {# habilidades} other {# habilidades}} do pacote."
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "Este branch não contém este projeto do OpenKnowledge. O worktree foi criado, mas não foi aberto."
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "Este ramo está extraído em:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "Este branch redireciona um caminho de configuração do OpenKnowledge para fora do worktree. O worktree foi criado, mas não foi aberto."
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "Isto pode ser configurado em Configurações > Ferramentas de IA e CLI"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "Não é possível ler este caminho de checkout."
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "Este comando contém caracteres ocultos que podem fazer com que ele pareça diferente do que é executado. Eles aparecem aqui como ⟨U+…⟩."
@@ -14986,8 +15067,8 @@ msgstr "Isto remove definitivamente {path}. Os agentes que citarem este modelo p
msgid "This project"
msgstr "Este projeto"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "Este projeto ainda não tem commits, portanto não há nenhum ramo no qual basear um worktree. Faça um primeiro commit e tente novamente."
@@ -15010,8 +15091,8 @@ msgstr "Este projeto está rodando uma build do OpenKnowledge diferente e incomp
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "Este projeto está rodando uma versão do OpenKnowledge (v{0}) mais antiga que a deste app (v{1})."
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "Este projeto não é um repositório git, então worktrees não estão disponíveis."
@@ -15118,6 +15199,10 @@ msgstr "Isto costuma significar uma destas coisas:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "Esta janela não consegue guardar um token — abra Configurações pela janela principal do app."
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "Esta árvore de trabalho não está mais disponível."
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "Arrumando…"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index c29f4b905..f59d6fe4e 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -249,6 +249,7 @@
"2CHoQv": ["زبردستی دوبارہ لوڈ کریں"],
"2Ce6hp": ["منتقل ہوں گی"],
"2D1x3Y": ["لاگو کریں اور پروجیکٹ سرور دوبارہ شروع کریں"],
+ "2EcUjH": ["اندرونی"],
"2FYpfJ": ["مزید"],
"2G-56b": ["markdownlint کے قواعد تازہ نہیں ہو سکے"],
"2GT3Hf": ["عالمی"],
@@ -302,6 +303,7 @@
"3-1BY2": ["یہ ٹرمینل سیشن اب دستیاب نہیں ہے۔"],
"322lyb": ["مشورے، انتباہات اور نوٹس نمایاں کریں۔"],
"32TTpa": ["اس رپورٹ کے بارے میں سپورٹ کو ای میل کریں"],
+ "33FYnv": ["پاتھ پڑھا نہیں جا سکتا"],
"34qyH5": ["سرور تک رسائی نہیں ہو سکی"],
"36WXSC": ["ٹیمپلیٹ حذف نہیں ہو سکا: ", ["error"]],
"36aWJD": ["Discord پر ہمارے ساتھ شامل ہوں"],
@@ -349,7 +351,6 @@
"3SZrdj": ["اپ ڈیٹس دیکھیں…"],
"3TSz9S": ["چھوٹا کریں"],
"3Uuuft": [["0"], " سے رپورٹ"],
- "3UzaS-": ["اس ریپازٹری کا ایک منسلک ورک ٹری"],
"3V94ia": ["آپ کے تبصرے نہیں بھیجے جا سکے — ورک اسپیس تیار نہیں ہے۔"],
"3VbwPp": [["keyName"], " براؤزر میں کھولیں"],
"3VsNTI": ["دستاویز لوڈ ہو رہی ہے"],
@@ -583,6 +584,7 @@
"65Ea2s": [
"ایکسپوز کرنا ایک مقررہ پورٹ طے کر دیتا ہے تاکہ دوبارہ شروع ہونے پر ٹنل کا ہدف مستحکم رہے۔"
],
+ "66JlOb": ["ایک منسلک ورک ٹری جس کا مقام لوڈ نہیں ہو سکا"],
"67Dpmh": ["سلیش کمانڈ کی تجاویز"],
"67f-3g": ["نقل بن گئی مگر سائیڈ بار پرانا ہو سکتا ہے — دوبارہ مطابقت کے لیے تازہ کریں"],
"69E1Pq": [
@@ -685,6 +687,9 @@
],
"7Ag-Xu": [["agentName"], " سے پوچھیں، ", ["hint"]],
"7Bj3x9": ["ناکام"],
+ "7C9JcA": [
+ "اس برانچ پر OpenKnowledge پروجیکٹ کا پاتھ ورک ٹری سے باہر جاتا ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+ ],
"7FA2iI": ["بھیجنے کے منتظر تبصرے پڑھے نہیں جا سکے — کچھ نہیں بھیجا گیا۔"],
"7FamGZ": ["سطر پر جائیں"],
"7Fkcej": ["+ ", ["addChildName"], " شامل کریں"],
@@ -947,7 +952,7 @@
"AIn2Yv": [["displayName"], " CLI، ", ["hint"]],
"AItsE5": ["اسے وہیں کھولیں"],
"AJ7_B2": ["نئی تھیم بنائیں"],
- "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["ورک ٹری"], "other": ["ورک ٹریز"] }]],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["ورک ٹری"], "other": ["ورک ٹری"] }]],
"ALhMYW": ["ٹرمینل"],
"AMU00p": [
"دونوں ورژن یکساں ہیں۔ موجودہ قبول کریں منتخب کرنے سے OpenKnowledge کا تحفظ فعال رہتا ہے، اس لیے پرانے ورژن کا ایک اور سیو دوبارہ مسترد کر دیا جائے گا۔ آنے والا قبول کریں منتخب کرنے سے وہ تحفظ بند ہو جاتا ہے۔"
@@ -1095,6 +1100,7 @@
"C0Ciaj": ["«", ["0"], "» کے نام سے درآمد ہوا — نام «", ["1"], "» پہلے سے لیا ہوا تھا۔"],
"C0hoX6": ["ہمیشہ شامل"],
"C2abof": ["غیر ٹریک شدہ"],
+ "C37ssn": ["ورک ٹریز لوڈ ہو رہی ہیں…"],
"C3Zc44": ["مہارتیں دریافت کریں"],
"C62P6b": ["ایڈیٹر کا انتخاب"],
"C7PKTv": ["منتخب تبصرے چیٹ میں بھیجیں"],
@@ -1275,6 +1281,7 @@
"وہ GitHub اکاؤنٹ سنبھالیں جو OpenKnowledge آپ کی ریپازٹریز براؤز اور مطابق کرنے کے لیے استعمال کرتا ہے۔"
],
"E7BhZn": ["خالی نوٹ"],
+ "E8NbNG": ["ورک ٹریز لوڈ نہیں ہو سکیں۔"],
"E91VZY": ["نئی ونڈو میں کھولیں"],
"E9bKSA": ["بنایا جا رہا ہے"],
"E9gh86": ["آپ زیادہ سے زیادہ ", ["MAX_ATTACHMENTS"], " تصاویر منسلک کر سکتے ہیں۔"],
@@ -1399,6 +1406,7 @@
],
"FCKppt": ["اینڈ پوائنٹ"],
"FCMaBz": ["کون سی مہارت"],
+ "FCS8de": ["بیرونی"],
"FCxvG5": ["پہلا آئٹم"],
"FDBwmS": ["فولڈر کھولیں…"],
"FEK4oC": [
@@ -1666,6 +1674,7 @@
"ICoNYz": ["آپ اسے ترتیبات میں بھی سنبھال سکتے ہیں۔"],
"IFALcX": [["field"], " کی تفصیل"],
"IFezUv": ["آڈٹ مکمل نہیں ہو سکا۔ دوبارہ کوشش کریں۔"],
+ "IIgshV": ["مقفل"],
"IInnZo": ["تصادم"],
"IKoTAC": ["بند ہی رکھیں"],
"IMLUBh": ["رنگ کی قدر درست نہیں"],
@@ -2266,6 +2275,9 @@
"PVSwOe": ["رخ بدلا جا رہا ہے — موجودہ عمل کے رکنے کا انتظار…"],
"PVUn_c": ["فولڈر کھولیں"],
"PVggyD": ["Frontmatter اسکیماز"],
+ "PW-5kK": [
+ "یہ برانچ OpenKnowledge سیٹ اپ پاتھ کو ورک ٹری سے باہر بھیجتی ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+ ],
"PWh9Ii": ["تبدیلیاں لاگو کریں"],
"PWqtgd": ["چیٹ لوڈ ہو رہی ہے"],
"PXaT32": ["سرور نے نامکمل اسکل ٹارگٹس جواب لوٹایا۔"],
@@ -2347,6 +2359,9 @@
"QQghPu": ["Claude Desktop میں نصب کریں"],
"QR5SP1": ["ٹیمپلیٹ بنایا"],
"QRSdsO": ["انڈیکسنگ درخواست کا ٹائم آؤٹ (سیکنڈ)"],
+ "QSH_Sn": [
+ "اس برانچ میں یہ OpenKnowledge پروجیکٹ موجود نہیں ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+ ],
"QVk3SK": ["یہ فائل آنے والی برانچ پر حذف کر دی گئی تھی (modify-delete تنازع)۔"],
"QWdKwH": ["منتقل کریں"],
"QYTOaN": ["آپ اسے بعد میں <0>ترتیبات ← مطابقت پذیری</0> میں بدل سکتے ہیں۔"],
@@ -3357,6 +3372,7 @@
"bGa3Fk": ["فائل اپ لوڈ ہو رہی ہے"],
"bH382I": ["اس HTML میں ترمیم کریں — پیش منظر براہِ راست تازہ ہوتا ہے۔"],
"bKt9Jk": ["کوئی فعال یا حالیہ OpenKnowledge پروجیکٹ نہیں ملا۔"],
+ "bRyLwy": [["0"], " پر علیحدہ"],
"bSD4im": ["ورک ٹریز اور برانچیں تلاش کریں"],
"bS_boY": ["موجودہ مماثلت تبدیل کریں"],
"bUUVED": ["اثاثہ"],
@@ -3969,6 +3985,7 @@
"hDEaQu": ["OpenKnowledge کو اپنے استعمال کے دیگر ٹولز سے منسلک کریں۔"],
"hDKtoF": [["diffHrs"], " گھنٹے پہلے"],
"hDoLrm": [["projectName"], " کو حالیہ پروجیکٹس سے ہٹائیں"],
+ "hE33RG": ["کوئی ورک ٹری نہیں ملی۔"],
"hFmYGU": ["منسلک تھیم فائلوں کی معاونت نہیں ہے"],
"hGmuTc": ["#", ["tagDocsName"], " سے ٹیگ شدہ دستاویزات"],
"hHMv6l": ["بلاک حذف کریں"],
@@ -4123,6 +4140,7 @@
"ij-Elv": ["تصویر کا پیش منظر"],
"ijLc3m": ["بلٹ فہرست"],
"ikSw6W": ["نیچے منتقل کر دیا گیا۔"],
+ "ikk3no": ["اس ریپوزٹری کے OpenKnowledge ورک ٹریز فولڈر کے باہر"],
"ilodsp": ["ایجنٹس کو بغیر پوچھے OpenKnowledge استعمال کرنے دیں"],
"inJhKB": ["بدلیں اور محفوظ کریں"],
"ioMn4Z": ["ٹیمپلیٹ سے نیا…"],
@@ -4181,6 +4199,9 @@
"jKeGuZ": ["دستاویز، فولڈر، ٹیمپلیٹ، اسکل یا اثاثہ حذف کرتا ہے"],
"jL3gox": ["کوئی قدر منتخب کریں"],
"jLOL1H": ["شیئر کرنے کے لیے کسی برانچ پر جائیں۔"],
+ "jMb2SQ": [
+ "اس برانچ پر OpenKnowledge پروجیکٹ کا پاتھ پڑھا نہیں جا سکتا۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+ ],
"jO18NZ": ["میں کسی دوسرے ٹول پر جا رہا ہوں"],
"jPUPvG": [["filePath"], " کا تصادم حل نہیں ہو سکا۔"],
"jRAGrQ": ["ایجنٹس ترتیب دیں"],
@@ -4336,6 +4357,7 @@
"kpqWwG": ["یہ ", ["targetNoun"], " برانچ <0>", ["branch"], "</0> سے ہٹا دیا گیا۔"],
"ktspdq": ["جن فائلوں میں لِنٹ یا لنک کے مسائل ہوں انہیں کھولے بغیر رنگ اور نشان دیں۔"],
"ku0yLQ": ["صفحات پہلی بار اسی وقت ایمبیڈ ہوتے ہیں جب کسی تلاش کو ان کی ضرورت پڑے۔"],
+ "kvWZ9R": ["پرانی Git انٹری"],
"kwNS82": ["فائل درست کیے جانے تک یہ تھیم استعمال نہیں کی جا سکتی۔"],
"ky9Tuc": [["0"], " کا سورس ترمیم کریں"],
"kzpkcn": ["وہ ترمیم محفوظ نہیں ہو سکی۔"],
@@ -4684,11 +4706,13 @@
"oCZkaG": ["راستہ نقل کریں"],
"oJl7eO": ["نامعلوم جزو: ", ["componentName"], " — سورس نیچے قابلِ ترمیم ہے"],
"oKBnk5": ["مزید درخواستیں روکی گئیں۔"],
+ "oKE6QZ": ["Git نے اس ورک ٹری کو لاک کیا ہے، لیکن اسے اب بھی کھولا جا سکتا ہے۔"],
"oLyLo6": ["ٹرمینل کی بیک گراؤنڈ سروس نہیں چل رہی۔"],
"oP-FQW": ["اسکل کے اندر نسبتی پاتھ استعمال کریں"],
"oPU_4D": ["ایجنٹ فارغ ہونے پر بھیجیں"],
"oPbSBQ": ["کسی دستاویز یا فولڈر کا قابلِ اشتراک لنک بناتا ہے"],
"oQA-cA": ["مکمل راستہ"],
+ "oQubcL": ["اس ریپوزٹری کے OpenKnowledge ورک ٹریز فولڈر کے اندر"],
"oS1YpJ": ["پروجیکٹ نیویگیٹر کھولیں۔"],
"oVW7VD": ["اس پروجیکٹ میں نصب ہوگا"],
"oWsZk8": ["غائب صفحہ ", ["target"], " بنائیں"],
@@ -4752,6 +4776,7 @@
"pMPnZv": [["deleted"], " مہارتیں حذف ہو گئیں"],
"pOo4Aa": ["سادہ متن"],
"pPiV8s": ["خودکار (کھینچیں اور پُش) فعال کریں"],
+ "pSF7TJ": ["اس چیک آؤٹ پاتھ کو پڑھا نہیں جا سکتا۔"],
"pSimwP": [["editor"], " ورژن کے لیے نیا نام"],
"pTPqMK": ["باڑ والا کوڈ بلاک بدلیں۔"],
"pTyA_t": ["ٹیگز"],
@@ -5060,6 +5085,9 @@
"snrVQ7": ["جانچ ناکام"],
"sq4WQH": [["0"], " کو روشن تھیم کے طور پر استعمال کریں"],
"sqUrlK": ["غور و فکر جاری ہے…"],
+ "sqgz2k": [
+ "OpenKnowledge اس پروجیکٹ کا سیٹ اپ مکمل نہیں کر سکا۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+ ],
"srdlOs": [
"خودکار مطابقت پذیری روکی گئی ہے: آپ کو اس ریپازٹری میں پُش کرنے کی اجازت نہیں۔ اپ ڈیٹس ملتے رہنے کے لیے خودکار (صرف کھینچیں) پر جائیں۔"
],
@@ -5124,7 +5152,6 @@
"t_YqKh": ["ہٹائیں"],
"tc65fD": ["سب سے زیادہ نصب شدہ"],
"tcjTlU": ["ابتدائی پیکس"],
- "teD0H9": ["اس برانچ کے لیے ورک ٹری نہیں کھل سکا۔"],
"teFjfG": ["ابھی کوئی ایجنٹ ترتیب نہیں دیا گیا — بھیجنے کے مینو سے ایک منتخب کریں۔"],
"ten9en": ["حالیہ پروجیکٹ"],
"tfDRzk": ["محفوظ کریں"],
@@ -5220,6 +5247,7 @@
"uAQUqI": ["حالت"],
"uA_jXp": ["برانچ بدلیں اور تازہ کریں"],
"uBAxNB": ["ایڈیٹر"],
+ "uCZNXY": ["یہ ورک ٹری اب دستیاب نہیں ہے۔"],
"uCaIdy": [
"GitHub کا سائن اِن غائب یا میعاد ختم ہے۔ مطابقت پذیری جاری رکھنے کے لیے دوبارہ منسلک ہوں۔"
],
@@ -5427,6 +5455,7 @@
"wHZ58m": ["AI ", ["displayName"], " Desktop کے ساتھ کھولیں"],
"wJijgU": ["مقام"],
"wJo9oS": ["تلاش بند کریں"],
+ "wKJo7h": ["اس چیک آؤٹ پاتھ پر OpenKnowledge پروجیکٹ موجود نہیں ہے۔"],
"wQp1V3": ["<0>", ["src"], "</0> کا مرر"],
"wQvvZY": ["مہارت کی نئی فائل"],
"wRni1Z": ["Slidev بند کریں"],
@@ -5454,6 +5483,7 @@
"wbpoGe": ["OpenKnowledge اسکل انسٹال نہیں ہو سکی: ", ["message"]],
"wbv9xO": ["نیا پروجیکٹ بنائیں"],
"wc54KE": ["آزمایا جا رہا ہے…"],
+ "wcZNHh": ["Git نے اس ورک ٹری کو قابلِ حذف نشان زد کیا ہے۔"],
"wcfO9r": ["ابھی کوئی بگ رپورٹ نہیں۔"],
"wckWOP": ["انتظام کریں"],
"wdRxTD": ["لاگو کیا جا رہا ہے…"],
@@ -5474,6 +5504,7 @@
],
"wndeIl": ["پروجیکٹ کی سطح کے وہ صفحات جن کے گراف میں نہ آنے والے اور نہ جانے والے کنارے ہیں۔"],
"wqD3pI": [["0"], " میں سے ", ["failed"], " تبصرے اپ ڈیٹ نہیں ہو سکے۔"],
+ "wrdxmT": ["پروجیکٹ موجود نہیں"],
"ws5o1F": ["جانچا گیا: ", ["0"]],
"wsLj3t": [
"اس فولڈر میں پہلے سے ایسا کوڈ موجود ہے جو Open Knowledge نے نہیں لکھا اور یہی اعتماد ",
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 5d8cbb77a..4f232d799 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, one {# مزید خصوصیت کی تبدیلی نہی
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, one {ورک ٹری} other {ورک ٹریز}}"
+msgstr "{openedWorktreeCount, plural, one {ورک ٹری} other {ورک ٹری}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1343,7 +1343,7 @@ msgstr "<0>ترمیم شدہ</0> کا نشان ان قواعد کو ظاہر ک
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "{shareBranch} نام کی برانچ پہلے سے موجود ہے۔ اس کے بجائے سوئچر سے اس کا ورک ٹری کھولیں۔"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "اس نام کی برانچ پہلے سے موجود ہے۔ اس کے بجائے سوئچر سے اس کا ورک ٹری کھولیں۔"
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "ایک سطر جس میں فٹ نوٹ<0><1>[1]</1></0> اور نیچے دکھائی گئی تعریف ہے۔"
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "اس ریپازٹری کا ایک منسلک ورک ٹری"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "ایک منسلک ورک ٹری جس کا مقام لوڈ نہیں ہو سکا"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "عنوان، تفصیل، ٹیگز — کوئی بھی چیز جو اس
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch} کے لیے ورک ٹری فولڈر پہلے سے موجود ہے۔"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "اس برانچ کے لیے ورک ٹری فولڈر پہلے سے موجود ہے۔"
@@ -4072,7 +4072,7 @@ msgstr "ٹیمپلیٹ نہیں بن سکا: {error}"
msgid "Couldn't create the report"
msgstr "رپورٹ نہیں بن سکی"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "ورک ٹری نہیں بن سکا۔ کوئی مختلف نام آزمائیں۔"
@@ -4201,6 +4201,10 @@ msgstr "OpenKnowledge مہارتیں لوڈ نہیں ہو سکیں۔ دوبار
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "ورژن کا پیش منظر لوڈ نہیں ہو سکا۔ آپ اب بھی نیچے سے حل کا طریقہ منتخب کر سکتے ہیں۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "ورک ٹریز لوڈ نہیں ہو سکیں۔"
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "آپ کے ایجنٹس لوڈ نہیں ہو سکے۔"
@@ -4244,10 +4248,6 @@ msgstr "«{name}» نہیں کھل سکی: {0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "{0} ترمیم کے لیے نہیں کھل سکا: {1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "اس برانچ کے لیے ورک ٹری نہیں کھل سکا۔"
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "دستاویز نہیں کھل سکی"
@@ -5034,6 +5034,11 @@ msgstr "تفصیل کے ٹوکنز"
msgid "Design"
msgstr "ڈیزائن"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "{0} پر علیحدہ"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "علیحدہ HEAD"
@@ -5812,7 +5817,7 @@ msgstr "ریپازٹری کا URL یا owner/repo درج کریں"
msgid "Enter a title for this template."
msgstr "اس ٹیمپلیٹ کے لیے عنوان درج کریں۔"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "برانچ کا درست نام درج کریں (کوئی خالی جگہ نہیں، شروع میں نقطہ نہیں، «..» نہیں)۔"
@@ -5985,6 +5990,10 @@ msgstr "کیا اس پروجیکٹ کو نیٹ ورک پر ایکسپوز کیا
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "ایکسپوز کرنا ایک مقررہ پورٹ طے کر دیتا ہے تاکہ دوبارہ شروع ہونے پر ٹنل کا ہدف مستحکم رہے۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "بیرونی"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git اور PRs"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git اس فولڈر کو ٹریک نہیں کر سکتا — یہ خالی ہے یا اس میں صرف نظر انداز شدہ فائلیں ہیں۔ جب تک آپ کوئی ٹریک شدہ دستاویز شامل نہ کریں لنک کام نہیں کرے گا۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git نے اس ورک ٹری کو لاک کیا ہے، لیکن اسے اب بھی کھولا جا سکتا ہے۔"
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "Git کی شناخت مقرر نہیں — کمٹس طے شدہ مصنف استعمال کرتے ہیں۔ اپنی شناخت مقرر کریں تاکہ ساتھی آپ کا نام دیکھیں۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git نے اس ورک ٹری کو قابلِ حذف نشان زد کیا ہے۔"
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git ضم کرنے کا اصول"
@@ -6787,7 +6804,7 @@ msgstr "Git ضم کرنے کا اصول"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "اس ریپازٹری کے لیے Git کو {tool} درکار ہے، مگر یہ نصب نہیں ہے یا نہیں مل سکا۔ اسے نصب کریں، پھر دوبارہ کوشش کریں۔"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git کو ایک معاون ٹول (جیسے git-lfs) درکار ہے جو نصب نہیں ہے یا نہیں مل سکا۔ اسے نصب کریں، پھر دوبارہ کوشش کریں۔"
@@ -7580,6 +7597,10 @@ msgstr "نیچے قطار داخل کریں"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "CodeMirror کے طے شدہ کی میپ کے ذریعے سورس ایڈیٹر کی سطریں داخل کریں، حذف کریں، منتقل کریں، نقل کریں اور کھسکائیں۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "اس ریپوزٹری کے OpenKnowledge ورک ٹریز فولڈر کے اندر"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "AI کے لیے ہدایت"
msgid "Integrations"
msgstr "انضمامات"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "اندرونی"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "رنگ کی قدر درست نہیں"
@@ -8292,6 +8317,10 @@ msgstr "چیٹ لوڈ ہو رہی ہے"
msgid "Loading timeline history"
msgstr "ٹائم لائن کی تاریخ لوڈ ہو رہی ہے"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "ورک ٹریز لوڈ ہو رہی ہیں…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "آپ کی رپورٹس لوڈ ہو رہی ہیں"
@@ -8344,6 +8373,10 @@ msgstr "صرف مقامی کی درخواست کی گئی تھی، مگر کوئ
msgid "Location"
msgstr "مقام"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "مقفل"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "لاگز اور سسٹم کی معلومات"
@@ -9520,6 +9553,10 @@ msgstr "ابھی کوئی ٹیمپلیٹ نہیں۔ اس فولڈر کی نئی
msgid "No workspace"
msgstr "کوئی ورک اسپیس نہیں"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "کوئی ورک ٹری نہیں ملی۔"
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "کوئی نہیں"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge نے پروجیکٹ کی جانچ کی"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge کو اس مشین پر یہ ایجنٹ نہیں ملا۔"
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge اس پروجیکٹ کا سیٹ اپ مکمل نہیں کر سکا۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge .ok/local/config.yml میں terminal.shell نہیں پڑھ سکا۔ اس کے بجائے دستیاب Windows شیل استعمال کیا جا رہا ہے۔"
@@ -10491,6 +10532,10 @@ msgstr "خاکہ"
msgid "Outside any block"
msgstr "کسی بھی بلاک سے باہر"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "اس ریپوزٹری کے OpenKnowledge ورک ٹریز فولڈر کے باہر"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "اس دائرے سے باہر جسے Open Knowledge کمٹ کرتا ہے۔"
@@ -10689,6 +10734,10 @@ msgstr "راستہ پروجیکٹ سے باہر جاتا ہے"
msgid "Path suggestions"
msgstr "راستے کی تجاویز"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "پاتھ پڑھا نہیں جا سکتا"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "پیٹرن (ریگیکس)"
@@ -11014,6 +11063,10 @@ msgstr "پروجیکٹ کا فولڈر بن گیا، مگر git init ناکام
msgid "Project MCP server"
msgstr "پروجیکٹ MCP سرور"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "پروجیکٹ موجود نہیں"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "پروجیکٹ کا نام"
@@ -13548,6 +13601,10 @@ msgstr "فہرست آئٹم تقسیم کریں"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "منتخب اقتباس کو ایجنٹ پینل میں تیار رکھیں، مزید لکھ کر بھیجنے کے لیے۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "پرانی Git انٹری"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "GitHub پر ہمیں ستارہ دیں"
@@ -14133,8 +14190,8 @@ msgstr "رائے دینے کا شکریہ!"
msgid "Thanks for the report!"
msgstr "رپورٹ کا شکریہ!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "وہ برانچ پہلے سے کسی اور ورک ٹری میں کھلی ہے۔"
@@ -14331,6 +14388,18 @@ msgstr "وہ ماڈل شناخت جو آپ کا اینڈ پوائنٹ فراہم
msgid "the open agent"
msgstr "کھلا ہوا ایجنٹ"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "اس چیک آؤٹ پاتھ پر OpenKnowledge پروجیکٹ موجود نہیں ہے۔"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "اس برانچ پر OpenKnowledge پروجیکٹ کا پاتھ پڑھا نہیں جا سکتا۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "اس برانچ پر OpenKnowledge پروجیکٹ کا پاتھ ورک ٹری سے باہر جاتا ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge سرور نے جواب دینے میں بہت وقت لیا، اور ممکن ہے تبدیلی پھر بھی لاگو ہو چکی ہو۔ دوبارہ کوشش کرنے سے پہلے ایجنٹ سے تصدیق کرنے کو کہیں۔"
@@ -14694,14 +14763,26 @@ msgstr "یہ ایجنٹ {0} کے ذریعے چلتا ہے، جو نصب نہیں
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "یہ پیک کی {packSkillCount, plural, one {# مہارت} other {# مہارتیں}} بھی انسٹال کرتا ہے۔"
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "اس برانچ میں یہ OpenKnowledge پروجیکٹ موجود نہیں ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "یہ برانچ یہاں چیک آؤٹ ہے:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "یہ برانچ OpenKnowledge سیٹ اپ پاتھ کو ورک ٹری سے باہر بھیجتی ہے۔ ورک ٹری بن گئی، لیکن کھولی نہیں گئی۔"
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "یہ ترتیبات > AI ٹولز اور CLI میں مقرر کیا جا سکتا ہے"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "اس چیک آؤٹ پاتھ کو پڑھا نہیں جا سکتا۔"
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "اس کمانڈ میں پوشیدہ حروف ہیں جن کی وجہ سے یہ اصل میں چلنے والی چیز سے مختلف دکھائی دے سکتی ہے۔ انہیں یہاں ⟨U+…⟩ کی صورت میں دکھایا گیا ہے۔"
@@ -14990,8 +15071,8 @@ msgstr "یہ {path} کو مستقل طور پر ہٹا دیتا ہے۔ جو ای
msgid "This project"
msgstr "یہ پروجیکٹ"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "اس پروجیکٹ میں ابھی تک کوئی کمٹ نہیں ہے، اس لیے worktree کی بنیاد بنانے کے لیے کوئی برانچ نہیں ہے۔ پہلا کمٹ کریں، پھر دوبارہ کوشش کریں۔"
@@ -15014,8 +15095,8 @@ msgstr "یہ پروجیکٹ OpenKnowledge کا ایک مختلف اور غیر
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "یہ پروجیکٹ OpenKnowledge کا پرانا ورژن (v{0}) چلا رہا ہے، اس ایپ (v{1}) سے۔"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "یہ پروجیکٹ git ریپازٹری نہیں ہے، اس لیے ورک ٹریز دستیاب نہیں۔"
@@ -15122,6 +15203,10 @@ msgstr "اس کا عام طور پر مطلب ان میں سے کوئی ایک
msgid "This window can't store a token — open Settings from the main app window."
msgstr "یہ ونڈو ٹوکن محفوظ نہیں کر سکتی — ایپ کی مرکزی ونڈو سے ترتیبات کھولیں۔"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "یہ ورک ٹری اب دستیاب نہیں ہے۔"
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "سمیٹا جا رہا ہے…"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 74573742e..b2fcc6add 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -221,6 +221,7 @@
"2CHoQv": ["强制重新加载"],
"2Ce6hp": ["移动过去"],
"2D1x3Y": ["应用并重启项目服务器"],
+ "2EcUjH": ["内部"],
"2FYpfJ": ["更多"],
"2G-56b": ["更新 markdownlint 规则失败"],
"2GT3Hf": ["全局"],
@@ -267,6 +268,7 @@
"3-1BY2": ["该终端会话已不可用。"],
"322lyb": ["突出显示提示、警告和备注。"],
"32TTpa": ["就此报告发送邮件给支持团队"],
+ "33FYnv": ["路径无法读取"],
"34qyH5": ["无法连接到服务器"],
"36WXSC": ["无法删除模板:", ["error"]],
"36aWJD": ["来 Discord 加入我们"],
@@ -308,7 +310,6 @@
"3SZrdj": ["检查更新…"],
"3TSz9S": ["最小化"],
"3Uuuft": ["来自 ", ["0"], " 的报告"],
- "3UzaS-": ["此仓库的一个链接 worktree"],
"3V94ia": ["无法发送你的评论——工作区尚未就绪。"],
"3VbwPp": ["在浏览器中打开 ", ["keyName"]],
"3VsNTI": ["正在加载文档"],
@@ -503,6 +504,7 @@
"636K3K": ["删除相邻的标记块"],
"64sesb": ["标注框用于突出关键信息。"],
"65Ea2s": ["公开时会固定一个端口,使隧道的目标在重启后保持稳定。"],
+ "66JlOb": ["无法加载位置的链接工作树"],
"67Dpmh": ["斜杠命令建议"],
"67f-3g": ["副本创建成功,但侧边栏可能不是最新的——请刷新以重新同步"],
"69E1Pq": [
@@ -585,6 +587,7 @@
"78G7R3": ["按 JSON Schema 文件校验文档的 frontmatter,并用 glob 限定适用的文档集。"],
"7Ag-Xu": ["询问 ", ["agentName"], ",", ["hint"]],
"7Bj3x9": ["失败"],
+ "7C9JcA": ["此分支中的 OpenKnowledge 项目路径位于工作树之外。工作树已创建,但未打开。"],
"7FA2iI": ["无法读取等待发送的评论——什么都没有发送。"],
"7FamGZ": ["跳转到行"],
"7Fkcej": ["+ 添加 ", ["addChildName"]],
@@ -817,7 +820,7 @@
"AIn2Yv": [["displayName"], " CLI,", ["hint"]],
"AItsE5": ["在那里打开"],
"AJ7_B2": ["创建新主题"],
- "AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["worktree"], "other": ["worktree"] }]],
"ALhMYW": ["终端"],
"AMU00p": [
"两个版本完全相同。选择“采用当前”会让 OpenKnowledge 的保护保持开启,因此再次保存较旧的版本仍会被拒绝。选择“采用传入”会关闭该保护。"
@@ -944,6 +947,7 @@
"C0Ciaj": ["已作为“", ["0"], "”导入——名称“", ["1"], "”已被占用。"],
"C0hoX6": ["始终包含"],
"C2abof": ["未跟踪"],
+ "C37ssn": ["正在加载工作树…"],
"C3Zc44": ["探索技能"],
"C62P6b": ["编辑器选区"],
"C7PKTv": ["把勾选的评论发送到对话"],
@@ -1097,6 +1101,7 @@
"E5WeIy": ["重新打开最近关闭的那个编辑器标签页。"],
"E6lrpp": ["管理 OpenKnowledge 用来浏览和同步你的仓库的 GitHub 账户。"],
"E7BhZn": ["空白笔记"],
+ "E8NbNG": ["无法加载工作树。"],
"E91VZY": ["在新窗口中打开"],
"E9bKSA": ["正在创建"],
"E9gh86": ["你最多可以附加 ", ["MAX_ATTACHMENTS"], " 张图片。"],
@@ -1207,6 +1212,7 @@
"FCAcjR": ["在 OpenKnowledge 内部停靠运行一个真实终端,起始目录为这个项目的文件夹。"],
"FCKppt": ["端点"],
"FCMaBz": ["哪个技能"],
+ "FCS8de": ["外部"],
"FCxvG5": ["第一项"],
"FDBwmS": ["打开文件夹…"],
"FEK4oC": [
@@ -1416,6 +1422,7 @@
"ICoNYz": ["你也可以在「设置」中管理这一项。"],
"IFALcX": [["field"], " 的描述"],
"IFezUv": ["审查未能完成。请重试。"],
+ "IIgshV": ["已锁定"],
"IInnZo": ["冲突"],
"IKoTAC": ["保持关闭"],
"IMLUBh": ["无效的颜色值"],
@@ -1943,6 +1950,7 @@
"PVSwOe": ["正在改向——等待当前运行停止…"],
"PVUn_c": ["打开文件夹"],
"PVggyD": ["frontmatter 架构"],
+ "PW-5kK": ["此分支将 OpenKnowledge 设置路径重定向到工作树之外。工作树已创建,但未打开。"],
"PWh9Ii": ["应用更改"],
"PWqtgd": ["正在加载对话"],
"PXaT32": ["服务器返回的技能目标响应不完整。"],
@@ -2011,6 +2019,7 @@
"QQghPu": ["安装到 Claude Desktop"],
"QR5SP1": ["已创建模板"],
"QRSdsO": ["索引请求超时(秒)"],
+ "QSH_Sn": ["此分支不包含这个 OpenKnowledge 项目。工作树已创建,但未打开。"],
"QVk3SK": ["此文件已在传入分支中删除(modify-delete 冲突)。"],
"QWdKwH": ["移动"],
"QYTOaN": ["之后可以在<0>「设置 → 同步」</0>中更改。"],
@@ -2882,6 +2891,7 @@
"bGa3Fk": ["正在上传文件"],
"bH382I": ["编辑这段 HTML——预览会实时更新。"],
"bKt9Jk": ["没有找到活跃或最近的 OpenKnowledge 项目。"],
+ "bRyLwy": ["在 ", ["0"], " 处分离"],
"bSD4im": ["搜索 worktree 和分支"],
"bS_boY": ["替换当前匹配项"],
"bUUVED": ["资源"],
@@ -3394,6 +3404,7 @@
"hDEaQu": ["把 OpenKnowledge 与你使用的其他工具连接起来。"],
"hDKtoF": [["diffHrs"], " 小时前"],
"hDoLrm": ["把 ", ["projectName"], " 从最近的项目中移除"],
+ "hE33RG": ["未找到工作树。"],
"hFmYGU": ["不支持链接的主题文件"],
"hGmuTc": ["带 #", ["tagDocsName"], " 标签的文档"],
"hHMv6l": ["删除块"],
@@ -3533,6 +3544,7 @@
"ij-Elv": ["图像预览"],
"ijLc3m": ["无序列表"],
"ikSw6W": ["已下移。"],
+ "ikk3no": ["位于此仓库的 OpenKnowledge 工作树文件夹外"],
"ilodsp": ["让智能体无需询问即可使用 OpenKnowledge"],
"inJhKB": ["替换并保存"],
"ioMn4Z": ["从模板新建…"],
@@ -3581,6 +3593,7 @@
"jKeGuZ": ["删除文档、文件夹、模板、技能或资源"],
"jL3gox": ["选择一个值"],
"jLOL1H": ["请切换到某个分支后再共享。"],
+ "jMb2SQ": ["无法读取此分支中的 OpenKnowledge 项目路径。工作树已创建,但未打开。"],
"jO18NZ": ["我要换用另一个工具"],
"jPUPvG": ["无法解决 ", ["filePath"], " 的冲突。"],
"jRAGrQ": ["配置智能体"],
@@ -3709,6 +3722,7 @@
"kpqWwG": ["这个", ["targetNoun"], "已从 <0>", ["branch"], "</0> 分支中移除。"],
"ktspdq": ["为存在检查或链接问题的文件着色并加标记,无需打开它们。"],
"ku0yLQ": ["页面会在搜索第一次需要它们时生成嵌入向量。"],
+ "kvWZ9R": ["过期的 Git 条目"],
"kwNS82": ["修复文件后才能使用此主题。"],
"ky9Tuc": ["编辑 ", ["0"], " 源码"],
"kzpkcn": ["无法保存那次编辑。"],
@@ -3994,11 +4008,13 @@
"oCZkaG": ["复制路径"],
"oJl7eO": ["未知组件:", ["componentName"], "——可在下方编辑源码"],
"oKBnk5": ["还有更多请求被拦截。"],
+ "oKE6QZ": ["Git 已锁定此工作树,但仍可打开。"],
"oLyLo6": ["终端后台服务未在运行。"],
"oP-FQW": ["使用技能内部的相对路径"],
"oPU_4D": ["在智能体空闲时发送"],
"oPbSBQ": ["为文档或文件夹创建可分享的链接"],
"oQA-cA": ["完整路径"],
+ "oQubcL": ["位于此仓库的 OpenKnowledge 工作树文件夹内"],
"oS1YpJ": ["打开项目导航器。"],
"oVW7VD": ["安装到此项目"],
"oWsZk8": ["创建缺失的页面 ", ["target"]],
@@ -4056,6 +4072,7 @@
"pMPnZv": ["已删除 ", ["deleted"], " 个技能"],
"pOo4Aa": ["纯文本"],
"pPiV8s": ["启用自动(拉取和推送)"],
+ "pSF7TJ": ["无法读取此检出路径。"],
"pSimwP": [["editor"], " 版本的新名称"],
"pTPqMK": ["切换围栏代码块。"],
"pTyA_t": ["标签"],
@@ -4327,6 +4344,7 @@
"snrVQ7": ["探测失败"],
"sq4WQH": ["把 ", ["0"], " 用作浅色主题"],
"sqUrlK": ["正在沉思…"],
+ "sqgz2k": ["OpenKnowledge 无法完成此项目的设置。工作树已创建,但未打开。"],
"srdlOs": ["自动同步已暂停:你没有向此仓库推送的权限。切换到自动(仅拉取)以继续接收更新。"],
"ssk6rl": ["技能自己的文件夹(", ["path"], ")——其他位置从这里复制或链接"],
"ssuwjF": ["分支"],
@@ -4379,7 +4397,6 @@
"t_YqKh": ["移除"],
"tc65fD": ["安装量最高"],
"tcjTlU": ["入门包"],
- "teD0H9": ["无法为该分支打开 worktree。"],
"teFjfG": ["还没有配置任何智能体——请从发送菜单中选一个。"],
"ten9en": ["最近的项目"],
"tfDRzk": ["保存"],
@@ -4469,6 +4486,7 @@
"uAQUqI": ["状态"],
"uA_jXp": ["切换并更新分支"],
"uBAxNB": ["编辑器"],
+ "uCZNXY": ["此工作树已不可用。"],
"uCaIdy": ["GitHub 登录缺失或已过期。请重新连接以继续同步。"],
"uDlyqd": [
"记录这个仓库的架构:创建一页总览,链接到每个主要模块的页面,说明各自的职责和入口。"
@@ -4623,6 +4641,7 @@
"wHZ58m": ["用 AI ", ["displayName"], " Desktop 打开"],
"wJijgU": ["位置"],
"wJo9oS": ["关闭查找"],
+ "wKJo7h": ["此检出路径中缺少 OpenKnowledge 项目。"],
"wQp1V3": ["<0>", ["src"], "</0> 的镜像"],
"wQvvZY": ["新建技能文件"],
"wRni1Z": ["禁用 Slidev"],
@@ -4644,6 +4663,7 @@
"wbpoGe": ["无法安装 OpenKnowledge 技能:", ["message"]],
"wbv9xO": ["新建项目"],
"wc54KE": ["正在试用…"],
+ "wcZNHh": ["Git 将此工作树标记为可清理。"],
"wcfO9r": ["还没有错误报告。"],
"wckWOP": ["管理"],
"wdRxTD": ["正在应用…"],
@@ -4662,6 +4682,7 @@
"wlwXUk": ["你选择了 ~/Downloads。那里的文件通常是临时的——建议改用一个稳定的文件夹。"],
"wndeIl": ["既无入链又无出链的项目级页面。"],
"wqD3pI": [["0"], " 条评论中有 ", ["failed"], " 条无法更新。"],
+ "wrdxmT": ["项目缺失"],
"ws5o1F": ["检查者:", ["0"]],
"wsLj3t": [
"该文件夹中已有并非 Open Knowledge 写入的代码,同一份信任会允许 ",
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index a80f685b1..b669d2006 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, other {另有 # 处属性改动未显示}}"
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, other {worktree}}"
+msgstr "{openedWorktreeCount, plural, one {worktree} other {worktree}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1343,7 +1343,7 @@ msgstr "<0>已修改</0>标记表示你的配置显式设置过的规则——
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "名为 {shareBranch} 的分支已存在。请从切换器中打开它的 worktree。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "同名分支已存在。请从切换器中打开它的 worktree。"
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "一行带脚注<0><1>[1]</1></0>的文字,定义显示在下方。"
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "此仓库的一个链接 worktree"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "无法加载位置的链接工作树"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "标题、描述、标签——任何能描述这个文件夹的信息。
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch} 的 worktree 文件夹已存在。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "该分支的 worktree 文件夹已存在。"
@@ -4072,7 +4072,7 @@ msgstr "无法创建模板:{error}"
msgid "Couldn't create the report"
msgstr "无法生成报告"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "无法创建 worktree。请换一个名字。"
@@ -4201,6 +4201,10 @@ msgstr "无法加载 OpenKnowledge 技能。请重试。"
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "无法加载该版本的预览。你仍然可以在下方选择如何解决。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "无法加载工作树。"
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "无法加载你的智能体。"
@@ -4244,10 +4248,6 @@ msgstr "无法打开“{name}”:{0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "无法打开 {0} 进行编辑:{1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "无法为该分支打开 worktree。"
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "无法打开文档"
@@ -5034,6 +5034,11 @@ msgstr "描述 token"
msgid "Design"
msgstr "设计"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "在 {0} 处分离"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "分离的 HEAD"
@@ -5812,7 +5817,7 @@ msgstr "请输入仓库 URL 或 owner/repo"
msgid "Enter a title for this template."
msgstr "请为这个模板输入标题。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "请输入有效的分支名(不能有空格、不能以点开头、不能包含 \"..\")。"
@@ -5985,6 +5990,10 @@ msgstr "要将此项目公开到网络吗?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "公开时会固定一个端口,使隧道的目标在重启后保持稳定。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "外部"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git 与 PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git 无法跟踪这个文件夹——它是空的,或者只包含被忽略的文件。在你添加一个受跟踪的文档之前,链接不会生效。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git 已锁定此工作树,但仍可打开。"
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "尚未设置 git 身份——提交会使用默认作者。设置你自己的身份,队友才能看到你的名字。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git 将此工作树标记为可清理。"
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git 合并规则"
@@ -6787,7 +6804,7 @@ msgstr "Git 合并规则"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git 在这个仓库中需要 {tool},但它未安装或找不到。请先安装再重试。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git 需要一个辅助工具(例如 git-lfs),但它未安装或找不到。请先安装再重试。"
@@ -7580,6 +7597,10 @@ msgstr "在下方插入行"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "通过 CodeMirror 的默认按键映射,在源码编辑器中插入、删除、移动、复制和缩进行。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "位于此仓库的 OpenKnowledge 工作树文件夹内"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "给 AI 的指令"
msgid "Integrations"
msgstr "集成"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "内部"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "无效的颜色值"
@@ -8292,6 +8317,10 @@ msgstr "正在加载对话"
msgid "Loading timeline history"
msgstr "正在加载时间线历史"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "正在加载工作树…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "正在加载你的报告"
@@ -8344,6 +8373,10 @@ msgstr "已请求仅本地,但未创建 git 仓库。等项目位于 git 仓
msgid "Location"
msgstr "位置"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "已锁定"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "日志与系统信息"
@@ -9520,6 +9553,10 @@ msgstr "还没有模板。添加一个,让这个文件夹中的新文档有个
msgid "No workspace"
msgstr "无工作区"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "未找到工作树。"
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "无"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge 检查了项目"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge 未在此设备上找到该智能体。"
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge 无法完成此项目的设置。工作树已创建,但未打开。"
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge 无法读取 .ok/local/config.yml 中的 terminal.shell,将改用可用的 Windows shell。"
@@ -10491,6 +10532,10 @@ msgstr "大纲"
msgid "Outside any block"
msgstr "不在任何块内"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "位于此仓库的 OpenKnowledge 工作树文件夹外"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "不在 Open Knowledge 的提交范围内。"
@@ -10689,6 +10734,10 @@ msgstr "路径解析结果在项目之外"
msgid "Path suggestions"
msgstr "路径建议"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "路径无法读取"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "模式(正则表达式)"
@@ -11014,6 +11063,10 @@ msgstr "项目文件夹已创建,但 git init 失败。请重试。"
msgid "Project MCP server"
msgstr "项目 MCP 服务器"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "项目缺失"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "项目名称"
@@ -13548,6 +13601,10 @@ msgstr "拆分列表项"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "把选中的内容放入智能体面板,随时可以补充并发送。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "过期的 Git 条目"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "在 GitHub 上给我们点个星"
@@ -14133,8 +14190,8 @@ msgstr "感谢你的反馈!"
msgid "Thanks for the report!"
msgstr "感谢你的报告!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "那个分支已经在另一个 worktree 中打开了。"
@@ -14331,6 +14388,18 @@ msgstr "你的端点提供的模型 id。它的向量维度会自动检测——
msgid "the open agent"
msgstr "已打开的智能体"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "此检出路径中缺少 OpenKnowledge 项目。"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "无法读取此分支中的 OpenKnowledge 项目路径。工作树已创建,但未打开。"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "此分支中的 OpenKnowledge 项目路径位于工作树之外。工作树已创建,但未打开。"
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge 服务器响应超时,更改可能已经生效。请让代理先确认,然后再重试。"
@@ -14694,14 +14763,26 @@ msgstr "这个智能体通过 {0} 运行,但它没有安装。Open Knowledge
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "这还会安装此入门包的 {packSkillCount, plural, one {# 项技能} other {# 项技能}}。"
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "此分支不包含这个 OpenKnowledge 项目。工作树已创建,但未打开。"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "这个分支已在以下位置检出:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "此分支将 OpenKnowledge 设置路径重定向到工作树之外。工作树已创建,但未打开。"
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "这可以在「设置 > AI 工具与 CLI」中配置"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "无法读取此检出路径。"
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "此命令包含隐藏字符,可能使其看起来与实际运行的内容不同。这些字符在此显示为 ⟨U+…⟩。"
@@ -14990,8 +15071,8 @@ msgstr "这会永久移除 {path}。在重新创建它,或者由上级文件
msgid "This project"
msgstr "本项目"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "此项目还没有任何提交,因此没有可作为 worktree 基础的分支。请先创建第一个提交,然后重试。"
@@ -15014,8 +15095,8 @@ msgstr "这个项目运行的 OpenKnowledge 版本与这个应用(v{0})不
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "这个项目运行的 OpenKnowledge 版本(v{0})比这个应用(v{1})旧。"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "这个项目不是 git 仓库,因此无法使用 worktree。"
@@ -15122,6 +15203,10 @@ msgstr "这通常意味着以下之一:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "这个窗口无法保存令牌——请从应用主窗口打开「设置」。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "此工作树已不可用。"
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "正在收拾…"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index 113a00457..312d78b50 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -223,6 +223,7 @@
"2CHoQv": ["強制重新載入"],
"2Ce6hp": ["移動過去"],
"2D1x3Y": ["套用並重新啟動專案伺服器"],
+ "2EcUjH": ["內部"],
"2FYpfJ": ["更多"],
"2G-56b": ["更新 markdownlint 規則失敗"],
"2GT3Hf": ["全域"],
@@ -269,6 +270,7 @@
"3-1BY2": ["此終端機工作階段已無法使用。"],
"322lyb": ["凸顯提示、警告和備註。"],
"32TTpa": ["就此回報寄郵件給支援團隊"],
+ "33FYnv": ["路徑無法讀取"],
"34qyH5": ["無法連上伺服器"],
"36WXSC": ["無法刪除範本:", ["error"]],
"36aWJD": ["來 Discord 加入我們"],
@@ -310,7 +312,6 @@
"3SZrdj": ["檢查更新…"],
"3TSz9S": ["最小化"],
"3Uuuft": ["來自 ", ["0"], " 的回報"],
- "3UzaS-": ["此儲存庫的一個連結 worktree"],
"3V94ia": ["無法傳送你的註解——工作區還沒準備好。"],
"3VbwPp": ["在瀏覽器中開啟 ", ["keyName"]],
"3VsNTI": ["正在載入文件"],
@@ -505,6 +506,7 @@
"636K3K": ["刪除相鄰的標記塊"],
"64sesb": ["標註框用於突顯關鍵資訊。"],
"65Ea2s": ["公開會鎖定一個固定連接埠,讓通道的目標在重新啟動後保持穩定。"],
+ "66JlOb": ["無法載入位置的連結工作樹"],
"67Dpmh": ["斜線指令建議"],
"67f-3g": ["副本已建立,但側邊欄可能不是最新的——請重新整理以重新同步"],
"69E1Pq": [".ok/local/config.yml 中的 terminal.shell 必須是字串,將改用可用的 Windows shell。"],
@@ -585,6 +587,7 @@
"78G7R3": ["依 JSON Schema 檔案驗證文件的 frontmatter,並用 glob 限定適用的文件集。"],
"7Ag-Xu": ["詢問 ", ["agentName"], ",", ["hint"]],
"7Bj3x9": ["失敗"],
+ "7C9JcA": ["此分支中的 OpenKnowledge 專案路徑位於工作樹之外。工作樹已建立,但未開啟。"],
"7FA2iI": ["無法讀取等著傳送的註解——什麼都沒有送出。"],
"7FamGZ": ["移至行"],
"7Fkcej": ["+ 新增 ", ["addChildName"]],
@@ -817,7 +820,7 @@
"AIn2Yv": [["displayName"], " CLI,", ["hint"]],
"AItsE5": ["在那裡開啟"],
"AJ7_B2": ["建立新主題"],
- "AKxFtn": [["openedWorktreeCount", "plural", { "other": ["worktree"] }]],
+ "AKxFtn": [["openedWorktreeCount", "plural", { "one": ["worktree"], "other": ["worktree"] }]],
"ALhMYW": ["終端機"],
"AMU00p": [
"兩個版本完全相同。選擇「採用目前」會讓 OpenKnowledge 的保護保持開啟,因此再次儲存較舊的版本仍會被拒絕。選擇「採用傳入」會關閉該保護。"
@@ -944,6 +947,7 @@
"C0Ciaj": ["已用「", ["0"], "」這個名稱匯入——名稱「", ["1"], "」已被占用。"],
"C0hoX6": ["一律包含"],
"C2abof": ["未追蹤"],
+ "C37ssn": ["正在載入工作樹…"],
"C3Zc44": ["探索技能"],
"C62P6b": ["編輯器選取範圍"],
"C7PKTv": ["將勾選的註解傳送到對話"],
@@ -1101,6 +1105,7 @@
"E5WeIy": ["重新開啟最近關閉的那個編輯器分頁。"],
"E6lrpp": ["管理 OpenKnowledge 用來瀏覽和同步你的儲存庫的那個 GitHub 帳戶。"],
"E7BhZn": ["空白筆記"],
+ "E8NbNG": ["無法載入工作樹。"],
"E91VZY": ["在新視窗中開啟"],
"E9bKSA": ["正在建立"],
"E9gh86": ["你最多可以附加 ", ["MAX_ATTACHMENTS"], " 張圖片。"],
@@ -1211,6 +1216,7 @@
"FCAcjR": ["在 OpenKnowledge 內部停靠執行一個真正的終端機,起始位置是這個專案的資料夾。"],
"FCKppt": ["端點"],
"FCMaBz": ["哪一個技能"],
+ "FCS8de": ["外部"],
"FCxvG5": ["第一項"],
"FDBwmS": ["開啟資料夾…"],
"FEK4oC": [
@@ -1424,6 +1430,7 @@
"ICoNYz": ["你也可以在「設定」中管理這一項。"],
"IFALcX": [["field"], " 的描述"],
"IFezUv": ["稽核未能完成。請再試一次。"],
+ "IIgshV": ["已鎖定"],
"IInnZo": ["衝突"],
"IKoTAC": ["維持關閉"],
"IMLUBh": ["無效的色彩值"],
@@ -1961,6 +1968,7 @@
"PVSwOe": ["正在改向——等待目前執行停止…"],
"PVUn_c": ["開啟資料夾"],
"PVggyD": ["frontmatter 結構描述"],
+ "PW-5kK": ["此分支將 OpenKnowledge 設定路徑重新導向到工作樹之外。工作樹已建立,但未開啟。"],
"PWh9Ii": ["套用變更"],
"PWqtgd": ["正在載入對話"],
"PXaT32": ["伺服器回傳的技能目標回應不完整。"],
@@ -2029,6 +2037,7 @@
"QQghPu": ["安裝到 Claude Desktop"],
"QR5SP1": ["已建立範本"],
"QRSdsO": ["索引請求逾時(秒)"],
+ "QSH_Sn": ["此分支不包含這個 OpenKnowledge 專案。工作樹已建立,但未開啟。"],
"QVk3SK": ["此檔案已在傳入分支中刪除(modify-delete 衝突)。"],
"QWdKwH": ["移動"],
"QYTOaN": ["之後可以在<0>「設定 → 同步」</0>中變更。"],
@@ -2900,6 +2909,7 @@
"bGa3Fk": ["正在上傳檔案"],
"bH382I": ["編輯這段 HTML——預覽會即時更新。"],
"bKt9Jk": ["找不到使用中或最近的 OpenKnowledge 專案。"],
+ "bRyLwy": ["在 ", ["0"], " 處分離"],
"bSD4im": ["搜尋 worktree 和分支"],
"bS_boY": ["取代目前的相符項"],
"bUUVED": ["資產"],
@@ -3416,6 +3426,7 @@
"hDEaQu": ["把 OpenKnowledge 和你用的其他工具連接起來。"],
"hDKtoF": [["diffHrs"], " 小時前"],
"hDoLrm": ["把 ", ["projectName"], " 從最近的專案中移除"],
+ "hE33RG": ["找不到工作樹。"],
"hFmYGU": ["不支援連結的主題檔案"],
"hGmuTc": ["標了 #", ["tagDocsName"], " 的文件"],
"hHMv6l": ["刪除區塊"],
@@ -3551,6 +3562,7 @@
"ij-Elv": ["圖片預覽"],
"ijLc3m": ["項目符號清單"],
"ikSw6W": ["已向下移動。"],
+ "ikk3no": ["位於此儲存庫的 OpenKnowledge 工作樹資料夾外"],
"ilodsp": ["讓代理不必先詢問就能使用 OpenKnowledge"],
"inJhKB": ["取代並儲存"],
"ioMn4Z": ["從範本新增…"],
@@ -3599,6 +3611,7 @@
"jKeGuZ": ["刪除文件、資料夾、範本、技能或資源"],
"jL3gox": ["選一個值"],
"jLOL1H": ["請切換到某個分支後再分享。"],
+ "jMb2SQ": ["無法讀取此分支中的 OpenKnowledge 專案路徑。工作樹已建立,但未開啟。"],
"jO18NZ": ["我要改用別的工具"],
"jPUPvG": ["無法解決 ", ["filePath"], " 的衝突。"],
"jRAGrQ": ["設定代理"],
@@ -3727,6 +3740,7 @@
"kpqWwG": ["這個", ["targetNoun"], "已經從 <0>", ["branch"], "</0> 分支移除了。"],
"ktspdq": ["為有檢查或連結問題的檔案上色並加上標記,不必開啟它們。"],
"ku0yLQ": ["頁面會在搜尋第一次需要它們的時候產生嵌入向量。"],
+ "kvWZ9R": ["過期的 Git 項目"],
"kwNS82": ["修正檔案後才能使用這個主題。"],
"ky9Tuc": ["編輯 ", ["0"], " 原始碼"],
"kzpkcn": ["無法儲存那次編輯。"],
@@ -4014,11 +4028,13 @@
"oCZkaG": ["複製路徑"],
"oJl7eO": ["未知的元件:", ["componentName"], "——可在下方編輯原始碼"],
"oKBnk5": ["還有更多要求被攔截。"],
+ "oKE6QZ": ["Git 已鎖定此工作樹,但仍可開啟。"],
"oLyLo6": ["終端機背景服務未在執行。"],
"oP-FQW": ["使用技能內部的相對路徑"],
"oPU_4D": ["在智慧體空閒時傳送"],
"oPbSBQ": ["為文件或資料夾建立可分享的連結"],
"oQA-cA": ["完整路徑"],
+ "oQubcL": ["位於此儲存庫的 OpenKnowledge 工作樹資料夾內"],
"oS1YpJ": ["開啟專案導覽器。"],
"oVW7VD": ["安裝到此專案"],
"oWsZk8": ["建立缺少的頁面 ", ["target"]],
@@ -4076,6 +4092,7 @@
"pMPnZv": ["已刪除 ", ["deleted"], " 個技能"],
"pOo4Aa": ["純文字"],
"pPiV8s": ["啟用自動(拉取與推送)"],
+ "pSF7TJ": ["無法讀取此簽出路徑。"],
"pSimwP": [["editor"], " 版本的新名稱"],
"pTPqMK": ["切換圍欄程式碼區塊。"],
"pTyA_t": ["標籤"],
@@ -4347,6 +4364,7 @@
"snrVQ7": ["偵測失敗"],
"sq4WQH": ["把 ", ["0"], " 用作淺色主題"],
"sqUrlK": ["沉思中…"],
+ "sqgz2k": ["OpenKnowledge 無法完成此專案的設定。工作樹已建立,但未開啟。"],
"srdlOs": ["自動同步已暫停:你沒有向此儲存庫推送的權限。切換到自動(僅拉取)以繼續接收更新。"],
"ssk6rl": ["技能自己的資料夾(", ["path"], ")——其他位置從這裡複製或連結"],
"ssuwjF": ["分支"],
@@ -4399,7 +4417,6 @@
"t_YqKh": ["移除"],
"tc65fD": ["安裝次數最多"],
"tcjTlU": ["入門套件"],
- "teD0H9": ["無法為那個分支開啟 worktree。"],
"teFjfG": ["還沒有設定任何代理——請從傳送選單中挑一個。"],
"ten9en": ["最近的專案"],
"tfDRzk": ["儲存"],
@@ -4489,6 +4506,7 @@
"uAQUqI": ["狀態"],
"uA_jXp": ["切換並更新分支"],
"uBAxNB": ["編輯器"],
+ "uCZNXY": ["此工作樹已無法使用。"],
"uCaIdy": ["GitHub 登入不存在或已過期。請重新連接以繼續同步。"],
"uDlyqd": [
"記錄這個儲存庫的架構:建立一頁總覽,連到每個主要模組的頁面,說明各自的職責和進入點。"
@@ -4645,6 +4663,7 @@
"wHZ58m": ["用 AI ", ["displayName"], " Desktop 開啟"],
"wJijgU": ["位置"],
"wJo9oS": ["關閉尋找"],
+ "wKJo7h": ["此簽出路徑缺少 OpenKnowledge 專案。"],
"wQp1V3": ["<0>", ["src"], "</0> 的鏡像"],
"wQvvZY": ["新增技能檔案"],
"wRni1Z": ["停用 Slidev"],
@@ -4668,6 +4687,7 @@
"wbpoGe": ["無法安裝 OpenKnowledge 技能:", ["message"]],
"wbv9xO": ["建立新專案"],
"wc54KE": ["試用中…"],
+ "wcZNHh": ["Git 將此工作樹標記為可清理。"],
"wcfO9r": ["還沒有錯誤回報。"],
"wckWOP": ["管理"],
"wdRxTD": ["套用中…"],
@@ -4686,6 +4706,7 @@
"wlwXUk": ["你選了 ~/Downloads。那裡的檔案通常是暫時的——建議改用一個穩定的資料夾。"],
"wndeIl": ["既沒有連入也沒有連出關係圖邊的專案層級頁面。"],
"wqD3pI": [["0"], " 則註解中有 ", ["failed"], " 則無法更新。"],
+ "wrdxmT": ["專案缺失"],
"ws5o1F": ["檢查者:", ["0"]],
"wsLj3t": [
"該資料夾中已有並非 Open Knowledge 寫入的程式碼,同一份信任會允許 ",
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 4abaf9753..4b6ef3d43 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -995,7 +995,7 @@ msgstr "{omitted, plural, other {另有 # 處屬性變更未顯示}}"
#: src/components/RecentProjectsMenu.tsx
msgid "{openedWorktreeCount, plural, one {worktree} other {worktrees}}"
-msgstr "{openedWorktreeCount, plural, other {worktree}}"
+msgstr "{openedWorktreeCount, plural, one {worktree} other {worktree}}"
#: src/components/acp/ThreadView.tsx
#: src/editor/use-composer-attachments.ts
@@ -1343,7 +1343,7 @@ msgstr "<0>已修改</0>標記代表你的設定明確設過的規則——直
msgid "A branch named {shareBranch} already exists. Open its worktree from the switcher instead."
msgstr "名為 {shareBranch} 的分支已存在。請改從切換器開啟它的 worktree。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A branch with that name already exists. Open its worktree from the switcher instead."
msgstr "同名的分支已存在。請改從切換器開啟它的 worktree。"
@@ -1393,8 +1393,8 @@ msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr "一行帶註腳<0><1>[1]</1></0>的文字,定義顯示在下方。"
#: src/components/RecentProjectsMenu.tsx
-msgid "A linked worktree of this repository"
-msgstr "此儲存庫的一個連結 worktree"
+msgid "A linked worktree whose location could not be loaded"
+msgstr "無法載入位置的連結工作樹"
#: src/components/ReportBugDialogBody.tsx
msgid "A memory snapshot from the crash, and the artifact that helps us most. It can contain document content and can't be redacted, so uncheck it if you'd rather not share it."
@@ -1511,7 +1511,7 @@ msgstr "標題、描述、標籤——任何能描述這個資料夾的資訊。
msgid "A worktree folder for {shareBranch} already exists."
msgstr "{shareBranch} 的 worktree 資料夾已存在。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "A worktree folder for that branch already exists."
msgstr "該分支的 worktree 資料夾已存在。"
@@ -4072,7 +4072,7 @@ msgstr "無法建立範本:{error}"
msgid "Couldn't create the report"
msgstr "無法建立回報"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Couldn't create the worktree. Try a different name."
msgstr "無法建立 worktree。請換一個名稱。"
@@ -4201,6 +4201,10 @@ msgstr "無法載入 OpenKnowledge 技能。請再試一次。"
msgid "Couldn't load the version preview. You can still choose how to resolve it below."
msgstr "無法載入這個版本的預覽。你仍然可以在下方選擇要怎麼解決。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Couldn't load worktrees."
+msgstr "無法載入工作樹。"
+
#: src/components/SessionsHost.tsx
msgid "Couldn't load your agents."
msgstr "無法載入你的智慧代理。"
@@ -4244,10 +4248,6 @@ msgstr "無法開啟「{name}」:{0}"
msgid "Couldn't open {0} for editing: {1}"
msgstr "無法開啟 {0} 進行編輯:{1}"
-#: src/components/RecentProjectsMenu.tsx
-msgid "Couldn't open a worktree for that branch."
-msgstr "無法為那個分支開啟 worktree。"
-
#: src/components/DocumentErrorBoundary.tsx
msgid "Couldn't open document"
msgstr "無法開啟文件"
@@ -5034,6 +5034,11 @@ msgstr "描述 token"
msgid "Design"
msgstr "設計"
+#. placeholder {0}: entry.headSha.slice(0, 8)
+#: src/components/RecentProjectsMenu.tsx
+msgid "Detached at {0}"
+msgstr "在 {0} 處分離"
+
#: src/components/SyncStatusBadge.tsx
msgid "detached HEAD"
msgstr "分離的 HEAD"
@@ -5812,7 +5817,7 @@ msgstr "請輸入儲存庫 URL 或 owner/repo"
msgid "Enter a title for this template."
msgstr "請為這個範本輸入標題。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Enter a valid branch name (no spaces, no leading dot, no \"..\")."
msgstr "請輸入有效的分支名稱(不能有空格、不能以點開頭、不能包含「..」)。"
@@ -5985,6 +5990,10 @@ msgstr "要將此專案公開到網路上嗎?"
msgid "Exposing pins a fixed port so the tunnel's target stays stable across restarts."
msgstr "公開會鎖定一個固定連接埠,讓通道的目標在重新啟動後保持穩定。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "external"
+msgstr "外部"
+
#: src/components/empty-state/CreatePromptComposer.tsx
#: src/components/handoff/AgentSplitButton.tsx
#: src/components/handoff/OpenInAgentContextSubmenu.tsx
@@ -6775,10 +6784,18 @@ msgstr "Git 與 PR"
msgid "Git can't track this folder — it's empty or contains only ignored files. The link won't work until you add a tracked document."
msgstr "Git 無法追蹤這個資料夾——它是空的,或者只有被忽略的檔案。在你加入一份被追蹤的文件之前,連結不會生效。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git has locked this worktree, but it can still be opened."
+msgstr "Git 已鎖定此工作樹,但仍可開啟。"
+
#: src/components/SyncStatusBadge.tsx
msgid "Git identity isn't set — commits use a default author. Set yours so teammates see your name."
msgstr "還沒設定 git 身分——提交會用預設作者。設定你自己的身分,隊友才看得到你的名字。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Git marks this worktree as prunable."
+msgstr "Git 將此工作樹標記為可清理。"
+
#: src/components/settings/LintingSection.tsx
msgid "Git merge rule"
msgstr "Git 合併規則"
@@ -6787,7 +6804,7 @@ msgstr "Git 合併規則"
msgid "Git needs {tool} for this repository, but it isn't installed or couldn't be found. Install it, then try again."
msgstr "Git 在這個儲存庫需要 {tool},但它沒有安裝或找不到。請先安裝再試一次。"
-#: src/components/NewWorktreeDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "Git needs a helper tool (such as git-lfs) that isn't installed or couldn't be found. Install it, then try again."
msgstr "Git 需要一個輔助工具(例如 git-lfs),但它沒有安裝或找不到。請先安裝再試一次。"
@@ -7580,6 +7597,10 @@ msgstr "在下方插入列"
msgid "Insert, delete, move, copy, and indent source editor lines through CodeMirror's default keymap."
msgstr "透過 CodeMirror 的預設按鍵對應,在原始碼編輯器中插入、刪除、移動、複製和縮排行。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Inside this repository's OpenKnowledge worktrees folder"
+msgstr "位於此儲存庫的 OpenKnowledge 工作樹資料夾內"
+
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AgentConnectionsSection.tsx
#: src/components/settings/IntegrationsSection.tsx
@@ -7775,6 +7796,10 @@ msgstr "給 AI 的指示"
msgid "Integrations"
msgstr "整合"
+#: src/components/RecentProjectsMenu.tsx
+msgid "internal"
+msgstr "內部"
+
#: src/components/settings/SavedThemesTiles.tsx
msgid "Invalid color value"
msgstr "無效的色彩值"
@@ -8292,6 +8317,10 @@ msgstr "正在載入對話"
msgid "Loading timeline history"
msgstr "正在載入時間軸記錄"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Loading worktrees…"
+msgstr "正在載入工作樹…"
+
#: src/components/BugReportHistory.tsx
msgid "Loading your reports"
msgstr "正在載入你的回報"
@@ -8344,6 +8373,10 @@ msgstr "已要求僅限本機,但未建立 git 儲存庫。等專案位於 git
msgid "Location"
msgstr "位置"
+#: src/components/RecentProjectsMenu.tsx
+msgid "locked"
+msgstr "已鎖定"
+
#: src/components/ReportBugDialogBody.tsx
msgid "Logs & system info"
msgstr "記錄與系統資訊"
@@ -9520,6 +9553,10 @@ msgstr "還沒有範本。加一個,讓這個資料夾裡的新文件有個現
msgid "No workspace"
msgstr "沒有工作區"
+#: src/components/RecentProjectsMenu.tsx
+msgid "No worktrees found."
+msgstr "找不到工作樹。"
+
#: src/components/settings/SyncSection.tsx
msgid "None"
msgstr "無"
@@ -10178,6 +10215,10 @@ msgstr "OpenKnowledge 檢查了專案"
msgid "OpenKnowledge could not find this agent on this machine."
msgstr "OpenKnowledge 未在此裝置上找到該代理程式。"
+#: src/lib/worktree-create-error.ts
+msgid "OpenKnowledge couldn't finish setting up this project. The worktree was created but not opened."
+msgstr "OpenKnowledge 無法完成此專案的設定。工作樹已建立,但未開啟。"
+
#: src/components/TerminalPanel.tsx
msgid "OpenKnowledge couldn't read terminal.shell in .ok/local/config.yml. Using an available Windows shell instead."
msgstr "OpenKnowledge 無法讀取 .ok/local/config.yml 中的 terminal.shell,將改用可用的 Windows shell。"
@@ -10491,6 +10532,10 @@ msgstr "大綱"
msgid "Outside any block"
msgstr "不在任何區塊內"
+#: src/components/RecentProjectsMenu.tsx
+msgid "Outside this repository's OpenKnowledge worktrees folder"
+msgstr "位於此儲存庫的 OpenKnowledge 工作樹資料夾外"
+
#: src/components/SyncStatusBadge.tsx
msgid "Outside what Open Knowledge commits."
msgstr "不在 Open Knowledge 的提交範圍內。"
@@ -10689,6 +10734,10 @@ msgstr "路徑解析結果在專案之外"
msgid "Path suggestions"
msgstr "路徑建議"
+#: src/components/RecentProjectsMenu.tsx
+msgid "path unreadable"
+msgstr "路徑無法讀取"
+
#: src/components/settings/frontmatter-schema-field-editor.tsx
msgid "Pattern (regex)"
msgstr "模式(正規表示式)"
@@ -11014,6 +11063,10 @@ msgstr "專案資料夾已建立,但 git init 失敗。請再試一次。"
msgid "Project MCP server"
msgstr "專案 MCP 伺服器"
+#: src/components/RecentProjectsMenu.tsx
+msgid "project missing"
+msgstr "專案缺失"
+
#: src/components/CreateProjectDialog.tsx
msgid "Project name"
msgstr "專案名稱"
@@ -13548,6 +13601,10 @@ msgstr "分割清單項目"
msgid "Stage the selected passage in the agents panel, ready to extend and send."
msgstr "把選取的內容放入代理面板,隨時可以補充並傳送。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "stale Git entry"
+msgstr "過期的 Git 項目"
+
#: src/components/SubscribeCard.tsx
msgid "Star us on GitHub"
msgstr "在 GitHub 上給我們一顆星"
@@ -14133,8 +14190,8 @@ msgstr "謝謝你的意見回饋!"
msgid "Thanks for the report!"
msgstr "謝謝你的回報!"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "That branch is already open in another worktree."
msgstr "那個分支已經在另一個 worktree 中開啟了。"
@@ -14331,6 +14388,18 @@ msgstr "你的端點提供的模型 id。它的向量維度會自動偵測——
msgid "the open agent"
msgstr "已開啟的代理"
+#: src/components/RecentProjectsMenu.tsx
+msgid "The OpenKnowledge project is missing at this checkout path."
+msgstr "此簽出路徑缺少 OpenKnowledge 專案。"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch cannot be read. The worktree was created but not opened."
+msgstr "無法讀取此分支中的 OpenKnowledge 專案路徑。工作樹已建立,但未開啟。"
+
+#: src/lib/worktree-create-error.ts
+msgid "The OpenKnowledge project path on this branch leaves the worktree. The worktree was created but not opened."
+msgstr "此分支中的 OpenKnowledge 專案路徑位於工作樹之外。工作樹已建立,但未開啟。"
+
#: src/lib/acp/tool-failure-hint.ts
msgid "The OpenKnowledge server took too long to answer, and the change may still have gone through. Ask the agent to check before trying again."
msgstr "OpenKnowledge 伺服器回應逾時,變更可能已經生效。請讓代理先確認,然後再重試。"
@@ -14694,14 +14763,26 @@ msgstr "這個代理是透過 {0} 執行的,但它沒有安裝。Open Knowledg
msgid "This also installs the pack's {packSkillCount, plural, one {# skill} other {# skills}}."
msgstr "這也會安裝此入門套件的 {packSkillCount, plural, one {# 項技能} other {# 項技能}}。"
+#: src/lib/worktree-create-error.ts
+msgid "This branch does not contain this OpenKnowledge project. The worktree was created but not opened."
+msgstr "此分支不包含這個 OpenKnowledge 專案。工作樹已建立,但未開啟。"
+
#: src/components/ShareReceiveDialog.tsx
msgid "This branch is checked out in:"
msgstr "這個分支已在以下位置簽出:"
+#: src/lib/worktree-create-error.ts
+msgid "This branch redirects an OpenKnowledge setup path outside the worktree. The worktree was created but not opened."
+msgstr "此分支將 OpenKnowledge 設定路徑重新導向到工作樹之外。工作樹已建立,但未開啟。"
+
#: src/components/McpConsentDialogBody.tsx
msgid "This can be configured in Settings > AI tools & CLI"
msgstr "這可以在「設定 > AI 工具與 CLI」中設定"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This checkout path cannot be read."
+msgstr "無法讀取此簽出路徑。"
+
#: src/components/acp/ThreadView.tsx
msgid "This command contains hidden characters that can make it look different from what runs. They are shown here as ⟨U+…⟩."
msgstr "此指令包含隱藏字元,可能使其看起來與實際執行的內容不同。這些字元在此顯示為 ⟨U+…⟩。"
@@ -14990,8 +15071,8 @@ msgstr "這會永久移除 {path}。在重新建立它,或由上層資料夾
msgid "This project"
msgstr "這個專案"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project has no commits yet, so there's no branch to base a worktree on. Make a first commit, then try again."
msgstr "此專案還沒有任何提交,因此沒有可作為 worktree 基礎的分支。請先建立第一個提交,然後再試一次。"
@@ -15014,8 +15095,8 @@ msgstr "這個專案執行的 OpenKnowledge 版本和這個應用程式(v{0}
msgid "This project is running an older version of OpenKnowledge (v{0}) than this app (v{1})."
msgstr "這個專案執行的 OpenKnowledge 版本(v{0})比這個應用程式(v{1})舊。"
-#: src/components/NewWorktreeDialog.tsx
#: src/components/ShareBranchSwitchDialog.tsx
+#: src/lib/worktree-create-error.ts
msgid "This project isn't a git repository, so worktrees aren't available."
msgstr "這個專案不是 git 儲存庫,所以無法使用 worktree。"
@@ -15122,6 +15203,10 @@ msgstr "這通常代表下列其中之一:"
msgid "This window can't store a token — open Settings from the main app window."
msgstr "這個視窗無法儲存權杖——請從應用程式主視窗開啟「設定」。"
+#: src/components/RecentProjectsMenu.tsx
+msgid "This worktree is no longer available."
+msgstr "此工作樹已無法使用。"
+
#: src/components/acp/working-status.ts
msgid "Tidying up…"
msgstr "收拾中…"
diff --git a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts b/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
index 8a60e5826..a28cc2b18 100644
--- a/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
+++ b/packages/app/tests/integration/bug3-source-mode-writeback.test.ts
@@ -1,3 +1,4 @@
+
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { setTimeout as wait } from 'node:timers/promises';
diff --git a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts b/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
index 6fcdc23f2..4fc2c11f9 100644
--- a/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
+++ b/packages/app/tests/integration/indented-jsx-byte-sacred.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { normalizeBridge } from '@inkeep/open-knowledge-core';
import { updateYFragment } from '@tiptap/y-tiptap';
diff --git a/packages/app/tests/integration/interior-edit-freshness.test.ts b/packages/app/tests/integration/interior-edit-freshness.test.ts
index 40b5cdfd6..9f2f6feb6 100644
--- a/packages/app/tests/integration/interior-edit-freshness.test.ts
+++ b/packages/app/tests/integration/interior-edit-freshness.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts b/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
index 93666af70..2a085742b 100644
--- a/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
+++ b/packages/app/tests/integration/keystroke-cadence-danger-space.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/producer-guard-wiring.test.ts b/packages/app/tests/integration/producer-guard-wiring.test.ts
index 867598d34..878d5196b 100644
--- a/packages/app/tests/integration/producer-guard-wiring.test.ts
+++ b/packages/app/tests/integration/producer-guard-wiring.test.ts
@@ -1,3 +1,4 @@
+
import { setTimeout as wait } from 'node:timers/promises';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
diff --git a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
index 0970ac12f..4ada3cf26 100644
--- a/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
+++ b/packages/app/tests/integration/qa-039-reconciliation-counters-http.test.ts
@@ -1,3 +1,4 @@
+
import { randomUUID } from 'node:crypto';
import { afterEach, describe, expect, test } from 'vitest';
import { agentWriteMd, createTestServer, type TestServer } from './test-harness';
diff --git a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts b/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
index b632185e1..cbe2b705f 100644
--- a/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
+++ b/packages/app/tests/integration/qa-045-restore-after-gc.test.ts
@@ -1,3 +1,4 @@
+
import { execFileSync } from 'node:child_process';
import { randomUUID } from 'node:crypto';
import { join } from 'node:path';
diff --git a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
index c530ce4ba..89bc9b4d9 100644
--- a/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
+++ b/packages/app/tests/integration/qa-050-rollback-undo-shipped-path.test.ts
@@ -1,3 +1,4 @@
+
import { randomUUID } from 'node:crypto';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest';
import type * as Y from 'yjs';
diff --git a/packages/app/tests/integration/undo-after-rollback.test.ts b/packages/app/tests/integration/undo-after-rollback.test.ts
index d3767adc9..a78aeb0e4 100644
--- a/packages/app/tests/integration/undo-after-rollback.test.ts
+++ b/packages/app/tests/integration/undo-after-rollback.test.ts
@@ -1,3 +1,4 @@
+
import { ROLLBACK_ORIGIN } from '@inkeep/open-knowledge-server';
import { afterAll, beforeAll, describe, expect, test } from 'vitest';
import * as Y from 'yjs';
diff --git a/packages/app/tests/integration/undo-recycle-reset.test.ts b/packages/app/tests/integration/undo-recycle-reset.test.ts
index b076f955c..e7cc69c3f 100644
--- a/packages/app/tests/integration/undo-recycle-reset.test.ts
+++ b/packages/app/tests/integration/undo-recycle-reset.test.ts
@@ -1,3 +1,4 @@
+
import { writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { setTimeout as wait } from 'node:timers/promises';
diff --git a/packages/app/tests/integration/undo-rederive-survival.test.ts b/packages/app/tests/integration/undo-rederive-survival.test.ts
index 7935e35f8..9ddcd0730 100644
--- a/packages/app/tests/integration/undo-rederive-survival.test.ts
+++ b/packages/app/tests/integration/undo-rederive-survival.test.ts
@@ -1,3 +1,4 @@
+
import { prependFrontmatter } from '@inkeep/open-knowledge-core';
import { Plugin, PluginKey } from '@tiptap/pm/state';
import { updateYFragment, yXmlFragmentToProseMirrorRootNode } from '@tiptap/y-tiptap';
diff --git a/packages/app/tests/stress/fixtures/handoff-mocks.ts b/packages/app/tests/stress/fixtures/handoff-mocks.ts
index a121d8b36..d3f3196f0 100644
--- a/packages/app/tests/stress/fixtures/handoff-mocks.ts
+++ b/packages/app/tests/stress/fixtures/handoff-mocks.ts
@@ -283,6 +283,8 @@ export async function installHandoffMocks(page: Page, cfg: HandoffMockConfig): P
},
worktree: {
list: async () => ({ ok: false as const, reason: 'no-git' as const }),
+ inventory: async () => ({ ok: false as const, reason: 'no-git' as const }),
+ openInventory: async () => ({ ok: false as const, reason: 'no-git' as const }),
create: async () => ({ ok: false as const, reason: 'no-git' as const }),
checkout: async () => ({ ok: false as const, reason: 'no-git' as const }),
},
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
index 2d34fddcb..076fe8015 100644
--- a/packages/cli/src/index.ts
+++ b/packages/cli/src/index.ts
@@ -119,6 +119,7 @@ export {
} from './integrations/write-project-ai-integrations.ts';
export {
assertProjectPathSafe,
+ ProjectPathSafetyError,
type ProjectSkillRemoveResult,
type ProjectSkillResult,
removeProjectSkill,
diff --git a/packages/cli/src/integrations/write-project-skill.ts b/packages/cli/src/integrations/write-project-skill.ts
index 2f59ac9ee..4de97d2f5 100644
--- a/packages/cli/src/integrations/write-project-skill.ts
+++ b/packages/cli/src/integrations/write-project-skill.ts
@@ -27,6 +27,11 @@ import {
isOwnDevEntry,
} from '../commands/editors.ts';
+export class ProjectPathSafetyError extends Error {
+ override readonly name = 'ProjectPathSafetyError';
+ readonly code = 'PROJECT_PATH_SAFETY';
+}
+
export function assertProjectPathSafe(targetPath: string, cwd: string): void {
let leafStat: ReturnType<typeof lstatSync> | undefined;
try {
@@ -35,7 +40,7 @@ export function assertProjectPathSafe(targetPath: string, cwd: string): void {
if ((err as NodeJS.ErrnoException).code !== 'ENOENT') throw err;
}
if (leafStat?.isSymbolicLink()) {
- throw new Error(
+ throw new ProjectPathSafetyError(
`Refusing to write through a symbolic link at ${targetPath}. ` +
'Remove the symlink and re-run project setup.',
);
@@ -75,7 +80,7 @@ export function assertAncestorsContainedIn(targetPath: string, base: string): vo
}
const rel = relative(realCwd, cursorRealpath);
if (rel === '' || (!rel.startsWith('..') && !isAbsolute(rel))) return;
- throw new Error(
+ throw new ProjectPathSafetyError(
`Refusing to write at ${targetPath}: ancestor ${cursor} resolves to ${cursorRealpath}, ` +
`which is outside the project directory ${realCwd}. A symbolic link in the path likely ` +
'escapes the project. Remove the symlink and re-run project setup.',
diff --git a/packages/core/src/bridge/compose.ts b/packages/core/src/bridge/compose.ts
index f4cc8a286..2a597ec3d 100644
--- a/packages/core/src/bridge/compose.ts
+++ b/packages/core/src/bridge/compose.ts
@@ -1,3 +1,4 @@
+
import { prependFrontmatter, stripFrontmatter } from '../extensions/frontmatter.ts';
export type ComposeAdjustment = 'none' | 'body' | 'frontmatter' | 'unresolved';
diff --git a/packages/core/src/bridge/doc-boundary-space.ts b/packages/core/src/bridge/doc-boundary-space.ts
index 8fb428b90..01ef76a9f 100644
--- a/packages/core/src/bridge/doc-boundary-space.ts
+++ b/packages/core/src/bridge/doc-boundary-space.ts
@@ -1,3 +1,4 @@
+
import { FRONTMATTER_RE, stripFrontmatter } from '../extensions/frontmatter.ts';
import { carriedEdgeEmpties, type DocEdgeEmpties } from '../markdown/doc-edge-blank-runs.ts';
diff --git a/packages/core/src/desktop-bridge.ts b/packages/core/src/desktop-bridge.ts
index 59a45f268..29a2dd039 100644
--- a/packages/core/src/desktop-bridge.ts
+++ b/packages/core/src/desktop-bridge.ts
@@ -3,6 +3,12 @@ import type { HostSnapshot } from './agent-registry/snapshot.ts';
import type { CreateNewBannerKind } from './constants/create-new-banner.ts';
import type { EditorId } from './constants/editors.ts';
import type { OkFolderState } from './constants/folder-state.ts';
+import type {
+ WorktreeInventoryOpenRequest,
+ WorktreeInventoryOpenResult,
+ WorktreeInventoryRequest,
+ WorktreeInventoryResult,
+} from './git/worktree-inventory-model.ts';
import type {
WorktreeCreateRequest,
WorktreeCreateResult,
@@ -214,6 +220,7 @@ export interface OkProjectOpenRequest {
path: string;
target: 'new-window';
entryPoint: OkProjectEntryPoint;
+ requireExactManagedProject?: boolean;
pendingDeepLinkTarget?: {
kind: 'doc' | 'folder';
path: string;
@@ -1186,6 +1193,8 @@ export interface OkDesktopBridge {
worktree: {
list(): Promise<WorktreeListResult>;
+ inventory(request: WorktreeInventoryRequest): Promise<WorktreeInventoryResult>;
+ openInventory(request: WorktreeInventoryOpenRequest): Promise<WorktreeInventoryOpenResult>;
create(request: WorktreeCreateRequest): Promise<WorktreeCreateResult>;
checkout(request: { branch: string }): Promise<WorktreeCreateResult>;
};
diff --git a/packages/core/src/git/worktree-inventory-model.ts b/packages/core/src/git/worktree-inventory-model.ts
new file mode 100644
index 000000000..d92e46a15
--- /dev/null
+++ b/packages/core/src/git/worktree-inventory-model.ts
@@ -0,0 +1,55 @@
+export type WorktreeInventoryLocation = 'primary' | 'internal' | 'external' | 'unknown';
+
+export type WorktreeInventoryAvailability = 'available' | 'missing' | 'unreadable';
+
+export interface WorktreeInventoryEntry {
+ readonly checkoutRoot: string;
+ readonly projectPath: string;
+ readonly branch: string | null;
+ readonly headSha: string | null;
+ readonly location: WorktreeInventoryLocation;
+ readonly availability: WorktreeInventoryAvailability;
+ readonly locked: boolean;
+ readonly prunable: boolean;
+}
+
+export interface WorktreeInventoryModel {
+ readonly gitCommonDir: string;
+ readonly primaryCheckoutRoot: string;
+ readonly projectSubPath: string;
+ readonly entries: readonly WorktreeInventoryEntry[];
+}
+
+export interface WorktreeInventoryRequest {
+ readonly projectPath: string;
+}
+
+export type WorktreeInventoryResult =
+ | { readonly ok: true; readonly inventory: WorktreeInventoryModel }
+ | {
+ readonly ok: false;
+ readonly reason: 'invalid-request' | 'no-git' | 'enumeration-failed';
+ };
+
+export interface WorktreeInventoryOpenRequest {
+ readonly anchorProjectPath: string;
+ readonly gitCommonDir: string;
+ readonly projectSubPath: string;
+ readonly checkoutRoot: string;
+ readonly projectPath: string;
+}
+
+export type WorktreeInventoryOpenResult =
+ | { readonly ok: true }
+ | {
+ readonly ok: false;
+ readonly reason:
+ | 'invalid-request'
+ | 'no-git'
+ | 'enumeration-failed'
+ | 'repository-changed'
+ | 'not-registered'
+ | 'project-unavailable'
+ | 'prunable'
+ | 'open-failed';
+ };
diff --git a/packages/core/src/git/worktree-selector-model.test.ts b/packages/core/src/git/worktree-selector-model.test.ts
index 51ffce352..a6a954b32 100644
--- a/packages/core/src/git/worktree-selector-model.test.ts
+++ b/packages/core/src/git/worktree-selector-model.test.ts
@@ -1,6 +1,9 @@
import { describe, expect, test } from 'vitest';
import type { BridgeWorktreeEntry } from './worktree-list-parser.ts';
-import { buildWorktreeSelectorModel } from './worktree-selector-model.ts';
+import {
+ buildWorktreeSelectorModel,
+ projectWorktreeCreateResult,
+} from './worktree-selector-model.ts';
function wt(partial: Partial<BridgeWorktreeEntry> & { path: string }): BridgeWorktreeEntry {
return {
@@ -138,3 +141,36 @@ describe('buildWorktreeSelectorModel', () => {
expect('behind' in (byBranch.get('no-upstream') ?? {})).toBe(false);
});
});
+
+describe('projectWorktreeCreateResult', () => {
+ test('projects a created checkout onto the active nested project root', () => {
+ expect(
+ projectWorktreeCreateResult(
+ { ok: true, path: '/repo/.ok/worktrees/feature', created: true },
+ 'packages/docs',
+ ),
+ ).toEqual({
+ ok: true,
+ path: '/repo/.ok/worktrees/feature/packages/docs',
+ created: true,
+ });
+ });
+
+ test('preserves root-scoped and failed results', () => {
+ const success = { ok: true, path: '/repo/.ok/worktrees/feature', created: false } as const;
+ const failure = { ok: false, reason: 'no-git' } as const;
+ expect(projectWorktreeCreateResult(success, '')).toBe(success);
+ expect(projectWorktreeCreateResult(failure, 'packages/docs')).toBe(failure);
+ });
+
+ test('never projects a created worktree whose project scope was rejected', () => {
+ const failure = {
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'outside-worktree',
+ path: '/repo/.ok/worktrees/feature',
+ created: true,
+ } as const;
+ expect(projectWorktreeCreateResult(failure, 'packages/docs')).toBe(failure);
+ });
+});
diff --git a/packages/core/src/git/worktree-selector-model.ts b/packages/core/src/git/worktree-selector-model.ts
index 2f98b8509..1f9cc3491 100644
--- a/packages/core/src/git/worktree-selector-model.ts
+++ b/packages/core/src/git/worktree-selector-model.ts
@@ -30,6 +30,20 @@ export interface WorktreeCreateRequest {
export type WorktreeCreateResult =
| { readonly ok: true; readonly path: string; readonly created: boolean }
+ | {
+ readonly ok: false;
+ readonly reason: 'project-scope-unavailable';
+ readonly issue:
+ | 'missing'
+ | 'unreadable'
+ | 'outside-worktree'
+ | 'unsafe-setup-path'
+ | 'setup-failed';
+ readonly path: string;
+ readonly created: true;
+ readonly message?: never;
+ readonly helper?: never;
+ }
| {
readonly ok: false;
readonly reason: 'helper-not-found';
@@ -59,6 +73,19 @@ export type WorktreeCreateResult =
readonly helper?: never;
};
+export function projectWorktreeCreateResult(
+ result: WorktreeCreateResult,
+ projectSubPath: string,
+): WorktreeCreateResult {
+ if (!result.ok || projectSubPath.length === 0) return result;
+ const separator = result.path.includes('\\') ? '\\' : '/';
+ const path = `${result.path.replace(/[\\/]+$/, '')}${separator}${projectSubPath
+ .split(/[\\/]/)
+ .filter((segment) => segment.length > 0)
+ .join(separator)}`;
+ return { ...result, path };
+}
+
export interface BuildWorktreeSelectorModelInput {
readonly worktrees: readonly BridgeWorktreeEntry[];
readonly branches: readonly string[];
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index baed5ae22..7e01e3221 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -690,6 +690,16 @@ export {
wellKnownToolDirs,
} from './git/git-spawn-path.ts';
export { detectMissingGitHelper } from './git/missing-git-helper.ts';
+export type {
+ WorktreeInventoryAvailability,
+ WorktreeInventoryEntry,
+ WorktreeInventoryLocation,
+ WorktreeInventoryModel,
+ WorktreeInventoryOpenRequest,
+ WorktreeInventoryOpenResult,
+ WorktreeInventoryRequest,
+ WorktreeInventoryResult,
+} from './git/worktree-inventory-model.ts';
export {
type BridgeWorktreeEntry,
parseWorktreeListPorcelain,
@@ -698,6 +708,7 @@ export { WORKTREES_PARENT_DIR, worktreeRelativeDir } from './git/worktree-path.t
export {
type BuildWorktreeSelectorModelInput,
buildWorktreeSelectorModel,
+ projectWorktreeCreateResult,
stripRemotePrefix,
type WorktreeCreateRequest,
type WorktreeCreateResult,
diff --git a/packages/core/src/markdown/comment-promoter.ts b/packages/core/src/markdown/comment-promoter.ts
index fc267cbea..fb0ba5a7c 100644
--- a/packages/core/src/markdown/comment-promoter.ts
+++ b/packages/core/src/markdown/comment-promoter.ts
@@ -1,3 +1,4 @@
+
import type { Nodes, Paragraph, PhrasingContent, Root, RootContent, Text } from 'mdast';
import { SKIP, visit } from 'unist-util-visit';
import type { VFile } from 'vfile';
diff --git a/packages/core/src/markdown/merged-walker.ts b/packages/core/src/markdown/merged-walker.ts
index bfd7e3109..fa3cfcd86 100644
--- a/packages/core/src/markdown/merged-walker.ts
+++ b/packages/core/src/markdown/merged-walker.ts
@@ -1,3 +1,4 @@
+
import type { Nodes, Parent, Root } from 'mdast';
import { SKIP, visit } from 'unist-util-visit';
import type { VFile } from 'vfile';
diff --git a/packages/core/src/markdown/safe-url.ts b/packages/core/src/markdown/safe-url.ts
index 4d3250d3a..8be632ba4 100644
--- a/packages/core/src/markdown/safe-url.ts
+++ b/packages/core/src/markdown/safe-url.ts
@@ -1,3 +1,4 @@
+
export const SAFE_URL_SCHEMES = ['https', 'http', 'mailto', 'tel', 'ftp', 'sms'] as const;
const SCHEME_ALT = SAFE_URL_SCHEMES.map((s) => `${s}:`).join('|');
diff --git a/packages/core/src/sharing/receive-flow.ts b/packages/core/src/sharing/receive-flow.ts
index 85518f233..97fd07354 100644
--- a/packages/core/src/sharing/receive-flow.ts
+++ b/packages/core/src/sharing/receive-flow.ts
@@ -19,6 +19,8 @@ export interface RecentProjectEntry {
gitRemoteUrl?: string;
gitCommonDir?: string;
mainRoot?: string;
+ checkoutRoot?: string;
+ projectSubPath?: string;
isLinkedWorktree?: boolean;
branch?: string | null;
}
diff --git a/packages/desktop/src/main/folder-admission.test.ts b/packages/desktop/src/main/folder-admission.test.ts
index 7351ac31a..a5fbad5b6 100644
--- a/packages/desktop/src/main/folder-admission.test.ts
+++ b/packages/desktop/src/main/folder-admission.test.ts
@@ -10,6 +10,7 @@ import {
discoverProject,
type FolderPickValidation,
type GitState,
+ isExactManagedProject,
type RejectionReason,
type SensitivePathWarning,
type ValidateFolderPickOptions,
@@ -263,6 +264,7 @@ describe('discoverProject — managed kind (ancestor walk)', () => {
expect(result.projectDir).toBe(project);
expect(result.pickedPath).toBe(project);
expect(result.ancestorPromoted).toBe(false);
+ expect(isExactManagedProject(result)).toBe(true);
});
test('promotes to ancestor when .ok/ is one level up', async () => {
@@ -281,6 +283,21 @@ describe('discoverProject — managed kind (ancestor walk)', () => {
if (result.kind !== 'managed') return;
expect(result.projectDir).toBe(project);
expect(result.ancestorPromoted).toBe(true);
+ expect(isExactManagedProject(result)).toBe(false);
+ });
+
+ test('exact-project admission rejects non-managed and rejected discoveries', () => {
+ expect(
+ isExactManagedProject({
+ kind: 'fresh',
+ pickedPath: '/repo/docs',
+ projectDir: '/repo/docs',
+ defaultContentDir: '.',
+ gitState: 'present',
+ gitRootPromoted: false,
+ }),
+ ).toBe(false);
+ expect(isExactManagedProject({ kind: 'rejected', reason: 'unreadable' })).toBe(false);
});
test.each([1, 2, 3, 4, 5])(
diff --git a/packages/desktop/src/main/folder-admission.ts b/packages/desktop/src/main/folder-admission.ts
index e2c6ed944..9393a3685 100644
--- a/packages/desktop/src/main/folder-admission.ts
+++ b/packages/desktop/src/main/folder-admission.ts
@@ -93,6 +93,14 @@ export type DiscoverProjectResult =
}
| { readonly kind: 'rejected'; readonly reason: RejectionReason };
+export function isExactManagedProject(discovery: DiscoverProjectResult): boolean {
+ return (
+ discovery.kind === 'managed' &&
+ discovery.projectDir === discovery.pickedPath &&
+ !discovery.ancestorPromoted
+ );
+}
+
export interface DiscoverProjectOptions {
homeDir?: string;
gitTopLevel?: (cwd: string) => Promise<string | null>;
diff --git a/packages/desktop/src/main/index.ts b/packages/desktop/src/main/index.ts
index c0d1be9f9..027884a40 100644
--- a/packages/desktop/src/main/index.ts
+++ b/packages/desktop/src/main/index.ts
@@ -55,6 +55,7 @@ import {
type LanguagePreference,
OPENKNOWLEDGE_SKILLS_REPO,
PROTOCOL_VERSION,
+ projectWorktreeCreateResult,
ServerInfoSuccessSchema,
SPAWN_ERROR_LOG,
TERMINAL_CLIS,
@@ -276,7 +277,12 @@ import {
runDriverBootSmoke,
} from './driver-boot-smoke.ts';
import { EMBED_HOST_PATTERNS, rewriteEmbedRequestHeaders } from './embed-referer.ts';
-import { defaultGitTopLevel, discoverProject, validateFolderPick } from './folder-admission.ts';
+import {
+ defaultGitTopLevel,
+ discoverProject,
+ isExactManagedProject,
+ validateFolderPick,
+} from './folder-admission.ts';
import { createBootBudgetDirSizeProbe } from './fs-walk-budget.ts';
import { ensureGitAvailable } from './git-preflight-handler.ts';
import { readCanonicalGitHubRemoteUrl } from './git-remote.ts';
@@ -548,11 +554,8 @@ import {
sweepWindowsUpdateSurvivors,
type WindowsUpdateSurvivorSweepResult,
} from './windows-update-survivor-sweep.ts';
-import {
- classifyRecentGit,
- classifyRecentGitAsync,
- readWorktreeBranchAsync,
-} from './worktree-recents.ts';
+import { isAllowedInventoryAnchor, WorktreeInventoryService } from './worktree-inventory.ts';
+import { classifyRecentGitAsync, readWorktreeBranchAsync } from './worktree-recents.ts';
import {
checkoutShareBranchWorktree,
createWorktree,
@@ -1652,6 +1655,10 @@ function logAiIntegrationOutcomes(result: ProjectAiIntegrationsResult): number {
const BOOT_BUDGET_FILE_CAP = 10_000;
const bootBudgetDirSizeProbe = createBootBudgetDirSizeProbe(BOOT_BUDGET_FILE_CAP);
+interface OpenProjectOptions {
+ readonly requireExactManagedProject?: boolean;
+}
+
async function openProject(
projectPath: string,
entryPoint: EntryPoint,
@@ -1665,7 +1672,8 @@ async function openProject(
pendingMultiCandidate?: boolean,
pendingShareBranchSwitch?: ShareDeepLinkBranchSwitchPayload,
pendingTargetMissing?: boolean,
-) {
+ options: OpenProjectOptions = {},
+): Promise<boolean> {
getLogger('project').info(
{
pickedName: basename(projectPath),
@@ -1730,7 +1738,11 @@ async function openProject(
}`,
);
openNavigator();
- return;
+ return false;
+ }
+
+ if (options.requireExactManagedProject === true && !isExactManagedProject(discovery)) {
+ throw new Error('This worktree no longer contains the expected OpenKnowledge project.');
}
const warningsCount = validation.warnings.length;
@@ -1809,7 +1821,7 @@ async function openProject(
warningsCount,
});
openNavigator();
- return;
+ return false;
}
flowKind = 'managed-promote';
if (entryPoint !== 'recents' && entryPoint !== 'create-new-nested-redirect') {
@@ -1834,7 +1846,7 @@ async function openProject(
'Cannot open this folder',
`${projectPath}\n\nFailed to open the Project Navigator.`,
);
- return;
+ return false;
}
const navigatorWebContents = (navigator as unknown as { webContents: Electron.WebContents })
.webContents;
@@ -1887,7 +1899,7 @@ async function openProject(
contentDirChanged: false,
warningsCount,
});
- return;
+ return false;
}
const { request } = decision;
contentDirChanged = request.contentDir !== discovery.defaultContentDir;
@@ -2024,12 +2036,9 @@ async function openProject(
navigatorHandoff.close({ projectPath });
const gitRemoteUrl = readCanonicalGitHubRemoteUrl(resolvedProjectDir) ?? undefined;
appState = addRecentProject(appState, resolvedProjectDir, ctx.projectName, gitRemoteUrl);
- if (entryPoint === 'worktree') {
- const mainRoot = classifyRecentGit(resolvedProjectDir).mainRoot;
- if (mainRoot !== null) appState = { ...appState, lastOpenedProject: mainRoot };
- }
saveAppState(appState);
refreshApplicationMenu();
+ return true;
}
function pruneRecentIfMissing(projectPath: string): { removed: boolean; name: string } {
@@ -2066,17 +2075,18 @@ async function openProjectOrFallbackToNavigator(
pendingMultiCandidate?: boolean,
pendingShareBranchSwitch?: ShareDeepLinkBranchSwitchPayload,
pendingTargetMissing?: boolean,
-) {
+ options: OpenProjectOptions = {},
+): Promise<boolean> {
if (
pendingDeepLinkTarget === undefined &&
pendingShareBranchSwitch === undefined &&
pruneRecentIfMissing(projectPath).removed
) {
openNavigator();
- return;
+ return false;
}
try {
- await openProject(
+ return await openProject(
projectPath,
entryPoint,
pendingDeepLinkTarget,
@@ -2084,6 +2094,7 @@ async function openProjectOrFallbackToNavigator(
pendingMultiCandidate,
pendingShareBranchSwitch,
pendingTargetMissing,
+ options,
);
} catch (err) {
const errorMessage = (err as Error).message;
@@ -2155,7 +2166,7 @@ async function openProjectOrFallbackToNavigator(
const stop = await wm.forceStopConflictingServer(projectPath);
if (stop.ok) {
try {
- await openProject(
+ const opened = await openProject(
projectPath,
entryPoint,
pendingDeepLinkTarget,
@@ -2163,8 +2174,9 @@ async function openProjectOrFallbackToNavigator(
pendingMultiCandidate,
pendingShareBranchSwitch,
pendingTargetMissing,
+ options,
);
- return;
+ return opened;
} catch (retryErr) {
getLogger('project').error(
{
@@ -2220,10 +2232,11 @@ async function openProjectOrFallbackToNavigator(
}
}
openNavigator();
- return;
+ return false;
}
dialog.showErrorBox(dialogTitle, dialogBody);
openNavigator();
+ return false;
}
}
@@ -2454,7 +2467,9 @@ async function runApplicationMenuRefresh(): Promise<void> {
terminalCapable: isTerminalAvailable(),
dialog,
openNavigator,
- openProject: (path, entryPoint) => openProjectOrFallbackToNavigator(path, entryPoint),
+ openProject: async (path, entryPoint) => {
+ await openProjectOrFallbackToNavigator(path, entryPoint);
+ },
openEphemeralFile: (filePath) => openEphemeralFile(filePath),
getRecentProjects: () => appState.recentProjects,
clearRecentProjects: () => {
@@ -3775,6 +3790,7 @@ const RECENT_GIT_ROOTS_CAP = 256;
function registerIpcHandlers() {
const handle = createHandler(ipcMain);
+ const worktreeInventory = new WorktreeInventoryService();
handle(
'ok:mcp-wiring:reconfigure',
@@ -4781,6 +4797,8 @@ function registerIpcHandlers() {
...entry,
gitCommonDir: git.gitCommonDir,
mainRoot: git.mainRoot ?? undefined,
+ checkoutRoot: git.checkoutRoot ?? undefined,
+ projectSubPath: git.projectSubPath ?? undefined,
isLinkedWorktree: git.isLinkedWorktree,
branch,
};
@@ -4896,6 +4914,7 @@ function registerIpcHandlers() {
request.pendingMultiCandidate,
request.pendingShareBranchSwitch,
targetMissing || undefined,
+ { requireExactManagedProject: request.requireExactManagedProject === true },
);
return undefined;
});
@@ -4923,9 +4942,113 @@ function registerIpcHandlers() {
if (request.kind === 'list') {
return listWorktreeSelector(anchor, anchor);
}
+ if (request.kind === 'inventory') {
+ if (
+ !isAllowedInventoryAnchor(
+ request.projectPath,
+ anchor,
+ appState.recentProjects.map((project) => project.path),
+ )
+ ) {
+ logIpcError({
+ event: 'ipc.error',
+ channel: 'ok:worktree:dispatch',
+ reason: 'invalid-request',
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.projectPath },
+ });
+ return { ok: false, reason: 'invalid-request' } as const;
+ }
+ const result = await withIpcErrorLogging(
+ {
+ channel: 'ok:worktree:dispatch',
+ reason: 'inventory-failed',
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.projectPath },
+ },
+ () => worktreeInventory.inventory(request.projectPath),
+ );
+ if (!result.ok) {
+ logIpcError({
+ event: 'ipc.error',
+ channel: 'ok:worktree:dispatch',
+ reason: result.reason,
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.projectPath },
+ });
+ }
+ return result;
+ }
+ if (request.kind === 'open-inventory') {
+ if (
+ !isAllowedInventoryAnchor(
+ request.anchorProjectPath,
+ anchor,
+ appState.recentProjects.map((project) => project.path),
+ )
+ ) {
+ logIpcError({
+ event: 'ipc.error',
+ channel: 'ok:worktree:dispatch',
+ reason: 'invalid-request',
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.anchorProjectPath },
+ });
+ return { ok: false, reason: 'invalid-request' } as const;
+ }
+ const target = await withIpcErrorLogging(
+ {
+ channel: 'ok:worktree:dispatch',
+ reason: 'inventory-validation-failed',
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.anchorProjectPath },
+ },
+ () => worktreeInventory.validateOpen(request),
+ );
+ if (!target.ok) {
+ logIpcError({
+ event: 'ipc.error',
+ channel: 'ok:worktree:dispatch',
+ reason: target.reason,
+ handler: 'worktreeDispatch',
+ details: { projectPath: request.projectPath },
+ });
+ return target;
+ }
+ const opened = await openProjectOrFallbackToNavigator(
+ target.projectPath,
+ 'worktree',
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ undefined,
+ { requireExactManagedProject: true },
+ );
+ if (!opened) {
+ logIpcError({
+ event: 'ipc.error',
+ channel: 'ok:worktree:dispatch',
+ reason: 'open-failed',
+ handler: 'worktreeDispatch',
+ details: { projectPath: target.projectPath },
+ });
+ return { ok: false, reason: 'open-failed' } as const;
+ }
+ return { ok: true } as const;
+ }
+ const git = await classifyRecentGitAsync(anchor);
+ const mutationContext = {
+ projectSubPath: git.projectSubPath ?? '',
+ sourceProjectPath: anchor,
+ };
const result =
request.kind === 'checkout'
- ? await checkoutShareBranchWorktree({ anchorPath: anchor, branch: request.branch })
+ ? await checkoutShareBranchWorktree({
+ anchorPath: anchor,
+ branch: request.branch,
+ ...mutationContext,
+ })
: await createWorktree({
anchorPath: anchor,
branch: request.branch,
@@ -4933,6 +5056,7 @@ function registerIpcHandlers() {
baseRef: request.baseRef,
remoteRef: request.remoteRef,
createBranch: request.createBranch,
+ ...mutationContext,
});
if (!result.ok) {
getLogger('worktree').warn(
@@ -4941,12 +5065,16 @@ function registerIpcHandlers() {
reason: result.reason,
helper: result.helper,
message: result.message,
+ ...(result.reason === 'project-scope-unavailable' ? { issue: result.issue } : {}),
branch: request.branch,
},
'worktree dispatch failed',
);
}
- return result;
+ if (result.ok || result.reason === 'project-scope-unavailable') {
+ worktreeInventory.invalidate(git.gitCommonDir ?? undefined);
+ }
+ return projectWorktreeCreateResult(result, git.projectSubPath ?? '');
});
handle('ok:share:validate-folder', async (_event, request) => {
diff --git a/packages/desktop/src/main/list-git-worktrees.ts b/packages/desktop/src/main/list-git-worktrees.ts
index 4b1a7ee29..f14ccaabd 100644
--- a/packages/desktop/src/main/list-git-worktrees.ts
+++ b/packages/desktop/src/main/list-git-worktrees.ts
@@ -11,12 +11,18 @@ const MAX_STDOUT_BYTES = 10 * 1024 * 1024;
const STDERR_LOG_CAP = 500;
-export async function listGitWorktrees(anchorPath: string): Promise<BridgeWorktreeEntry[]> {
+export type GitWorktreeSnapshotResult =
+ | { readonly ok: true; readonly entries: readonly BridgeWorktreeEntry[] }
+ | { readonly ok: false };
+
+export async function readGitWorktreeSnapshot(
+ anchorPath: string,
+): Promise<GitWorktreeSnapshotResult> {
if (!isAbsolute(anchorPath)) {
console.warn(
`[receive] list_git_worktrees=failed reason=anchor-not-absolute anchor=${anchorPath}`,
);
- return [];
+ return { ok: false };
}
let stdout: string;
@@ -32,18 +38,24 @@ export async function listGitWorktrees(anchorPath: string): Promise<BridgeWorktr
const stderrRaw = readErrStream(err, 'stderr') ?? readErrMessage(err) ?? '';
const stderr = stderrRaw.replace(/\s+/g, ' ').slice(0, STDERR_LOG_CAP);
console.warn(`[receive] list_git_worktrees=failed reason=${stderr}`);
- return [];
+ return { ok: false };
}
const parsed = parseWorktreeListPorcelain(stdout);
- return parsed.map((entry) => {
+ const entries = parsed.map((entry) => {
try {
return { ...entry, path: realpathSync(entry.path) };
} catch {
return entry;
}
});
+ return { ok: true, entries };
+}
+
+export async function listGitWorktrees(anchorPath: string): Promise<BridgeWorktreeEntry[]> {
+ const result = await readGitWorktreeSnapshot(anchorPath);
+ return result.ok ? [...result.entries] : [];
}
interface ExecFileError {
diff --git a/packages/desktop/src/main/worktree-autosync-inherit.ts b/packages/desktop/src/main/worktree-autosync-inherit.ts
index 65d810186..49c1319ff 100644
--- a/packages/desktop/src/main/worktree-autosync-inherit.ts
+++ b/packages/desktop/src/main/worktree-autosync-inherit.ts
@@ -45,23 +45,26 @@ export function resolveRootAutoSyncMode(mainRoot: string): SyncMode | null {
});
}
-export async function seedWorktreeAutoSync(worktreePath: string, mainRoot: string): Promise<void> {
- const inherited = resolveRootAutoSyncMode(mainRoot);
+export async function seedWorktreeAutoSync(
+ worktreeProjectPath: string,
+ sourceProjectPath: string,
+): Promise<void> {
+ const inherited = resolveRootAutoSyncMode(sourceProjectPath);
if (inherited === null) return;
const result = await writeConfigPatch({
- cwd: worktreePath,
+ cwd: worktreeProjectPath,
scope: 'project-local',
patch: {
autoSync: {
mode: inherited,
inheritedNoticePending: true,
- inheritedFrom: basename(mainRoot),
+ inheritedFrom: basename(sourceProjectPath),
},
},
});
if (!result.ok) {
getLogger('worktree-autosync').warn(
- { worktreePath, reason: result.error.code },
+ { worktreeProjectPath, reason: result.error.code },
'failed to seed inherited autoSync.mode',
);
return;
diff --git a/packages/desktop/src/main/worktree-inventory.test.ts b/packages/desktop/src/main/worktree-inventory.test.ts
new file mode 100644
index 000000000..b591f04b8
--- /dev/null
+++ b/packages/desktop/src/main/worktree-inventory.test.ts
@@ -0,0 +1,399 @@
+import { execFile } from 'node:child_process';
+import {
+ mkdirSync,
+ mkdtempSync,
+ realpathSync,
+ rmSync,
+ symlinkSync,
+ unlinkSync,
+ writeFileSync,
+} from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { promisify } from 'node:util';
+import type { BridgeWorktreeEntry } from '@inkeep/open-knowledge-core';
+import { afterEach, describe, expect, test } from 'vitest';
+import {
+ classifyLocation,
+ isAllowedInventoryAnchor,
+ WorktreeInventoryService,
+} from './worktree-inventory.ts';
+
+const execFileAsync = promisify(execFile);
+
+interface Fixture {
+ readonly root: string;
+ readonly repo: string;
+ readonly internal: string;
+ readonly external: string;
+}
+
+let fixture: Fixture | null = null;
+
+async function git(cwd: string, ...args: string[]): Promise<void> {
+ await execFileAsync('git', args, { cwd });
+}
+
+async function makeFixture(): Promise<Fixture> {
+ const root = realpathSync(mkdtempSync(join(tmpdir(), 'ok-worktree-inventory-')));
+ const repo = join(root, 'repo');
+ mkdirSync(join(repo, 'packages', 'docs'), { recursive: true });
+ mkdirSync(join(repo, 'packages', 'notes'), { recursive: true });
+ mkdirSync(join(repo, '.ok'), { recursive: true });
+ mkdirSync(join(repo, 'packages', 'docs', '.ok'), { recursive: true });
+ mkdirSync(join(repo, 'packages', 'notes', '.ok'), { recursive: true });
+ writeFileSync(join(repo, '.ok', 'config.yml'), 'content:\n dir: .\n');
+ writeFileSync(join(repo, 'packages', 'docs', '.ok', 'config.yml'), 'content:\n dir: .\n');
+ writeFileSync(join(repo, 'packages', 'notes', '.ok', 'config.yml'), 'content:\n dir: .\n');
+ writeFileSync(join(repo, 'packages', 'docs', 'README.md'), 'docs\n');
+ writeFileSync(join(repo, 'packages', 'notes', 'README.md'), 'notes\n');
+ await git(repo, 'init', '-b', 'main');
+ await git(repo, 'config', 'user.email', '[email protected]');
+ await git(repo, 'config', 'user.name', 'Test');
+ await git(repo, 'add', '.');
+ await git(repo, 'commit', '-m', 'initial');
+ const internal = join(repo, '.ok', 'worktrees', 'dev');
+ const external = join(root, 'repo-prefix-external');
+ mkdirSync(join(repo, '.ok', 'worktrees'), { recursive: true });
+ await git(repo, 'worktree', 'add', '-b', 'dev', internal);
+ await git(repo, 'worktree', 'add', '-b', 'external', external);
+ return { root, repo, internal, external };
+}
+
+afterEach(() => {
+ if (fixture !== null) rmSync(fixture.root, { recursive: true, force: true });
+ fixture = null;
+});
+
+describe('WorktreeInventoryService', () => {
+ test('projects the repository registry onto one nested OpenKnowledge project scope', async () => {
+ fixture = await makeFixture();
+ const service = new WorktreeInventoryService();
+ const result = await service.inventory(join(fixture.repo, 'packages', 'docs'));
+ expect(result.ok).toBe(true);
+ if (!result.ok) return;
+ expect(result.inventory.projectSubPath).toBe(join('packages', 'docs'));
+ expect(result.inventory.entries).toHaveLength(3);
+ const byLocation = new Map(result.inventory.entries.map((entry) => [entry.location, entry]));
+ expect([...byLocation.keys()].toSorted()).toEqual(['external', 'internal', 'primary']);
+ expect(byLocation.get('primary')?.projectPath).toBe(join(fixture.repo, 'packages', 'docs'));
+ expect(byLocation.get('internal')?.projectPath).toBe(
+ join(fixture.internal, 'packages', 'docs'),
+ );
+ expect(byLocation.get('external')?.projectPath).toBe(
+ join(fixture.external, 'packages', 'docs'),
+ );
+ });
+
+ test('keeps two nested projects in the same repository as separate scopes', async () => {
+ fixture = await makeFixture();
+ const service = new WorktreeInventoryService();
+ const docs = await service.inventory(join(fixture.repo, 'packages', 'docs'));
+ const notes = await service.inventory(join(fixture.repo, 'packages', 'notes'));
+ expect(docs.ok && docs.inventory.projectSubPath).toBe(join('packages', 'docs'));
+ expect(notes.ok && notes.inventory.projectSubPath).toBe(join('packages', 'notes'));
+ });
+
+ test('marks a checkout unavailable when the projected directory is not an exact project root', async () => {
+ fixture = await makeFixture();
+ unlinkSync(join(fixture.external, 'packages', 'docs', '.ok', 'config.yml'));
+ const service = new WorktreeInventoryService();
+ const result = await service.inventory(join(fixture.repo, 'packages', 'docs'));
+ expect(result.ok).toBe(true);
+ if (!result.ok) return;
+ expect(
+ result.inventory.entries.find((entry) => entry.checkoutRoot === fixture.external),
+ ).toMatchObject({
+ availability: 'missing',
+ location: 'external',
+ });
+ });
+
+ test('refuses a projected project symlink that escapes its registered checkout', async () => {
+ fixture = await makeFixture();
+ const outside = join(fixture.root, 'outside-project');
+ mkdirSync(join(outside, '.ok'), { recursive: true });
+ writeFileSync(join(outside, '.ok', 'config.yml'), 'content:\n dir: .\n');
+ const projected = join(fixture.external, 'packages', 'docs');
+ rmSync(projected, { recursive: true, force: true });
+ symlinkSync(outside, projected);
+ const service = new WorktreeInventoryService();
+ const result = await service.inventory(join(fixture.repo, 'packages', 'docs'));
+ expect(result.ok).toBe(true);
+ if (!result.ok) return;
+ expect(
+ result.inventory.entries.find((entry) => entry.checkoutRoot === fixture.external),
+ ).toMatchObject({
+ projectPath: outside,
+ availability: 'unreadable',
+ location: 'external',
+ });
+ });
+
+ test('preserves detached and locked facts while keeping an available locked entry openable', async () => {
+ fixture = await makeFixture();
+ await git(fixture.external, 'checkout', '--detach', 'HEAD');
+ await git(fixture.repo, 'worktree', 'lock', fixture.internal);
+ const service = new WorktreeInventoryService();
+ const result = await service.inventory(fixture.repo);
+ expect(result.ok).toBe(true);
+ if (!result.ok) return;
+ expect(result.inventory.entries.find((entry) => entry.location === 'external')).toMatchObject({
+ branch: null,
+ availability: 'available',
+ });
+ const locked = result.inventory.entries.find((entry) => entry.location === 'internal');
+ expect(locked).toMatchObject({ locked: true, availability: 'available', prunable: false });
+ if (locked === undefined) throw new Error('missing locked entry');
+ const validated = await service.validateOpen({
+ anchorProjectPath: fixture.repo,
+ gitCommonDir: result.inventory.gitCommonDir,
+ projectSubPath: result.inventory.projectSubPath,
+ checkoutRoot: locked.checkoutRoot,
+ projectPath: locked.projectPath,
+ });
+ expect(validated).toEqual({ ok: true, projectPath: locked.projectPath });
+ });
+
+ test('reports initial enumeration failure instead of an empty inventory', async () => {
+ const service = new WorktreeInventoryService({
+ classifyProject: async () => ({
+ gitCommonDir: '/repo/.git',
+ mainRoot: '/repo',
+ checkoutRoot: '/repo',
+ projectSubPath: '',
+ isLinkedWorktree: false,
+ }),
+ readSnapshot: async () => ({ ok: false }),
+ availability: () => 'available',
+ checkoutAvailability: () => 'available',
+ canonicalize: (path) => path,
+ now: () => 0,
+ });
+ await expect(service.inventory('/repo')).resolves.toEqual({
+ ok: false,
+ reason: 'enumeration-failed',
+ });
+ });
+
+ test('deduplicates concurrent raw snapshots and reuses a successful snapshot within the TTL', async () => {
+ let reads = 0;
+ let release: ((result: { ok: true; entries: readonly BridgeWorktreeEntry[] }) => void) | null =
+ null;
+ const pending = new Promise<{ ok: true; entries: readonly BridgeWorktreeEntry[] }>(
+ (resolve) => {
+ release = resolve;
+ },
+ );
+ const service = new WorktreeInventoryService({
+ classifyProject: async () => ({
+ gitCommonDir: '/repo/.git',
+ mainRoot: '/repo',
+ checkoutRoot: '/repo',
+ projectSubPath: '',
+ isLinkedWorktree: false,
+ }),
+ readSnapshot: async () => {
+ reads += 1;
+ return pending;
+ },
+ availability: () => 'available',
+ checkoutAvailability: () => 'available',
+ canonicalize: (path) => path,
+ now: () => 100,
+ });
+ const first = service.inventory('/repo');
+ const second = service.inventory('/repo');
+ await Promise.resolve();
+ await Promise.resolve();
+ expect(reads).toBe(1);
+ release?.({
+ ok: true,
+ entries: [
+ {
+ path: '/repo',
+ branch: 'main',
+ headSha: '1',
+ locked: false,
+ prunable: false,
+ },
+ ],
+ });
+ await Promise.all([first, second]);
+ await service.inventory('/repo');
+ expect(reads).toBe(1);
+ });
+
+ test('invalidation forces a new snapshot and prevents an older read from replacing it', async () => {
+ const releases: Array<(result: { ok: true; entries: readonly BridgeWorktreeEntry[] }) => void> =
+ [];
+ let reads = 0;
+ const service = new WorktreeInventoryService({
+ classifyProject: async () => ({
+ gitCommonDir: '/repo/.git',
+ mainRoot: '/repo',
+ checkoutRoot: '/repo',
+ projectSubPath: '',
+ isLinkedWorktree: false,
+ }),
+ readSnapshot: async () => {
+ reads += 1;
+ return new Promise((resolve) => releases.push(resolve));
+ },
+ availability: () => 'available',
+ checkoutAvailability: () => 'available',
+ canonicalize: (path) => path,
+ now: () => 100,
+ });
+ const stale = service.inventory('/repo');
+ await Promise.resolve();
+ service.invalidate('/repo/.git');
+ const fresh = service.inventory('/repo');
+ await Promise.resolve();
+ expect(reads).toBe(2);
+ releases[1]?.({
+ ok: true,
+ entries: [{ path: '/repo', branch: 'fresh', headSha: '2', locked: false, prunable: false }],
+ });
+ await fresh;
+ releases[0]?.({
+ ok: true,
+ entries: [{ path: '/repo', branch: 'stale', headSha: '1', locked: false, prunable: false }],
+ });
+ await stale;
+ const cached = await service.inventory('/repo');
+ expect(cached.ok && cached.inventory.entries[0]?.branch).toBe('fresh');
+ expect(reads).toBe(2);
+ });
+
+ test('rejects malformed inventory and open requests before reading Git', async () => {
+ let classified = 0;
+ const service = new WorktreeInventoryService({
+ classifyProject: async () => {
+ classified += 1;
+ throw new Error('must not classify invalid input');
+ },
+ readSnapshot: async () => ({ ok: false }),
+ availability: () => 'available',
+ checkoutAvailability: () => 'available',
+ canonicalize: (path) => path,
+ now: () => 0,
+ });
+ await expect(service.inventory('relative/repo')).resolves.toEqual({
+ ok: false,
+ reason: 'invalid-request',
+ });
+ await expect(service.inventory('/repo\0other')).resolves.toEqual({
+ ok: false,
+ reason: 'invalid-request',
+ });
+ const valid = {
+ anchorProjectPath: '/repo',
+ gitCommonDir: '/repo/.git',
+ projectSubPath: 'packages/docs',
+ checkoutRoot: '/repo',
+ projectPath: '/repo/packages/docs',
+ } as const;
+ const malformed = [
+ { ...valid, anchorProjectPath: 'repo' },
+ { ...valid, gitCommonDir: 'repo/.git' },
+ { ...valid, checkoutRoot: 'repo' },
+ { ...valid, projectPath: 'repo/packages/docs' },
+ { ...valid, projectSubPath: '/packages/docs' },
+ { ...valid, projectSubPath: 'packages/../docs' },
+ { ...valid, projectPath: '/repo/packages/docs\0other' },
+ ];
+ for (const request of malformed) {
+ await expect(service.validateOpen(request)).resolves.toEqual({
+ ok: false,
+ reason: 'invalid-request',
+ });
+ }
+ expect(classified).toBe(0);
+ });
+
+ test('refuses prunable, missing, and differently resolved open identities', async () => {
+ const raw: BridgeWorktreeEntry[] = [
+ {
+ path: '/repo',
+ branch: 'main',
+ headSha: '1',
+ locked: false,
+ prunable: false,
+ },
+ {
+ path: '/gone',
+ branch: 'gone',
+ headSha: '2',
+ locked: false,
+ prunable: true,
+ },
+ {
+ path: '/missing',
+ branch: 'missing',
+ headSha: '3',
+ locked: false,
+ prunable: false,
+ },
+ ];
+ const service = new WorktreeInventoryService({
+ classifyProject: async () => ({
+ gitCommonDir: '/repo/.git',
+ mainRoot: '/repo',
+ checkoutRoot: '/repo',
+ projectSubPath: '',
+ isLinkedWorktree: false,
+ }),
+ readSnapshot: async () => ({ ok: true, entries: raw }),
+ availability: (path) => (path === '/repo' ? 'available' : 'missing'),
+ checkoutAvailability: (path) => (path === '/repo' ? 'available' : 'missing'),
+ canonicalize: (path) => path,
+ now: () => 0,
+ });
+ await expect(
+ service.validateOpen({
+ anchorProjectPath: '/repo',
+ gitCommonDir: '/repo/.git',
+ projectSubPath: '',
+ checkoutRoot: '/gone',
+ projectPath: '/gone',
+ }),
+ ).resolves.toEqual({ ok: false, reason: 'prunable' });
+ await expect(
+ service.validateOpen({
+ anchorProjectPath: '/repo',
+ gitCommonDir: '/repo/.git',
+ projectSubPath: '',
+ checkoutRoot: '/missing',
+ projectPath: '/missing',
+ }),
+ ).resolves.toEqual({ ok: false, reason: 'project-unavailable' });
+ await expect(
+ service.validateOpen({
+ anchorProjectPath: '/repo',
+ gitCommonDir: '/other/.git',
+ projectSubPath: '',
+ checkoutRoot: '/repo',
+ projectPath: '/repo',
+ }),
+ ).resolves.toEqual({ ok: false, reason: 'repository-changed' });
+ });
+});
+
+describe('classifyLocation', () => {
+ test('uses segment-aware containment and rejects same-prefix external paths', () => {
+ expect(classifyLocation('/repo', '/repo')).toBe('primary');
+ expect(classifyLocation('/repo', '/repo/.ok/worktrees/dev')).toBe('internal');
+ expect(classifyLocation('/repo', '/repo/.ok/worktrees-prefix/dev')).toBe('external');
+ expect(classifyLocation('/repo', '/repo-copy/.ok/worktrees/dev')).toBe('external');
+ });
+});
+
+describe('isAllowedInventoryAnchor', () => {
+ test('accepts only the active project and persisted recent projects', () => {
+ expect(isAllowedInventoryAnchor('/repo/current', '/repo/current', ['/repo/other'])).toBe(true);
+ expect(isAllowedInventoryAnchor('/repo/other', '/repo/current', ['/repo/other'])).toBe(true);
+ expect(isAllowedInventoryAnchor('/private/repo', '/repo/current', ['/repo/other'])).toBe(false);
+ expect(isAllowedInventoryAnchor('relative', '/repo/current', ['/repo/other'])).toBe(false);
+ });
+});
diff --git a/packages/desktop/src/main/worktree-inventory.ts b/packages/desktop/src/main/worktree-inventory.ts
new file mode 100644
index 000000000..1bb47fac8
--- /dev/null
+++ b/packages/desktop/src/main/worktree-inventory.ts
@@ -0,0 +1,315 @@
+import { realpathSync, statSync } from 'node:fs';
+import { isAbsolute, join, resolve } from 'node:path';
+import type {
+ BridgeWorktreeEntry,
+ WorktreeInventoryAvailability,
+ WorktreeInventoryEntry,
+ WorktreeInventoryLocation,
+ WorktreeInventoryModel,
+ WorktreeInventoryOpenRequest,
+ WorktreeInventoryOpenResult,
+ WorktreeInventoryResult,
+} from '@inkeep/open-knowledge-core';
+import { WORKTREES_PARENT_DIR } from '@inkeep/open-knowledge-core';
+import { isProjectRoot } from '@inkeep/open-knowledge-server';
+import { isPathWithinProject } from '../shared/path-containment.ts';
+import { type GitWorktreeSnapshotResult, readGitWorktreeSnapshot } from './list-git-worktrees.ts';
+import { classifyRecentGitAsync, type RecentGitInfo } from './worktree-recents.ts';
+
+const SNAPSHOT_TTL_MS = 5_000;
+const SNAPSHOT_CACHE_CAP = 12;
+
+interface CachedSnapshot {
+ readonly loadedAt: number;
+ readonly entries: readonly BridgeWorktreeEntry[];
+}
+
+export interface WorktreeInventoryServiceDeps {
+ readonly classifyProject: (projectPath: string, fresh?: boolean) => Promise<RecentGitInfo>;
+ readonly readSnapshot: (anchorPath: string) => Promise<GitWorktreeSnapshotResult>;
+ readonly availability: (path: string) => WorktreeInventoryAvailability;
+ readonly checkoutAvailability: (path: string) => WorktreeInventoryAvailability;
+ readonly canonicalize: (path: string) => string;
+ readonly now: () => number;
+}
+
+export interface ValidatedWorktreeInventoryTarget {
+ readonly ok: true;
+ readonly projectPath: string;
+}
+
+export function isAllowedInventoryAnchor(
+ requestedPath: string,
+ currentProjectPath: string,
+ recentProjectPaths: readonly string[],
+): boolean {
+ if (!isAbsolute(requestedPath) || requestedPath.includes('\0')) return false;
+ const canonicalRequested = canonicalPath(requestedPath);
+ return [currentProjectPath, ...recentProjectPaths].some(
+ (candidate) => canonicalPath(candidate) === canonicalRequested,
+ );
+}
+
+type WorktreeInventoryOpenFailure = Extract<WorktreeInventoryOpenResult, { readonly ok: false }>;
+
+export class WorktreeInventoryService {
+ readonly #deps: WorktreeInventoryServiceDeps;
+ readonly #cache = new Map<string, CachedSnapshot>();
+ readonly #inFlight = new Map<string, Promise<GitWorktreeSnapshotResult>>();
+ readonly #requestSequence = new Map<string, number>();
+
+ constructor(deps: WorktreeInventoryServiceDeps = defaultDeps()) {
+ this.#deps = deps;
+ }
+
+ invalidate(gitCommonDir?: string): void {
+ if (gitCommonDir === undefined) {
+ this.#cache.clear();
+ this.#inFlight.clear();
+ for (const key of this.#requestSequence.keys()) this.#advanceSequence(key);
+ return;
+ }
+ this.#cache.delete(gitCommonDir);
+ this.#inFlight.delete(gitCommonDir);
+ this.#advanceSequence(gitCommonDir);
+ }
+
+ async inventory(projectPath: string, fresh = false): Promise<WorktreeInventoryResult> {
+ if (!isAbsolute(projectPath) || projectPath.includes('\0')) {
+ return { ok: false, reason: 'invalid-request' };
+ }
+ const git = await this.#deps.classifyProject(projectPath, fresh);
+ if (!hasInventoryIdentity(git)) return { ok: false, reason: 'no-git' };
+
+ const snapshot = await this.#loadSnapshot(git.gitCommonDir, projectPath, fresh);
+ if (!snapshot.ok) return { ok: false, reason: 'enumeration-failed' };
+ if (snapshot.entries.length === 0) return { ok: false, reason: 'no-git' };
+
+ return {
+ ok: true,
+ inventory: projectSnapshot(git, snapshot.entries, this.#deps),
+ };
+ }
+
+ async validateOpen(
+ request: WorktreeInventoryOpenRequest,
+ ): Promise<ValidatedWorktreeInventoryTarget | WorktreeInventoryOpenFailure> {
+ if (!validOpenRequest(request)) return { ok: false, reason: 'invalid-request' };
+ const result = await this.inventory(request.anchorProjectPath, true);
+ if (!result.ok) return result;
+ const inventory = result.inventory;
+ if (
+ inventory.gitCommonDir !== request.gitCommonDir ||
+ inventory.projectSubPath !== request.projectSubPath
+ ) {
+ return { ok: false, reason: 'repository-changed' };
+ }
+ const entry = inventory.entries.find(
+ (candidate) =>
+ candidate.checkoutRoot === request.checkoutRoot &&
+ candidate.projectPath === request.projectPath,
+ );
+ if (entry === undefined) return { ok: false, reason: 'not-registered' };
+ if (entry.prunable) return { ok: false, reason: 'prunable' };
+ if (entry.availability !== 'available') {
+ return { ok: false, reason: 'project-unavailable' };
+ }
+ const selectedGit = await this.#deps.classifyProject(entry.projectPath, true);
+ if (!hasInventoryIdentity(selectedGit)) {
+ return { ok: false, reason: 'project-unavailable' };
+ }
+ if (
+ selectedGit.gitCommonDir !== inventory.gitCommonDir ||
+ selectedGit.checkoutRoot !== entry.checkoutRoot ||
+ selectedGit.projectSubPath !== inventory.projectSubPath
+ ) {
+ return { ok: false, reason: 'repository-changed' };
+ }
+ return { ok: true, projectPath: entry.projectPath };
+ }
+
+ async #loadSnapshot(
+ gitCommonDir: string,
+ anchorPath: string,
+ fresh: boolean,
+ ): Promise<GitWorktreeSnapshotResult> {
+ const cached = this.#cache.get(gitCommonDir);
+ if (!fresh && cached !== undefined && this.#deps.now() - cached.loadedAt < SNAPSHOT_TTL_MS) {
+ this.#cache.delete(gitCommonDir);
+ this.#cache.set(gitCommonDir, cached);
+ return { ok: true, entries: cached.entries };
+ }
+ if (!fresh) {
+ const pending = this.#inFlight.get(gitCommonDir);
+ if (pending !== undefined) return pending;
+ }
+ const sequence = this.#advanceSequence(gitCommonDir);
+ const pending = this.#deps.readSnapshot(anchorPath).then((result) => {
+ if (result.ok && this.#requestSequence.get(gitCommonDir) === sequence) {
+ this.#remember(gitCommonDir, result.entries);
+ }
+ return result;
+ });
+ if (fresh) return pending;
+ this.#inFlight.set(gitCommonDir, pending);
+ try {
+ return await pending;
+ } finally {
+ if (this.#inFlight.get(gitCommonDir) === pending) this.#inFlight.delete(gitCommonDir);
+ }
+ }
+
+ #remember(gitCommonDir: string, entries: readonly BridgeWorktreeEntry[]): void {
+ this.#cache.delete(gitCommonDir);
+ this.#cache.set(gitCommonDir, { loadedAt: this.#deps.now(), entries });
+ while (this.#cache.size > SNAPSHOT_CACHE_CAP) {
+ const oldest = this.#cache.keys().next().value;
+ if (oldest === undefined) break;
+ this.#cache.delete(oldest);
+ }
+ }
+
+ #advanceSequence(gitCommonDir: string): number {
+ const next = (this.#requestSequence.get(gitCommonDir) ?? 0) + 1;
+ this.#requestSequence.set(gitCommonDir, next);
+ return next;
+ }
+}
+
+function projectSnapshot(
+ git: RecentGitInfo & {
+ gitCommonDir: string;
+ mainRoot: string;
+ checkoutRoot: string;
+ projectSubPath: string;
+ },
+ rawEntries: readonly BridgeWorktreeEntry[],
+ deps: Pick<
+ WorktreeInventoryServiceDeps,
+ 'availability' | 'canonicalize' | 'checkoutAvailability'
+ >,
+): WorktreeInventoryModel {
+ const primaryCheckoutRoot = deps.canonicalize(rawEntries[0]?.path ?? git.mainRoot);
+ const entries = rawEntries.map((raw): WorktreeInventoryEntry => {
+ const checkoutRoot = deps.canonicalize(raw.path);
+ const checkoutAvailability = deps.checkoutAvailability(checkoutRoot);
+ const projected =
+ git.projectSubPath.length === 0 ? checkoutRoot : join(checkoutRoot, git.projectSubPath);
+ let availability = deps.availability(projected);
+ const projectPath =
+ availability === 'available' ? deps.canonicalize(projected) : resolve(projected);
+ if (
+ availability === 'available' &&
+ !isPathWithinProject(projectPath, checkoutRoot, process.platform)
+ ) {
+ availability = 'unreadable';
+ }
+ const location =
+ checkoutAvailability === 'available' || checkoutRoot === primaryCheckoutRoot
+ ? classifyLocation(primaryCheckoutRoot, checkoutRoot)
+ : 'unknown';
+ return {
+ checkoutRoot,
+ projectPath,
+ branch: raw.branch,
+ headSha: raw.headSha,
+ location,
+ availability,
+ locked: raw.locked,
+ prunable: raw.prunable,
+ };
+ });
+ return {
+ gitCommonDir: git.gitCommonDir,
+ primaryCheckoutRoot,
+ projectSubPath: git.projectSubPath,
+ entries,
+ };
+}
+
+export function classifyLocation(
+ primaryCheckoutRoot: string,
+ checkoutRoot: string,
+): WorktreeInventoryLocation {
+ if (checkoutRoot === primaryCheckoutRoot) return 'primary';
+ const internalRoot = join(primaryCheckoutRoot, WORKTREES_PARENT_DIR);
+ return isPathWithinProject(checkoutRoot, internalRoot, process.platform) &&
+ internalRoot !== checkoutRoot
+ ? 'internal'
+ : 'external';
+}
+
+function hasInventoryIdentity(git: RecentGitInfo): git is RecentGitInfo & {
+ gitCommonDir: string;
+ mainRoot: string;
+ checkoutRoot: string;
+ projectSubPath: string;
+} {
+ return (
+ git.gitCommonDir !== null &&
+ git.mainRoot !== null &&
+ git.checkoutRoot !== null &&
+ git.projectSubPath !== null
+ );
+}
+
+function validOpenRequest(request: WorktreeInventoryOpenRequest): boolean {
+ if (
+ request.anchorProjectPath.includes('\0') ||
+ request.gitCommonDir.includes('\0') ||
+ request.projectSubPath.includes('\0') ||
+ request.checkoutRoot.includes('\0') ||
+ request.projectPath.includes('\0')
+ ) {
+ return false;
+ }
+ if (
+ !isAbsolute(request.anchorProjectPath) ||
+ !isAbsolute(request.gitCommonDir) ||
+ !isAbsolute(request.checkoutRoot) ||
+ !isAbsolute(request.projectPath) ||
+ isAbsolute(request.projectSubPath)
+ ) {
+ return false;
+ }
+ const segments = request.projectSubPath.split(/[\\/]/);
+ return !segments.some((segment) => segment === '..');
+}
+
+function defaultDeps(): WorktreeInventoryServiceDeps {
+ return {
+ classifyProject: classifyRecentGitAsync,
+ readSnapshot: readGitWorktreeSnapshot,
+ availability: filesystemAvailability,
+ checkoutAvailability: filesystemDirectoryAvailability,
+ canonicalize: canonicalPath,
+ now: Date.now,
+ };
+}
+
+function canonicalPath(path: string): string {
+ try {
+ return realpathSync(path);
+ } catch {
+ return resolve(path);
+ }
+}
+
+function filesystemAvailability(path: string): WorktreeInventoryAvailability {
+ try {
+ if (!statSync(path).isDirectory()) return 'missing';
+ return isProjectRoot(path) ? 'available' : 'missing';
+ } catch (error) {
+ const code = (error as NodeJS.ErrnoException).code;
+ return code === 'ENOENT' || code === 'ENOTDIR' ? 'missing' : 'unreadable';
+ }
+}
+
+function filesystemDirectoryAvailability(path: string): WorktreeInventoryAvailability {
+ try {
+ return statSync(path).isDirectory() ? 'available' : 'missing';
+ } catch (error) {
+ const code = (error as NodeJS.ErrnoException).code;
+ return code === 'ENOENT' || code === 'ENOTDIR' ? 'missing' : 'unreadable';
+ }
+}
diff --git a/packages/desktop/src/main/worktree-recents.test.ts b/packages/desktop/src/main/worktree-recents.test.ts
index c76b83ab4..172b8d48e 100644
--- a/packages/desktop/src/main/worktree-recents.test.ts
+++ b/packages/desktop/src/main/worktree-recents.test.ts
@@ -78,6 +78,25 @@ describe('classifyRecentGit', () => {
expect(main.gitCommonDir).toBe(linked.gitCommonDir);
});
+ test('records checkout root and project-relative path for nested project scopes', async () => {
+ handle = await makeRepoWithWorktree();
+ const nestedMain = join(handle.mainRepo, 'packages', 'docs');
+ const nestedLinked = join(handle.worktree, 'packages', 'docs');
+ mkdirSync(nestedMain, { recursive: true });
+ mkdirSync(nestedLinked, { recursive: true });
+ const main = classifyRecentGit(nestedMain);
+ const linked = classifyRecentGit(nestedLinked);
+ expect(main).toMatchObject({
+ checkoutRoot: handle.mainRepo,
+ projectSubPath: join('packages', 'docs'),
+ });
+ expect(linked).toMatchObject({
+ checkoutRoot: handle.worktree,
+ projectSubPath: join('packages', 'docs'),
+ });
+ expect(main.gitCommonDir).toBe(linked.gitCommonDir);
+ });
+
test('non-git dir → empty classification', () => {
const tmp = realpathSync(mkdtempSync(join(tmpdir(), 'wt-recents-nogit-')));
try {
diff --git a/packages/desktop/src/main/worktree-recents.ts b/packages/desktop/src/main/worktree-recents.ts
index 1d29eded1..0eb60cde5 100644
--- a/packages/desktop/src/main/worktree-recents.ts
+++ b/packages/desktop/src/main/worktree-recents.ts
@@ -1,6 +1,6 @@
import { execFile, execFileSync } from 'node:child_process';
import { realpathSync } from 'node:fs';
-import { basename, dirname, isAbsolute, resolve } from 'node:path';
+import { basename, dirname, isAbsolute, relative, resolve, sep } from 'node:path';
import { promisify } from 'node:util';
import { gitSpawnEnv } from './git-spawn-env.ts';
@@ -9,10 +9,18 @@ const execFileAsync = promisify(execFile);
export interface RecentGitInfo {
readonly gitCommonDir: string | null;
readonly mainRoot: string | null;
+ readonly checkoutRoot: string | null;
+ readonly projectSubPath: string | null;
readonly isLinkedWorktree: boolean;
}
-const EMPTY: RecentGitInfo = { gitCommonDir: null, mainRoot: null, isLinkedWorktree: false };
+const EMPTY: RecentGitInfo = {
+ gitCommonDir: null,
+ mainRoot: null,
+ checkoutRoot: null,
+ projectSubPath: null,
+ isLinkedWorktree: false,
+};
const cache = new Map<string, RecentGitInfo>();
@@ -67,7 +75,10 @@ export function classifyRecentGit(projectPath: string): RecentGitInfo {
return info;
}
-export async function classifyRecentGitAsync(projectPath: string): Promise<RecentGitInfo> {
+export async function classifyRecentGitAsync(
+ projectPath: string,
+ fresh = false,
+): Promise<RecentGitInfo> {
if (!isAbsolute(projectPath)) return EMPTY;
let key: string;
try {
@@ -75,7 +86,7 @@ export async function classifyRecentGitAsync(projectPath: string): Promise<Recen
} catch {
return EMPTY;
}
- const cached = cache.get(key);
+ const cached = fresh ? undefined : cache.get(key);
if (cached !== undefined) return cached;
const info = await computeRecentGitAsync(key);
@@ -103,7 +114,7 @@ function computeRecentGit(realPath: string): RecentGitInfo {
} catch {
return EMPTY;
}
- return parseRevParse(out);
+ return parseRevParse(out, realPath);
}
async function computeRecentGitAsync(realPath: string): Promise<RecentGitInfo> {
@@ -118,18 +129,31 @@ async function computeRecentGitAsync(realPath: string): Promise<RecentGitInfo> {
} catch {
return EMPTY;
}
- return parseRevParse(out);
+ return parseRevParse(out, realPath);
}
-function parseRevParse(out: string): RecentGitInfo {
+function parseRevParse(out: string, projectPath: string): RecentGitInfo {
const [topLevelRaw, commonDirRaw] = out.split('\n');
const topLevel = topLevelRaw?.trim();
const commonDir = commonDirRaw?.trim();
if (!topLevel || !commonDir) return EMPTY;
- const mainRoot = basename(commonDir) === '.git' ? dirname(commonDir) : topLevel;
- const isLinkedWorktree = realpathEq(topLevel, mainRoot) === false;
- return { gitCommonDir: commonDir, mainRoot, isLinkedWorktree };
+ const checkoutRoot = safeRealpath(topLevel);
+ const gitCommonDir = safeRealpath(commonDir);
+ const mainRoot = safeRealpath(
+ basename(gitCommonDir) === '.git' ? dirname(gitCommonDir) : topLevel,
+ );
+ const isLinkedWorktree = realpathEq(checkoutRoot, mainRoot) === false;
+ const relativeProjectPath = relative(checkoutRoot, projectPath);
+ if (
+ relativeProjectPath === '..' ||
+ relativeProjectPath.startsWith(`..${sep}`) ||
+ isAbsolute(relativeProjectPath)
+ ) {
+ return EMPTY;
+ }
+ const projectSubPath = relativeProjectPath === '.' ? '' : relativeProjectPath;
+ return { gitCommonDir, mainRoot, checkoutRoot, projectSubPath, isLinkedWorktree };
}
function realpathEq(a: string, b: string): boolean {
diff --git a/packages/desktop/src/main/worktree-service.test.ts b/packages/desktop/src/main/worktree-service.test.ts
index adb60cca9..efbaf9e0c 100644
--- a/packages/desktop/src/main/worktree-service.test.ts
+++ b/packages/desktop/src/main/worktree-service.test.ts
@@ -3,9 +3,11 @@ import {
existsSync,
mkdirSync,
mkdtempSync,
+ readdirSync,
readFileSync,
realpathSync,
rmSync,
+ symlinkSync,
writeFileSync,
} from 'node:fs';
import { tmpdir } from 'node:os';
@@ -179,6 +181,19 @@ describe('worktree-service', () => {
expect(res.reason).toBe('invalid-branch');
});
+ test('createWorktree rejects a path-escaping project scope before spawning git', async () => {
+ handle = await makeRepo(['dev']);
+ const res = await createWorktree({
+ anchorPath: handle.mainRepo,
+ branch: 'dev',
+ createBranch: false,
+ projectSubPath: '../outside',
+ sourceProjectPath: handle.mainRepo,
+ });
+ expect(res).toEqual({ ok: false, reason: 'error', message: 'Invalid project scope' });
+ expect(existsSync(join(handle.mainRepo, '.ok', 'worktrees', 'dev'))).toBe(false);
+ });
+
test('createWorktree reports empty-repo (not the generic arm) on a repo with no commits', async () => {
const root = realpathSync(mkdtempSync(join(tmpdir(), 'wt-svc-empty-')));
try {
@@ -842,6 +857,184 @@ describe('worktree-service — inherited OK setup (no consent dialog)', () => {
expect(status).not.toContain('.mcp.json');
});
+ test('local-only nested project: create seeds and opens the exact projected project scope', async () => {
+ handle = await makeRepo(['nested-work']);
+ const sourceProject = join(handle.mainRepo, 'packages', 'docs');
+ mkdirSync(sourceProject, { recursive: true });
+ writeFileSync(join(sourceProject, 'README.md'), '# docs\n');
+ await git(handle.mainRepo, 'add', 'packages/docs/README.md');
+ await git(handle.mainRepo, 'commit', '-m', 'add nested project directory');
+ await git(handle.mainRepo, 'branch', '-f', 'nested-work', 'HEAD');
+ initContent(sourceProject);
+ const gitDir = (await git(handle.mainRepo, 'rev-parse', '--git-common-dir')).trim();
+ const excludePath = join(handle.mainRepo, gitDir, 'info', 'exclude');
+ writeFileSync(excludePath, `${readFileSync(excludePath, 'utf-8')}\n.ok/\n`);
+ expect(await isIgnored(handle.mainRepo, 'packages/docs/.ok/config.yml')).toBe(true);
+
+ const result = await createWorktree({
+ anchorPath: sourceProject,
+ branch: 'nested-work',
+ createBranch: false,
+ projectSubPath: join('packages', 'docs'),
+ sourceProjectPath: sourceProject,
+ });
+ expect(result.ok).toBe(true);
+ if (!result.ok) return;
+ const projectedProject = join(result.path, 'packages', 'docs');
+ expect(existsSync(join(projectedProject, '.ok', 'config.yml'))).toBe(true);
+ const discovery = await discoverProject(projectedProject, {
+ homeDir: handle.root,
+ dirSizeProbe: null,
+ });
+ expect(discovery).toMatchObject({
+ kind: 'managed',
+ projectDir: projectedProject,
+ pickedPath: projectedProject,
+ ancestorPromoted: false,
+ });
+ });
+
+ test('project setup never writes through a committed symlink outside the new worktree', async () => {
+ handle = await makeRepo();
+ const outside = join(handle.root, 'outside');
+ mkdirSync(outside);
+ mkdirSync(join(handle.mainRepo, 'packages'));
+ symlinkSync(outside, join(handle.mainRepo, 'packages', 'docs'));
+ await git(handle.mainRepo, 'add', 'packages/docs');
+ await git(handle.mainRepo, 'commit', '-m', 'add escaping project symlink');
+ await git(handle.mainRepo, 'branch', 'symlink-scope');
+
+ const result = await createWorktree({
+ anchorPath: handle.mainRepo,
+ branch: 'symlink-scope',
+ createBranch: false,
+ projectSubPath: join('packages', 'docs'),
+ sourceProjectPath: handle.mainRepo,
+ });
+
+ expect(result).toMatchObject({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'outside-worktree',
+ created: true,
+ });
+ expect(readdirSync(outside)).toEqual([]);
+ });
+
+ test('a nested project absent on the target branch is returned as an explicit failure', async () => {
+ handle = await makeRepo();
+ await git(handle.mainRepo, 'branch', 'before-nested-project');
+ const sourceProject = join(handle.mainRepo, 'packages', 'docs');
+ mkdirSync(sourceProject, { recursive: true });
+ initContent(sourceProject);
+
+ const result = await createWorktree({
+ anchorPath: sourceProject,
+ branch: 'before-nested-project',
+ createBranch: false,
+ projectSubPath: join('packages', 'docs'),
+ sourceProjectPath: sourceProject,
+ });
+
+ expect(result).toMatchObject({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'missing',
+ created: true,
+ });
+ if (result.ok || result.reason !== 'project-scope-unavailable') return;
+ expect(result.path).toBe(join(handle.mainRepo, '.ok', 'worktrees', 'before-nested-project'));
+ });
+
+ test('auto-sync setup never writes through a committed .ok symlink', async () => {
+ handle = await makeRepo();
+ const outside = join(handle.root, 'outside-ok');
+ mkdirSync(outside);
+ await git(handle.mainRepo, 'checkout', '-b', 'unsafe-ok');
+ rmSync(join(handle.mainRepo, '.ok'), { recursive: true });
+ symlinkSync(outside, join(handle.mainRepo, '.ok'));
+ await git(handle.mainRepo, 'add', '-A');
+ await git(handle.mainRepo, 'commit', '-m', 'redirect project setup');
+ await git(handle.mainRepo, 'checkout', 'main');
+ mkdirSync(join(handle.mainRepo, '.ok', 'local'), { recursive: true });
+ writeFileSync(join(handle.mainRepo, '.ok', 'local', 'config.yml'), 'autoSync:\n mode: pull\n');
+
+ const result = await createWorktree({
+ anchorPath: handle.mainRepo,
+ branch: 'unsafe-ok',
+ createBranch: false,
+ sourceProjectPath: handle.mainRepo,
+ });
+
+ expect(result).toMatchObject({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'unsafe-setup-path',
+ created: true,
+ });
+ expect(readdirSync(outside)).toEqual([]);
+ });
+
+ test.each([
+ ['.cursor', 'unsafe-editor-config'],
+ ['.agents', 'unsafe-shared-skill'],
+ ] as const)('editor setup never writes through a committed %s symlink', async (link, branch) => {
+ handle = await makeRepo();
+ const outside = join(handle.root, branch);
+ mkdirSync(outside);
+ await git(handle.mainRepo, 'checkout', '-b', branch);
+ symlinkSync(outside, join(handle.mainRepo, link));
+ await git(handle.mainRepo, 'add', link);
+ await git(handle.mainRepo, 'commit', '-m', `redirect ${link}`);
+ await git(handle.mainRepo, 'checkout', 'main');
+ mkdirSync(join(handle.mainRepo, '.cursor'), { recursive: true });
+ writeFileSync(
+ join(handle.mainRepo, '.cursor', 'mcp.json'),
+ JSON.stringify({ mcpServers: { 'open-knowledge': { command: '# ok-mcp-v1' } } }),
+ );
+
+ const result = await createWorktree({
+ anchorPath: handle.mainRepo,
+ branch,
+ createBranch: false,
+ sourceProjectPath: handle.mainRepo,
+ });
+
+ expect(result).toMatchObject({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'unsafe-setup-path',
+ created: true,
+ });
+ expect(readdirSync(outside)).toEqual([]);
+ });
+
+ test('a non-symlink setup failure is not reported as a branch redirect', async () => {
+ handle = await makeRepo();
+ await git(handle.mainRepo, 'checkout', '-b', 'blocked-local-config');
+ mkdirSync(join(handle.mainRepo, '.ok'), { recursive: true });
+ writeFileSync(join(handle.mainRepo, '.ok', 'local'), 'not a directory\n');
+ await git(handle.mainRepo, 'add', '.ok/local');
+ await git(handle.mainRepo, 'commit', '-m', 'block local config directory');
+ await git(handle.mainRepo, 'checkout', 'main');
+ mkdirSync(join(handle.mainRepo, '.ok', 'local'), { recursive: true });
+ writeFileSync(join(handle.mainRepo, '.ok', 'local', 'config.yml'), 'autoSync:\n mode: pull\n');
+
+ const result = await createWorktree({
+ anchorPath: handle.mainRepo,
+ branch: 'blocked-local-config',
+ createBranch: false,
+ sourceProjectPath: handle.mainRepo,
+ });
+
+ expect(result).toMatchObject({
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: 'setup-failed',
+ created: true,
+ });
+ });
+
test('shared root (config committed): createWorktree opens managed and never clobbers the committed config', async () => {
handle = await makeRepo();
const res = await createWorktree({
diff --git a/packages/desktop/src/main/worktree-service.ts b/packages/desktop/src/main/worktree-service.ts
index bb0cca13f..9cb332849 100644
--- a/packages/desktop/src/main/worktree-service.ts
+++ b/packages/desktop/src/main/worktree-service.ts
@@ -1,5 +1,5 @@
import { execFile, execFileSync } from 'node:child_process';
-import { appendFileSync, readFileSync, realpathSync } from 'node:fs';
+import { appendFileSync, readFileSync, realpathSync, statSync } from 'node:fs';
import { isAbsolute, join, sep } from 'node:path';
import { promisify } from 'node:util';
import {
@@ -18,11 +18,17 @@ import {
worktreeRelativeDir,
} from '@inkeep/open-knowledge-core';
import { redactShareSubprocessStderr } from '@inkeep/open-knowledge-server';
+import { isPathWithinProject } from '../shared/path-containment.ts';
+import { getLogger } from './desktop-logger.ts';
import { gitSpawnEnv } from './git-spawn-env.ts';
import { listGitWorktrees } from './list-git-worktrees.ts';
import { seedWorktreeAutoSync } from './worktree-autosync-inherit.ts';
import { clearRecentGitCache } from './worktree-recents.ts';
-import { seedWorktreeProjectSetup } from './worktree-setup-inherit.ts';
+import {
+ assertWorktreeProjectSetupSafe,
+ seedWorktreeProjectSetup,
+ WorktreeSetupPathSafetyError,
+} from './worktree-setup-inherit.ts';
const execFileAsync = promisify(execFile);
@@ -40,6 +46,8 @@ export type { WorktreeCreateResult, WorktreeListResult };
export interface CreateWorktreeArgs extends WorktreeCreateRequest {
readonly anchorPath: string;
+ readonly projectSubPath?: string;
+ readonly sourceProjectPath?: string;
}
export async function listWorktreeSelector(
@@ -83,9 +91,16 @@ function resolveAnchorToplevel(
export async function createWorktree(args: CreateWorktreeArgs): Promise<WorktreeCreateResult> {
const rel = worktreeRelativeDir(args.branch);
+ const projectSubPath = args.projectSubPath ?? '';
if (rel === null || !isAbsolute(args.anchorPath)) {
return { ok: false, reason: 'invalid-branch' };
}
+ if (
+ (args.sourceProjectPath !== undefined && !isAbsolute(args.sourceProjectPath)) ||
+ !isValidProjectSubPath(projectSubPath)
+ ) {
+ return { ok: false, reason: 'error', message: 'Invalid project scope' };
+ }
const worktrees = await listGitWorktrees(args.anchorPath);
if (worktrees.length === 0) return { ok: false, reason: 'no-git' };
@@ -116,19 +131,99 @@ export async function createWorktree(args: CreateWorktreeArgs): Promise<Worktree
}
clearRecentGitCache();
+ const projectScope = resolveContainedProjectPath(worktreePath, projectSubPath);
+ if (!projectScope.ok) {
+ getLogger('worktree').warn(
+ { worktreePath, projectSubPath, issue: projectScope.issue },
+ 'skipped project setup outside the created worktree',
+ );
+ return {
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue: projectScope.issue,
+ path: worktreePath,
+ created: true,
+ };
+ }
+ const sourceProjectPath = args.sourceProjectPath ?? args.anchorPath;
try {
- await seedWorktreeAutoSync(worktreePath, mainRoot);
- } catch {}
+ seedWorktreeProjectSetup(projectScope.path, sourceProjectPath);
+ } catch (error) {
+ return projectSetupFailure(error, worktreePath, projectSubPath);
+ }
try {
- seedWorktreeProjectSetup(worktreePath, mainRoot);
- } catch {}
+ assertWorktreeProjectSetupSafe(projectScope.path, sourceProjectPath);
+ } catch (error) {
+ return projectSetupFailure(error, worktreePath, projectSubPath);
+ }
+ try {
+ await seedWorktreeAutoSync(projectScope.path, sourceProjectPath);
+ } catch (error) {
+ return projectSetupFailure(error, worktreePath, projectSubPath);
+ }
return { ok: true, path: worktreePath, created: true };
}
+function projectSetupFailure(
+ error: unknown,
+ worktreePath: string,
+ projectSubPath: string,
+): WorktreeCreateResult {
+ const issue =
+ error instanceof WorktreeSetupPathSafetyError ? 'unsafe-setup-path' : 'setup-failed';
+ getLogger('worktree').warn(
+ { worktreePath, projectSubPath, issue, error },
+ 'project setup failed in the created worktree',
+ );
+ return {
+ ok: false,
+ reason: 'project-scope-unavailable',
+ issue,
+ path: worktreePath,
+ created: true,
+ };
+}
+
+function isValidProjectSubPath(projectSubPath: string): boolean {
+ if (projectSubPath.includes('\0') || isAbsolute(projectSubPath)) return false;
+ return !projectSubPath.split(/[\\/]/).some((segment) => segment === '..');
+}
+
+type ProjectScopeResolution =
+ | { readonly ok: true; readonly path: string }
+ | {
+ readonly ok: false;
+ readonly issue: 'missing' | 'unreadable' | 'outside-worktree';
+ };
+
+function resolveContainedProjectPath(
+ worktreePath: string,
+ projectSubPath: string,
+): ProjectScopeResolution {
+ try {
+ const worktreeRoot = realpathSync(worktreePath);
+ const candidate =
+ projectSubPath.length === 0 ? worktreePath : join(worktreePath, projectSubPath);
+ if (!statSync(candidate).isDirectory()) return { ok: false, issue: 'missing' };
+ const canonicalCandidate = realpathSync(candidate);
+ return isPathWithinProject(canonicalCandidate, worktreeRoot, process.platform)
+ ? { ok: true, path: canonicalCandidate }
+ : { ok: false, issue: 'outside-worktree' };
+ } catch (error) {
+ const code = (error as NodeJS.ErrnoException).code;
+ return {
+ ok: false,
+ issue: code === 'ENOENT' || code === 'ENOTDIR' ? 'missing' : 'unreadable',
+ };
+ }
+}
+
export interface ShareBranchCheckoutArgs {
readonly anchorPath: string;
readonly branch: string;
readonly fetchTimeoutMs?: number;
+ readonly projectSubPath?: string;
+ readonly sourceProjectPath?: string;
}
export async function checkoutShareBranchWorktree(
@@ -146,7 +241,13 @@ export async function checkoutShareBranchWorktree(
if (worktrees.length === 0) return { ok: false, reason: 'no-git' };
if (await refExists(args.anchorPath, `refs/heads/${branch}`)) {
- return createWorktree({ anchorPath: args.anchorPath, branch, createBranch: false });
+ return createWorktree({
+ anchorPath: args.anchorPath,
+ branch,
+ createBranch: false,
+ projectSubPath: args.projectSubPath,
+ sourceProjectPath: args.sourceProjectPath,
+ });
}
const remoteRef = `origin/${branch}`;
if (!(await refExists(args.anchorPath, `refs/remotes/${remoteRef}`))) {
@@ -162,6 +263,8 @@ export async function checkoutShareBranchWorktree(
branch,
remoteRef,
createBranch: true,
+ projectSubPath: args.projectSubPath,
+ sourceProjectPath: args.sourceProjectPath,
});
}
diff --git a/packages/desktop/src/main/worktree-setup-inherit.ts b/packages/desktop/src/main/worktree-setup-inherit.ts
index 66f139dc8..9e6a20f12 100644
--- a/packages/desktop/src/main/worktree-setup-inherit.ts
+++ b/packages/desktop/src/main/worktree-setup-inherit.ts
@@ -1,6 +1,17 @@
import { existsSync, readFileSync } from 'node:fs';
-import { EDITOR_TARGETS, writeProjectAiIntegrations } from '@inkeep/open-knowledge';
-import { ALL_EDITOR_IDS, type EditorId } from '@inkeep/open-knowledge-core';
+import { join } from 'node:path';
+import {
+ assertProjectPathSafe,
+ EDITOR_TARGETS,
+ ProjectPathSafetyError,
+ writeProjectAiIntegrations,
+} from '@inkeep/open-knowledge';
+import {
+ AGENTS_SKILLS_ROOT,
+ ALL_EDITOR_IDS,
+ type EditorId,
+ RESERVED_PROJECT_SKILL_NAME,
+} from '@inkeep/open-knowledge-core';
import { initContent } from '@inkeep/open-knowledge-server';
import { parse as parseYaml } from 'yaml';
import { getLogger } from './desktop-logger.ts';
@@ -49,28 +60,80 @@ export function detectRootWiredEditors(mainRoot: string): EditorId[] {
return wired;
}
-export function seedWorktreeProjectSetup(worktreePath: string, mainRoot: string): void {
+export function seedWorktreeProjectSetup(
+ worktreeProjectPath: string,
+ sourceProjectPath: string,
+): void {
const logger = getLogger('worktree-setup');
+ const editors = assertWorktreeProjectSetupSafe(worktreeProjectPath, sourceProjectPath);
try {
- initContent(worktreePath, { contentDir: readRootContentDir(mainRoot) });
+ initContent(worktreeProjectPath, { contentDir: readRootContentDir(sourceProjectPath) });
} catch (err) {
- logger.warn({ worktreePath, err }, 'failed to seed inherited .ok/ scaffold');
+ logger.warn({ worktreeProjectPath, err }, 'failed to seed inherited .ok/ scaffold');
}
try {
- const editors = detectRootWiredEditors(mainRoot);
if (editors.length > 0) {
- const result = writeProjectAiIntegrations(worktreePath, editors);
+ const result = writeProjectAiIntegrations(worktreeProjectPath, editors);
const failed = result.integrations.filter((o) => o.action === 'failed');
if (failed.length > 0) {
logger.warn(
- { worktreePath, editors, failed: failed.map((o) => `${o.editorId}:${o.integration}`) },
+ {
+ worktreeProjectPath,
+ editors,
+ failed: failed.map((o) => `${o.editorId}:${o.integration}`),
+ },
'some inherited editor integrations failed to seed',
);
}
}
} catch (err) {
- logger.warn({ worktreePath, err }, 'failed to seed inherited editor integrations');
+ logger.warn({ worktreeProjectPath, err }, 'failed to seed inherited editor integrations');
+ }
+}
+
+export function assertWorktreeProjectSetupSafe(
+ worktreeProjectPath: string,
+ sourceProjectPath: string,
+): EditorId[] {
+ const editors = detectRootWiredEditors(sourceProjectPath);
+ const writeTargets = [
+ join(worktreeProjectPath, '.ok', 'config.yml'),
+ join(worktreeProjectPath, '.ok', 'local', 'config.yml'),
+ join(worktreeProjectPath, '.okignore'),
+ ];
+ if (editors.length > 0) {
+ writeTargets.push(
+ join(worktreeProjectPath, AGENTS_SKILLS_ROOT, RESERVED_PROJECT_SKILL_NAME, 'SKILL.md'),
+ );
+ }
+ for (const editor of editors) {
+ const target = EDITOR_TARGETS[editor];
+ const configPath = target.projectConfigPath?.(worktreeProjectPath);
+ const skillPath = target.projectSkillPath?.(worktreeProjectPath);
+ if (configPath !== undefined) writeTargets.push(configPath);
+ if (skillPath !== undefined) writeTargets.push(skillPath);
+ }
+ for (const target of writeTargets) {
+ try {
+ assertProjectPathSafe(target, worktreeProjectPath);
+ } catch (error) {
+ if (error instanceof ProjectPathSafetyError) {
+ throw new WorktreeSetupPathSafetyError(error);
+ }
+ throw error;
+ }
+ }
+ return editors;
+}
+
+export class WorktreeSetupPathSafetyError extends Error {
+ override readonly name = 'WorktreeSetupPathSafetyError';
+ override readonly cause: unknown;
+
+ constructor(cause: unknown) {
+ super('A project setup path resolves outside the worktree');
+ this.cause = cause;
}
}
diff --git a/packages/desktop/src/preload/index.ts b/packages/desktop/src/preload/index.ts
index aa936b7ef..1e4b5d2e5 100644
--- a/packages/desktop/src/preload/index.ts
+++ b/packages/desktop/src/preload/index.ts
@@ -518,6 +518,16 @@ const bridge: OkDesktopBridge = {
worktree: {
list: () => invoke('ok:worktree:dispatch', { kind: 'list' }) as Promise<WorktreeListResult>,
+ inventory: (request) =>
+ invoke('ok:worktree:dispatch', {
+ kind: 'inventory',
+ ...request,
+ }) as ReturnType<OkDesktopBridge['worktree']['inventory']>,
+ openInventory: (request) =>
+ invoke('ok:worktree:dispatch', {
+ kind: 'open-inventory',
+ ...request,
+ }) as ReturnType<OkDesktopBridge['worktree']['openInventory']>,
create: (request: WorktreeCreateRequest) =>
invoke('ok:worktree:dispatch', {
kind: 'create',
diff --git a/packages/desktop/src/shared/ipc-channels.ts b/packages/desktop/src/shared/ipc-channels.ts
index fa9f83995..5fee6150b 100644
--- a/packages/desktop/src/shared/ipc-channels.ts
+++ b/packages/desktop/src/shared/ipc-channels.ts
@@ -25,6 +25,10 @@ import type {
UninstallDispatchResult,
WorktreeCreateRequest,
WorktreeCreateResult,
+ WorktreeInventoryOpenRequest,
+ WorktreeInventoryOpenResult,
+ WorktreeInventoryRequest,
+ WorktreeInventoryResult,
WorktreeListResult,
} from '@inkeep/open-knowledge-core';
import type {
@@ -100,6 +104,8 @@ export interface RecentProject {
gitRemoteUrl?: string;
gitCommonDir?: string;
mainRoot?: string;
+ checkoutRoot?: string;
+ projectSubPath?: string;
isLinkedWorktree?: boolean;
branch?: string | null;
}
@@ -108,6 +114,7 @@ interface ProjectOpenRequest {
path: string;
target: 'new-window';
entryPoint: EntryPoint;
+ requireExactManagedProject?: boolean;
pendingDeepLinkTarget?: {
kind: 'doc' | 'folder';
path: string;
@@ -486,10 +493,16 @@ export interface RequestChannels {
args: [
request:
| { kind: 'list' }
+ | ({ kind: 'inventory' } & WorktreeInventoryRequest)
+ | ({ kind: 'open-inventory' } & WorktreeInventoryOpenRequest)
| ({ kind: 'create' } & WorktreeCreateRequest)
| { kind: 'checkout'; branch: string },
];
- result: WorktreeListResult | WorktreeCreateResult;
+ result:
+ | WorktreeListResult
+ | WorktreeInventoryResult
+ | WorktreeInventoryOpenResult
+ | WorktreeCreateResult;
};
'ok:project:close': { args: []; result: undefined };
'ok:project:restart-server': { args: [projectPath: string]; result: OkServerRestartOutcome };