Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(open-knowledge): explain shared-repo clone failures in the dialog (#1863)

miles-kt-inkeepcf0475245b4d
diff --git a/.changeset/share-receive-clone-error-dialog.md b/.changeset/share-receive-clone-error-dialog.md
new file mode 100644
index 000000000..aee0ef430
--- /dev/null
+++ b/.changeset/share-receive-clone-error-dialog.md
@@ -0,0 +1,16 @@
+---
+"@inkeep/open-knowledge-app": patch
+---
+
+fix(open-knowledge): explain why a shared-repo clone failed instead of a vague toast
+
+When opening a share link to a repository that can't be cloned (most often a
+private repo the recipient's GitHub account can't access), the share-receive
+dialog now shows a persistent in-dialog error view instead of a transient
+"clone failed" toast that disappeared before it could be read. The view shows
+the GitHub error condensed to its meaningful line (e.g. `Error: "Repository
+not found."`), lists the likely causes (the repo is private and you lack
+access, the repo was moved/renamed/deleted, or a network or GitHub
+interruption), and keeps Try-again, "I already have it locally", and
+Connect-GitHub recovery actions in view. The controller now hands the raw git
+message back to the dialog rather than firing its own toast.
diff --git a/packages/app/src/components/ShareReceiveDialog.dom.test.tsx b/packages/app/src/components/ShareReceiveDialog.dom.test.tsx
index 4aa1d869a..138dd832d 100644
--- a/packages/app/src/components/ShareReceiveDialog.dom.test.tsx
+++ b/packages/app/src/components/ShareReceiveDialog.dom.test.tsx
@@ -204,6 +204,118 @@ describe('ShareReceiveDialog runtime behavior', () => {
expect(screen.getByTestId('share-receive-signin')).toBeTruthy();
});
+ test('clone failure surfaces a persistent in-dialog error view with the GitHub error, reasons, and recovery', async () => {
+ const cloneController = {
+ getAuthStatus: mock(() => Promise.resolve({ authenticated: false, host: 'github.com' })),
+ runClone: mock(() =>
+ Promise.resolve({
+ kind: 'error',
+ detail: [
+ "Cloning into '/Users/me/Documents/sharing-repo'...",
+ 'remote: Repository not found.',
+ "fatal: repository 'https://github.com/inkeep/open-knowledge.git/' not found",
+ ].join('\n'),
+ }),
+ ),
+ startSignIn: mock(() => Promise.resolve(null)),
+ };
+
+ await renderDialog({ cloneController });
+
+ await waitFor(() =>
+ expect((screen.getByTestId('share-receive-clone') as HTMLButtonElement).disabled).toBe(false),
+ );
+
+ fireEvent.click(screen.getByTestId('share-receive-clone'));
+ await waitFor(() => expect(cloneController.runClone).toHaveBeenCalled());
+
+ await screen.findByTestId('share-receive-clone-error');
+ expect(screen.getByRole('alert').textContent).toContain("We couldn't clone this repository");
+
+ const message = screen.getByTestId('share-receive-clone-error-message').textContent ?? '';
+ expect(message).toContain('Error:');
+ expect(message).toContain('Repository not found');
+ expect(message).not.toMatch(/Cloning into/i);
+ expect(message).not.toContain('/Users/me');
+ expect(message).not.toContain('github.com/inkeep/open-knowledge');
+ expect(screen.queryByTestId('share-receive-clone-error-url')).toBeNull();
+ expect(screen.queryByTestId('share-receive-clone-error-detail')).toBeNull();
+
+ expect(screen.getByTestId('share-receive-clone-error-reasons').textContent).toMatch(/private/i);
+
+ expect(screen.getByTestId('share-receive-clone-retry')).toBeTruthy();
+ expect(screen.getByTestId('share-receive-signin')).toBeTruthy();
+
+ expect(screen.getByTestId('share-receive-dialog')).toBeTruthy();
+ expect(toast.error).not.toHaveBeenCalled();
+ });
+
+ test('clone error with no detail omits the error-message line but still shows the error view', async () => {
+ const cloneController = {
+ getAuthStatus: mock(() => Promise.resolve({ authenticated: false, host: 'github.com' })),
+ runClone: mock(() => Promise.resolve({ kind: 'error' })),
+ startSignIn: mock(() => Promise.resolve(null)),
+ };
+
+ await renderDialog({ cloneController });
+ await waitFor(() =>
+ expect((screen.getByTestId('share-receive-clone') as HTMLButtonElement).disabled).toBe(false),
+ );
+ fireEvent.click(screen.getByTestId('share-receive-clone'));
+
+ await screen.findByTestId('share-receive-clone-error');
+ expect(screen.getByTestId('share-receive-clone-error-reasons')).toBeTruthy();
+ expect(screen.queryByTestId('share-receive-clone-error-message')).toBeNull();
+ });
+
+ test('"Try again" clears the error view and re-invokes the clone', async () => {
+ let call = 0;
+ const cloneController = {
+ getAuthStatus: mock(() => Promise.resolve({ authenticated: false, host: 'github.com' })),
+ runClone: mock(() => {
+ call += 1;
+ return Promise.resolve(
+ call === 1 ? { kind: 'error', detail: 'boom' } : { kind: 'cancelled' },
+ );
+ }),
+ startSignIn: mock(() => Promise.resolve(null)),
+ };
+
+ await renderDialog({ cloneController });
+ await waitFor(() =>
+ expect((screen.getByTestId('share-receive-clone') as HTMLButtonElement).disabled).toBe(false),
+ );
+ fireEvent.click(screen.getByTestId('share-receive-clone'));
+
+ const retry = await screen.findByTestId('share-receive-clone-retry');
+ fireEvent.click(retry);
+
+ await waitFor(() => expect(cloneController.runClone).toHaveBeenCalledTimes(2));
+ await waitFor(() => expect(screen.queryByTestId('share-receive-clone-error')).toBeNull());
+ });
+
+ test('error view "I already have it locally" clears the error and opens the folder picker', async () => {
+ const bridge = createBridge(); // openFolder returns null by default (user cancels)
+ const cloneController = {
+ getAuthStatus: mock(() => Promise.resolve({ authenticated: false, host: 'github.com' })),
+ runClone: mock(() => Promise.resolve({ kind: 'error', detail: 'boom' })),
+ startSignIn: mock(() => Promise.resolve(null)),
+ };
+
+ await renderDialog({ bridge, cloneController });
+ await waitFor(() =>
+ expect((screen.getByTestId('share-receive-clone') as HTMLButtonElement).disabled).toBe(false),
+ );
+ fireEvent.click(screen.getByTestId('share-receive-clone'));
+
+ const localBtn = await screen.findByTestId('share-receive-error-local');
+ fireEvent.click(localBtn);
+
+ await waitFor(() => expect(screen.queryByTestId('share-receive-clone-error')).toBeNull());
+ await waitFor(() => expect(bridge.dialog.openFolder).toHaveBeenCalled());
+ expect(screen.getByTestId('share-receive-clone')).toBeTruthy();
+ });
+
test('non-ok payloads toast and dismiss without mounting the dialog', async () => {
const store = createTestStore({ kind: 'invalid' });
await renderDialog({ store });
diff --git a/packages/app/src/components/ShareReceiveDialog.tsx b/packages/app/src/components/ShareReceiveDialog.tsx
index 4c65248d3..302623e87 100644
--- a/packages/app/src/components/ShareReceiveDialog.tsx
+++ b/packages/app/src/components/ShareReceiveDialog.tsx
@@ -33,6 +33,7 @@ import {
import {
buildCloneUrl,
canonicalGitHubRemoteUrl,
+ formatCloneErrorMessage,
formatReceiveLog,
mapValidationToToast,
presentReceiveError,
@@ -42,7 +43,7 @@ import { type ShareReceiveStore, shareReceiveStore } from '@/lib/share/receive-s
export type ShareReceiveCloneResult =
| { readonly kind: 'ok'; readonly dir: string }
| { readonly kind: 'cancelled' }
- | { readonly kind: 'error' };
+ | { readonly kind: 'error'; readonly detail?: string };
export interface ShareReceiveCloneController {
getAuthStatus(): Promise<OkLocalOpAuthStatusResponse>;
@@ -128,8 +129,13 @@ function ShareReceiveDialogInner({
const [authStatus, setAuthStatus] = useState<OkLocalOpAuthStatusResponse | null>(null);
const [authChecking, setAuthChecking] = useState(false);
const [cloneRunning, setCloneRunning] = useState(false);
+ const [cloneError, setCloneError] = useState<{ detail: string | null } | null>(null);
const [consentState, setConsentState] = useState<ConsentFlowState | null>(null);
const authProbeStartedRef = useRef(false);
+ const cloneErrorRef = useRef<HTMLDivElement>(null);
+ useEffect(() => {
+ if (cloneError) cloneErrorRef.current?.focus();
+ }, [cloneError]);
// biome-ignore lint/correctness/useExhaustiveDependencies: payload-keyed effect; setConsentState identity is stable.
useEffect(() => {
@@ -162,7 +168,11 @@ function ShareReceiveDialogInner({
.then((result) => {
setAuthStatus(result);
})
- .catch(() => {
+ .catch((err) => {
+ console.warn(
+ '[receive] auth pre-flight probe failed',
+ err instanceof Error ? err.message : err,
+ );
setAuthStatus({ authenticated: false, host: 'github.com' });
})
.finally(() => {
@@ -192,17 +202,23 @@ function ShareReceiveDialogInner({
return;
}
if (cloneRunning) return;
+ setCloneError(null);
setCloneRunning(true);
const cloneUrl = buildCloneUrl(expected);
let result: ShareReceiveCloneResult;
try {
result = await cloneController.runClone({ url: cloneUrl, branch: launcherMiss.share.branch });
- } catch {
- toast.error(t`Clone failed. Please try again.`);
+ } catch (err) {
+ console.warn('[receive] runClone threw unexpectedly', err);
setCloneRunning(false);
+ setCloneError({ detail: err instanceof Error ? err.message : String(err) });
return;
}
setCloneRunning(false);
+ if (result.kind === 'error') {
+ setCloneError({ detail: result.detail ?? null });
+ return;
+ }
if (result.kind === 'ok') {
try {
await bridge.project.open({
@@ -214,10 +230,14 @@ function ShareReceiveDialogInner({
path: shareTargetPath(launcherMiss.share.target),
},
});
- } catch {
+ store.dismiss();
+ } catch (err) {
+ console.warn(
+ '[receive] project open after clone failed',
+ err instanceof Error ? err.message : err,
+ );
toast.error(t`Cloned successfully, but could not open the project.`);
}
- store.dismiss();
return;
}
}
@@ -238,6 +258,7 @@ function ShareReceiveDialogInner({
async function handleLocalCtaClick(): Promise<void> {
if (!launcherMiss || !expected || pickerOpen) return;
+ setCloneError(null);
setPickerOpen(true);
console.log(formatReceiveLog({ q2_path: 'local' }));
try {
@@ -459,6 +480,7 @@ function ShareReceiveDialogInner({
const shareRepo = share.repo;
const lookingForUrl = canonicalGitHubRemoteUrl(expected);
const signedInLogin = authStatus?.authenticated ? authStatus.login : undefined;
+ const cloneErrorMessage = cloneError?.detail ? formatCloneErrorMessage(cloneError.detail) : '';
return (
<DialogRoot
@@ -487,41 +509,105 @@ function ShareReceiveDialogInner({
/>
</DialogHeader>
<DialogBody>
- <div className="grid grid-cols-2 gap-3">
- <button
- type="button"
- data-testid="share-receive-clone"
- className="flex flex-col items-start gap-2 rounded-lg border-2 border-primary/40 bg-card p-4 text-left transition hover:border-primary hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/40 disabled:hover:bg-card"
- onClick={() => {
- void handleCloneCtaClick();
- }}
- disabled={cloneController !== undefined && !cloneEnabled}
- aria-disabled={cloneController !== undefined && !cloneEnabled}
- >
- <span className="text-sm font-semibold">{cloneLabel}</span>
- <span className="text-1sm text-muted-foreground">
- <Trans>
- Downloads {shareOwner}/{shareRepo} from GitHub.
- </Trans>
- </span>
- </button>
- <button
- type="button"
- data-testid="share-receive-local"
- className="flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
- onClick={() => {
- void handleLocalCtaClick();
- }}
- disabled={pickerOpen || cloneRunning}
+ {cloneError ? (
+ <div
+ ref={cloneErrorRef}
+ tabIndex={-1}
+ className="rounded-lg border border-destructive/40 bg-destructive/5 p-4 outline-none"
+ data-testid="share-receive-clone-error"
>
- <span className="text-sm font-semibold">
- <Trans>I already have it locally →</Trans>
- </span>
- <span className="text-1sm text-muted-foreground">
- <Trans>Pick the folder where you've cloned it.</Trans>
- </span>
- </button>
- </div>
+ <p className="text-sm font-semibold text-foreground" role="alert">
+ <Trans>We couldn't clone this repository.</Trans>
+ </p>
+ {cloneErrorMessage ? (
+ <p
+ className="mt-2 break-words text-xs text-destructive"
+ data-testid="share-receive-clone-error-message"
+ >
+ <Trans>Error:</Trans>{' '}
+ <span className="font-mono text-foreground/80">"{cloneErrorMessage}"</span>
+ </p>
+ ) : null}
+ <p className="mt-3 text-sm text-muted-foreground">
+ <Trans>This usually means one of:</Trans>
+ </p>
+ <ul
+ className="mt-1 list-disc space-y-1 pl-5 text-sm text-muted-foreground"
+ data-testid="share-receive-clone-error-reasons"
+ >
+ <li>
+ <Trans>
+ The repository is private and your GitHub account doesn't have access to it.
+ </Trans>
+ </li>
+ <li>
+ <Trans>The repository was moved, renamed, or deleted.</Trans>
+ </li>
+ <li>
+ <Trans>A network problem or GitHub outage interrupted the clone.</Trans>
+ </li>
+ </ul>
+ <div className="mt-4 flex flex-wrap gap-2">
+ <Button
+ onClick={() => {
+ void handleCloneCtaClick();
+ }}
+ data-testid="share-receive-clone-retry"
+ >
+ {/* No in-place loading state: handleCloneCtaClick clears
+ cloneError, so this view unmounts and the card grid's
+ "Cloning..." button shows progress instead. */}
+ <Trans>Try again</Trans>
+ </Button>
+ <Button
+ variant="outline"
+ onClick={() => {
+ void handleLocalCtaClick();
+ }}
+ disabled={pickerOpen || cloneRunning}
+ data-testid="share-receive-error-local"
+ >
+ <Trans>I already have it locally</Trans>
+ </Button>
+ </div>
+ </div>
+ ) : (
+ <div className="grid grid-cols-2 gap-3">
+ <button
+ type="button"
+ data-testid="share-receive-clone"
+ className="flex flex-col items-start gap-2 rounded-lg border-2 border-primary/40 bg-card p-4 text-left transition hover:border-primary hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/40 disabled:hover:bg-card"
+ onClick={() => {
+ void handleCloneCtaClick();
+ }}
+ disabled={cloneController !== undefined && !cloneEnabled}
+ aria-disabled={cloneController !== undefined && !cloneEnabled}
+ >
+ <span className="text-sm font-semibold">{cloneLabel}</span>
+ <span className="text-1sm text-muted-foreground">
+ <Trans>
+ Downloads {shareOwner}/{shareRepo} from GitHub.
+ </Trans>
+ </span>
+ </button>
+ <button
+ type="button"
+ data-testid="share-receive-local"
+ className="flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
+ onClick={() => {
+ void handleLocalCtaClick();
+ }}
+ disabled={pickerOpen || cloneRunning}
+ >
+ <span className="text-sm font-semibold">
+ <Trans>I already have it locally →</Trans>
+ </span>
+ <span className="text-1sm text-muted-foreground">
+ <Trans>Pick the folder where you've cloned it.</Trans>
+ </span>
+ </button>
+ </div>
+ )}
{cloneController ? (
<div
className="mt-3 flex items-center justify-between rounded-md border border-border bg-muted/30 px-3 py-2 text-xs"
@@ -560,15 +646,17 @@ function ShareReceiveDialogInner({
)}
</div>
) : null}
- <p className="mt-3 text-1sm text-muted-foreground">
- <Trans>
- Looking for{' '}
- <code className="rounded-sm bg-muted px-1 py-0.5 text-foreground/80">
- {lookingForUrl}
- </code>
- .
- </Trans>
- </p>
+ {cloneError ? null : (
+ <p className="mt-3 text-1sm text-muted-foreground">
+ <Trans>
+ Looking for{' '}
+ <code className="rounded-sm bg-muted px-1 py-0.5 text-foreground/80">
+ {lookingForUrl}
+ </code>
+ .
+ </Trans>
+ </p>
+ )}
</DialogBody>
<DialogFooter>
<Button variant="outline" className="font-mono uppercase" onClick={() => store.dismiss()}>
diff --git a/packages/app/src/lib/share/clone-controller.test.ts b/packages/app/src/lib/share/clone-controller.test.ts
new file mode 100644
index 000000000..c4784fdc7
--- /dev/null
+++ b/packages/app/src/lib/share/clone-controller.test.ts
@@ -0,0 +1,132 @@
+import { afterEach, describe, expect, mock, test } from 'bun:test';
+import * as actualSonner from 'sonner';
+import type { OkLocalOpCloneEvent } from '@/lib/desktop-bridge-types';
+
+const toast = {
+ loading: mock((_message: string, _opts?: unknown) => 'toast-id'),
+ success: mock((_message: string, _opts?: unknown) => {}),
+ error: mock((_message: string, _opts?: unknown) => {}),
+ info: mock((_message: string, _opts?: unknown) => {}),
+ dismiss: mock((_id?: unknown) => {}),
+};
+
+mock.module('sonner', () => ({ ...actualSonner, toast }));
+
+type CloneEvent = OkLocalOpCloneEvent | { type: 'complete'; port: number; dir: string };
+
+function makeDeps(events: CloneEvent[]) {
+ return {
+ bridge: {
+ dialog: { openFolder: mock(() => Promise.resolve('/parent')) },
+ },
+ authQueryTransport: {
+ status: mock(() => Promise.resolve({ authenticated: false, host: 'github.com' })),
+ },
+ cloneTransport: {
+ start: mock(() => ({
+ events: (async function* () {
+ for (const event of events) yield event;
+ })(),
+ cancel: () => {},
+ })),
+ },
+ openSignIn: mock(() => Promise.resolve(null)),
+ };
+}
+
+describe('createCloneController().runClone failure handling', () => {
+ afterEach(() => {
+ for (const fn of [toast.loading, toast.success, toast.error, toast.info, toast.dismiss]) {
+ fn.mockClear();
+ }
+ });
+
+ test('clone error returns the raw message as `detail` and fires no error toast', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = makeDeps([{ type: 'error', message: 'remote: Repository not found' }]);
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git', branch: 'main' });
+
+ expect(result).toEqual({ kind: 'error', detail: 'remote: Repository not found' });
+ expect(toast.error).not.toHaveBeenCalled();
+ expect(toast.dismiss).toHaveBeenCalled();
+ });
+
+ test('cancelled folder picker returns cancelled without starting a clone', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = makeDeps([]);
+ deps.bridge.dialog.openFolder = mock(() => Promise.resolve(null));
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git' });
+
+ expect(result).toEqual({ kind: 'cancelled' });
+ expect(deps.cloneTransport.start).not.toHaveBeenCalled();
+ });
+
+ test('complete event returns ok with the cloned dir', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = makeDeps([{ type: 'complete', dir: '/parent/r' }]);
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git' });
+
+ expect(result).toEqual({ kind: 'ok', dir: '/parent/r' });
+ });
+
+ test('stream that ends with no terminal event returns error and dismisses the toast', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = makeDeps([]); // openFolder returns '/parent'; events stream is empty
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git' });
+
+ expect(result).toEqual({ kind: 'error', detail: 'Clone ended unexpectedly.' });
+ expect(toast.error).not.toHaveBeenCalled();
+ expect(toast.dismiss).toHaveBeenCalled();
+ });
+
+ test('async iterator throw returns the message as detail and dismisses the toast', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = {
+ ...makeDeps([]),
+ cloneTransport: {
+ start: mock(() => ({
+ events: {
+ [Symbol.asyncIterator]: () => ({
+ next: () => Promise.reject(new Error('IPC channel closed')),
+ }),
+ },
+ cancel: () => {},
+ })),
+ },
+ };
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git' });
+
+ expect(result).toEqual({ kind: 'error', detail: 'IPC channel closed' });
+ expect(toast.error).not.toHaveBeenCalled();
+ expect(toast.dismiss).toHaveBeenCalled();
+ });
+
+ test('synchronous start() throw still dismisses the progress toast (no leak)', async () => {
+ const { createCloneController } = await import('./clone-controller');
+ const deps = {
+ ...makeDeps([]),
+ cloneTransport: {
+ start: mock(() => {
+ throw new Error('clone IPC handler not registered');
+ }),
+ },
+ };
+ const controller = createCloneController(deps as never);
+
+ const result = await controller.runClone({ url: 'https://github.com/o/r.git' });
+
+ expect(result).toEqual({ kind: 'error', detail: 'clone IPC handler not registered' });
+ expect(toast.error).not.toHaveBeenCalled();
+ expect(toast.dismiss).toHaveBeenCalled();
+ });
+});
diff --git a/packages/app/src/lib/share/clone-controller.ts b/packages/app/src/lib/share/clone-controller.ts
index 6219fa57b..4f950ad70 100644
--- a/packages/app/src/lib/share/clone-controller.ts
+++ b/packages/app/src/lib/share/clone-controller.ts
@@ -37,12 +37,12 @@ export function createCloneController(deps: CloneControllerDeps): ShareReceiveCl
});
const requestedBranch = typeof branch === 'string' && branch.length > 0 ? branch : null;
- const handle = deps.cloneTransport.start({
- url,
- dir: targetDir,
- branch: requestedBranch,
- });
try {
+ const handle = deps.cloneTransport.start({
+ url,
+ dir: targetDir,
+ branch: requestedBranch,
+ });
for await (const event of handle.events) {
if (event.type === 'progress') {
const phase = event.phase;
@@ -66,17 +66,17 @@ export function createCloneController(deps: CloneControllerDeps): ShareReceiveCl
return { kind: 'ok', dir: event.dir };
}
if (event.type === 'error') {
- const failureMessage = event.message;
- toast.error(t`Clone failed: ${failureMessage}`, { id: toastId, duration: 8000 });
- return { kind: 'error' };
+ toast.dismiss(toastId);
+ return { kind: 'error', detail: event.message };
}
}
- toast.error(t`Clone ended unexpectedly.`, { id: toastId, duration: 8000 });
- return { kind: 'error' };
+ toast.dismiss(toastId);
+ return { kind: 'error', detail: 'Clone ended unexpectedly.' };
} catch (err) {
- const message = err instanceof Error ? err.message : t`Unknown error`;
- toast.error(t`Clone failed: ${message}`, { id: toastId, duration: 8000 });
- return { kind: 'error' };
+ console.warn('[clone-controller] clone transport threw', err);
+ const message = err instanceof Error ? err.message : 'Unknown error';
+ toast.dismiss(toastId);
+ return { kind: 'error', detail: message };
}
},
};
diff --git a/packages/app/src/lib/share/receive-flow.test.ts b/packages/app/src/lib/share/receive-flow.test.ts
index dd64ea50d..83f5995e7 100644
--- a/packages/app/src/lib/share/receive-flow.test.ts
+++ b/packages/app/src/lib/share/receive-flow.test.ts
@@ -7,11 +7,65 @@ import type {
import {
buildCloneUrl,
+ formatCloneErrorMessage,
formatReceiveLog,
mapValidationToToast,
presentReceiveError,
} from './receive-flow';
+describe('formatCloneErrorMessage', () => {
+ test('private/missing repo: drops the progress preamble + fatal URL line, keeps the remote message', () => {
+ const stderr = [
+ "Cloning into '/Users/me/Documents/sharing-repo'...",
+ 'remote: Repository not found.',
+ "fatal: repository 'https://github.com/me/sharing-repo.git/' not found",
+ ].join('\n');
+ expect(formatCloneErrorMessage(stderr)).toBe('Repository not found.');
+ });
+
+ test('strips the local path from the message (no leak of the recipient filesystem path)', () => {
+ const stderr = [
+ "Cloning into '/Users/me/Documents/sharing-repo'...",
+ 'remote: Repository not found.',
+ ].join('\n');
+ const result = formatCloneErrorMessage(stderr);
+ expect(result).not.toContain('/Users/me');
+ expect(result).not.toMatch(/Cloning into/i);
+ });
+
+ test('auth failure: surfaces the remote line over the fatal line', () => {
+ const stderr = [
+ 'remote: Invalid username or password.',
+ "fatal: Authentication failed for 'https://github.com/me/x.git/'",
+ ].join('\n');
+ expect(formatCloneErrorMessage(stderr)).toBe('Invalid username or password.');
+ });
+
+ test('partial-progress failure: picks the last remote line (diagnostic), not a progress line', () => {
+ const stderr = [
+ "Cloning into '/tmp/r'...",
+ 'remote: Enumerating objects: 100% (50/50), done.',
+ 'remote: Repository not found.',
+ ].join('\n');
+ expect(formatCloneErrorMessage(stderr)).toBe('Repository not found.');
+ });
+
+ test('falls back to the fatal line (prefix stripped) when there is no remote line', () => {
+ expect(formatCloneErrorMessage('fatal: could not read Username for https://github.com')).toBe(
+ 'could not read Username for https://github.com',
+ );
+ });
+
+ test('non-git controller message passes through unchanged', () => {
+ expect(formatCloneErrorMessage('Clone ended unexpectedly.')).toBe('Clone ended unexpectedly.');
+ });
+
+ test('only-preamble or empty input yields an empty string (caller omits the line)', () => {
+ expect(formatCloneErrorMessage("Cloning into '/tmp/x'...")).toBe('');
+ expect(formatCloneErrorMessage(' \n ')).toBe('');
+ });
+});
+
describe('buildCloneUrl', () => {
test('matches the canonical .git form (the clone wizard accepts both forms equally)', () => {
expect(buildCloneUrl({ owner: 'inkeep', repo: 'open-knowledge' })).toBe(
diff --git a/packages/app/src/lib/share/receive-flow.ts b/packages/app/src/lib/share/receive-flow.ts
index 3b605939b..1ef2ec231 100644
--- a/packages/app/src/lib/share/receive-flow.ts
+++ b/packages/app/src/lib/share/receive-flow.ts
@@ -54,6 +54,22 @@ export function presentReceiveError(payload: OkShareReceivedPayload): ReceiveErr
return null;
}
+export function formatCloneErrorMessage(detail: string): string {
+ const lines = detail
+ .split('\n')
+ .map((line) => line.trim())
+ .filter((line) => line.length > 0 && !/^Cloning into /i.test(line));
+
+ const remoteLines = lines.filter((line) => /^remote:/i.test(line));
+ const remote = remoteLines[remoteLines.length - 1];
+ if (remote) return remote.replace(/^remote:\s*/i, '').trim();
+
+ const fatal = lines.find((line) => /^fatal:/i.test(line));
+ if (fatal) return fatal.replace(/^fatal:\s*/i, '').trim();
+
+ return lines[0] ?? '';
+}
+
export type BranchAction = 'switch' | 'fallback' | 'fetch-failed' | 'open-current' | 'cancel';
export type BranchDialogAction =
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 1cd6261d5..c0d75d5b6 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -148,6 +148,7 @@
"484LKL": ["Remove link"],
"48uGTI": ["Failed to load docs. Press Escape and re-open to retry."],
"4A3Yzu": ["Code block"],
+ "4BITzH": ["Error:"],
"4CfgPM": ["Project folder created, but git init failed. Try again."],
"4KmEoC": ["Hotkeys"],
"4NC2Ym": ["Move to the next or previous table cell."],
@@ -228,6 +229,7 @@
"636K3K": ["Delete adjacent chip"],
"67f-3g": ["Duplicate succeeded but the sidebar may be out of date — refresh to resync"],
"6Aih4U": ["Offline"],
+ "6LbUG7": ["The repository is private and your GitHub account doesn't have access to it."],
"6O626z": ["No headings match \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"No project templates yet. Create one to make it available everywhere in this project. Folder-scoped templates live on each folder's overview page."
@@ -599,6 +601,7 @@
"J2eKUI": ["File"],
"J3HzPL": ["Collapse ", ["keyName"]],
"J6N5MX": ["Couldn't construct the share URL. Try Done and re-share."],
+ "J6mxC1": ["A network problem or GitHub outage interrupted the clone."],
"JCxGEX": [
"No disconnected pages. Pages appear here only when they have no incoming and no outgoing graph edges."
],
@@ -673,6 +676,7 @@
"LdABLa": ["Could not open ", ["target"], ". Try opening it manually."],
"LhWYpm": ["Other OK paths are tracked upstream:"],
"LlHqdU": ["Initializing project"],
+ "Llyqvo": ["This usually means one of:"],
"LpB85N": ["Plain"],
"LtI9AS": ["Owner"],
"LtSYdi": ["Reveal in Finder"],
@@ -784,7 +788,6 @@
"PR9FSv": ["Move to the next visual-editor find result."],
"PVUn_c": ["Open folder"],
"PZt1uN": ["Search files, commands, projects, and AI handoff actions."],
- "PZt2Ds": ["Clone ended unexpectedly."],
"PdA9NZ": [["ahead"], " ahead"],
"Pgu10b": ["Saved as <0>", ["slug"], ".md</0>"],
"PgzIpb": ["Move to the previous visual-editor find result."],
@@ -1082,6 +1085,7 @@
"_VRtd7": ["Couldn't send the selection — please try again."],
"_W-elG": ["(inline)"],
"_gkGSK": ["deleted template"],
+ "_pY_Vq": ["The repository was moved, renamed, or deleted."],
"_qD6mn": ["Pick the folder where you've cloned it."],
"_rP3HI": [["minutes"], "m ago"],
"_tekeB": ["updated folder properties"],
@@ -1111,6 +1115,7 @@
"aalx4E": ["Editing broken MDX source: ", ["reason"]],
"abiHje": ["Delete selected items"],
"adsMWO": ["Resolving deltas"],
+ "aiArms": ["We couldn't clone this repository."],
"ajz9F8": ["Couldn't load conflict content for ", ["filePath"], ". Try reloading the page."],
"aoa6xA": ["network error (is `ok ui` running?)"],
"av_PD9": ["you"],
@@ -1354,7 +1359,6 @@
"jhtG3I": [" Your selection has been restored."],
"jjmuxV": ["Lost connection to the main process"],
"jjtmV_": ["First file name"],
- "jnXr0e": ["Clone failed. Please try again."],
"jol95m": ["Failed to open Project Navigator."],
"ju38ms": [
"This project has no git repository — sharing mode does not apply. Initialize a repo to enable the toggle."
@@ -1428,7 +1432,6 @@
"mBltnd": ["Path suggestions"],
"mGaZwZ": ["See the full install guide"],
"mHVPm5": ["Reconnect required"],
- "mHzJ0v": ["Clone failed: ", ["message"]],
"mKZODc": [
"Adds the Open Knowledge skill to the <0>Claude Desktop App</0> so it's available in Chat and Cowork sessions."
],
@@ -1706,7 +1709,6 @@
"uksqrP": ["Repository not found. It may have been renamed, deleted, or moved."],
"un8kBM": ["Creating page: ", ["linkTitle"], "."],
"ur2XSb": ["Visual editor"],
- "usidp7": ["Clone failed: ", ["failureMessage"]],
"uuoHOU": ["Command failed."],
"uynXup": [["tokens", "plural", { "one": ["token"], "other": ["tokens"] }]],
"v-h2hx": ["Delete ", ["targetGitPath"]],
@@ -1760,6 +1762,7 @@
"xCJdfg": ["Clear"],
"xCdTnb": ["Close new tab"],
"xDBki3": ["Heading suggestions"],
+ "xFQRu4": ["I already have it locally"],
"xG4tb6": ["Lost connection to \"", ["docName"], "\"."],
"xHGM4U": ["Hide HTML preview"],
"xK291b": ["Two-page (odd)"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index d5b116408..75c981f2e 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -432,6 +432,10 @@ msgstr "A key is set, but the embeddings provider rejected it or was unreachable
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/ShareReceiveDialog.tsx
+msgid "A network problem or GitHub outage interrupted the clone."
+msgstr "A network problem or GitHub outage interrupted the clone."
+
#: src/components/settings/SettingsDialogErrorBoundary.tsx
msgid "A newer version may have been deployed since this tab opened."
msgstr "A newer version may have been deployed since this tab opened."
@@ -984,10 +988,6 @@ msgstr "Clone"
msgid "Clone complete — opening project"
msgstr "Clone complete — opening project"
-#: src/lib/share/clone-controller.ts
-msgid "Clone ended unexpectedly."
-msgstr "Clone ended unexpectedly."
-
#: src/components/CloneDialog.tsx
msgid "Clone failed — connection error"
msgstr "Clone failed — connection error"
@@ -996,18 +996,6 @@ msgstr "Clone failed — connection error"
msgid "Clone failed: {cloneError}"
msgstr "Clone failed: {cloneError}"
-#: src/lib/share/clone-controller.ts
-msgid "Clone failed: {failureMessage}"
-msgstr "Clone failed: {failureMessage}"
-
-#: src/lib/share/clone-controller.ts
-msgid "Clone failed: {message}"
-msgstr "Clone failed: {message}"
-
-#: src/components/ShareReceiveDialog.tsx
-msgid "Clone failed. Please try again."
-msgstr "Clone failed. Please try again."
-
#: src/components/CloneDialog.tsx
#: src/components/NavigatorApp.tsx
msgid "Clone from GitHub"
@@ -2064,6 +2052,10 @@ msgstr "Enter a name for this template."
msgid "Enter a repository URL or owner/repo"
msgstr "Enter a repository URL or owner/repo"
+#: src/components/ShareReceiveDialog.tsx
+msgid "Error:"
+msgstr "Error:"
+
#: src/components/DiffView.tsx
msgid "Exit merge"
msgstr "Exit merge"
@@ -2694,6 +2686,10 @@ msgstr "https://github.com/owner/repo or owner/repo"
msgid "Hubs"
msgstr "Hubs"
+#: src/components/ShareReceiveDialog.tsx
+msgid "I already have it locally"
+msgstr "I already have it locally"
+
#: src/components/ShareReceiveDialog.tsx
msgid "I already have it locally →"
msgstr "I already have it locally →"
@@ -5439,6 +5435,14 @@ msgstr "The preview blocks resources that don't meet its security rules (for exa
msgid "The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."
msgstr "The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."
+#: src/components/ShareReceiveDialog.tsx
+msgid "The repository is private and your GitHub account doesn't have access to it."
+msgstr "The repository is private and your GitHub account doesn't have access to it."
+
+#: src/components/ShareReceiveDialog.tsx
+msgid "The repository was moved, renamed, or deleted."
+msgstr "The repository was moved, renamed, or deleted."
+
#: src/components/settings/SettingsDialogBody.tsx
msgid "Theme"
msgstr "Theme"
@@ -5543,6 +5547,10 @@ msgstr "This setting is per-machine and isn't shared with collaborators. It need
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
+#: src/components/ShareReceiveDialog.tsx
+msgid "This usually means one of:"
+msgstr "This usually means one of:"
+
#: src/components/TimelinePanel.tsx
msgid "This will replace the current document content with the version from <0>{relative} ({absoluteTime}, {entrySha})</0> by <1>{authorName}</1>. Your current content is already saved in the timeline — you can restore it anytime."
msgstr "This will replace the current document content with the version from <0>{relative} ({absoluteTime}, {entrySha})</0> by <1>{authorName}</1>. Your current content is already saved in the timeline — you can restore it anytime."
@@ -5639,6 +5647,7 @@ msgstr "Tree View Options"
#: src/components/DocumentErrorBoundary.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr "Try again"
@@ -5743,7 +5752,6 @@ msgid "Unknown component: {unregisteredComponentName}"
msgstr "Unknown component: {unregisteredComponentName}"
#: src/components/DocumentErrorBoundary.tsx
-#: src/lib/share/clone-controller.ts
msgid "Unknown error"
msgstr "Unknown error"
@@ -5884,6 +5892,10 @@ msgstr "Waiting for authorization"
msgid "We couldn't check your GitHub connection."
msgstr "We couldn't check your GitHub connection."
+#: src/components/ShareReceiveDialog.tsx
+msgid "We couldn't clone this repository."
+msgstr "We couldn't clone this repository."
+
#: src/components/InstallInClaudeDesktopDialog.tsx
msgid "We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, and open the Claude Desktop App for you."
msgstr "We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, and open the Claude Desktop App for you."
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index 21970d13d..96b2cf14b 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -148,6 +148,7 @@
"484LKL": ["Ŕēḿōvē ĺĩńķ"],
"48uGTI": ["Ƒàĩĺēď ţō ĺōàď ďōćś. Ƥŕēśś Ēśćàƥē àńď ŕē-ōƥēń ţō ŕēţŕŷ."],
"4A3Yzu": ["Ćōďē ƀĺōćķ"],
+ "4BITzH": ["Ēŕŕōŕ:"],
"4CfgPM": ["ƤŕōĴēćţ ƒōĺďēŕ ćŕēàţēď, ƀũţ ĝĩţ ĩńĩţ ƒàĩĺēď. Ţŕŷ àĝàĩń."],
"4KmEoC": ["Ĥōţķēŷś"],
"4NC2Ym": ["Ḿōvē ţō ţĥē ńēxţ ōŕ ƥŕēvĩōũś ţàƀĺē ćēĺĺ."],
@@ -228,6 +229,7 @@
"636K3K": ["Ďēĺēţē àďĴàćēńţ ćĥĩƥ"],
"67f-3g": ["Ďũƥĺĩćàţē śũććēēďēď ƀũţ ţĥē śĩďēƀàŕ ḿàŷ ƀē ōũţ ōƒ ďàţē — ŕēƒŕēśĥ ţō ŕēśŷńć"],
"6Aih4U": ["Ōƒƒĺĩńē"],
+ "6LbUG7": ["Ţĥē ŕēƥōśĩţōŕŷ ĩś ƥŕĩvàţē àńď ŷōũŕ ĜĩţĤũƀ àććōũńţ ďōēśń'ţ ĥàvē àććēśś ţō ĩţ."],
"6O626z": ["Ńō ĥēàďĩńĝś ḿàţćĥ \"", ["trimmedAnchorQuery"], "\""],
"6Pxqwv": [
"Ńō ƥŕōĴēćţ ţēḿƥĺàţēś ŷēţ. Ćŕēàţē ōńē ţō ḿàķē ĩţ àvàĩĺàƀĺē ēvēŕŷŵĥēŕē ĩń ţĥĩś ƥŕōĴēćţ. Ƒōĺďēŕ-śćōƥēď ţēḿƥĺàţēś ĺĩvē ōń ēàćĥ ƒōĺďēŕ'ś ōvēŕvĩēŵ ƥàĝē."
@@ -599,6 +601,7 @@
"J2eKUI": ["Ƒĩĺē"],
"J3HzPL": ["Ćōĺĺàƥśē ", ["keyName"]],
"J6N5MX": ["Ćōũĺďń'ţ ćōńśţŕũćţ ţĥē śĥàŕē ŨŔĹ. Ţŕŷ Ďōńē àńď ŕē-śĥàŕē."],
+ "J6mxC1": ["À ńēţŵōŕķ ƥŕōƀĺēḿ ōŕ ĜĩţĤũƀ ōũţàĝē ĩńţēŕŕũƥţēď ţĥē ćĺōńē."],
"JCxGEX": [
"Ńō ďĩśćōńńēćţēď ƥàĝēś. Ƥàĝēś àƥƥēàŕ ĥēŕē ōńĺŷ ŵĥēń ţĥēŷ ĥàvē ńō ĩńćōḿĩńĝ àńď ńō ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."
],
@@ -673,6 +676,7 @@
"LdABLa": ["Ćōũĺď ńōţ ōƥēń ", ["target"], ". Ţŕŷ ōƥēńĩńĝ ĩţ ḿàńũàĺĺŷ."],
"LhWYpm": ["Ōţĥēŕ ŌĶ ƥàţĥś àŕē ţŕàćķēď ũƥśţŕēàḿ:"],
"LlHqdU": ["Ĩńĩţĩàĺĩźĩńĝ ƥŕōĴēćţ"],
+ "Llyqvo": ["Ţĥĩś ũśũàĺĺŷ ḿēàńś ōńē ōƒ:"],
"LpB85N": ["Ƥĺàĩń"],
"LtI9AS": ["Ōŵńēŕ"],
"LtSYdi": ["Ŕēvēàĺ ĩń Ƒĩńďēŕ"],
@@ -784,7 +788,6 @@
"PR9FSv": ["Ḿōvē ţō ţĥē ńēxţ vĩśũàĺ-ēďĩţōŕ ƒĩńď ŕēśũĺţ."],
"PVUn_c": ["Ōƥēń ƒōĺďēŕ"],
"PZt1uN": ["Śēàŕćĥ ƒĩĺēś, ćōḿḿàńďś, ƥŕōĴēćţś, àńď ÀĨ ĥàńďōƒƒ àćţĩōńś."],
- "PZt2Ds": ["Ćĺōńē ēńďēď ũńēxƥēćţēďĺŷ."],
"PdA9NZ": [["ahead"], " àĥēàď"],
"Pgu10b": ["Śàvēď àś <0>", ["slug"], ".ḿď</0>"],
"PgzIpb": ["Ḿōvē ţō ţĥē ƥŕēvĩōũś vĩśũàĺ-ēďĩţōŕ ƒĩńď ŕēśũĺţ."],
@@ -1082,6 +1085,7 @@
"_VRtd7": ["Ćōũĺďń'ţ śēńď ţĥē śēĺēćţĩōń — ƥĺēàśē ţŕŷ àĝàĩń."],
"_W-elG": ["(ĩńĺĩńē)"],
"_gkGSK": ["ďēĺēţēď ţēḿƥĺàţē"],
+ "_pY_Vq": ["Ţĥē ŕēƥōśĩţōŕŷ ŵàś ḿōvēď, ŕēńàḿēď, ōŕ ďēĺēţēď."],
"_qD6mn": ["Ƥĩćķ ţĥē ƒōĺďēŕ ŵĥēŕē ŷōũ'vē ćĺōńēď ĩţ."],
"_rP3HI": [["minutes"], "ḿ àĝō"],
"_tekeB": ["ũƥďàţēď ƒōĺďēŕ ƥŕōƥēŕţĩēś"],
@@ -1111,6 +1115,7 @@
"aalx4E": ["Ēďĩţĩńĝ ƀŕōķēń ḾĎX śōũŕćē: ", ["reason"]],
"abiHje": ["Ďēĺēţē śēĺēćţēď ĩţēḿś"],
"adsMWO": ["Ŕēśōĺvĩńĝ ďēĺţàś"],
+ "aiArms": ["Ŵē ćōũĺďń'ţ ćĺōńē ţĥĩś ŕēƥōśĩţōŕŷ."],
"ajz9F8": ["Ćōũĺďń'ţ ĺōàď ćōńƒĺĩćţ ćōńţēńţ ƒōŕ ", ["filePath"], ". Ţŕŷ ŕēĺōàďĩńĝ ţĥē ƥàĝē."],
"aoa6xA": ["ńēţŵōŕķ ēŕŕōŕ (ĩś `ōķ ũĩ` ŕũńńĩńĝ?)"],
"av_PD9": ["ŷōũ"],
@@ -1354,7 +1359,6 @@
"jhtG3I": [" Ŷōũŕ śēĺēćţĩōń ĥàś ƀēēń ŕēśţōŕēď."],
"jjmuxV": ["Ĺōśţ ćōńńēćţĩōń ţō ţĥē ḿàĩń ƥŕōćēśś"],
"jjtmV_": ["Ƒĩŕśţ ƒĩĺē ńàḿē"],
- "jnXr0e": ["Ćĺōńē ƒàĩĺēď. Ƥĺēàśē ţŕŷ àĝàĩń."],
"jol95m": ["Ƒàĩĺēď ţō ōƥēń ƤŕōĴēćţ Ńàvĩĝàţōŕ."],
"ju38ms": [
"Ţĥĩś ƥŕōĴēćţ ĥàś ńō ĝĩţ ŕēƥōśĩţōŕŷ — śĥàŕĩńĝ ḿōďē ďōēś ńōţ àƥƥĺŷ. Ĩńĩţĩàĺĩźē à ŕēƥō ţō ēńàƀĺē ţĥē ţōĝĝĺē."
@@ -1428,7 +1432,6 @@
"mBltnd": ["Ƥàţĥ śũĝĝēśţĩōńś"],
"mGaZwZ": ["Śēē ţĥē ƒũĺĺ ĩńśţàĺĺ ĝũĩďē"],
"mHVPm5": ["Ŕēćōńńēćţ ŕēǫũĩŕēď"],
- "mHzJ0v": ["Ćĺōńē ƒàĩĺēď: ", ["message"]],
"mKZODc": [
"Àďďś ţĥē Ōƥēń Ķńōŵĺēďĝē śķĩĺĺ ţō ţĥē <0>Ćĺàũďē Ďēśķţōƥ Àƥƥ</0> śō ĩţ'ś àvàĩĺàƀĺē ĩń Ćĥàţ àńď Ćōŵōŕķ śēśśĩōńś."
],
@@ -1706,7 +1709,6 @@
"uksqrP": ["Ŕēƥōśĩţōŕŷ ńōţ ƒōũńď. Ĩţ ḿàŷ ĥàvē ƀēēń ŕēńàḿēď, ďēĺēţēď, ōŕ ḿōvēď."],
"un8kBM": ["Ćŕēàţĩńĝ ƥàĝē: ", ["linkTitle"], "."],
"ur2XSb": ["Vĩśũàĺ ēďĩţōŕ"],
- "usidp7": ["Ćĺōńē ƒàĩĺēď: ", ["failureMessage"]],
"uuoHOU": ["Ćōḿḿàńď ƒàĩĺēď."],
"uynXup": [["tokens", "plural", { "one": ["ţōķēń"], "other": ["ţōķēńś"] }]],
"v-h2hx": ["Ďēĺēţē ", ["targetGitPath"]],
@@ -1760,6 +1762,7 @@
"xCJdfg": ["Ćĺēàŕ"],
"xCdTnb": ["Ćĺōśē ńēŵ ţàƀ"],
"xDBki3": ["Ĥēàďĩńĝ śũĝĝēśţĩōńś"],
+ "xFQRu4": ["Ĩ àĺŕēàďŷ ĥàvē ĩţ ĺōćàĺĺŷ"],
"xG4tb6": ["Ĺōśţ ćōńńēćţĩōń ţō \"", ["docName"], "\"."],
"xHGM4U": ["Ĥĩďē ĤŢḾĹ ƥŕēvĩēŵ"],
"xK291b": ["Ţŵō-ƥàĝē (ōďď)"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index c36f8f7fd..baccd551b 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -427,6 +427,10 @@ msgstr ""
msgid "A line with a footnote<0><1>[1]</1></0> and a definition shown below."
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "A network problem or GitHub outage interrupted the clone."
+msgstr ""
+
#: src/components/settings/SettingsDialogErrorBoundary.tsx
msgid "A newer version may have been deployed since this tab opened."
msgstr ""
@@ -979,10 +983,6 @@ msgstr ""
msgid "Clone complete — opening project"
msgstr ""
-#: src/lib/share/clone-controller.ts
-msgid "Clone ended unexpectedly."
-msgstr ""
-
#: src/components/CloneDialog.tsx
msgid "Clone failed — connection error"
msgstr ""
@@ -991,18 +991,6 @@ msgstr ""
msgid "Clone failed: {cloneError}"
msgstr ""
-#: src/lib/share/clone-controller.ts
-msgid "Clone failed: {failureMessage}"
-msgstr ""
-
-#: src/lib/share/clone-controller.ts
-msgid "Clone failed: {message}"
-msgstr ""
-
-#: src/components/ShareReceiveDialog.tsx
-msgid "Clone failed. Please try again."
-msgstr ""
-
#: src/components/CloneDialog.tsx
#: src/components/NavigatorApp.tsx
msgid "Clone from GitHub"
@@ -2059,6 +2047,10 @@ msgstr ""
msgid "Enter a repository URL or owner/repo"
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "Error:"
+msgstr ""
+
#: src/components/DiffView.tsx
msgid "Exit merge"
msgstr ""
@@ -2689,6 +2681,10 @@ msgstr ""
msgid "Hubs"
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "I already have it locally"
+msgstr ""
+
#: src/components/ShareReceiveDialog.tsx
msgid "I already have it locally →"
msgstr ""
@@ -5434,6 +5430,14 @@ msgstr ""
msgid "The properties block at the top of this doc has a formatting error. Switch to source mode to fix it."
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "The repository is private and your GitHub account doesn't have access to it."
+msgstr ""
+
+#: src/components/ShareReceiveDialog.tsx
+msgid "The repository was moved, renamed, or deleted."
+msgstr ""
+
#: src/components/settings/SettingsDialogBody.tsx
msgid "Theme"
msgstr ""
@@ -5538,6 +5542,10 @@ msgstr ""
msgid "This template lives in a parent folder — deleting it affects every folder beneath it that doesn't define its own version."
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "This usually means one of:"
+msgstr ""
+
#: src/components/TimelinePanel.tsx
msgid "This will replace the current document content with the version from <0>{relative} ({absoluteTime}, {entrySha})</0> by <1>{authorName}</1>. Your current content is already saved in the timeline — you can restore it anytime."
msgstr ""
@@ -5634,6 +5642,7 @@ msgstr ""
#: src/components/DocumentErrorBoundary.tsx
#: src/components/InstallInClaudeDesktopDialog.tsx
#: src/components/settings/AccountSection.tsx
+#: src/components/ShareReceiveDialog.tsx
msgid "Try again"
msgstr ""
@@ -5738,7 +5747,6 @@ msgid "Unknown component: {unregisteredComponentName}"
msgstr ""
#: src/components/DocumentErrorBoundary.tsx
-#: src/lib/share/clone-controller.ts
msgid "Unknown error"
msgstr ""
@@ -5879,6 +5887,10 @@ msgstr ""
msgid "We couldn't check your GitHub connection."
msgstr ""
+#: src/components/ShareReceiveDialog.tsx
+msgid "We couldn't clone this repository."
+msgstr ""
+
#: src/components/InstallInClaudeDesktopDialog.tsx
msgid "We'll build <0>openknowledge.skill</0>, save it to <1>~/Downloads</1>, and open the Claude Desktop App for you."
msgstr ""