Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Send bug reports in the background behind a toast (PRD-8099) (#3688)
Andrew Mikofalvyc3a27518e21d
diff --git a/.changeset/bug-report-send-in-background.md b/.changeset/bug-report-send-in-background.mdnew file mode 100644index 000000000..3d5c496b0--- /dev/null+++ b/.changeset/bug-report-send-in-background.md@@ -0,0 +1,21 @@+---+"@inkeep/open-knowledge": minor+---++**Retrying a bug report from your report history no longer opens an email draft on its own.** Sends now run in the background behind a toast (below), and when a retry resolves to the email fallback that toast offers **Open email draft** rather than launching your mail client unprompted. Retry used to open the draft for you the moment the send resolved that way; now that there is somewhere to put the choice, it is yours to make.++The rest of the change is why that toast exists: **filing a bug no longer costs you the app for the length of the upload.**++- **The dialog closes the moment you press Send report.** The upload used to run inside the dialog, which deliberately swallowed Escape and outside-clicks so the result could not land in a void. That meant an un-dismissable modal for an interval whose length depended on your bundle size and your network, and which was never shown to you. The send now runs in the background, so everything behind the dialog stays usable while it does.+- **A toast follows the send.** It carries a spinner, the bundle size, a moving progress bar, and a **Dismiss** action. Dismiss clears the progress toast; it does not stop the send, which continues and still records its outcome in your report history. When that send finishes, its outcome is shown to you — dismissing the progress toast declines the wait, not the result. There is no cancel, because there was never anything behind the old Cancel button either: it returned you to the review step and left the upload running.+- **The outcome resolves in the same toast.** A successful send shows its reference with a copy button and clears itself; the reference stays on the history row afterwards. The email fallback (what you get with no report service configured) and a genuine failure both hold until you dismiss them, and both offer to open the draft and reveal the saved bundle. A failure also offers **Try again**, which updates that same toast rather than stacking a second one.+- **File a second report while the first is still going** and each gets its own background send and its own toast. Neither replaces the other.+- **Retrying a report that is already being sent now says so** instead of reporting a failure. The app refuses a duplicate upload of the same bundle, and that refusal was previously indistinguishable from a real upload failure, so a retry from a second window (or from a stale row) could tell you a report had failed seconds before it succeeded. It now reads as "Already sending this report", and no second upload is issued.+- **An open report history updates itself** when a background send finishes, instead of holding at "Sending" until you close and reopen it.+- **A sent report carries a follow-up button.** The success step used to end with "Have more to add? Write to [email protected] and mention your reference". A toast that clears itself cannot carry that, so it moved onto the sent row in your report history, next to Reveal and Delete, and opens a draft to support with the reference already in the subject. Rows that were sent without a reference do not show it.++Note for anyone consuming `@inkeep/open-knowledge-core` directly: `OkBugReportSendFallbackReason` gained a third member, `'send-in-flight'`, alongside `'email-draft'` and `'send-failed'`. It is the reason above: nothing failed and nothing was refused, the same bundle is simply already on its way. This is technically breaking for an exhaustive `switch` over a received value, though the type describes a desktop IPC result that is unlikely to be switched on outside the app.++**The reference on the success toast is labelled.** On its own the identifier read as a ticket you were meant to go and open, when it is the handle you quote back to support. The dialog this toast replaced carried that label; the toast had dropped it.++**A failed send now records what actually went wrong.** Until now a failure reached the log as the single word `network-error`, which cannot tell your machine failing to resolve the intake apart from the intake being down apart from a certificate problem. The log line now carries which step failed, the host it was talking to, the HTTP status where there was one, and the underlying network error code. Signed upload URLs contribute only their host, never the signature. This is diagnostic detail inside a report you send us; nothing about it is shown to you.diff --git a/packages/app/package.json b/packages/app/package.jsonindex 4154d93d9..82c2688bd 100644--- a/packages/app/package.json+++ b/packages/app/package.json@@ -162,8 +162,8 @@"react-resizable-panels": "^4.9.0","scheduler-polyfill": "^1.3.0","shadcn": "^4.2.0",- "sonner": "^2.0.7","shiki": "^3.23.0",+ "sonner": "^2.0.7","streamdown": "^2.5.0","tailwind-merge": "^3.5.0","tailwind-scrollbar": "^4.0.2",@@ -183,6 +183,7 @@"@lingui/cli": "^6.0.1","@lingui/format-po": "^6.0.1","@opentelemetry/context-async-hooks": "^2.0.0",+ "@opentelemetry/core": "^2.9.0","@opentelemetry/sdk-trace-base": "^2.0.0","@playwright/test": "^1.59.1","@rolldown/plugin-babel": "^0.2.2",diff --git a/packages/app/src/components/BugReportHistory.dom.test.tsx b/packages/app/src/components/BugReportHistory.dom.test.tsxindex 60da290e5..5cc14520b 100644--- a/packages/app/src/components/BugReportHistory.dom.test.tsx+++ b/packages/app/src/components/BugReportHistory.dom.test.tsx@@ -1,17 +1,23 @@/*** BugReportHistoryList DOM tests: the persisted report list renders rows with* state badges, an empty state with the Report-a-bug CTA, a degraded unknown- * row, and the Retry / Reveal / Delete actions dispatching the right bridge- * calls (Retry reconstructs the send metadata from the row).+ * row, and the Retry / support / Reveal / Delete actions dispatching the right+ * bridge calls (Retry hands the row to the background send manager, which+ * reconstructs the send metadata from it).+ *+ * The send manager is the real module singleton, driven over the stubbed+ * desktop bridge — the boundary these surfaces actually meet.** Substrate: jsdom via `pnpm run test:dom`.*/import type { OkBugReportListRow, OkBugReportSendResult } from '@inkeep/open-knowledge-core';import * as actualLinguiMacro from '@lingui/react/macro';-import { cleanup, render, screen, waitFor } from '@testing-library/react';+import { act, cleanup, render, screen, waitFor } from '@testing-library/react';import userEvent from '@testing-library/user-event';import type { ReactNode } from 'react';+import * as actualSonner from 'sonner';import { afterEach, describe, expect, test, vi } from 'vitest';+import { bugReportSendManager } from '@/lib/bug-report-send-manager';import { renderLinguiTemplate } from '@/test-utils/lingui-mock';// Superset factory: spreading the real module keeps every export the component@@ -41,8 +47,37 @@ if (globalWithDomShims.ResizeObserver === undefined) {globalWithDomShims.ResizeObserver = NoopResizeObserver;}-// Imported after the macro mock so the component binds to the shim.+// Sonner is stubbed so the retry-resurrects-the-toast path can be driven+// end to end without a toast host. Spread the real module so anything else in+// this graph reaching for sonner still finds it.+const toast = {+ custom: vi.fn((_render: (id: string | number) => unknown, _options?: unknown) => 'toast-id'),+ dismiss: vi.fn((_id?: unknown) => {}),+};+vi.doMock('sonner', () => ({ ...actualSonner, toast }));++// Imported after the mocks so the modules bind to the shims.const { BugReportHistoryList, BugReportPreviousReports } = await import('./BugReportHistory');+const { installBugReportSendToasts } = await import('@/lib/install-bug-report-send-toasts');++/**+ * Mint calls for one operation. Filtered by id because the adapter walks the+ * whole snapshot on its first notification, and the manager singleton still+ * holds the operations earlier tests in this file left behind.+ */+function mintsFor(operationId: string): unknown[] {+ return toast.custom.mock.calls.filter(+ (call) => (call[1] as { id?: unknown } | undefined)?.id === operationId,+ );+}++/** The action bag the newest mint for an operation handed the toast body. */+function latestActionsFor(operationId: string): { dismiss: () => void } {+ const mints = mintsFor(operationId);+ const render = mints[mints.length - 1]?.[0] as ((id: string) => unknown) | undefined;+ if (render === undefined) throw new Error(`no toast minted for ${operationId}`);+ return (render('unused') as { props: { actions: { dismiss: () => void } } }).props.actions;+}interface BridgeLog {listCalls: number;@@ -53,7 +88,7 @@ interface BridgeLog {}function installBridge(handlers: {- reports: OkBugReportListRow[] | (() => OkBugReportListRow[]);+ reports: OkBugReportListRow[] | (() => OkBugReportListRow[] | Promise<OkBugReportListRow[]>);send?: () => Promise<OkBugReportSendResult>;}): BridgeLog {const log: BridgeLog = {@@ -65,11 +100,11 @@ function installBridge(handlers: {};const bridge = {bugReport: {- list: () => {+ list: async () => {log.listCalls += 1;const reports =- typeof handlers.reports === 'function' ? handlers.reports() : handlers.reports;- return Promise.resolve({ ok: true as const, reports });+ typeof handlers.reports === 'function' ? await handlers.reports() : handlers.reports;+ return { ok: true as const, reports };},send: (request: { zipPath: string; metadata: unknown }) => {log.sendCalls.push(request);@@ -127,8 +162,27 @@ function makeRow(overrides: Partial<OkBugReportListRow> & { id: string }): OkBug};}-afterEach(() => {+/** A send the test resolves by hand, so an operation can be held mid-flight. */+function deferredSend() {+ let resolve: (result: OkBugReportSendResult) => void = () => {};+ return {+ send: () =>+ new Promise<OkBugReportSendResult>((r) => {+ resolve = r;+ }),+ finish: (result: OkBugReportSendResult) => resolve(result),+ };+}++afterEach(async () => {cleanup();+ // The send manager is a module singleton every test in this file shares. An+ // operation left mid-flight keeps its progress interval ticking and makes the+ // next start for the same bundle join the stale one instead of dispatching,+ // so a leak surfaces as an unrelated test failing.+ await vi.waitFor(() => {+ expect(bugReportSendManager.getSnapshot().some((op) => op.status === 'sending')).toBe(false);+ });clearBridge();});@@ -211,7 +265,7 @@ describe('BugReportHistoryList', () => {});});- test('a retry that resolves to the email-draft path opens the prefilled draft', async () => {+ test('a retry that resolves to the email-draft path leaves the draft unopened', async () => {const log = installBridge({reports: [makeRow({ id: 'e-bugreport.zip', state: 'upload-failed' })],send: async () => ({@@ -224,7 +278,12 @@ describe('BugReportHistoryList', () => {render(<BugReportHistoryList />);await userEvent.click(await screen.findByRole('button', { name: 'Retry' }));- expect(log.opened).toEqual(['mailto:[email protected]?subject=x']);+ await vi.waitFor(() => {+ expect(bugReportSendManager.get('e-bugreport.zip')?.status).toBe('email-draft');+ });+ // The draft is the toast's Open draft action now. History launching it+ // itself is what made a retry mail support without being asked.+ expect(log.opened).toEqual([]);});test('Reveal opens the zip location and Delete removes by id', async () => {@@ -240,6 +299,182 @@ describe('BugReportHistoryList', () => {expect(log.deleteCalls).toEqual(['f-bugreport.zip']);});+ test('an open pane flips a row to its terminal badge when a background send lands', async () => {+ let landed = false;+ const pending = deferredSend();+ installBridge({+ reports: () => [+ makeRow({+ id: 'g-bugreport.zip',+ state: landed ? 'sent' : 'uploading',+ ...(landed ? { reference: 'OK-77' } : {}),+ retryable: false,+ }),+ ],+ send: pending.send,+ });++ render(<BugReportHistoryList />);+ expect(await screen.findByText('Sending')).toBeDefined();++ // A send for this same report started somewhere else in the window — the+ // report dialog, the disclosure inside it — while this pane stayed open.+ bugReportSendManager.startBugReportSend({+ kind: 'history-row',+ row: makeRow({ id: 'g-bugreport.zip', state: 'uploading' }),+ });+ landed = true;+ pending.finish({ ok: true, reference: 'OK-77' });++ expect(await screen.findByText('Sent')).toBeDefined();+ expect(screen.queryByText('Sending')).toBeNull();+ });++ test('Retry on a report this window is already sending issues no second send', async () => {+ const pending = deferredSend();+ const log = installBridge({+ reports: [makeRow({ id: 'j-bugreport.zip', state: 'upload-failed' })],+ send: pending.send,+ });++ render(<BugReportHistoryList />);+ const retry = await screen.findByRole('button', { name: 'Retry' });++ // The dialog already started this report; this pane is holding a row that+ // predates the send and still reads as retryable.+ bugReportSendManager.startBugReportSend({+ kind: 'history-row',+ row: makeRow({ id: 'j-bugreport.zip', state: 'upload-failed' }),+ });+ await vi.waitFor(() => {+ expect(log.sendCalls).toHaveLength(1);+ });++ await userEvent.click(retry);+ expect(log.sendCalls).toHaveLength(1);++ pending.finish({ ok: true, reference: 'OK-3' });+ await vi.waitFor(() => {+ expect(bugReportSendManager.get('j-bugreport.zip')?.status).toBe('sent');+ });+ });++ test('a list reply that lost the race cannot overwrite the newer one', async () => {+ const replies: Array<(rows: OkBugReportListRow[]) => void> = [];+ const pending = deferredSend();+ installBridge({+ reports: () =>+ new Promise<OkBugReportListRow[]>((resolve) => {+ replies.push(resolve);+ }),+ send: pending.send,+ });++ render(<BugReportHistoryList />);+ await vi.waitFor(() => {+ expect(replies).toHaveLength(1);+ });++ // A background send lands while the mount load is still unanswered, so the+ // pane asks again.+ bugReportSendManager.startBugReportSend({+ kind: 'history-row',+ row: makeRow({ id: 'l-bugreport.zip', state: 'uploading' }),+ });+ pending.finish({ ok: true, reference: 'OK-5' });+ await vi.waitFor(() => {+ expect(replies).toHaveLength(2);+ });++ // The second ask answers first, with the report landed.+ replies[1]([+ makeRow({+ id: 'l-bugreport.zip',+ state: 'sent',+ reference: 'OK-5',+ zipExists: false,+ retryable: false,+ }),+ ]);+ expect(await screen.findByText('Sent')).toBeDefined();++ // The mount load answers last, describing the report before it was sent.+ await act(async () => {+ replies[0]([makeRow({ id: 'l-bugreport.zip', state: 'uploading', retryable: false })]);+ });+ expect(screen.getByText('Sent')).toBeDefined();+ expect(screen.queryByText('Sending')).toBeNull();+ });++ test('Retry re-surfaces the toast for a send already in flight, even after Dismiss', async () => {+ const pending = deferredSend();+ installBridge({+ reports: [makeRow({ id: 'm-bugreport.zip', state: 'upload-failed' })],+ send: pending.send,+ });+ const uninstallToasts = installBugReportSendToasts();++ try {+ render(<BugReportHistoryList />);+ const retry = await screen.findByRole('button', { name: 'Retry' });++ // The send is already running — started from the report dialog, whose+ // toast the reporter then closed.+ bugReportSendManager.startBugReportSend({+ kind: 'history-row',+ row: makeRow({ id: 'm-bugreport.zip', state: 'upload-failed' }),+ });+ await vi.waitFor(() => {+ expect(mintsFor('m-bugreport.zip')).toHaveLength(1);+ });+ latestActionsFor('m-bugreport.zip').dismiss();+ expect(toast.dismiss).toHaveBeenCalledWith('m-bugreport.zip');++ await userEvent.click(retry);++ // Re-minted under the same id: that is what clears sonner's dismissed+ // set, so the toast comes back rather than a second one stacking beside+ // it — and rather than the press producing nothing at all.+ expect(mintsFor('m-bugreport.zip')).toHaveLength(2);++ pending.finish({ ok: true, reference: 'OK-8' });+ await vi.waitFor(() => {+ expect(bugReportSendManager.get('m-bugreport.zip')?.status).toBe('sent');+ });+ } finally {+ uninstallToasts();+ }+ });++ test('a sent row offers the support follow-up only when it carries a reference', async () => {+ const log = installBridge({+ reports: [+ makeRow({+ id: 'h-bugreport.zip',+ state: 'sent',+ reference: 'OK-77',+ zipDeleted: true,+ zipExists: false,+ retryable: false,+ }),+ makeRow({+ id: 'i-bugreport.zip',+ state: 'sent',+ zipDeleted: true,+ zipExists: false,+ retryable: false,+ }),+ ],+ });++ render(<BugReportHistoryList />);+ const followUps = await screen.findAllByLabelText('Email support about this report');+ expect(followUps).toHaveLength(1);++ await userEvent.click(followUps[0]);+ expect(log.opened).toEqual(['mailto:[email protected]?subject=Bug%20report%20OK-77']);+ });+test('renders an error state when the bridge is absent', async () => {clearBridge();render(<BugReportHistoryList />);@@ -279,6 +514,27 @@ describe('BugReportPreviousReports', () => {expect(await screen.findAllByLabelText('Reveal in Finder')).toHaveLength(2);});+ test('the compose-step disclosure carries the same sent-row follow-up', async () => {+ const log = installBridge({+ reports: [+ makeRow({+ id: 'k-bugreport.zip',+ state: 'sent',+ reference: 'OK-31',+ zipDeleted: true,+ zipExists: false,+ retryable: false,+ }),+ ],+ });++ render(<BugReportPreviousReports />);+ await userEvent.click(await screen.findByRole('button', { name: /Previous reports/ }));+ await userEvent.click(await screen.findByLabelText('Email support about this report'));++ expect(log.opened).toEqual(['mailto:[email protected]?subject=Bug%20report%20OK-31']);+ });+test('renders nothing when the bridge is absent', async () => {clearBridge();const { container } = render(<BugReportPreviousReports />);diff --git a/packages/app/src/components/BugReportHistory.tsx b/packages/app/src/components/BugReportHistory.tsxindex e31f02c61..1072c81bc 100644--- a/packages/app/src/components/BugReportHistory.tsx+++ b/packages/app/src/components/BugReportHistory.tsx@@ -10,44 +10,68 @@* is at least one prior report, so it never clutters the compose flow.** State is shown as an inline status badge (modeless — no nested dialogs), and- * per-row actions are Retry (resend the existing bundle without regenerating),- * Reveal (open the zip in Finder), and Delete. The surface is deliberately- * lightweight (a transient posture), not a management console. Desktop-only —- * the callers gate on `window.okDesktop`.+ * per-row actions are Retry (hand the existing bundle to the background send+ * manager without regenerating), a support follow-up on a sent report that has+ * a reference, Reveal (open the zip in Finder), and Delete. The surface is+ * deliberately lightweight (a transient posture), not a management console.+ * Desktop-only — the callers gate on `window.okDesktop`.*/import type { OkBugReportListRow } from '@inkeep/open-knowledge-core';import { Trans, useLingui } from '@lingui/react/macro';-import { ChevronDownIcon, FolderOpenIcon, RotateCwIcon, Trash2Icon } from 'lucide-react';-import { useEffect, useState } from 'react';+import { ChevronDownIcon, FolderOpenIcon, MailIcon, RotateCwIcon, Trash2Icon } from 'lucide-react';+import { useEffect, useRef, useState } from 'react';import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible';import { Spinner } from '@/components/ui/spinner';+import { bugReportSendManager } from '@/lib/bug-report-send-manager';+import { formatBundleSize, supportMailtoUrl } from '@/lib/bug-report-support';import { revealInFileManagerLabel } from '@/lib/platform-labels';type PendingAction = 'retrying' | 'deleting';type HistoryStatus = 'loading' | 'ready' | 'error';-function formatSize(bytes: number): string {- if (bytes >= 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;- if (bytes >= 1024) return `${Math.max(1, Math.round(bytes / 1024))} KB`;- return `${bytes} B`;+/**+ * The settled send operations by id, tagged with the request that settled them.+ * A retry bumps `requestSeq`, so a report that terminates a second time reads+ * as a new entry rather than as the one already seen.+ */+function settledSends(): Map<string, number> {+ const settled = new Map<string, number>();+ for (const operation of bugReportSendManager.getSnapshot()) {+ if (operation.status !== 'sending') settled.set(operation.operationId, operation.requestSeq);+ }+ return settled;}/**- * Fetch the report history on mount and expose the per-row actions. Retry- * resends the persisted bundle via the existing `send` path (reconstructing the- * send metadata from the row); on the no-intake email-draft path it opens the- * prefilled draft. Every action reloads the list afterward so the row's badge- * reflects the new on-disk state.+ * Fetch the report history on mount and expose the per-row actions. Retry hands+ * the persisted bundle to the background send manager and stops there — the+ * outcome, including the no-intake email draft, belongs to the send's toast, so+ * a retry never mails support without being asked. Delete and Reveal still act+ * directly and reload the list themselves.+ *+ * The list also reloads when a background send terminates, whichever surface+ * started it: a send outlives this component now, so without that an open pane+ * keeps asserting `Sending` about a report that already landed.*/function useReportHistory() {+ const { t } = useLingui();const [status, setStatus] = useState<HistoryStatus>('loading');const [reports, setReports] = useState<OkBugReportListRow[]>([]);const [pending, setPending] = useState<Record<string, PendingAction>>({});+ /**+ * Bumped by every load and once more on unmount, so a reply that lost the+ * race to a later load — or arrived after the pane closed — recognizes itself+ * as stale and writes nothing. Reloads now fire from the send manager as well+ * as from the action handlers, so two really can be in flight at once.+ */+ const loadToken = useRef(0);async function load() {+ loadToken.current += 1;+ const token = loadToken.current;const bugReport = window.okDesktop?.bugReport;if (!bugReport) {setStatus('error');@@ -55,6 +79,7 @@ function useReportHistory() {}try {const result = await bugReport.list();+ if (loadToken.current !== token) return;if (result.ok) {setReports(result.reports);setStatus('ready');@@ -62,47 +87,52 @@ function useReportHistory() {setStatus('error');}} catch {- setStatus('error');+ if (loadToken.current === token) setStatus('error');}}- // biome-ignore lint/correctness/useExhaustiveDependencies: load the history once on mount; the action handlers reload imperatively- useEffect(() => {- void load();- }, []);-- function clearPending(id: string) {+ function clearPending(ids: readonly string[]) {setPending((prev) => {- if (!(id in prev)) return prev;+ if (!ids.some((id) => id in prev)) return prev;const next = { ...prev };- delete next[id];+ for (const id of ids) delete next[id];return next;});}- async function retry(row: OkBugReportListRow) {- const bugReport = window.okDesktop?.bugReport;- if (!bugReport || !row.retryable) return;+ // biome-ignore lint/correctness/useExhaustiveDependencies: one load and one subscription for the pane's lifetime; `load` only touches refs and setState+ useEffect(() => {+ void load();+ // Progress is deliberately ignored: the eased fill publishes five times a+ // second and changes nothing a row says. Only a terminal state does.+ let settled = settledSends();+ const unsubscribe = bugReportSendManager.subscribe(() => {+ const next = settledSends();+ const finished = [...next]+ .filter(([id, requestSeq]) => settled.get(id) !== requestSeq)+ .map(([id]) => id);+ settled = next;+ if (finished.length === 0) return;+ clearPending(finished);+ void load();+ });+ return () => {+ unsubscribe();+ // Whatever is still in flight is answering a pane that no longer exists.+ loadToken.current += 1;+ };+ }, []);++ function retry(row: OkBugReportListRow) {+ if (!row.retryable) return;+ // The manager keys the operation by the bundle's basename, which is exactly+ // how Electron main derives the report id this row was built from — so the+ // operation and `row.id` name the same report, and the spinner clears when+ // that operation settles. No bridge guard here: a renderer with no desktop+ // bridge resolves the operation to a failure the toast can state, which+ // beats a Retry press that does nothing at all.+ bugReportSendManager.startBugReportSend({ kind: 'history-row', row });setPending((prev) => ({ ...prev, [row.id]: 'retrying' }));- // `send` is contract-safe (never rejects); the `.catch` is belt-and-suspenders- // so a transport-layer IPC failure still clears the spinner and reloads.- const result = await bugReport- .send({- zipPath: row.zipPath,- metadata: {- level: row.bundleLevel === 'unknown' ? 'standard' : row.bundleLevel,- systemWide: row.systemWide,- projectSlug: row.projectSlug,- },- })- .catch(() => null);- // The designed no-intake path: nothing uploaded, so hand the user the- // prefilled email draft (the same behavior the dialog's Send has).- if (result && !result.ok && result.reason === 'email-draft') {- void window.okDesktop?.shell.openExternal(result.fallback.mailtoUrl);- }- await load();- clearPending(row.id);}async function remove(row: OkBugReportListRow) {@@ -111,14 +141,24 @@ function useReportHistory() {setPending((prev) => ({ ...prev, [row.id]: 'deleting' }));await bugReport.delete(row.id).catch(() => undefined);await load();- clearPending(row.id);+ clearPending([row.id]);}function reveal(row: OkBugReportListRow) {void window.okDesktop?.shell.showItemInFolder(row.zipPath);}- return { status, reports, pending, retry, remove, reveal };+ /**+ * Follow up on a landed report. The reference is the subject so support can+ * correlate the mail with the bundle already in their hands — which is why+ * a sent row without one offers nothing to press.+ */+ function contactSupport(row: OkBugReportListRow) {+ if (row.reference === undefined) return;+ void window.okDesktop?.shell.openExternal(supportMailtoUrl(t`Bug report ${row.reference}`));+ }++ return { status, reports, pending, retry, remove, reveal, contactSupport };}function StateBadge({ state }: { state: OkBugReportListRow['state'] }) {@@ -166,12 +206,14 @@ function ReportRow({row,pending,onRetry,+ onContactSupport,onReveal,onDelete,}: {row: OkBugReportListRow;pending: PendingAction | undefined;onRetry: (row: OkBugReportListRow) => void;+ onContactSupport: (row: OkBugReportListRow) => void;onReveal: (row: OkBugReportListRow) => void;onDelete: (row: OkBugReportListRow) => void;}) {@@ -205,7 +247,7 @@ function ReportRow({) : row.state === 'upload-failed' && row.lastError !== undefined ? (<span className="text-destructive">{row.lastError.reason}</span>) : (- <span>{formatSize(row.zipBytes)}</span>+ <span>{formatBundleSize(row.zipBytes)}</span>)}</p></div>@@ -220,6 +262,17 @@ function ReportRow({<Trans>Retry</Trans></Button>) : null}+ {row.state === 'sent' && row.reference !== undefined ? (+ <Button+ variant="ghost"+ size="icon-xs"+ disabled={busy}+ aria-label={t`Email support about this report`}+ onClick={() => onContactSupport(row)}+ >+ <MailIcon aria-hidden="true" />+ </Button>+ ) : null}{row.zipExists ? (<Buttonvariant="ghost"@@ -257,6 +310,7 @@ function ReportRows({retry,remove,reveal,+ contactSupport,}: ReturnType<typeof useReportHistory>) {return (<div className="flex flex-col gap-2">@@ -266,6 +320,7 @@ function ReportRows({row={row}pending={pending[row.id]}onRetry={retry}+ onContactSupport={contactSupport}onReveal={reveal}onDelete={remove}/>diff --git a/packages/app/src/components/BugReportSendToast.dom.test.tsx b/packages/app/src/components/BugReportSendToast.dom.test.tsxnew file mode 100644index 000000000..fe3e79f19--- /dev/null+++ b/packages/app/src/components/BugReportSendToast.dom.test.tsx@@ -0,0 +1,273 @@+/**+ * `BugReportSendToast` layout + subscription tests.+ *+ * The component is driven by a real `createBugReportSendManager` over a+ * scripted bridge rather than by hand-built operation objects: the manager's+ * published shape is the contract under test, and a hand-built object would+ * keep passing after that shape drifted.+ *+ * Substrate: jsdom via `pnpm run test:dom`.+ */++import type { OkBugReportListRow, OkBugReportSendResult } from '@inkeep/open-knowledge-core';+import { act, cleanup, render, screen } from '@testing-library/react';+import userEvent from '@testing-library/user-event';+import { afterEach, describe, expect, test, vi } from 'vitest';+import {+ BugReportSendToast,+ type BugReportSendToastActions,+} from '@/components/BugReportSendToast';+import {+ type BugReportSendManager,+ createBugReportSendManager,+} from '@/lib/bug-report-send-manager';++const ZIP_PATH = '/Users/tester/.ok/bug-reports/2026-07-10T00-00-00-bugreport.zip';+const OPERATION_ID = '2026-07-10T00-00-00-bugreport.zip';+const MAILTO = 'mailto:[email protected]?subject=Bug%20report';++const ROW: OkBugReportListRow = {+ id: OPERATION_ID,+ createdAt: '2026-07-10T00:00:00.000Z',+ bundleLevel: 'standard',+ state: 'generated',+ zipBytes: 7130316, // renders as "6.8 MB"+ zipDeleted: false,+ zipExists: true,+ systemWide: false,+ projectSlug: 'demo-project',+ attemptsCount: 0,+ zipPath: ZIP_PATH,+ retryable: true,+ degraded: false,+};++const FAILED_RESULT: OkBugReportSendResult = {+ ok: false,+ reason: 'send-failed',+ fallback: { mailtoUrl: MAILTO, zipPath: ZIP_PATH },+};++/** Resolvers for every `send` the scripted bridge has been asked to make. */+let pendingSends: Array<(result: OkBugReportSendResult) => void> = [];++function startOperation(): BugReportSendManager {+ const manager = createBugReportSendManager(() => ({+ send: () =>+ new Promise<OkBugReportSendResult>((resolve) => {+ pendingSends.push(resolve);+ }),+ }));+ manager.startBugReportSend({ kind: 'history-row', row: ROW });+ return manager;+}++async function settleWith(result: OkBugReportSendResult): Promise<void> {+ const resolve = pendingSends.shift();+ if (resolve === undefined) throw new Error('no send is in flight');+ await act(async () => {+ resolve(result);+ });+}++/**+ * `satisfies` rather than an annotated return type: it holds the doubles to the+ * real action contract (a prop added to the interface fails here) while leaving+ * the inferred mock types intact for the call assertions.+ */+function makeActions() {+ return {+ dismiss: vi.fn(),+ retry: vi.fn(),+ openExternal: vi.fn(),+ revealInFileManager: vi.fn(),+ writeToClipboard: vi.fn<(text: string) => Promise<void>>().mockResolvedValue(undefined),+ } satisfies BugReportSendToastActions;+}++function renderToast(manager: BugReportSendManager, actions: ReturnType<typeof makeActions>) {+ return render(+ <BugReportSendToast+ operationId={OPERATION_ID}+ manager={manager}+ actions={actions}+ platform="darwin"+ />,+ );+}++afterEach(async () => {+ cleanup();+ // Any operation still 'sending' owns a live easing interval; settling it is+ // what clears that interval, so leave none behind for the next test file.+ const stragglers = pendingSends;+ pendingSends = [];+ for (const resolve of stragglers) resolve(FAILED_RESULT);+ await act(async () => {});+});++describe('while the send is in flight', () => {+ test('shows the bundle size over a bar that announces no percentage', async () => {+ const manager = startOperation();+ renderToast(manager, makeActions());++ expect(screen.getByText('Sending report')).toBeTruthy();+ expect(screen.getByText('6.8 MB total')).toBeTruthy();++ const bar = screen.getByRole('progressbar');+ expect(bar.getAttribute('aria-valuenow')).toBeNull();+ expect(bar.getAttribute('data-state')).toBe('indeterminate');+ // The bar's accessible name comes from the visible title rather than a+ // second invented string.+ expect(bar.getAttribute('aria-labelledby')).toBeTruthy();++ await settleWith(FAILED_RESULT);+ });++ test('Dismiss asks the host to close the toast without touching the send', async () => {+ const manager = startOperation();+ const actions = makeActions();+ renderToast(manager, actions);++ await userEvent.click(screen.getByRole('button', { name: 'Dismiss' }));++ expect(actions.dismiss).toHaveBeenCalledTimes(1);+ expect(manager.get(OPERATION_ID)?.status).toBe('sending');++ await settleWith(FAILED_RESULT);+ });++ test('the mounted toast swaps to the outcome without being re-rendered by its host', async () => {+ const manager = startOperation();+ renderToast(manager, makeActions());+ expect(screen.getByText('Sending report')).toBeTruthy();++ await settleWith({ ok: true, reference: 'OK-1234-ABCD' });++ expect(screen.queryByText('Sending report')).toBeNull();+ expect(screen.getByText('OK-1234-ABCD')).toBeTruthy();+ });+});++describe('when the send succeeds', () => {+ test('offers the reference to the clipboard and no reveal action', async () => {+ const manager = startOperation();+ const actions = makeActions();+ await settleWith({ ok: true, reference: 'OK-1234-ABCD' });+ renderToast(manager, actions);++ // Labelled, and labelled *next to* the value: an unlabelled identifier+ // reads as a ticket the reporter should go open, rather than the handle+ // they quote back to support. A label parked elsewhere in the toast would+ // not do that job, so assert the row, not just the presence of the word.+ const reference = screen.getByText('OK-1234-ABCD');+ expect(reference.parentElement?.textContent).toContain('Reference');++ await userEvent.click(screen.getByRole('button', { name: 'Copy reference' }));+ expect(actions.writeToClipboard).toHaveBeenCalledWith('OK-1234-ABCD');++ // Retention reclaims the zip on a confirmed send, so there is no file left+ // to reveal.+ expect(screen.queryByRole('button', { name: 'Reveal in Finder' })).toBeNull();+ expect(actions.revealInFileManager).not.toHaveBeenCalled();+ });++ test('confirms the copy on the button that performed it', async () => {+ const manager = startOperation();+ const actions = makeActions();+ await settleWith({ ok: true, reference: 'OK-1234-ABCD' });+ renderToast(manager, actions);++ await userEvent.click(screen.getByRole('button', { name: 'Copy reference' }));++ expect(screen.getByRole('button', { name: 'Copied!' })).toBeTruthy();+ });+});++describe('when the send resolves to an email draft', () => {+ test('opens the draft and reveals the bundle, claiming no upload', async () => {+ const manager = startOperation();+ const actions = makeActions();+ await settleWith({+ ok: false,+ reason: 'email-draft',+ fallback: { mailtoUrl: MAILTO, zipPath: ZIP_PATH },+ });+ renderToast(manager, actions);++ expect(screen.getByText(/Nothing was uploaded/)).toBeTruthy();+ expect(screen.queryByRole('button', { name: 'Try again' })).toBeNull();++ await userEvent.click(screen.getByRole('button', { name: 'Open email draft' }));+ expect(actions.openExternal).toHaveBeenCalledWith(MAILTO);++ await userEvent.click(screen.getByRole('button', { name: 'Reveal in Finder' }));+ expect(actions.revealInFileManager).toHaveBeenCalledWith(ZIP_PATH);+ });+});++describe('when the send fails', () => {+ test('offers retry alongside the draft and the bundle', async () => {+ const manager = startOperation();+ const actions = makeActions();+ await settleWith(FAILED_RESULT);+ renderToast(manager, actions);++ expect(screen.getByText("Couldn't send the report")).toBeTruthy();++ await userEvent.click(screen.getByRole('button', { name: 'Try again' }));+ expect(actions.retry).toHaveBeenCalledTimes(1);++ await userEvent.click(screen.getByRole('button', { name: 'Open email draft' }));+ expect(actions.openExternal).toHaveBeenCalledWith(MAILTO);++ await userEvent.click(screen.getByRole('button', { name: 'Reveal in Finder' }));+ expect(actions.revealInFileManager).toHaveBeenCalledWith(ZIP_PATH);+ });++ test('omits the draft action when the transport never produced one', async () => {+ const manager = createBugReportSendManager(() => {+ throw new Error('bridge exploded');+ });+ manager.startBugReportSend({ kind: 'history-row', row: ROW });+ renderToast(manager, makeActions());++ expect(screen.getByText("Couldn't send the report")).toBeTruthy();+ expect(screen.queryByRole('button', { name: 'Open email draft' })).toBeNull();+ expect(screen.getByRole('button', { name: 'Try again' })).toBeTruthy();+ });+});++describe('when the report is already being sent elsewhere', () => {+ test('reads as in progress and offers no draft for a live report', async () => {+ const manager = startOperation();+ const actions = makeActions();+ await settleWith({+ ok: false,+ reason: 'send-in-flight',+ fallback: { mailtoUrl: MAILTO, zipPath: ZIP_PATH },+ });+ renderToast(manager, actions);++ expect(screen.getByText('Already sending this report')).toBeTruthy();+ expect(screen.queryByText("Couldn't send the report")).toBeNull();+ expect(screen.queryByRole('button', { name: 'Open email draft' })).toBeNull();+ expect(screen.queryByRole('button', { name: 'Try again' })).toBeNull();+ });+});++describe('when the operation is unknown', () => {+ test('renders nothing rather than an invented state', () => {+ const manager = createBugReportSendManager(() => undefined);+ const { container } = render(+ <BugReportSendToast+ operationId="never-started.zip"+ manager={manager}+ actions={makeActions()}+ platform="darwin"+ />,+ );++ expect(container.textContent).toBe('');+ });+});diff --git a/packages/app/src/components/BugReportSendToast.tsx b/packages/app/src/components/BugReportSendToast.tsxnew file mode 100644index 000000000..b7aa020c4--- /dev/null+++ b/packages/app/src/components/BugReportSendToast.tsx@@ -0,0 +1,351 @@+/**+ * Toast body for a background bug-report send.+ *+ * Sonner calls a `toast.custom` render function exactly once and keeps the+ * element it returned, so this component has to watch the send itself: it+ * subscribes to its own operation and re-renders in place as progress moves+ * and the outcome lands. It reads state and reports intent, nothing more —+ * every side effect (closing the toast, retrying, opening the draft, revealing+ * the bundle, writing the clipboard) arrives as a callback, so the toast never+ * reaches for the desktop bridge or restarts the send it is describing.+ *+ * Keep Radix context consumers out of here. `<Toaster />` now renders inside+ * `<TooltipProvider>`, so a `<Tooltip>` would no longer throw for want of a+ * provider — but the toaster is still outside every error boundary, so ANY+ * throw from this body unmounts the React root, on a successful send. The+ * provider move removed one cause; it did not add a net. Each primitive used+ * here must supply its own context, and `CopyReferenceButton` below stays+ * tooltip-free so the success path depends on nothing above it.+ */++import { Trans, useLingui } from '@lingui/react/macro';+import { AlertCircleIcon, CheckIcon, CopyIcon, InfoIcon, MailIcon } from 'lucide-react';+import type { ReactNode } from 'react';+import { useEffect, useId, useState, useSyncExternalStore } from 'react';+import { Button } from '@/components/ui/button';+import { Progress } from '@/components/ui/progress';+import { Spinner } from '@/components/ui/spinner';+import type { BugReportSendManager, BugReportSendOperation } from '@/lib/bug-report-send-manager';+import { formatBundleSize } from '@/lib/bug-report-support';+import { revealInFileManagerLabel } from '@/lib/platform-labels';++/** Matches `CopyButton`'s window, so the two affordances feel like one. */+const COPIED_RESET_MS = 1500;++export interface BugReportSendToastActions {+ /** Close this toast. The send keeps running; only the watching stops. */+ readonly dismiss: () => void;+ /** Send the same bundle again under the same operation. */+ readonly retry: () => void;+ readonly openExternal: (url: string) => void;+ readonly revealInFileManager: (zipPath: string) => void;+ readonly writeToClipboard: (text: string) => Promise<void>;+}++export interface BugReportSendToastProps {+ readonly operationId: string;+ readonly manager: BugReportSendManager;+ readonly actions: BugReportSendToastActions;+ /** The bridge's `process.platform`, which names the file manager. */+ readonly platform?: string | null;+}++type OperationOf<S extends BugReportSendOperation['status']> = Extract<+ BugReportSendOperation,+ { status: S }+>;++export function BugReportSendToast({+ operationId,+ manager,+ actions,+ platform,+}: BugReportSendToastProps) {+ const operation = useSyncExternalStore(manager.subscribe, () => manager.get(operationId));++ // Unreachable in production: the manager never forgets an operation, and a+ // toast is only minted for one it published. Rendering nothing still beats+ // inventing a state for a send this window knows nothing about.+ if (operation === undefined) return null;++ switch (operation.status) {+ case 'sending':+ return <SendingLayout operation={operation} actions={actions} />;+ case 'sent':+ return <SentLayout operation={operation} actions={actions} />;+ case 'email-draft':+ return <EmailDraftLayout operation={operation} actions={actions} platform={platform} />;+ case 'failed':+ return <FailedLayout operation={operation} actions={actions} platform={platform} />;+ case 'already-sending':+ return <AlreadySendingLayout actions={actions} />;+ }+}++function ToastCard({ icon, children }: { icon: ReactNode; children: ReactNode }) {+ return (+ <div className="flex w-full gap-3 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg">+ {icon}+ <div className="flex min-w-0 flex-1 flex-col gap-1.5">{children}</div>+ </div>+ );+}++function ActionRow({ children }: { children: ReactNode }) {+ return <div className="mt-1 flex flex-wrap gap-2">{children}</div>;+}++function SendingLayout({+ operation,+ actions,+}: {+ operation: OperationOf<'sending'>;+ actions: BugReportSendToastActions;+}) {+ const titleId = useId();+ return (+ <ToastCard+ icon={<Spinner className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true" />}+ >+ <div className="flex items-baseline gap-2">+ <p id={titleId} className="font-medium text-sm">+ <Trans>Sending report</Trans>+ </p>+ {/* No byte-level progress crosses the IPC boundary, so the only honest+ number here is the total size. */}+ <span className="ms-auto shrink-0 text-muted-foreground text-xs">+ <Trans>{formatBundleSize(operation.zipSizeBytes)} total</Trans>+ </span>+ </div>+ {/* The fill is a time-eased estimate, not real transfer progress, so the+ machine-readable state stays indeterminate (`value` null, hence no+ aria-valuenow) while the bar still moves — assistive tech must not+ hear invented percentages. The visible title is the bar's name; a+ second string would only restate it. */}+ <Progress+ value={null}+ indeterminateFillPercent={operation.fillPercent}+ aria-labelledby={titleId}+ className="h-1.5 bg-secondary"+ />+ <ActionRow>+ <Button size="sm" variant="ghost" onClick={actions.dismiss}>+ <Trans>Dismiss</Trans>+ </Button>+ </ActionRow>+ </ToastCard>+ );+}++function SentLayout({+ operation,+ actions,+}: {+ operation: OperationOf<'sent'>;+ actions: BugReportSendToastActions;+}) {+ return (+ <ToastCard+ icon={<CheckIcon className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true" />}+ >+ <p className="font-medium text-sm">+ <Trans>Thanks for the report!</Trans>+ </p>+ <p className="text-muted-foreground text-sm">+ <Trans>We've filed it with the team and attached your logs.</Trans>+ </p>+ <div className="mt-0.5 flex items-center gap-1.5">+ {/* Labelled, not bare: on its own the identifier reads as a ticket the+ reporter is expected to open, when it is the handle they quote back+ to support. Matches the label the dialog used before the toast. */}+ <span className="shrink-0 text-muted-foreground text-xs">+ <Trans>Reference</Trans>+ </span>+ <span className="min-w-0 select-all truncate font-mono font-medium text-xs tracking-wide">+ {operation.reference}+ </span>+ <CopyReferenceButton reference={operation.reference} write={actions.writeToClipboard} />+ </div>+ {/* No reveal action: retention reclaims the zip on a confirmed send, so+ the file is gone by the time this renders. */}+ </ToastCard>+ );+}++function EmailDraftLayout({+ operation,+ actions,+ platform,+}: {+ operation: OperationOf<'email-draft'>;+ actions: BugReportSendToastActions;+ platform?: string | null;+}) {+ return (+ <ToastCard+ icon={<MailIcon className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true" />}+ >+ <p className="font-medium text-sm">+ <Trans>Send your report by email</Trans>+ </p>+ {/* Informational, not an error: with no report service configured the+ prefilled draft is how reports travel, so nothing was attempted and+ nothing failed. */}+ <p className="text-muted-foreground text-sm">+ <Trans>+ Nothing was uploaded. The report stays on this computer until you email it to us.+ </Trans>+ </p>+ <ActionRow>+ <Button size="sm" onClick={() => actions.openExternal(operation.mailtoUrl)}>+ <Trans>Open email draft</Trans>+ </Button>+ <RevealBundleButton+ zipPath={operation.zipPath}+ platform={platform}+ onReveal={actions.revealInFileManager}+ />+ </ActionRow>+ </ToastCard>+ );+}++function FailedLayout({+ operation,+ actions,+ platform,+}: {+ operation: OperationOf<'failed'>;+ actions: BugReportSendToastActions;+ platform?: string | null;+}) {+ const { mailtoUrl } = operation;+ return (+ <ToastCard+ icon={+ <AlertCircleIcon className="mt-0.5 size-4 shrink-0 text-destructive" aria-hidden="true" />+ }+ >+ <p className="font-medium text-sm">+ <Trans>Couldn't send the report</Trans>+ </p>+ <p className="text-muted-foreground text-sm">+ <Trans>Your report is saved on this computer, so nothing was lost.</Trans>+ </p>+ <ActionRow>+ <Button size="sm" onClick={actions.retry}>+ <Trans>Try again</Trans>+ </Button>+ {/* Main composes the fallback draft as part of its result, so a send+ the transport never completed has no draft to offer. */}+ {mailtoUrl !== undefined && (+ <Button size="sm" variant="outline" onClick={() => actions.openExternal(mailtoUrl)}>+ <Trans>Open email draft</Trans>+ </Button>+ )}+ <RevealBundleButton+ zipPath={operation.zipPath}+ platform={platform}+ onReveal={actions.revealInFileManager}+ />+ </ActionRow>+ </ToastCard>+ );+}++function AlreadySendingLayout({ actions }: { actions: BugReportSendToastActions }) {+ return (+ <ToastCard+ icon={<InfoIcon className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden="true" />}+ >+ <p className="font-medium text-sm">+ <Trans>Already sending this report</Trans>+ </p>+ {/* Deliberately offers no email draft: the bundle is mid-flight, and+ mailing support a report that is also being filed is the duplicate+ this outcome exists to prevent. */}+ <p className="text-muted-foreground text-sm">+ <Trans>+ This report is already on its way. Its result will appear in your bug report history.+ </Trans>+ </p>+ <ActionRow>+ <Button size="sm" variant="ghost" onClick={actions.dismiss}>+ <Trans>Dismiss</Trans>+ </Button>+ </ActionRow>+ </ToastCard>+ );+}++function RevealBundleButton({+ zipPath,+ platform,+ onReveal,+}: {+ zipPath: string;+ platform?: string | null;+ onReveal: (zipPath: string) => void;+}) {+ return (+ <Button size="sm" variant="ghost" onClick={() => onReveal(zipPath)}>+ {revealInFileManagerLabel(platform)}+ </Button>+ );+}++/**+ * `CopyButton` without its `<Tooltip>`. Not because the provider is missing+ * any more (the toaster now renders inside `<TooltipProvider>`), but because+ * this body sits outside every error boundary: the fewer things the success+ * path can throw on, the better. The tooltip was only carrying the label, and+ * the `aria-label` carries it here just as well for a screen reader.+ */+function CopyReferenceButton({+ reference,+ write,+}: {+ reference: string;+ write: (text: string) => Promise<void>;+}) {+ const { t } = useLingui();+ // A monotonic tick rather than a boolean so a re-click while already+ // "copied" restarts the reset timer.+ const [copyTick, setCopyTick] = useState(0);+ const copied = copyTick > 0;++ useEffect(() => {+ if (copyTick === 0) return;+ const id = setTimeout(() => setCopyTick(0), COPIED_RESET_MS);+ return () => clearTimeout(id);+ }, [copyTick]);++ const handleClick = () => {+ Promise.resolve()+ .then(() => write(reference))+ .then(+ () => setCopyTick((n) => n + 1),+ () => {+ // Permission denial / insecure context — the clipboard is the one+ // boundary here that can refuse. Leave the icon as Copy rather than+ // claim a write that did not happen.+ },+ );+ };++ return (+ <Button+ type="button"+ size="icon-xs"+ variant="ghost"+ aria-label={copied ? t`Copied!` : t`Copy reference`}+ onClick={handleClick}+ >+ {copied ? (+ <CheckIcon className="size-3.5" aria-hidden="true" />+ ) : (+ <CopyIcon className="size-3.5" aria-hidden="true" />+ )}+ </Button>+ );+}diff --git a/packages/app/src/components/ReportBugCrashInviteTrigger.dom.test.tsx b/packages/app/src/components/ReportBugCrashInviteTrigger.dom.test.tsxindex 8ce439417..e7d0f3b09 100644--- a/packages/app/src/components/ReportBugCrashInviteTrigger.dom.test.tsx+++ b/packages/app/src/components/ReportBugCrashInviteTrigger.dom.test.tsx@@ -12,7 +12,11 @@* Invocation: `bun run test:dom` from `packages/app/`.*/-import type { OkBugReportCrashDetectedEvent } from '@inkeep/open-knowledge-core';+import type {+ OkBugReportCrashDetectedEvent,+ OkBugReportCreateResult,+ ReportBundleSummary,+} from '@inkeep/open-knowledge-core';import { act, cleanup, render, screen, waitFor } from '@testing-library/react';import userEvent from '@testing-library/user-event';import { afterEach, describe, expect, test } from 'vitest';@@ -50,22 +54,40 @@ const INVITE: OkBugReportCrashDetectedEvent = {minidumpAvailable: false,};+const ZIP_PATH = '/Users/tester/.ok/bug-reports/2026-07-10T00-00-00-bugreport.zip';+const SUMMARY: ReportBundleSummary = {+ level: 'full',+ systemWide: false,+ projectSlug: 'demo-project',+ files: ['sysinfo.json'],+ redactions: [],+ redactedLineCount: 0,+ generatedAt: '2026-07-10T00:00:00.000Z',+};+const CREATE_OK: OkBugReportCreateResult = {+ ok: true,+ zipPath: ZIP_PATH,+ zipSizeBytes: 7130316,+ summary: SUMMARY,+};+interface CrashBridgeStub {bridge: OkDesktopBridge;/** Deliver a crash-detected event through the captured subscription. */fire(event: OkBugReportCrashDetectedEvent): void;readonly acked: string[];+ readonly sent: string[];}/**- * Fake bridge exposing just the surface the trigger and store touch:- * `bugReport.onCrashDetected` (subscription), `bugReport.crashAck`, and- * `config.mode`. The dialog's own bridge calls (create/send) are user-action- * driven and these tests never reach them.+ * Fake bridge exposing the surface the trigger, the store, and the dialog's own+ * report flow touch: `bugReport.onCrashDetected` (subscription),+ * `bugReport.crashAck`, `bugReport.create`/`send`, and `config.mode`.*/function makeCrashBridge(): CrashBridgeStub {let captured: ((event: OkBugReportCrashDetectedEvent) => void) | null = null;const acked: string[] = [];+ const sent: string[] = [];const bridge = {config: { mode: 'editor' },@@ -80,6 +102,11 @@ function makeCrashBridge(): CrashBridgeStub {acked.push(request.eventId);return Promise.resolve({ ok: true as const });},+ create: () => Promise.resolve(CREATE_OK),+ send: (request: { zipPath: string }) => {+ sent.push(request.zipPath);+ return Promise.resolve({ ok: true as const, reference: 'OK-CRASH1' });+ },},} as unknown as OkDesktopBridge;@@ -90,9 +117,31 @@ function makeCrashBridge(): CrashBridgeStub {act(() => captured?.(event));},acked,+ sent,};}+/**+ * The dialog and the module-level send manager both reach for the bridge on+ * `window.okDesktop` rather than the prop the trigger threads, so a test that+ * drives the report flow has to publish it there too.+ */+function installGlobalBridge(bridge: OkDesktopBridge) {+ for (const host of [window, globalThis] as unknown as Array<Record<string, unknown>>) {+ Object.defineProperty(host, 'okDesktop', { configurable: true, writable: true, value: bridge });+ }+}++function clearGlobalBridge() {+ for (const host of [window, globalThis] as unknown as Array<Record<string, unknown>>) {+ Object.defineProperty(host, 'okDesktop', {+ configurable: true,+ writable: true,+ value: undefined,+ });+ }+}+function installCrashBridge(stub: CrashBridgeStub): (() => void) | undefined {// Test setup can install the module singleton before this file runs. Detach// its bridge first so the first test gets the same isolation as later tests.@@ -109,6 +158,7 @@ describe('ReportBugCrashInviteTrigger', () => {// invitation so state never leaks across tests.uninstall?.();uninstall = undefined;+ clearGlobalBridge();});test('a crash-detected push opens the crash-invite dialog', async () => {@@ -210,6 +260,42 @@ describe('ReportBugCrashInviteTrigger', () => {expect(stub.acked).toEqual(['boot:1751871600000']);});+ test('sending the report acks the crash event, so the invitation cannot re-prompt', async () => {+ // Send closes the dialog by handing off to the background send manager. It+ // has to close through the same onOpenChange callback every other exit+ // uses, or the ack this trigger hangs off that callback silently stops+ // firing and the same crash re-invites on every boot.+ const stub = makeCrashBridge();+ installGlobalBridge(stub.bridge);+ uninstall = installCrashBridge(stub);+ render(<ReportBugCrashInviteTrigger bridge={stub.bridge} />);+ stub.fire(INVITE);+ await waitFor(+ () => {+ expect(screen.queryByRole('dialog')).not.toBeNull();+ },+ { timeout: ASYNC_TIMEOUT_MS },+ );++ await userEvent.click(screen.getByRole('button', { name: 'Create report' }));+ await screen.findByRole('heading', { name: 'Review your report' });+ await userEvent.click(screen.getByRole('button', { name: 'Send report' }));++ await waitFor(+ () => {+ expect(stub.sent).toEqual([ZIP_PATH]);+ },+ { timeout: ASYNC_TIMEOUT_MS },+ );+ expect(stub.acked).toEqual(['boot:1751871600000']);+ await waitFor(+ () => {+ expect(screen.queryByRole('dialog')).toBeNull();+ },+ { timeout: ASYNC_TIMEOUT_MS },+ );+ });+test('dismissing via Escape also counts as the answer and acks', async () => {const stub = makeCrashBridge();uninstall = installCrashBridge(stub);diff --git a/packages/app/src/components/ReportBugCrashInviteTrigger.tsx b/packages/app/src/components/ReportBugCrashInviteTrigger.tsxindex 4bf47ddd2..eaf6f55a2 100644--- a/packages/app/src/components/ReportBugCrashInviteTrigger.tsx+++ b/packages/app/src/components/ReportBugCrashInviteTrigger.tsx@@ -10,9 +10,11 @@* subscription attaches at module init — boot-time invitations arrive on the* window's first `did-finish-load` and must not race React's effect flush.*- * Any close of the invitation dialog — "Not now", Escape, the ✕, or Done- * after a successful send — counts as the user's answer: the crash event is- * acked so it never re-prompts, across restarts included.+ * Any close of the invitation dialog — "Not now", Escape, the ✕, or the Send+ * hand-off itself — counts as the user's answer: the crash event is acked so+ * it never re-prompts, across restarts included. (There is no longer a Done+ * button: the send runs in the background, so pressing Send closes the dialog+ * immediately and that close is what carries the ack.)*/import { useSyncExternalStore } from 'react';diff --git a/packages/app/src/components/ReportBugDialog.dom.test.tsx b/packages/app/src/components/ReportBugDialog.dom.test.tsxindex 3a8599f8d..9f3abe715 100644--- a/packages/app/src/components/ReportBugDialog.dom.test.tsx+++ b/packages/app/src/components/ReportBugDialog.dom.test.tsx@@ -1,9 +1,14 @@/**- * ReportBugDialog state-machine tests: compose → review → send with the- * success, failure→email-fallback, cancel, and note-preservation paths, all- * against a scripted `window.okDesktop` bridge. Copy assertions pin the- * approved copy deck strings; the path-identity assertions pin that the zip- * reviewed is the zip sent.+ * ReportBugDialog state-machine tests: compose → review → the Send hand-off,+ * plus the crash-context and note-preservation paths, all against a scripted+ * `window.okDesktop` bridge. Copy assertions pin the approved copy deck+ * strings; the path-identity assertions pin that the zip reviewed is the zip+ * sent.+ *+ * Send starts a background operation and closes the dialog, so nothing here+ * asserts a send OUTCOME — those layouts belong to BugReportSendToast and its+ * own DOM tests. What is asserted here is that no outcome can reach back into+ * the dialog.** Substrate: jsdom via `bun run test:dom`.*/@@ -19,8 +24,10 @@ import type { OkBugReportSendInput } from '@inkeep/open-knowledge-core/desktop-bimport { act, cleanup, render, screen } from '@testing-library/react';import userEvent from '@testing-library/user-event';import type { ReactNode } from 'react';+import { useEffect, useState } from 'react';import { afterEach, describe, expect, test, vi } from 'vitest';import { TooltipProvider } from '@/components/ui/tooltip';+import { bugReportSendManager } from '@/lib/bug-report-send-manager';import { renderLinguiTemplate } from '@/test-utils/lingui-mock';vi.doMock('@lingui/react/macro', () => ({@@ -196,21 +203,49 @@ async function renderDialog(crashContext?: import('./ReportBugDialogBody').ReportBugCrashContext;crashInvite?: OkBugReportCrashDetectedEvent;} = {},+ /**+ * Honour `onOpenChange` so a close actually unmounts the Radix content and+ * `reopen()` drives a real second open cycle. Off by default: most tests only+ * need the callback log, and holding the dialog open keeps their later+ * queries answerable.+ */+ options: { statefulOpen?: boolean } = {},) {const { ReportBugDialog } = await import('./ReportBugDialog');const openChangeCalls: boolean[] = [];- render(- <TooltipProvider>- <ReportBugDialog open={true} onOpenChange={(next) => openChangeCalls.push(next)} {...props} />- </TooltipProvider>,- );+ let setHostOpen: ((open: boolean) => void) | null = null;+ function Host() {+ const [open, setOpen] = useState(true);+ useEffect(() => {+ setHostOpen = setOpen;+ }, []);+ return (+ <TooltipProvider>+ <ReportBugDialog+ open={options.statefulOpen === true ? open : true}+ onOpenChange={(next) => {+ openChangeCalls.push(next);+ setOpen(next);+ }}+ {...props}+ />+ </TooltipProvider>+ );+ }+ render(<Host />);// ReportBugDialog is lazy-loaded — wait for the body chunk to resolve and// mount before returning so callers' synchronous queries see the dialog.// Generous deadline: the file's first render pays the chunk's cold// transform+import cost, which can exceed findByRole's 1s default on a// contended CI runner (only the failure path ever waits this long).await screen.findByRole('dialog', {}, { timeout: 15_000 });- return { openChangeCalls };+ return {+ openChangeCalls,+ reopen: () =>+ act(() => {+ setHostOpen?.(true);+ }),+ };}async function createReport(note?: string) {@@ -222,8 +257,15 @@ async function createReport(note?: string) {}describe('ReportBugDialog', () => {- afterEach(() => {+ afterEach(async () => {cleanup();+ // The send manager is a module singleton every test in this file shares.+ // An operation left mid-flight keeps its progress interval ticking and+ // makes the next start for the same zip join the stale one instead of+ // dispatching, so a leak here surfaces as an unrelated test failing.+ await vi.waitFor(() => {+ expect(bugReportSendManager.getSnapshot().some((op) => op.status === 'sending')).toBe(false);+ });clearBridge();// Drop any launcher stand-in a test appended so it can't stall the next// test's capture (the gate waits for these to clear before shooting).@@ -332,42 +374,25 @@ describe('ReportBugDialog', () => {expect((noteBox as HTMLTextAreaElement).value).toBe('my draft note');});- test('sending uploads the reviewed zip and lands on the reference with copy and support follow-up', async () => {+ test('Send hands the reviewed zip to the background send manager and closes the dialog', async () => {const send = deferred<OkBugReportSendResult>();const log = installBridge({ send: () => send.promise });- const { openChangeCalls } = await renderDialog();+ const { openChangeCalls } = await renderDialog({}, { statefulOpen: true });await createReport('upload me');await userEvent.click(screen.getByRole('button', { name: 'Send report' }));- await screen.findByRole('heading', { name: 'Sending report' });- expect(screen.getByText('Uploading securely')).not.toBeNull();- // Transport-neutral announcement — the default (no intake endpoint)- // configuration never uploads, so the copy must not claim one.- expect(screen.getByText('Your report is being sent.')).not.toBeNull();- // Only the honest total — no fabricated transferred-bytes counter.- expect(screen.getByText(/6\.8 MB total/)).not.toBeNull();- expect(screen.queryByText(/MB of/)).toBeNull();- const uploadBar = screen.getByRole('progressbar');-- expect(uploadBar).not.toBeNull();- // The width here is a time-eased estimate, not real transfer progress, so- // the bar must stay indeterminate: no percentage may reach assistive tech.- // The primitive omits these whenever `value` is null, so this pins that- // this call site keeps passing null rather than the eased fill percentage.- expect(uploadBar.getAttribute('aria-valuenow')).toBeNull();- expect(uploadBar.getAttribute('aria-valuetext')).toBeNull();- expect(uploadBar.getAttribute('data-state')).toBe('indeterminate');- expect(- (screen.getByRole('button', { name: 'Send report' }) as HTMLButtonElement).disabled,- ).toBe(true);-- await act(async () => {- send.resolve({ ok: true, reference: 'OK-8H3KQD' });- await Promise.resolve();+ // Closed at once, through the dialog's own onOpenChange path: mount sites+ // hang their own work off that callback (the crash invite acks there).+ expect(openChangeCalls).toEqual([false]);+ await vi.waitFor(() => {+ expect(screen.queryByRole('dialog')).toBeNull();});- await screen.findByRole('heading', { name: 'Thanks for the report!' });+ // The send is under way behind the closed dialog, carrying the composed+ // note and the consent read off the bundle's own inventory (this fixture's+ // summary carries no screenshot entry, so main must be told not to upload+ // the capture it may still be holding).expect(log.sendCalls).toEqual([{zipPath: ZIP_PATH,@@ -377,130 +402,122 @@ describe('ReportBugDialog', () => {projectSlug: 'demo-project',note: 'upload me',},- // Consent for the separate screenshot upload, read off the bundle's own- // file inventory. This fixture's summary carries no screenshot entry, so- // main must be told not to upload the capture it may still be holding.includeScreenshot: false,},]);- expect(screen.getByDisplayValue('OK-8H3KQD')).not.toBeNull();- await userEvent.click(screen.getByRole('button', { name: 'Copy' }));- await screen.findByRole('button', { name: 'Copied!' });- expect(log.clipboard).toEqual(['OK-8H3KQD']);+ // No in-dialog upload UI survives anywhere: progress and the outcome are+ // the toast's job now.+ expect(screen.queryByRole('progressbar')).toBeNull();+ expect(screen.queryByText('Uploading securely')).toBeNull();+ expect(screen.queryByRole('heading', { name: 'Sending report' })).toBeNull();- // The public GitHub follow-up is gone — no issue button, and support email- // is the only follow-up channel offered.- expect(screen.queryByRole('button', { name: 'Open GitHub issue' })).toBeNull();- expect(screen.getByRole('link', { name: '[email protected]' })).not.toBeNull();+ await act(async () => {+ send.resolve({ ok: true, reference: 'OK-8H3KQD' });+ await Promise.resolve();+ });- await userEvent.click(screen.getByRole('button', { name: 'Done' }));- expect(openChangeCalls).toEqual([false]);+ // The reference lands on the history row and in the toast, never back here.+ expect(screen.queryByDisplayValue('OK-8H3KQD')).toBeNull();+ expect(screen.queryByRole('dialog')).toBeNull();});- test('a failed send falls back to email with the note preserved for the retry', async () => {- let sendAttempts = 0;- const log = installBridge({- send: () => {- sendAttempts += 1;- return sendAttempts === 1- ? Promise.resolve({- ok: false,- reason: 'send-failed',- fallback: { mailtoUrl: 'mailto:[email protected]?subject=OpenKnowledge%20bug' },- })- : Promise.resolve({ ok: true, reference: 'OK-RETRY1' });+ test.each([+ [+ 'a failed upload',+ {+ ok: false as const,+ reason: 'send-failed' as const,+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=OpenKnowledge%20bug' },},- });- await renderDialog();+ ],+ [+ 'the no-intake email default',+ {+ ok: false as const,+ reason: 'email-draft' as const,+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=OpenKnowledge%20bug' },+ },+ ],+ ])('%s resolves outside the dialog — no terminal phase, no reopen, no draft', async (_, result) => {+ const log = installBridge({ send: () => Promise.resolve(result) });+ const { openChangeCalls } = await renderDialog({}, { statefulOpen: true });await createReport('still my note');await userEvent.click(screen.getByRole('button', { name: 'Send report' }));+ await vi.waitFor(() => {+ expect(log.sendCalls).toHaveLength(1);+ });- await screen.findByRole('heading', { name: "Couldn't send the report" });- expect(- screen.getByText("Your report couldn't be sent. Try again or email it instead."),- ).not.toBeNull();- const alert = screen.getByRole('alert');- expect(alert.textContent).toContain("The report service couldn't be reached.");- expect(alert.textContent).toContain(- 'Your report is saved on this computer, so nothing was lost. You can email it to us instead.',- );- expect(screen.getByText('2026-07-10T00-00-00-bugreport.zip')).not.toBeNull();+ expect(openChangeCalls).toEqual([false]);+ expect(screen.queryByRole('dialog')).toBeNull();+ expect(screen.queryByRole('heading', { name: "Couldn't send the report" })).toBeNull();+ expect(screen.queryByRole('heading', { name: 'Send your report by email' })).toBeNull();+ expect(screen.queryByRole('heading', { name: 'Thanks for the report!' })).toBeNull();+ // The draft is offered by the toast's Open draft action, never launched+ // for the reporter by this flow.+ expect(log.opened).toEqual([]);+ });- await userEvent.click(screen.getByRole('button', { name: 'Reveal in Finder' }));- expect(log.revealed).toEqual([ZIP_PATH]);+ test('Escape closes the dialog from review, and review keeps its close button', async () => {+ installBridge();+ const { openChangeCalls } = await renderDialog({}, { statefulOpen: true });+ await createReport();- await userEvent.click(screen.getByRole('button', { name: 'Open email draft' }));- expect(log.opened).toEqual(['mailto:[email protected]?subject=OpenKnowledge%20bug']);+ expect(screen.getByRole('button', { name: 'Close' })).not.toBeNull();- await userEvent.click(screen.getByRole('button', { name: 'Try again' }));- await screen.findByRole('heading', { name: 'Thanks for the report!' });- expect(log.sendCalls).toHaveLength(2);- expect(log.sendCalls[1].zipPath).toBe(ZIP_PATH);- expect(log.sendCalls[1].metadata.note).toBe('still my note');- });+ await userEvent.keyboard('{Escape}');- test('with no report service configured, send resolves to the email flow — no fake upload, no failure framing', async () => {- const log = installBridge({- send: () =>- Promise.resolve({- ok: false,- reason: 'email-draft',- fallback: { mailtoUrl: 'mailto:[email protected]?subject=OpenKnowledge%20bug' },- }),+ expect(openChangeCalls).toEqual([false]);+ await vi.waitFor(() => {+ expect(screen.queryByRole('dialog')).toBeNull();});- await renderDialog();- await createReport('no intake configured');-- await userEvent.click(screen.getByRole('button', { name: 'Send report' }));+ });- await screen.findByRole('heading', { name: 'Send your report by email' });- expect(- screen.getByText(- 'Nothing was uploaded. The report stays on this computer until you email it to us.',- ),- ).not.toBeNull();- // An informational state, not an error: no alert, no unreachable-service- // claim, and nothing to retry — the draft is the transport.- expect(screen.queryByRole('alert')).toBeNull();- expect(screen.queryByText(/couldn't be reached/i)).toBeNull();- expect(screen.queryByRole('button', { name: 'Try again' })).toBeNull();- expect(screen.getByText('2026-07-10T00-00-00-bugreport.zip')).not.toBeNull();+ test('a draft survives a non-Send close: the note and checkboxes come back on reopen', async () => {+ installBridge();+ const { reopen } = await renderDialog({}, { statefulOpen: true });+ await userEvent.type(+ screen.getByRole('textbox', { name: /what happened/i }),+ 'half-written thought',+ );+ await userEvent.click(screen.getByRole('checkbox', { name: 'Detailed diagnostics' }));- await userEvent.click(screen.getByRole('button', { name: 'Reveal in Finder' }));- expect(log.revealed).toEqual([ZIP_PATH]);+ await userEvent.keyboard('{Escape}');+ await vi.waitFor(() => {+ expect(screen.queryByRole('dialog')).toBeNull();+ });+ reopen();+ await screen.findByRole('dialog');- await userEvent.click(screen.getByRole('button', { name: 'Open email draft' }));- expect(log.opened).toEqual(['mailto:[email protected]?subject=OpenKnowledge%20bug']);+ expect(+ (screen.getByRole('textbox', { name: /what happened/i }) as HTMLTextAreaElement).value,+ ).toBe('half-written thought');+ expect(+ screen.getByRole('checkbox', { name: 'Detailed diagnostics' }).getAttribute('aria-checked'),+ ).toBe('true');});- test('cancel during sending returns to review and the late result is ignored', async () => {- const send = deferred<OkBugReportSendResult>();- const { openChangeCalls } = await (async () => {- installBridge({ send: () => send.promise });- return renderDialog();- })();- await createReport();+ test('sending spends the draft: reopening after a Send starts from an empty form', async () => {+ const log = installBridge();+ const { reopen } = await renderDialog({}, { statefulOpen: true });+ await userEvent.click(screen.getByRole('checkbox', { name: 'Detailed diagnostics' }));+ await createReport('this one is going out');await userEvent.click(screen.getByRole('button', { name: 'Send report' }));- await screen.findByRole('heading', { name: 'Sending report' });-- // Escape must not dismiss the dialog mid-upload — Cancel is the only exit.- await userEvent.keyboard('{Escape}');- expect(openChangeCalls).toEqual([]);-- await userEvent.click(screen.getByRole('button', { name: 'Cancel' }));- await screen.findByRole('heading', { name: 'Review your report' });-- await act(async () => {- send.resolve({ ok: true, reference: 'OK-LATE99' });- await Promise.resolve();- await Promise.resolve();+ await vi.waitFor(() => {+ expect(log.sendCalls).toHaveLength(1);});+ reopen();+ await screen.findByRole('dialog');- expect(screen.queryByText('OK-LATE99')).toBeNull();- expect(screen.getByRole('heading', { name: 'Review your report' })).not.toBeNull();+ expect(+ (screen.getByRole('textbox', { name: /what happened/i }) as HTMLTextAreaElement).value,+ ).toBe('');+ expect(+ screen.getByRole('checkbox', { name: 'Detailed diagnostics' }).getAttribute('aria-checked'),+ ).toBe('false');+ expect(screen.getByRole('heading', { name: 'Report a bug' })).not.toBeNull();});test('a crash context pre-checks detailed diagnostics and folds the context into the note on create and send', async () => {@@ -527,7 +544,9 @@ describe('ReportBugDialog', () => {]);await userEvent.click(screen.getByRole('button', { name: 'Send report' }));- await screen.findByRole('heading', { name: 'Thanks for the report!' });+ await vi.waitFor(() => {+ expect(log.sendCalls).toHaveLength(1);+ });expect(log.sendCalls[0].metadata.note).toBe('It crashed while I typed\n\nCrash source: document view\nDocument: alpha.md\nError: boom',);diff --git a/packages/app/src/components/ReportBugDialog.tsx b/packages/app/src/components/ReportBugDialog.tsxindex 5f2c73a6a..01568d0b1 100644--- a/packages/app/src/components/ReportBugDialog.tsx+++ b/packages/app/src/components/ReportBugDialog.tsx@@ -1,7 +1,7 @@/*** Report-a-bug dialog — thin lazy-loading gate + screenshot capture-before-show.*- * The ~800-line dialog body (phase machine, zip preview, upload-transport UI)+ * The ~700-line dialog body (phase machine, zip preview, screenshot preview)* is behind `React.lazy()`, so it only enters the bundle graph the first time* the dialog is opened — keeping it out of the main app chunk (size-limit* budget). Mirrors the `ConsentDialog` / `ConsentDialogBody` split.diff --git a/packages/app/src/components/ReportBugDialogBody.tsx b/packages/app/src/components/ReportBugDialogBody.tsxindex 0e60028b8..7b55ba02e 100644--- a/packages/app/src/components/ReportBugDialogBody.tsx+++ b/packages/app/src/components/ReportBugDialogBody.tsx@@ -1,17 +1,19 @@/*** ReportBugDialog — the in-app "Report a bug" flow (compose → review → send).*- * One dialog hosts six phases: compose (optional note + detail level),- * review (inspect the exact zip before consenting to send), sending, success- * (report reference + support-email follow-up), email (the designed- * no-intake default — nothing was uploaded, the prefilled draft is the- * transport), and failure (the same email fallback framed as an error, for- * uploads that were attempted and failed). The zip reviewed is byte-identical- * to the zip sent — `zipPath` from create is handed to send untouched.+ * Two phases: compose (optional note + detail level) and review (inspect the+ * exact zip before consenting to send). The zip reviewed is byte-identical to+ * the zip sent — `zipPath` from create is handed to send untouched.+ *+ * Send is a hand-off, not a wait. It starts a background operation on the+ * module-level send manager and closes the dialog, so the upload outlives this+ * subtree — which has seven independent mount sites, any of which can unmount+ * mid-send. Progress and the outcome are surfaced by the send toast and the+ * report history, not by a phase here.** A crash-detected invitation (`crashInvite`) reskins compose — banner,* "What were you doing?" label, pre-checked diagnostics, the crash-dump- * opt-in, a "Not now" dismiss — while review → send stay shared.+ * opt-in, a "Not now" dismiss — while review and the send hand-off stay shared.** Desktop-only surface: bundle creation and the upload both live in Electron* main behind `window.okDesktop.bugReport`. Mount sites gate on bridge@@ -27,16 +29,9 @@ import type {} from '@inkeep/open-knowledge-core';import { BUG_REPORT_SCREENSHOT_ZIP_ENTRY } from '@inkeep/open-knowledge-core';import { Plural, Trans, useLingui } from '@lingui/react/macro';-import {- AlertCircleIcon,- ArchiveIcon,- CheckIcon,- ShieldIcon,- TriangleAlertIcon,-} from 'lucide-react';-import { useEffect, useId, useRef, useState } from 'react';+import { AlertCircleIcon, ArchiveIcon, ShieldIcon, TriangleAlertIcon } from 'lucide-react';+import { useId, useRef, useState } from 'react';import { BugReportPreviousReports } from '@/components/BugReportHistory';-import { CopyButton } from '@/components/CopyButton';import { Badge } from '@/components/ui/badge';import { Button } from '@/components/ui/button';import { Checkbox } from '@/components/ui/checkbox';@@ -49,39 +44,11 @@ import {DialogHeader,DialogTitle,} from '@/components/ui/dialog';-import { Input } from '@/components/ui/input';-import { Progress } from '@/components/ui/progress';import { Spinner } from '@/components/ui/spinner';import { Textarea } from '@/components/ui/textarea';-import { dispatchExternalLinkClick } from '@/lib/external-link';+import { bugReportSendManager } from '@/lib/bug-report-send-manager';+import { formatBundleSize, zipBasename } from '@/lib/bug-report-support';import { revealInFileManagerLabel } from '@/lib/platform-labels';-import { scheduleClipboardWrite } from '@/lib/share/clipboard-adapter';--const SUPPORT_EMAIL = '[email protected]';--/** Bare mailto with a prefilled subject — used on the success screen, where the- * report reference becomes the subject so the team can correlate the email. */-function supportMailtoUrl(subject: string): string {- return `mailto:${SUPPORT_EMAIL}?subject=${encodeURIComponent(subject)}`;-}--/**- * `[email protected]` as the app's external-link affordance rather than a code- * span. `href` opens the prefilled draft where one exists (email/failure) or a- * subject-only mailto (success).- */-function SupportEmailLink({ href }: { href: string }) {- return (- <a- href={href}- onClick={(e) => dispatchExternalLinkClick(e, href)}- onAuxClick={(e) => dispatchExternalLinkClick(e, href)}- className="text-primary hover:underline"- >- {SUPPORT_EMAIL}- </a>- );-}export interface ReportBugCrashContext {/** Surface the error escaped from, e.g. 'document view' or 'app shell'. */@@ -191,29 +158,15 @@ function crashInviteLines(invite: OkBugReportCrashDetectedEvent): string[] {type Phase =| { step: 'compose'; creating: boolean; createError: string | null }- | { step: 'review'; report: CreatedReport }- | { step: 'sending'; report: CreatedReport }- | { step: 'success'; report: CreatedReport; reference: string }- | { step: 'email'; report: CreatedReport; mailtoUrl: string }- | { step: 'failure'; report: CreatedReport; mailtoUrl: string };+ | { step: 'review'; report: CreatedReport };const COMPOSE_IDLE: Phase = { step: 'compose', creating: false, createError: null };-function formatSize(bytes: number): string {- if (bytes >= 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;- if (bytes >= 1024) return `${Math.max(1, Math.round(bytes / 1024))} KB`;- return `${bytes} B`;-}--function zipBasename(zipPath: string): string {- return zipPath.split(/[\\/]/).pop() ?? zipPath;-}-/**- * The one artifact whose rawness the cards must call out is the opted-in crash- * minidump under `extra/` — process memory that text redaction cannot scrub.- * The review/email/failure cards must qualify their "secrets redacted" claim- * whenever one is present. The opted-in screenshot also lands under `extra/`+ * The one artifact whose rawness the review card must call out is the opted-in+ * crash minidump under `extra/` — process memory that text redaction cannot+ * scrub. The card must qualify its "secrets redacted" claim whenever one is+ * present. The opted-in screenshot also lands under `extra/`* but is excluded here: the user previewed it before including it, so it needs* no after-the-fact "not redacted" caveat. The summary's file inventory, not* the dialog's checkbox state, is the truth: opting in with no dump on disk@@ -295,9 +248,8 @@ function ReportBugDialog({// Default-on per the spec: when a screenshot was captured it rides along// unless the user unchecks it. Only ever sent to `create` when one exists.const [includeScreenshot, setIncludeScreenshot] = useState(true);- const [sentFraction, setSentFraction] = useState(0);- // Bumped whenever the current async create/send no longer owns the dialog- // (cancel, close): the awaiting handler compares and drops its result.+ // Bumped whenever the in-flight create no longer owns the dialog (a close):+ // the awaiting handler compares and drops its result.const opSeqRef = useRef(0);const noteId = useId();const logsId = useId();@@ -308,10 +260,8 @@ function ReportBugDialog({const dumpHintId = useId();const screenshotId = useId();const screenshotHintId = useId();- const referenceId = useId();const whatToIncludeId = useId();- const sending = phase.step === 'sending';const noteContextLines =crashContext !== undefined? crashContextLines(crashContext)@@ -319,38 +269,9 @@ function ReportBugDialog({? crashInviteLines(crashInvite): undefined;- // Fake-determinate upload progress: main exposes no byte-level progress- // events (the upload is one awaited IPC call), so ease toward 90% and let- // the terminal phase change deliver the rest — the bar never claims done.- useEffect(() => {- if (!sending) return;- setSentFraction(0);- const startedAt = Date.now();- const timer = setInterval(() => {- const elapsedSeconds = (Date.now() - startedAt) / 1000;- setSentFraction(Math.min(0.9, 1 - Math.exp(-elapsedSeconds / 3)));- }, 200);- return () => {- clearInterval(timer);- };- }, [sending]);-function handleOpenChange(nextOpen: boolean) {- // Mid-upload the footer Cancel is the only way out — swallowing Radix's- // Escape/outside-click close keeps the result from landing in a void.- if (!nextOpen && phase.step === 'sending') return;if (!nextOpen) {opSeqRef.current += 1;- // Reset the form on any concluded close (success, email draft, or upload- // failure) so the next open starts clean, not just on success.- if (phase.step === 'success' || phase.step === 'email' || phase.step === 'failure') {- setNote('');- setDetailed(crashContext !== undefined || crashInvite !== undefined);- setIncludeDump(crashInvite?.minidumpAvailable === true);- // Re-default the screenshot to on so the next open (which captures a- // fresh screenshot) starts checked, matching the compose default.- setIncludeScreenshot(true);- }setPhase(COMPOSE_IDLE);}onOpenChange(nextOpen);@@ -393,19 +314,11 @@ function ReportBugDialog({}}- async function handleSend(report: CreatedReport) {- const bugReport = window.okDesktop?.bugReport;- if (!bugReport) return;- const seq = ++opSeqRef.current;- setPhase({ step: 'sending', report });- const result = await bugReport.send({- zipPath: report.zipPath,- metadata: {- level: report.summary.level,- systemWide: report.summary.systemWide,- projectSlug: report.summary.projectSlug,- note: composeNote(note, noteContextLines),- },+ function handleSend(report: CreatedReport) {+ bugReportSendManager.startBugReportSend({+ kind: 'created-report',+ report,+ note: composeNote(note, noteContextLines),// Read consent off the bundle's own inventory rather than the checkbox// state: the inventory is what `create` acted on and what the reporter// reviewed, so it cannot drift from the artifact being sent if the checkbox@@ -413,39 +326,28 @@ function ReportBugDialog({// screenshot separately for inline display in the ticket.includeScreenshot: report.summary.files.includes(BUG_REPORT_SCREENSHOT_ZIP_ENTRY),});- if (opSeqRef.current !== seq) return;- if (result.ok) {- setPhase({ step: 'success', report, reference: result.reference });- } else if (result.reason === 'email-draft') {- // The designed default (no intake endpoint configured): nothing was- // attempted and nothing failed, so the email flow renders without any- // failure framing.- setPhase({ step: 'email', report, mailtoUrl: result.fallback.mailtoUrl });- } else {- setPhase({ step: 'failure', report, mailtoUrl: result.fallback.mailtoUrl });- }- }-- function handleCancelSend(report: CreatedReport) {- // The IPC upload has no abort path — abandon the wait and let the seq- // guard drop whatever it eventually resolves to.- opSeqRef.current += 1;- setPhase({ step: 'review', report });+ // The draft is spent once its send is under way, so it is cleared here and+ // nowhere else: resetting on every close would silently discard a note the+ // reporter backed out of to come back to.+ setNote('');+ setDetailed(crashContext !== undefined || crashInvite !== undefined);+ setIncludeDump(crashInvite?.minidumpAvailable === true);+ // Re-default the screenshot to on so the next open (which captures a fresh+ // screenshot) starts checked, matching the compose default.+ setIncludeScreenshot(true);+ // Closing through the shared path, never a bespoke one: mount sites hang+ // their own work off `onOpenChange` — the crash invite acks its event there+ // — so a close that skips it silently drops that work.+ handleOpenChange(false);}function revealZip(zipPath: string) {void window.okDesktop?.shell.showItemInFolder(zipPath);}- function openExternal(url: string) {- void window.okDesktop?.shell.openExternal(url);- }-- const uploadPct = Math.round(sentFraction * 100);-return (<Dialog open={open} onOpenChange={handleOpenChange}>- <DialogContent className="sm:max-w-2xl" showCloseButton={!sending}>+ <DialogContent className="sm:max-w-2xl">{phase.step === 'compose' && (<><DialogHeader>@@ -744,231 +646,12 @@ function ReportBugDialog({><Trans>Back</Trans></Button>- <Button onClick={() => void handleSend(phase.report)}>+ <Button onClick={() => handleSend(phase.report)}><Trans>Send report</Trans></Button></DialogFooter></>)}-- {phase.step === 'sending' && (- <>- <DialogHeader>- <DialogTitle>- <Trans>Sending report</Trans>- </DialogTitle>- {/* Transport-neutral on purpose: in the default (no intake- endpoint) configuration Send never uploads — it resolves to- an email draft — so the announcement must not claim one. */}- <DialogDescription className="sr-only">- <Trans>Your report is being sent.</Trans>- </DialogDescription>- </DialogHeader>- <DialogBody className="flex flex-col gap-3">- <div role="status" className="flex items-center gap-2.5 text-sm">- <Spinner className="size-4 shrink-0 text-primary" aria-hidden="true" />- <Trans>Uploading securely</Trans>- {/* No byte-level progress crosses the IPC boundary, so the only- honest number here is the total size. */}- <span className="ml-auto text-xs text-muted-foreground">- <Trans>{formatSize(phase.report.zipSizeBytes)} total</Trans>- </span>- </div>- {/* The fill is a time-eased estimate, not real transfer progress,- so the machine-readable state stays indeterminate (`value`- null, hence no aria-valuenow) while the bar still moves —- assistive tech must not hear invented percentages. */}- <Progress- value={null}- indeterminateFillPercent={uploadPct}- aria-label={t`Sending report`}- className="h-1.5 bg-secondary"- />- </DialogBody>- <DialogFooter className="sm:justify-between">- <Button- variant="ghost"- className="font-mono uppercase"- onClick={() => handleCancelSend(phase.report)}- >- <Trans>Cancel</Trans>- </Button>- <Button disabled>- <Trans>Send report</Trans>- </Button>- </DialogFooter>- </>- )}-- {phase.step === 'success' && (- <>- <DialogBody>- <div className="flex flex-col gap-3">- {/* Scope the live region to the confirmation + summary line so- success announces a focused message, not the whole subtree- (reference field + follow-up copy stay outside it). */}- <div role="status" className="flex flex-col gap-3">- <div className="flex items-center gap-2">- <CheckIcon className="size-5 shrink-0 text-primary" aria-hidden="true" />- <DialogTitle>- <Trans>Thanks for the report!</Trans>- </DialogTitle>- </div>- <DialogDescription>- <Trans>We've filed it with the team and attached your logs.</Trans>- </DialogDescription>- </div>- {/* Reference snippet + shared CopyButton — same affordance as- the ShareButton link field. */}- <div className="flex flex-col gap-1.5">- <label htmlFor={referenceId} className="text-sm font-medium">- <Trans>Report reference</Trans>- </label>- <div className="relative">- <Input- id={referenceId}- readOnly- value={phase.reference}- onFocus={(e) => e.currentTarget.select()}- onClick={(e) => e.currentTarget.select()}- className="select-all bg-muted pr-9 font-mono text-sm font-medium tracking-wide"- />- <div className="absolute inset-y-0 right-1 flex items-center">- <CopyButton- copyContent={phase.reference}- clipboardWrite={scheduleClipboardWrite}- />- </div>- </div>- </div>- <p className="text-sm text-muted-foreground">- <Trans>- <span className="font-medium text-foreground">Have more to add?</span> Write to{' '}- <SupportEmailLink href={supportMailtoUrl(t`Bug report ${phase.reference}`)} />{' '}- and mention your reference.- </Trans>- </p>- </div>- </DialogBody>- <DialogFooter>- <Button onClick={() => handleOpenChange(false)}>- <Trans>Done</Trans>- </Button>- </DialogFooter>- </>- )}-- {phase.step === 'email' && (- <>- <DialogHeader>- <DialogTitle>- <Trans>Send your report by email</Trans>- </DialogTitle>- {/* An informational state, not an error: with no report service- configured, the prefilled draft is how reports travel — no- upload happened, so no alert banner belongs here. */}- <DialogDescription>- <Trans>- Nothing was uploaded. The report stays on this computer until you email it to us.- </Trans>- </DialogDescription>- </DialogHeader>- <DialogBody className="flex flex-col gap-4">- <ZipCard- zipPath={phase.report.zipPath}- zipSizeBytes={phase.report.zipSizeBytes}- fileCount={phase.report.summary.files.length}- rawDumpIncluded={reportIncludesRawDump(phase.report)}- onReveal={revealZip}- />- <p className="text-sm text-muted-foreground">- <Trans>- Attach the file in an email to <SupportEmailLink href={phase.mailtoUrl} />- </Trans>- </p>- </DialogBody>- <DialogFooter className="sm:justify-between">- <Button- variant="ghost"- className="font-mono uppercase"- onClick={() => handleOpenChange(false)}- >- <Trans>Close</Trans>- </Button>- <Button onClick={() => openExternal(phase.mailtoUrl)}>- <Trans>Open email draft</Trans>- </Button>- </DialogFooter>- </>- )}-- {phase.step === 'failure' && (- <>- <DialogHeader>- <DialogTitle>- <Trans>Couldn't send the report</Trans>- </DialogTitle>- <DialogDescription className="sr-only">- <Trans>Your report couldn't be sent. Try again or email it instead.</Trans>- </DialogDescription>- </DialogHeader>- <DialogBody className="flex flex-col gap-4">- <div- role="alert"- className="flex items-start gap-2.5 rounded-md border border-destructive/35 bg-destructive/10 px-3 py-2.5 text-sm"- >- <AlertCircleIcon- className="mt-0.5 size-4 shrink-0 text-destructive"- aria-hidden="true"- />- <div>- <p className="font-medium">- <Trans>The report service couldn't be reached.</Trans>- </p>- <p className="mt-0.5 text-xs text-muted-foreground">- <Trans>- Your report is saved on this computer, so nothing was lost. You can email it- to us instead.- </Trans>- </p>- </div>- </div>- <ZipCard- zipPath={phase.report.zipPath}- zipSizeBytes={phase.report.zipSizeBytes}- fileCount={null}- rawDumpIncluded={reportIncludesRawDump(phase.report)}- onReveal={revealZip}- />- <p className="text-sm text-muted-foreground">- <Trans>- Attach the file in an email to <SupportEmailLink href={phase.mailtoUrl} />- </Trans>- </p>- </DialogBody>- <DialogFooter className="sm:justify-between">- <Button- variant="ghost"- className="font-mono uppercase"- onClick={() => handleOpenChange(false)}- >- <Trans>Close</Trans>- </Button>- <div className="flex flex-col-reverse gap-2 sm:flex-row">- <Button- variant="outline"- className="font-mono uppercase"- onClick={() => void handleSend(phase.report)}- >- <Trans>Try again</Trans>- </Button>- <Button onClick={() => openExternal(phase.mailtoUrl)}>- <Trans>Open email draft</Trans>- </Button>- </div>- </DialogFooter>- </>- )}</DialogContent></Dialog>);@@ -977,8 +660,7 @@ function ReportBugDialog({interface ZipCardProps {zipPath: string;zipSizeBytes: number;- /** `null` hides the file count (the failure card omits it). */- fileCount: number | null;+ fileCount: number;/** The bundle carries a raw crash dump — the redaction claim must be qualified. */rawDumpIncluded: boolean;onReveal: (zipPath: string) => void;@@ -986,7 +668,7 @@ interface ZipCardProps {function ZipCard({ zipPath, zipSizeBytes, fileCount, rawDumpIncluded, onReveal }: ZipCardProps) {const name = zipBasename(zipPath);- const sizeText = formatSize(zipSizeBytes);+ const sizeText = formatBundleSize(zipSizeBytes);return (<div className="flex items-center gap-2.5 rounded-md border px-3 py-2.5"><div className="flex items-center justify-center size-8 rounded-md bg-muted">@@ -997,13 +679,7 @@ function ZipCard({ zipPath, zipSizeBytes, fileCount, rawDumpIncluded, onReveal }{name}</p><p className="text-xs text-muted-foreground">- {fileCount === null ? (- rawDumpIncluded ? (- <Trans>{sizeText} · secrets redacted · crash dump not redacted</Trans>- ) : (- <Trans>{sizeText} · secrets redacted</Trans>- )- ) : rawDumpIncluded ? (+ {rawDumpIncluded ? (<Trans>{sizeText} · secrets redacted ·{' '}<Plural value={fileCount} one="# file" other="# files" /> · crash dump not redacteddiff --git a/packages/app/src/lib/bug-report-send-manager.test.ts b/packages/app/src/lib/bug-report-send-manager.test.tsnew file mode 100644index 000000000..afebf75eb--- /dev/null+++ b/packages/app/src/lib/bug-report-send-manager.test.ts@@ -0,0 +1,513 @@+/**+ * Unit tests for the background bug-report send manager.+ *+ * The stub stands in for the desktop bridge, which is a genuine process+ * boundary — `send` crosses into Electron main over IPC. Everything else here+ * is the real module.+ */++import type { OkBugReportListRow, OkBugReportSendResult } from '@inkeep/open-knowledge-core';+import { propagation, trace } from '@opentelemetry/api';+import { W3CTraceContextPropagator } from '@opentelemetry/core';+import {+ BasicTracerProvider,+ InMemorySpanExporter,+ SimpleSpanProcessor,+} from '@opentelemetry/sdk-trace-base';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import {+ type BugReportSendBridge,+ type BugReportSendOperation,+ type BugReportSendRequest,+ bugReportSendManager,+ type CreatedBugReport,+ createBugReportSendManager,+} from '@/lib/bug-report-send-manager';++const ZIP_PATH = '/Users/x/Library/ok/reports/ok-report-2026-08-18-120000.zip';+const OPERATION_ID = 'ok-report-2026-08-18-120000.zip';+const OTHER_ZIP_PATH = '/Users/x/Library/ok/reports/ok-report-2026-08-18-130000.zip';+const OTHER_OPERATION_ID = 'ok-report-2026-08-18-130000.zip';++const FAILED_RESULT: OkBugReportSendResult = {+ ok: false,+ reason: 'send-failed',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=failed' },+};++/**+ * A bridge whose `send` resolves only when the test says so, so a test can+ * observe the in-flight operation before its outcome lands.+ */+function createDeferredBridge() {+ const calls: Parameters<BugReportSendBridge['send']>[0][] = [];+ const resolvers: ((result: OkBugReportSendResult) => void)[] = [];+ const bridge: BugReportSendBridge = {+ send(request) {+ calls.push(request);+ return new Promise<OkBugReportSendResult>((resolve) => {+ resolvers.push(resolve);+ });+ },+ };+ return {+ bridge,+ calls,+ /** Resolve the nth outstanding send and let the manager's continuation run. */+ async settle(result: OkBugReportSendResult, index = calls.length - 1) {+ resolvers[index]?.(result);+ await vi.advanceTimersByTimeAsync(0);+ },+ };+}++function createdReport(zipPath = ZIP_PATH): CreatedBugReport {+ return {+ zipPath,+ zipSizeBytes: 2_048,+ summary: {+ level: 'full',+ systemWide: false,+ projectSlug: 'open-knowledge',+ files: ['logs/app.log'],+ redactions: [],+ redactedLineCount: 0,+ generatedAt: '2026-08-18T12:00:00.000Z',+ },+ };+}++function createdReportRequest(zipPath = ZIP_PATH): BugReportSendRequest {+ return {+ kind: 'created-report',+ report: createdReport(zipPath),+ note: 'the editor froze',+ includeScreenshot: true,+ };+}++function historyRow(overrides?: Partial<OkBugReportListRow>): OkBugReportListRow {+ return {+ id: OPERATION_ID,+ createdAt: '2026-08-18T12:00:00.000Z',+ bundleLevel: 'unknown',+ state: 'upload-failed',+ zipBytes: 4_096,+ zipDeleted: false,+ zipExists: true,+ systemWide: true,+ projectSlug: null,+ attemptsCount: 1,+ zipPath: ZIP_PATH,+ retryable: true,+ degraded: true,+ ...overrides,+ };+}++function sendingFill(operation: BugReportSendOperation | undefined): number {+ if (operation?.status !== 'sending') {+ throw new Error(`expected a sending operation, got ${String(operation?.status)}`);+ }+ return operation.fillPercent;+}++describe('bug-report send manager', () => {+ beforeEach(() => {+ vi.useFakeTimers();+ });++ afterEach(() => {+ vi.useRealTimers();+ });++ test('a successful send resolves the operation with its reference', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ const started = manager.startBugReportSend(createdReportRequest());+ expect(started.status).toBe('sending');+ expect(started.operationId).toBe(OPERATION_ID);+ expect(started.zipSizeBytes).toBe(2_048);++ await stub.settle({ ok: true, reference: 'OK-1234' });++ expect(manager.get(OPERATION_ID)).toEqual(+ expect.objectContaining({ status: 'sent', reference: 'OK-1234' }),+ );+ });++ test('the send carries the composed note and the reviewed screenshot consent', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());++ expect(stub.calls).toEqual([+ {+ zipPath: ZIP_PATH,+ metadata: {+ level: 'full',+ systemWide: false,+ projectSlug: 'open-knowledge',+ note: 'the editor froze',+ },+ includeScreenshot: true,+ },+ ]);+ await stub.settle(FAILED_RESULT);+ });++ test('a history row sends without a note and with a readable bundle level', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ const started = manager.startBugReportSend({ kind: 'history-row', row: historyRow() });++ expect(started.zipSizeBytes).toBe(4_096);+ expect(stub.calls[0]).toEqual({+ zipPath: ZIP_PATH,+ metadata: { level: 'standard', systemWide: true, projectSlug: null },+ });+ await stub.settle(FAILED_RESULT);+ });++ test('the no-intake email draft resolves without failure framing', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle({+ ok: false,+ reason: 'email-draft',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=draft' },+ });++ expect(manager.get(OPERATION_ID)).toEqual(+ expect.objectContaining({+ status: 'email-draft',+ mailtoUrl: 'mailto:[email protected]?subject=draft',+ }),+ );+ });++ test('a refused upload resolves to failure with the fallback draft', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle(FAILED_RESULT);++ expect(manager.get(OPERATION_ID)).toEqual(+ expect.objectContaining({+ status: 'failed',+ mailtoUrl: 'mailto:[email protected]?subject=failed',+ }),+ );+ });++ test('a send already in flight elsewhere never resolves as a failure', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend({ kind: 'history-row', row: historyRow() });+ await stub.settle({+ ok: false,+ reason: 'send-in-flight',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=inflight' },+ });++ expect(manager.get(OPERATION_ID)?.status).toBe('already-sending');+ });++ test('retrying a report already sending in this window issues no second send', () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ const first = manager.startBugReportSend(createdReportRequest());+ const joined = manager.startBugReportSend({ kind: 'history-row', row: historyRow() });++ expect(stub.calls).toHaveLength(1);+ expect(joined.status).toBe('sending');+ expect(joined.operationId).toBe(first.operationId);+ // The join has to be observable, or a toast the reporter dismissed mid-send+ // has no event to re-surface on and the retry reads as doing nothing.+ expect(joined.requestSeq).toBe(first.requestSeq + 1);+ expect(manager.getSnapshot()).toHaveLength(1);+ });++ test('retrying after a terminal outcome starts a fresh send on the same operation', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle(FAILED_RESULT);++ const retried = manager.startBugReportSend({ kind: 'history-row', row: historyRow() });++ expect(stub.calls).toHaveLength(2);+ expect(retried).toEqual(+ expect.objectContaining({ status: 'sending', fillPercent: 0, requestSeq: 2 }),+ );+ expect(manager.getSnapshot()).toHaveLength(1);++ await stub.settle({ ok: true, reference: 'OK-9' });+ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ });++ test('a failed operation retries from the request its last caller supplied', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle(FAILED_RESULT);++ // The toast offering "Try again" knows the operation id and nothing else.+ manager.retryBugReportSend(OPERATION_ID);++ expect(stub.calls).toHaveLength(2);+ expect(stub.calls[1]).toEqual(stub.calls[0]);+ expect(manager.get(OPERATION_ID)).toEqual(+ expect.objectContaining({ status: 'sending', requestSeq: 2 }),+ );++ await stub.settle({ ok: true, reference: 'OK-7' });+ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ });++ test('retrying a report already sending joins it, and an unknown report does nothing', () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ const started = manager.startBugReportSend(createdReportRequest());+ manager.retryBugReportSend(OPERATION_ID);++ expect(stub.calls).toHaveLength(1);+ expect(manager.get(OPERATION_ID)?.requestSeq).toBe(started.requestSeq + 1);++ manager.retryBugReportSend(OTHER_OPERATION_ID);++ expect(stub.calls).toHaveLength(1);+ expect(manager.get(OTHER_OPERATION_ID)).toBeUndefined();+ });++ test('a transport that throws resolves the operation instead of stranding it', async () => {+ const throwing: BugReportSendBridge = {+ send() {+ throw new Error('IPC channel closed');+ },+ };+ const manager = createBugReportSendManager(() => throwing);++ manager.startBugReportSend(createdReportRequest());+ await vi.advanceTimersByTimeAsync(0);++ // No fallback draft: main composes one as part of its result, and a call+ // that never returned has none to offer.+ expect(manager.get(OPERATION_ID)).toEqual({+ operationId: OPERATION_ID,+ zipPath: ZIP_PATH,+ zipSizeBytes: 2_048,+ requestSeq: 1,+ status: 'failed',+ });+ });++ test('a send with no desktop bridge resolves rather than hanging', async () => {+ const manager = createBugReportSendManager(() => undefined);++ manager.startBugReportSend(createdReportRequest());+ await vi.advanceTimersByTimeAsync(0);++ expect(manager.get(OPERATION_ID)?.status).toBe('failed');+ });++ test('progress eases upward while the send is in flight and never claims completion', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ expect(sendingFill(manager.get(OPERATION_ID))).toBe(0);++ await vi.advanceTimersByTimeAsync(1_000);+ expect(sendingFill(manager.get(OPERATION_ID))).toBeGreaterThan(0);++ await vi.advanceTimersByTimeAsync(60_000);+ expect(sendingFill(manager.get(OPERATION_ID))).toBe(90);++ // Once the curve flattens the operation must stop changing identity, or a+ // subscribed toast re-renders five times a second for the rest of a long+ // upload with nothing new to show.+ const saturated = manager.get(OPERATION_ID);+ await vi.advanceTimersByTimeAsync(5_000);+ expect(manager.get(OPERATION_ID)).toBe(saturated);++ await stub.settle({ ok: true, reference: 'OK-1234' });+ });++ test('a resolved operation stops ticking and leaves no timer behind', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);+ let notifications = 0;+ manager.subscribe(() => {+ notifications += 1;+ });++ manager.startBugReportSend(createdReportRequest());+ await vi.advanceTimersByTimeAsync(1_000);+ expect(vi.getTimerCount()).toBe(1);++ await stub.settle({ ok: true, reference: 'OK-1234' });+ const afterSettle = notifications;++ expect(vi.getTimerCount()).toBe(0);+ await vi.advanceTimersByTimeAsync(30_000);++ expect(notifications).toBe(afterSettle);+ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ });++ test('repeated reads return the same object until the operation changes', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ const first = manager.get(OPERATION_ID);+ expect(manager.get(OPERATION_ID)).toBe(first);+ expect(manager.getSnapshot()).toBe(manager.getSnapshot());++ await stub.settle({ ok: true, reference: 'OK-1234' });++ expect(manager.get(OPERATION_ID)).not.toBe(first);+ const settled = manager.get(OPERATION_ID);+ expect(manager.get(OPERATION_ID)).toBe(settled);+ });++ test('two different reports send as independent operations', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ manager.startBugReportSend(createdReportRequest(OTHER_ZIP_PATH));++ expect(stub.calls.map((call) => call.zipPath)).toEqual([ZIP_PATH, OTHER_ZIP_PATH]);+ expect(manager.getSnapshot()).toHaveLength(2);++ await stub.settle({ ok: true, reference: 'OK-1' }, 0);++ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ expect(manager.get(OTHER_OPERATION_ID)?.status).toBe('sending');++ await stub.settle(FAILED_RESULT, 1);++ expect(manager.get(OTHER_OPERATION_ID)?.status).toBe('failed');+ });++ test('the factory hands each caller an independent set of operations', () => {+ const manager = createBugReportSendManager(() => undefined);++ manager.startBugReportSend(createdReportRequest());++ expect(manager.get(OPERATION_ID)).toBeDefined();+ expect(bugReportSendManager.get(OPERATION_ID)).toBeUndefined();+ });+});++describe('bug-report send manager — subscriber isolation', () => {+ beforeEach(() => {+ vi.useFakeTimers();+ });+ afterEach(() => {+ vi.useRealTimers();+ });++ test('one throwing subscriber does not silence the others', async () => {+ // Both the toast adapter and React's useSyncExternalStore trigger live in+ // this list. If the adapter throws first and the loop is unguarded, the+ // store never re-reads and the toast stays at 'sending' behind an infinite+ // duration - the exact state this module's contract promises to avoid.+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);+ const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});++ let reachedSecond = 0;+ manager.subscribe(() => {+ throw new Error('adapter blew up');+ });+ manager.subscribe(() => {+ reachedSecond += 1;+ });++ manager.startBugReportSend(createdReportRequest());+ await stub.settle({ ok: true, reference: 'OK-ISO' });++ expect(reachedSecond).toBeGreaterThan(0);+ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ warn.mockRestore();+ });+});++describe('bug-report send manager — per-attempt tracing', () => {+ /**+ * A real SDK, because the claim is about span LIFETIME across a retry and an+ * inert no-op handle records nothing to check. The manager's other suites run+ * with no provider registered, which is exactly why this defect survived+ * them: every span call was a silent no-op there.+ */+ let exporter: InMemorySpanExporter;+ let provider: BasicTracerProvider;++ beforeEach(() => {+ vi.useFakeTimers();+ exporter = new InMemorySpanExporter();+ provider = new BasicTracerProvider({ spanProcessors: [new SimpleSpanProcessor(exporter)] });+ trace.setGlobalTracerProvider(provider);+ // Without a propagator `inject` is a no-op and every traceparent comes back+ // undefined — the encoding under test is the one main parses on the far+ // side of the IPC boundary, so use the real W3C one.+ propagation.setGlobalPropagator(new W3CTraceContextPropagator());+ });++ afterEach(async () => {+ vi.useRealTimers();+ await provider.shutdown();+ trace.disable();+ propagation.disable();+ });++ test('a failed send that succeeds on retry is not recorded as a failure', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle(FAILED_RESULT);+ manager.retryBugReportSend(OPERATION_ID);+ await stub.settle({ ok: true, reference: 'OK-RETRY' });++ const outcomes = exporter+ .getFinishedSpans()+ .map((sp) => sp.attributes['ok.bug_report.renderer_outcome']);++ // One span per ATTEMPT. Sharing a span across the retry would end it at the+ // failure and silently drop everything after, so the report that actually+ // succeeded would read as failed for ever.+ expect(outcomes).toEqual(['failed', 'sent']);+ });++ test('each attempt injects a traceparent naming its own live span', async () => {+ const stub = createDeferredBridge();+ const manager = createBugReportSendManager(() => stub.bridge);++ manager.startBugReportSend(createdReportRequest());+ await stub.settle(FAILED_RESULT);+ manager.retryBugReportSend(OPERATION_ID);+ await stub.settle({ ok: true, reference: 'OK-RETRY' });++ const sent = stub.calls.map((c) => (c as { traceparent?: string }).traceparent);+ expect(sent[0]).toBeDefined();+ expect(sent[1]).toBeDefined();+ // A reused span would hand main the SAME header twice, parenting the+ // retry's transport work under a span that had already ended.+ expect(sent[0]).not.toBe(sent[1]);+ });+});diff --git a/packages/app/src/lib/bug-report-send-manager.ts b/packages/app/src/lib/bug-report-send-manager.tsnew file mode 100644index 000000000..74dae4c06--- /dev/null+++ b/packages/app/src/lib/bug-report-send-manager.ts@@ -0,0 +1,444 @@+/**+ * Background bug-report send operations.+ *+ * A send outlives the surface that started it. The report dialog has seven+ * independent mount points and closes the instant the reporter presses Send, so+ * an in-flight promise owned by any React subtree loses its result the moment+ * that subtree unmounts. This module owns the send instead: a module-level+ * singleton with no React dependency, which the progress toast merely observes+ * through `subscribe` / `get`.+ *+ * Named `-manager`, not `-store`, and the split is deliberate: the peers in+ * this directory (`crash-invite-store`, `update-notices-store`,+ * `subscribe-card-store`) are passive reactive containers that something else+ * writes into. This one EXECUTES the operation it publishes — it issues the+ * IPC call, owns retry and join semantics, and drives a timer — so calling it+ * a store would misdescribe what it does. Use `-store` for state alone,+ * `-manager` for a command executor that also happens to be observable.+ *+ * Operations are keyed by the zip basename because Electron main derives the+ * report id from the same path the same way, so an operation here and the+ * report's on-disk sidecar name the same thing. `zipBasename` is imported+ * rather than re-spelled for exactly that reason.+ *+ * Nothing here aborts a send — the IPC call has no cancel path. An observer+ * that stops watching (a dismissed toast) only stops watching; the upload+ * continues and its outcome still reaches the report's history row.+ */++import type {+ OkBugReportListRow,+ OkBugReportSendMetadata,+ OkBugReportSendResult,+ ReportBundleSummary,+} from '@inkeep/open-knowledge-core';+import {+ type BugReportSendSpan,+ beginBugReportSendSpan,+ INERT_SEND_SPAN,+} from '@/lib/bug-report-send-otel';+import { zipBasename } from '@/lib/bug-report-support';+import type { OkDesktopBridge } from '@/lib/desktop-bridge-types';++/** The one bridge call this module makes. Narrow so a test stub is one function. */+export type BugReportSendBridge = Pick<OkDesktopBridge['bugReport'], 'send'>;++/** Ease toward 90% and let the terminal state deliver the rest. */+const FILL_STEP_MS = 200;+const FILL_TIME_CONSTANT_SECONDS = 3;+const FILL_CEILING = 0.9;++interface BugReportSendOperationBase {+ /** Zip basename — the same string Electron main uses as the report id. */+ readonly operationId: string;+ readonly zipPath: string;+ /** On-disk bundle size: the only measured number the toast is allowed to show. */+ readonly zipSizeBytes: number;+ /**+ * Increments every time a caller asks to send this report — a first send, a+ * join with the send already in flight, or a retry after a terminal state.+ * An observer needs it to tell "the reporter asked for this again" (re-surface+ * the toast, even if it was dismissed) from "the progress bar moved".+ */+ readonly requestSeq: number;+}++/**+ * `already-sending` is not a failure: main refused a duplicate upload because+ * the same bundle is mid-flight, typically from another window holding a stale+ * retryable row. Rendering it as a failure would report a send that is still+ * running as broken.+ */+export type BugReportSendOperation =+ | (BugReportSendOperationBase & {+ readonly status: 'sending';+ /** Eased 0-90; motion only, never a measured fraction of bytes uploaded. */+ readonly fillPercent: number;+ })+ | (BugReportSendOperationBase & { readonly status: 'sent'; readonly reference: string })+ | (BugReportSendOperationBase & { readonly status: 'email-draft'; readonly mailtoUrl: string })+ | (BugReportSendOperationBase & {+ readonly status: 'failed';+ /**+ * Absent when the transport itself threw: main composes the fallback+ * draft as part of its result, so a call that never returned one has no+ * draft to offer.+ */+ readonly mailtoUrl?: string;+ })+ | (BugReportSendOperationBase & { readonly status: 'already-sending' });++/** A bundle `create` just produced, still under review when Send is pressed. */+export interface CreatedBugReport {+ readonly zipPath: string;+ readonly zipSizeBytes: number;+ readonly summary: ReportBundleSummary;+}++/**+ * The two surfaces that start a send hold different things. The dialog holds a+ * freshly created bundle plus the note it composed; history holds a persisted+ * row with no note and a bundle level that may be unreadable.+ */+export type BugReportSendRequest =+ | {+ readonly kind: 'created-report';+ readonly report: CreatedBugReport;+ /** Already composed from the typed note plus any crash context. */+ readonly note?: string;+ /** Consent read off the reviewed bundle inventory, not off the checkbox. */+ readonly includeScreenshot: boolean;+ }+ | { readonly kind: 'history-row'; readonly row: OkBugReportListRow };++export interface BugReportSendManager {+ /**+ * Start (or join) the send for the request's bundle and return its operation.+ * Never throws and never rejects: every failure mode resolves the operation+ * instead. A request whose report is already sending issues no second IPC+ * call — it bumps `requestSeq` on the running operation and returns it.+ */+ startBugReportSend(request: BugReportSendRequest): BugReportSendOperation;+ /**+ * Send the same bundle again, reusing the request the last caller supplied.+ * The toast that offers **Try again** observes operations, not requests, so+ * an operation id is all it can name. No-op for an id this renderer never+ * started; joins rather than restarts while the send is still running.+ */+ retryBugReportSend(operationId: string): void;+ /** The operation for a zip basename, or undefined if none was ever started. */+ get(operationId: string): BugReportSendOperation | undefined;+ /** Every operation this renderer has started, newest last. */+ getSnapshot(): readonly BugReportSendOperation[];+ subscribe(listener: () => void): () => void;+}++interface SendInput {+ readonly zipPath: string;+ readonly zipSizeBytes: number;+ readonly metadata: OkBugReportSendMetadata;+ readonly includeScreenshot?: boolean;+}++function toSendInput(request: BugReportSendRequest): SendInput {+ if (request.kind === 'history-row') {+ const { row } = request;+ return {+ zipPath: row.zipPath,+ zipSizeBytes: row.zipBytes,+ metadata: {+ // A row with no readable sidecar reports 'unknown'. Main needs a real+ // level, and 'standard' is the one that cannot overclaim what the+ // bundle on disk contains.+ level: row.bundleLevel === 'unknown' ? 'standard' : row.bundleLevel,+ systemWide: row.systemWide,+ projectSlug: row.projectSlug,+ },+ };+ }+ const { report, note, includeScreenshot } = request;+ return {+ zipPath: report.zipPath,+ zipSizeBytes: report.zipSizeBytes,+ metadata: {+ level: report.summary.level,+ systemWide: report.summary.systemWide,+ projectSlug: report.summary.projectSlug,+ note,+ },+ includeScreenshot,+ };+}++/** Private bookkeeping. `state` is the cached object every reader shares. */+interface OperationRecord {+ readonly operationId: string;+ readonly zipPath: string;+ readonly zipSizeBytes: number;+ requestSeq: number;+ /**+ * The most recent caller's request, kept so a retry can re-send from an+ * operation id alone rather than needing a caller that still holds it.+ */+ input: SendInput;+ fillTimer: ReturnType<typeof setInterval> | null;+ state: BugReportSendOperation;+ /**+ * This operation's own span. Held per record rather than looked up, so two+ * sends in flight cannot pick up each other's context when injecting the+ * traceparent main parents under.+ */+ span: BugReportSendSpan;+}++/**+ * Factory so each test gets a fresh manager. Production code uses the+ * `bugReportSendManager` singleton exported below.+ */+export function createBugReportSendManager(+ getBridge: () => BugReportSendBridge | undefined,+): BugReportSendManager {+ const records = new Map<string, OperationRecord>();+ const listeners = new Set<() => void>();+ let snapshot: readonly BugReportSendOperation[] | null = null;++ function notify(): void {+ // One throwing subscriber must not silence the rest. The adapter that+ // mints toasts and React's useSyncExternalStore trigger are both in this+ // list; if the adapter throws first, the store never re-reads and the+ // toast stays stuck at 'sending' behind an infinite duration, which is the+ // one state this module promises callers it will never leave them in.+ for (const l of listeners) {+ try {+ l();+ } catch (err) {+ console.warn('[bug-report-send] subscriber threw:', err);+ }+ }+ }++ function publish(record: OperationRecord, state: BugReportSendOperation): void {+ record.state = state;+ snapshot = null;+ notify();+ }++ function base(record: OperationRecord): BugReportSendOperationBase {+ return {+ operationId: record.operationId,+ zipPath: record.zipPath,+ zipSizeBytes: record.zipSizeBytes,+ requestSeq: record.requestSeq,+ };+ }++ function stopFill(record: OperationRecord): void {+ if (record.fillTimer === null) return;+ clearInterval(record.fillTimer);+ record.fillTimer = null;+ }++ function startFill(record: OperationRecord): void {+ stopFill(record);+ const startedAt = Date.now();+ record.fillTimer = setInterval(() => {+ if (record.state.status !== 'sending') {+ stopFill(record);+ return;+ }+ const elapsedSeconds = (Date.now() - startedAt) / 1000;+ const eased = Math.min(+ FILL_CEILING,+ 1 - Math.exp(-elapsedSeconds / FILL_TIME_CONSTANT_SECONDS),+ );+ const fillPercent = Math.round(eased * 100);+ // Nothing visible changed between two ticks at the same rounded percent,+ // so leave the published object alone and keep its identity stable.+ if (fillPercent === record.state.fillPercent) return;+ publish(record, { ...base(record), status: 'sending', fillPercent });+ }, FILL_STEP_MS);+ }++ function settle(+ record: OperationRecord,+ outcome:+ | { status: 'sent'; reference: string }+ | { status: 'email-draft'; mailtoUrl: string }+ | { status: 'failed'; mailtoUrl?: string }+ | { status: 'already-sending' },+ ): void {+ stopFill(record);+ record.span.end(+ outcome.status === 'email-draft'+ ? 'email-drafted'+ : outcome.status === 'already-sending'+ ? 'joined'+ : outcome.status,+ { 'ok.bug_report.request_seq': record.requestSeq },+ );+ publish(record, { ...base(record), ...outcome });+ }++ function settleFromResult(record: OperationRecord, result: OkBugReportSendResult): void {+ if (result.ok) {+ settle(record, { status: 'sent', reference: result.reference });+ return;+ }+ if (result.reason === 'email-draft') {+ settle(record, { status: 'email-draft', mailtoUrl: result.fallback.mailtoUrl });+ return;+ }+ if (result.reason === 'send-in-flight') {+ settle(record, { status: 'already-sending' });+ return;+ }+ // Deliberately not exhaustive: a reason this build does not recognize comes+ // from a newer main process, and the safe reading of an unknown refusal is+ // that the report did not go out. A new reason that is NOT a failure has to+ // be handled above before it ships.+ settle(record, { status: 'failed', mailtoUrl: result.fallback.mailtoUrl });+ }++ /** Publish the running state, restart the eased fill, and send. */+ function beginSend(record: OperationRecord): void {+ // A fresh span per ATTEMPT, not per operation. `settle` ends the span at+ // every terminal state, including a retryable failure, and `end()` is+ // idempotent — so reusing one span across a retry would silently discard+ // the retry's outcome and hand main a traceparent naming an already-closed+ // span, leaving its transport child starting after its parent ended. A+ // report that failed and then succeeded on Try again would read, for ever,+ // as a failure. Retry is the reason the failure toast exists, so the+ // attempt it starts has to be traceable on its own terms.+ record.span = beginBugReportSendSpan({+ 'ok.bug_report.zip_bytes': record.input.zipSizeBytes,+ 'ok.bug_report.include_screenshot': record.input.includeScreenshot === true,+ 'ok.bug_report.attempt': record.requestSeq,+ });+ publish(record, { ...base(record), status: 'sending', fillPercent: 0 });+ startFill(record);+ void dispatch(record, record.input);+ }++ /**+ * A caller asked for this bundle again. Bump the counter first so an+ * observer can tell "asked again" from "the bar moved" even when the answer+ * is a join — a toast the reporter dismissed has no other event to come back+ * on.+ */+ function requestSend(record: OperationRecord): BugReportSendOperation {+ record.requestSeq += 1;+ if (record.state.status === 'sending') {+ // Joining, not restarting: a second upload of the same bundle is what+ // main's in-flight lock refuses, and refusing it here spares the round+ // trip.+ publish(record, {+ ...base(record),+ status: 'sending',+ fillPercent: record.state.fillPercent,+ });+ return record.state;+ }+ beginSend(record);+ return record.state;+ }++ async function dispatch(record: OperationRecord, input: SendInput): Promise<void> {+ try {+ // A renderer paired with a main process that predates the bug-report IPC+ // has no `bugReport` surface, so the typed-required property can be+ // missing at runtime.+ const bridge = getBridge();+ if (bridge === undefined) {+ // Expected on web/CLI builds, alarming on desktop. Distinguishing the+ // two costs one line and is the whole point of this change: without it+ // a missing bridge and a main-process crash below are one identical,+ // silent `failed`.+ console.warn('[bug-report-send] no desktop bridge; send cannot be dispatched');+ settle(record, { status: 'failed' });+ return;+ }+ const traceparent = record.span.traceparent();+ const result = await bridge.send({+ zipPath: input.zipPath,+ metadata: input.metadata,+ ...(input.includeScreenshot !== undefined+ ? { includeScreenshot: input.includeScreenshot }+ : {}),+ ...(traceparent === undefined ? {} : { traceparent }),+ });+ settleFromResult(record, result);+ } catch (err) {+ // `send` is contract-bound never to reject, but it crosses into another+ // process: a main that dies mid-call tears the IPC channel down and the+ // pending invoke rejects. Without this the operation would stay 'sending'+ // forever behind an infinite-duration toast.+ //+ // Logged rather than swallowed: this is the one renderer-side failure+ // with no other trace, and it means something considerably worse than a+ // refused upload.+ console.warn('[bug-report-send] IPC dispatch threw:', err);+ settle(record, { status: 'failed' });+ }+ }++ return {+ startBugReportSend(request): BugReportSendOperation {+ const input = toSendInput(request);+ const operationId = zipBasename(input.zipPath);+ const existing = records.get(operationId);++ if (existing !== undefined) {+ // The newest caller can hold fresher metadata for the same bundle — a+ // history retry after a dialog send — so a later retry uses it.+ existing.input = input;+ return requestSend(existing);+ }++ const firstBase: BugReportSendOperationBase = {+ operationId,+ zipPath: input.zipPath,+ zipSizeBytes: input.zipSizeBytes,+ requestSeq: 1,+ };+ const record: OperationRecord = {+ ...firstBase,+ input,+ fillTimer: null,+ state: { ...firstBase, status: 'sending', fillPercent: 0 },+ // Replaced immediately by `beginSend`, which opens the real span for+ // every attempt including this first one.+ span: INERT_SEND_SPAN,+ };+ records.set(operationId, record);+ beginSend(record);+ return record.state;+ },++ retryBugReportSend(operationId): void {+ const record = records.get(operationId);+ if (record === undefined) return;+ requestSend(record);+ },++ get(operationId): BugReportSendOperation | undefined {+ return records.get(operationId)?.state;+ },++ getSnapshot(): readonly BugReportSendOperation[] {+ snapshot ??= [...records.values()].map((record) => record.state);+ return snapshot;+ },++ subscribe(listener): () => void {+ listeners.add(listener);+ return () => {+ listeners.delete(listener);+ };+ },+ };+}++/** Module-level singleton — every send surface starts its operation here. */+export const bugReportSendManager: BugReportSendManager = createBugReportSendManager(+ () => window.okDesktop?.bugReport,+);diff --git a/packages/app/src/lib/bug-report-send-otel.test.ts b/packages/app/src/lib/bug-report-send-otel.test.tsnew file mode 100644index 000000000..29e0406fb--- /dev/null+++ b/packages/app/src/lib/bug-report-send-otel.test.ts@@ -0,0 +1,130 @@+/**+ * Tests for the renderer bug-report send span.+ *+ * Uses a real `BasicTracerProvider` + `InMemorySpanExporter` rather than the+ * `spyOn(trace, 'getTracer')` fake the sibling telemetry tests use. The claim+ * under test is that two concurrent sends inject *different* traceparents+ * carrying their own span ids, and a fake span has no real span context to+ * derive one from — only a live SDK plus the W3C propagator can prove it.+ *+ * The concurrency case is the reason this module holds a per-operation+ * `Context` instead of reading the active one. Several bug reports upload at+ * once by design, and if the header were injected from `context.active()` an+ * interleaved flow could hand one report's traceparent to another, silently+ * grafting main's transport span onto the wrong send.+ *+ * The span name and outcome key are deliberately distinct from main's+ * (`ok.bug-report.send` / `ok.bug_report.outcome`). The two are parent and+ * child in one stitched trace, so sharing either would render as+ * `send -> send -> mint` and put two different vocabularies on one attribute+ * key, which no consumer could aggregate.+ */++import { context, metrics, propagation, trace } from '@opentelemetry/api';+import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';+import { W3CTraceContextPropagator } from '@opentelemetry/core';+import {+ BasicTracerProvider,+ InMemorySpanExporter,+ SimpleSpanProcessor,+} from '@opentelemetry/sdk-trace-base';+import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { beginBugReportSendSpan } from './bug-report-send-otel';++let exporter: InMemorySpanExporter;+let provider: BasicTracerProvider;++/** `00-<32 hex trace id>-<16 hex span id>-<2 hex flags>` */+function parseTraceparent(header: string | undefined) {+ expect(header).toBeDefined();+ const parts = (header as string).split('-');+ expect(parts).toHaveLength(4);+ return { traceId: parts[1], spanId: parts[2] };+}++beforeEach(() => {+ exporter = new InMemorySpanExporter();+ provider = new BasicTracerProvider({+ spanProcessors: [new SimpleSpanProcessor(exporter)],+ });+ trace.setGlobalTracerProvider(provider);+ context.setGlobalContextManager(new AsyncLocalStorageContextManager().enable());+ // The real W3C propagator, not a stand-in: `traceparent()` is the contract+ // main parses on the other side of the IPC boundary, so the encoding under+ // test should be the one production uses.+ propagation.setGlobalPropagator(new W3CTraceContextPropagator());+});++afterEach(async () => {+ await provider.shutdown();+ trace.disable();+ context.disable();+ propagation.disable();+ metrics.disable();+});++describe('renderer bug-report send span', () => {+ test('a send records its outcome and exports one span', () => {+ const span = beginBugReportSendSpan({ 'ok.bug_report.zip_bytes': 1234 });+ span.end('sent', { 'ok.bug_report.request_seq': 1 });++ const finished = exporter.getFinishedSpans();+ expect(finished).toHaveLength(1);+ expect(finished[0].name).toBe('ok.bug-report.send.attempt');+ expect(finished[0].attributes['ok.bug_report.renderer_outcome']).toBe('sent');+ expect(finished[0].attributes['ok.bug_report.zip_bytes']).toBe(1234);+ expect(finished[0].attributes['ok.bug_report.request_seq']).toBe(1);+ });++ test('concurrent sends inject traceparents that name their own spans', () => {+ // Both open before either closes — the interleaving a background manager+ // actually produces when a reporter files a second bug mid-upload.+ const a = beginBugReportSendSpan();+ const b = beginBugReportSendSpan();++ const headerA = parseTraceparent(a.traceparent());+ const headerB = parseTraceparent(b.traceparent());++ // Distinct operations, distinct spans: main must be able to parent each+ // transport span under the send that actually started it.+ expect(headerA.spanId).not.toBe(headerB.spanId);+ expect(headerA.traceId).not.toBe(headerB.traceId);++ a.end('sent');+ b.end('failed');++ const finished = exporter.getFinishedSpans();+ const byOutcome = new Map(+ finished.map((s) => [s.attributes['ok.bug_report.renderer_outcome'], s]),+ );+ // Each header names the span that later closed with that operation's+ // outcome — the property that keeps the two traces from crossing.+ expect(byOutcome.get('sent')?.spanContext().spanId).toBe(headerA.spanId);+ expect(byOutcome.get('failed')?.spanContext().spanId).toBe(headerB.spanId);+ });++ test('the traceparent is stable across reads for one operation', () => {+ // A retry re-reads the header before re-dispatching; it must address the+ // same span rather than mint a new identity mid-operation.+ const span = beginBugReportSendSpan();+ expect(span.traceparent()).toBe(span.traceparent());+ span.end('joined');+ });++ test('a joined duplicate is recorded, since main never sees it', () => {+ const span = beginBugReportSendSpan();+ span.end('joined');+ expect(exporter.getFinishedSpans()[0].attributes['ok.bug_report.renderer_outcome']).toBe(+ 'joined',+ );+ });++ test('end is idempotent', () => {+ const span = beginBugReportSendSpan();+ span.end('sent');+ span.end('failed');+ const finished = exporter.getFinishedSpans();+ expect(finished).toHaveLength(1);+ expect(finished[0].attributes['ok.bug_report.renderer_outcome']).toBe('sent');+ });+});diff --git a/packages/app/src/lib/bug-report-send-otel.ts b/packages/app/src/lib/bug-report-send-otel.tsnew file mode 100644index 000000000..22f139184--- /dev/null+++ b/packages/app/src/lib/bug-report-send-otel.ts@@ -0,0 +1,122 @@+/**+ * Renderer-side spans for a background bug-report send.+ *+ * Main already traces the transport. This traces the operation as the reporter+ * experiences it, which is a different span: it opens when they press Send and+ * closes when the toast resolves, so it covers the waiting the transport span+ * cannot see — the join of a duplicate retry, and a send whose IPC call never+ * comes back. It also carries the outcomes that never reach main at all: a+ * second Retry on an operation already in flight in this window is answered+ * here and never crosses the boundary.+ *+ * This span is the PARENT of main's. `traceparent()` hands the W3C header to+ * the send request; main extracts it and starts its transport span underneath,+ * so one trace covers the whole send rather than two disconnected halves.+ *+ * Concurrency is why each span keeps its own `Context` rather than reading the+ * active one. Several sends run at once by design, and both the header this+ * module injects and any child it parents must come from *that operation's*+ * context — `context.active()` in an interleaved async flow can belong to a+ * sibling send, which would silently graft one report's trace onto another.+ *+ * `@opentelemetry/api` returns a no-op tracer when no SDK is registered, so+ * this costs nothing unless `VITE_OTEL_ENABLED='true'`.+ */++import { type Context, propagation, ROOT_CONTEXT, type Span, trace } from '@opentelemetry/api';++const TRACER_NAME = 'open-knowledge-app';++/**+ * Distinct from main's `ok.bug-report.send`. The two are parent and child in one+ * stitched trace, so sharing a name renders as `send -> send -> mint` and gives+ * a consumer no way to tell the operation from the transport it wraps.+ */+const SPAN_NAME = 'ok.bug-report.send.attempt';++/**+ * Terminal states of a renderer send operation. A closed set: `joined` is the+ * duplicate-retry case main never sees, the rest mirror the bridge's outcomes.+ * Bounded by construction, per the cardinality discipline these spans share+ * with the rest of the app's telemetry.+ */+type RendererSendOutcome = 'sent' | 'email-drafted' | 'failed' | 'joined';++/** Bounded attributes only — numbers and booleans. */+type BoundedAttributes = Record<string, number | boolean>;++export interface BugReportSendSpan {+ /**+ * W3C `traceparent` for THIS operation, or undefined when telemetry is off.+ * Injected from the span's own context, never the ambient one, so a+ * concurrently-starting send cannot capture this header.+ */+ traceparent(): string | undefined;+ /** Close the operation. Idempotent — a later call is ignored. */+ end(outcome: RendererSendOutcome, attributes?: BoundedAttributes): void;+}++/**+ * A span handle that records nothing. Exported because the manager needs a+ * value for a record's span field before its first attempt opens a real one.+ */+export const INERT_SEND_SPAN: BugReportSendSpan = {+ traceparent: () => undefined,+ end: () => {},+};++const NOOP_SPAN = INERT_SEND_SPAN;++/**+ * Open the span for one send operation.+ *+ * Wrapped end to end: `@opentelemetry/api` is a third-party boundary that can+ * throw from a misconfigured provider, and a telemetry fault must not take+ * down a bug report — the one flow a user reaches because something else is+ * already broken. Mirrors the fault-isolation wrap in `lib/language-telemetry.ts`.+ */+export function beginBugReportSendSpan(attributes: BoundedAttributes = {}): BugReportSendSpan {+ try {+ const span = trace.getTracer(TRACER_NAME).startSpan(SPAN_NAME, { attributes });+ if (!span.isRecording()) {+ span.end();+ return NOOP_SPAN;+ }+ return createSpanHandle(span, trace.setSpan(ROOT_CONTEXT, span));+ } catch (err) {+ console.warn(+ '[bug-report-send-otel] span start failed:',+ err instanceof Error ? err : String(err),+ );+ return NOOP_SPAN;+ }+}++function createSpanHandle(span: Span, spanContext: Context): BugReportSendSpan {+ let ended = false;+ return {+ traceparent() {+ try {+ const carrier: Record<string, string> = {};+ propagation.inject(spanContext, carrier);+ return carrier.traceparent;+ } catch {+ return undefined;+ }+ },+ end(outcome, attributes) {+ if (ended) return;+ ended = true;+ try {+ if (attributes) span.setAttributes(attributes);+ // Namespaced away from main's `ok.bug_report.outcome`: the two enums+ // describe the same send in different vocabularies ('failed' vs+ // 'upload-failed'), so one key carrying both is unaggregatable.+ span.setAttribute('ok.bug_report.renderer_outcome', outcome);+ span.end();+ } catch {+ // A telemetry fault must not surface in the send's result.+ }+ },+ };+}diff --git a/packages/app/src/lib/bug-report-support.test.ts b/packages/app/src/lib/bug-report-support.test.tsnew file mode 100644index 000000000..29ad1c7c8--- /dev/null+++ b/packages/app/src/lib/bug-report-support.test.ts@@ -0,0 +1,37 @@+/**+ * Unit tests for the two pure helpers in the shared bug-report module.+ *+ * `zipBasename` is the load-bearing one: the renderer keys a send operation by+ * it, and Electron main independently keys the same report by `path.basename`+ * of the same zip path. The two derivations have to agree on both separators+ * for a renderer operation to name the report main is actually sending.+ */++import { describe, expect, test } from 'vitest';+import { supportMailtoUrl, zipBasename } from './bug-report-support.ts';++describe('zipBasename', () => {+ test('reduces a posix path to the filename', () => {+ expect(zipBasename('/Users/x/Library/ok/reports/ok-report-2026-08-18.zip')).toBe(+ 'ok-report-2026-08-18.zip',+ );+ });++ test('reduces a Windows path to the filename', () => {+ expect(zipBasename('C:\\Users\\x\\AppData\\ok\\ok-report-2026-08-18.zip')).toBe(+ 'ok-report-2026-08-18.zip',+ );+ });++ test('passes a bare filename through unchanged', () => {+ expect(zipBasename('ok-report-2026-08-18.zip')).toBe('ok-report-2026-08-18.zip');+ });+});++describe('supportMailtoUrl', () => {+ test('addresses support and percent-encodes the subject', () => {+ expect(supportMailtoUrl('Bug report OK-1234 #2')).toBe(+ 'mailto:[email protected]?subject=Bug%20report%20OK-1234%20%232',+ );+ });+});diff --git a/packages/app/src/lib/bug-report-support.ts b/packages/app/src/lib/bug-report-support.tsnew file mode 100644index 000000000..da2b62e97--- /dev/null+++ b/packages/app/src/lib/bug-report-support.ts@@ -0,0 +1,42 @@+/**+ * Bug-report primitives shared across the reporting surfaces — the compose+ * dialog, the background send manager, its toast, and the history rows.+ *+ * Two concerns live here because both outlived the dialog that once owned+ * them privately:+ *+ * - The support-email address. `[email protected]` is the fallback transport+ * whenever the intake endpoint is absent or the upload fails, and the+ * follow-up address once a report has a reference.+ * - `zipBasename`. Electron main derives a report's id as the basename of+ * the bundle it was handed, so a renderer that keys an operation the same+ * way keys it to the same report. Import this rather than re-deriving:+ * two spellings of "basename" that disagree on a Windows path would key+ * the renderer's operation to a report main has never heard of.+ * - `formatBundleSize`. Every surface shows the bundle's on-disk size, so+ * all of them have to round it the same way.+ */++const SUPPORT_EMAIL = '[email protected]';++/** Bare mailto with a prefilled subject — used where a report already has a+ * reference, which becomes the subject so the team can correlate the email. */+export function supportMailtoUrl(subject: string): string {+ return `mailto:${SUPPORT_EMAIL}?subject=${encodeURIComponent(subject)}`;+}++/** Both separators, so a Windows path taken on any platform still reduces. */+export function zipBasename(zipPath: string): string {+ return zipPath.split(/[\\/]/).pop() ?? zipPath;+}++/**+ * Bundle size as the reporting surfaces render it. Deliberately not core's+ * `formatFileSize`, which reports KiB/MiB: the bug-report copy was written+ * against MB/KB labels and the two must not disagree on the same bundle.+ */+export function formatBundleSize(bytes: number): string {+ if (bytes >= 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;+ if (bytes >= 1024) return `${Math.max(1, Math.round(bytes / 1024))} KB`;+ return `${bytes} B`;+}diff --git a/packages/app/src/lib/install-bug-report-send-toasts.test.ts b/packages/app/src/lib/install-bug-report-send-toasts.test.tsnew file mode 100644index 000000000..ea11ccfa2--- /dev/null+++ b/packages/app/src/lib/install-bug-report-send-toasts.test.ts@@ -0,0 +1,324 @@+/**+ * Unit tests for the bug-report send toast adapter.+ *+ * Sonner is stubbed because it is the host this module talks to and its+ * rendering needs a DOM this tier does not have; the manager underneath is the+ * real one, driven through a stubbed desktop bridge (a genuine process+ * boundary). The adapter's whole contract is *when* it mints, so the+ * assertions are on the sequence of mints, not on their contents.+ */++import type { OkBugReportSendResult } from '@inkeep/open-knowledge-core';+import * as actualSonner from 'sonner';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';+import type { BugReportSendToastActions } from '@/components/BugReportSendToast';+import {+ type BugReportSendBridge,+ type BugReportSendRequest,+ createBugReportSendManager,+} from '@/lib/bug-report-send-manager';++const ZIP_PATH = '/Users/x/Library/ok/reports/ok-report-2026-08-18-120000.zip';+const OPERATION_ID = 'ok-report-2026-08-18-120000.zip';+const OTHER_ZIP_PATH = '/Users/x/Library/ok/reports/ok-report-2026-08-18-130000.zip';+const OTHER_OPERATION_ID = 'ok-report-2026-08-18-130000.zip';++const toast = {+ custom: vi.fn((_render: (id: string | number) => unknown, _opts?: unknown) => 'toast-id'),+ dismiss: vi.fn((_id?: unknown) => {}),+};++// Spread the real module so unmocked sonner exports stay available in this+// test's module graph.+vi.doMock('sonner', () => ({ ...actualSonner, toast }));++/** Ids passed to `toast.custom`, in mint order. */+function mintedIds(): unknown[] {+ return toast.custom.mock.calls.map((call) => (call[1] as { id?: unknown } | undefined)?.id);+}++/** The lifetime the nth mint asked sonner for. */+function durationOf(index: number): number | undefined {+ return (toast.custom.mock.calls[index]?.[1] as { duration?: number } | undefined)?.duration;+}++/** The action bag the nth mint handed the toast body. */+function actionsOf(index: number): BugReportSendToastActions {+ const render = toast.custom.mock.calls[index]?.[0];+ if (render === undefined) throw new Error(`no toast minted at index ${index}`);+ const element = render('unused') as { props: { actions: BugReportSendToastActions } };+ return element.props.actions;+}++/** A bridge whose `send` resolves only when the test says so. */+function createDeferredBridge() {+ const resolvers: ((result: OkBugReportSendResult) => void)[] = [];+ const calls: unknown[] = [];+ const bridge: BugReportSendBridge = {+ send(sendRequest) {+ calls.push(sendRequest);+ return new Promise<OkBugReportSendResult>((resolve) => {+ resolvers.push(resolve);+ });+ },+ };+ return {+ bridge,+ calls,+ async settle(result: OkBugReportSendResult, index = resolvers.length - 1) {+ resolvers[index]?.(result);+ await vi.advanceTimersByTimeAsync(0);+ },+ };+}++function request(zipPath = ZIP_PATH): BugReportSendRequest {+ return {+ kind: 'created-report',+ report: {+ zipPath,+ zipSizeBytes: 2_048,+ summary: {+ level: 'full',+ systemWide: false,+ projectSlug: 'open-knowledge',+ files: ['logs/app.log'],+ redactions: [],+ redactedLineCount: 0,+ generatedAt: '2026-08-18T12:00:00.000Z',+ },+ },+ note: 'the editor froze',+ includeScreenshot: true,+ };+}++/**+ * Records which shell method each toast action reached, and with what. The two+ * shell bindings both take a single string, so transposing them type-checks —+ * only asserting the argument at the right method catches it.+ */+function createShellRecorder() {+ const openedExternal: string[] = [];+ const revealed: string[] = [];+ const desktop = {+ shell: {+ openExternal: (url: string) => {+ openedExternal.push(url);+ return Promise.resolve();+ },+ showItemInFolder: (zipPath: string) => {+ revealed.push(zipPath);+ return Promise.resolve();+ },+ },+ };+ return { openedExternal, revealed, desktop };+}++async function setup(desktop?: unknown) {+ const { installBugReportSendToasts } = await import('./install-bug-report-send-toasts');+ const deferred = createDeferredBridge();+ const manager = createBugReportSendManager(() => deferred.bridge);+ const uninstall = installBugReportSendToasts({+ manager,+ ...(desktop === undefined ? {} : { bridge: desktop as never }),+ });+ return { ...deferred, manager, uninstall };+}++describe('installBugReportSendToasts', () => {+ beforeEach(() => {+ vi.useFakeTimers();+ });++ afterEach(() => {+ vi.useRealTimers();+ toast.custom.mockClear();+ toast.dismiss.mockClear();+ });++ test('a started send mints one toast keyed by its operation id', async () => {+ const { manager, uninstall } = await setup();++ manager.startBugReportSend(request());++ expect(toast.custom).toHaveBeenCalledTimes(1);+ expect(mintedIds()).toEqual([OPERATION_ID]);+ uninstall();+ });++ test('progress ticks re-render the body in place rather than minting again', async () => {+ const { manager, uninstall } = await setup();+ manager.startBugReportSend(request());++ // Well past several 200ms eased-fill steps, so the operation has published+ // repeatedly without changing layout.+ await vi.advanceTimersByTimeAsync(2_000);++ expect(manager.get(OPERATION_ID)?.status).toBe('sending');+ expect(toast.custom).toHaveBeenCalledTimes(1);+ uninstall();+ });++ test('an outcome re-mints at the same id so sonner re-measures the new layout', async () => {+ const { manager, settle, uninstall } = await setup();+ manager.startBugReportSend(request());++ await settle({ ok: true, reference: 'OK-1234' });++ expect(manager.get(OPERATION_ID)?.status).toBe('sent');+ expect(mintedIds()).toEqual([OPERATION_ID, OPERATION_ID]);+ uninstall();+ });++ test('a successful send auto-dismisses while a failure holds until dismissed', async () => {+ const { manager, settle, uninstall } = await setup();++ manager.startBugReportSend(request());+ expect(durationOf(0)).toBe(Number.POSITIVE_INFINITY);+ await settle({ ok: true, reference: 'OK-1234' });+ expect(durationOf(1)).toBeGreaterThan(0);+ expect(durationOf(1)).toBeLessThan(Number.POSITIVE_INFINITY);++ manager.startBugReportSend(request(OTHER_ZIP_PATH));+ await settle({+ ok: false,+ reason: 'send-failed',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=failed' },+ });++ expect(mintedIds()).toEqual([+ OPERATION_ID,+ OPERATION_ID,+ OTHER_OPERATION_ID,+ OTHER_OPERATION_ID,+ ]);+ expect(durationOf(3)).toBe(Number.POSITIVE_INFINITY);+ uninstall();+ });++ test('retrying a send already in flight re-surfaces the toast the reporter dismissed', async () => {+ const { calls, manager, uninstall } = await setup();+ manager.startBugReportSend(request());+ actionsOf(0).dismiss();+ expect(toast.dismiss).toHaveBeenCalledWith(OPERATION_ID);++ // What history's Retry does for a row this window is already sending.+ manager.startBugReportSend(request());++ expect(mintedIds()).toEqual([OPERATION_ID, OPERATION_ID]);+ expect(calls).toHaveLength(1);+ uninstall();+ });++ test('each toast action reaches the bridge method that action names', async () => {+ const shell = createShellRecorder();+ const { manager, settle, uninstall } = await setup(shell.desktop);+ manager.startBugReportSend(request());+ await settle({+ ok: false,+ reason: 'send-failed',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=failed' },+ });++ // Both bindings take one string and both live on `bridge.shell`, so a+ // transposition compiles and every other test in this suite still passes.+ // Asserting the argument at the specific method is what catches it.+ actionsOf(1).openExternal('mailto:[email protected]?subject=failed');+ actionsOf(1).revealInFileManager(ZIP_PATH);++ expect(shell.openedExternal).toEqual(['mailto:[email protected]?subject=failed']);+ expect(shell.revealed).toEqual([ZIP_PATH]);+ uninstall();+ });++ test('a transport that throws replaces the endless in-flight toast', async () => {+ const { installBugReportSendToasts } = await import('./install-bug-report-send-toasts');+ // A synchronous throw is the case that would otherwise strand a toast the+ // reporter cannot dismiss, because the in-flight mint asked for an+ // infinite lifetime. Driven through a throwing bridge, the way the+ // manager's own suite drives it.+ const throwing: BugReportSendBridge = {+ send() {+ throw new Error('IPC channel closed');+ },+ };+ const manager = createBugReportSendManager(() => throwing);+ const uninstall = installBugReportSendToasts({ manager });++ manager.startBugReportSend(request());+ await vi.advanceTimersByTimeAsync(0);++ expect(durationOf(0)).toBe(Number.POSITIVE_INFINITY);+ expect(mintedIds()).toEqual([OPERATION_ID, OPERATION_ID]);+ expect(manager.get(OPERATION_ID)?.status).not.toBe('sending');+ uninstall();+ });++ test('a cross-window refusal auto-dismisses instead of holding on screen', async () => {+ // `already-sending` sits beside the two POSITIVE_INFINITY cases in+ // `durationFor`, and it is the one of the three that must NOT hold:+ // nothing failed and the reporter has no decision to make, so a toast+ // waiting for a dismissal would be a permanent fixture announcing a send+ // that had already finished. A refactor grouping it with its neighbours+ // would do exactly that, and nothing else in this suite would notice.+ const { manager, settle, uninstall } = await setup();+ manager.startBugReportSend(request());+ await settle({+ ok: false,+ reason: 'send-in-flight',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=inflight' },+ });++ const duration = durationOf(1);+ expect(duration).toBeGreaterThan(0);+ expect(Number.isFinite(duration)).toBe(true);+ uninstall();+ });++ test('an email draft holds on screen the way a failure does', async () => {+ const { manager, settle, uninstall } = await setup();+ manager.startBugReportSend(request());+ await settle({+ ok: false,+ reason: 'email-draft',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=draft' },+ });++ expect(durationOf(1)).toBe(Number.POSITIVE_INFINITY);+ uninstall();+ });++ test('Try again on a failed send updates the same toast rather than adding one', async () => {+ const { calls, manager, settle, uninstall } = await setup();+ manager.startBugReportSend(request());+ await settle({+ ok: false,+ reason: 'send-failed',+ fallback: { mailtoUrl: 'mailto:[email protected]?subject=failed' },+ });++ actionsOf(1).retry();++ expect(manager.get(OPERATION_ID)?.status).toBe('sending');+ expect(mintedIds()).toEqual([OPERATION_ID, OPERATION_ID, OPERATION_ID]);+ expect(calls).toHaveLength(2);+ uninstall();+ });++ test('a second report gets its own toast without replacing the first', async () => {+ const { manager, settle, uninstall } = await setup();+ manager.startBugReportSend(request());+ manager.startBugReportSend(request(OTHER_ZIP_PATH));++ expect(mintedIds()).toEqual([OPERATION_ID, OTHER_OPERATION_ID]);++ await settle({ ok: true, reference: 'OK-5678' }, 1);++ expect(manager.get(OPERATION_ID)?.status).toBe('sending');+ expect(manager.get(OTHER_OPERATION_ID)?.status).toBe('sent');+ expect(mintedIds()).toEqual([OPERATION_ID, OTHER_OPERATION_ID, OTHER_OPERATION_ID]);+ uninstall();+ });+});diff --git a/packages/app/src/lib/install-bug-report-send-toasts.ts b/packages/app/src/lib/install-bug-report-send-toasts.tsnew file mode 100644index 000000000..494dd1bfc--- /dev/null+++ b/packages/app/src/lib/install-bug-report-send-toasts.ts@@ -0,0 +1,155 @@+/**+ * Toast presentation for background bug-report sends.+ *+ * The send manager owns the send; this module owns nothing but the toast that+ * describes it. It watches the manager, mints one toast per operation, and+ * turns the toast's action callbacks into bridge calls — so the toast body+ * itself never reaches for the desktop bridge.+ *+ * Two sonner mechanics shape the whole design:+ *+ * - `toast.custom` invokes its render function exactly once and stores the+ * element it returned. Content updates therefore come from the body's own+ * subscription, not from here; re-minting on every progress tick would+ * replace that element five times a second for nothing visible.+ * - Sonner measures a toast's height in a layout effect keyed on props a+ * body's internal re-render never touches. A layout that grows taller+ * without a fresh element keeps its old measurement, so the toasts stacked+ * beneath it overlap and the expanded toaster clips it.+ *+ * Hence the rule below: never re-mint on progress, always re-mint on a layout+ * change. Sonner treats a create at an existing id as an update — same React+ * key, so the body stays mounted with its subscription intact — and clears+ * that id from its dismissed set, which is also what brings back a toast the+ * reporter dismissed before pressing Retry.+ *+ * Installed from `main.tsx` module init alongside the other desktop listeners.+ */++import { createElement } from 'react';+import { toast } from 'sonner';+import {+ BugReportSendToast,+ type BugReportSendToastActions,+} from '@/components/BugReportSendToast';+import {+ type BugReportSendManager,+ type BugReportSendOperation,+ bugReportSendManager,+} from '@/lib/bug-report-send-manager';+import type { OkDesktopBridge } from '@/lib/desktop-bridge-types';+import { scheduleClipboardWrite } from '@/lib/share/clipboard-adapter';++/**+ * Long enough to read a reference and copy it, short enough that a finished+ * send stops occupying the corner. Nothing is lost when it closes — the+ * reference stays on the report's history row.+ */+const RESOLVED_AUTO_DISMISS_MS = 8_000;++function durationFor(status: BugReportSendOperation['status']): number {+ switch (status) {+ case 'sent':+ case 'already-sending':+ // Neither asks the reporter for anything, so neither has to wait to be+ // read: the reference lives on the history row, and a send already in+ // flight resolves on its own.+ return RESOLVED_AUTO_DISMISS_MS;+ case 'sending':+ case 'email-draft':+ case 'failed':+ // Progress holds until it resolves; the two outcomes that hold each+ // carry an action nobody can take once the toast has closed itself.+ return Number.POSITIVE_INFINITY;+ }+}++/** What the toast on screen is showing, so a layout change is distinguishable from a progress tick. */+interface RenderedLayout {+ readonly status: BugReportSendOperation['status'];+ readonly requestSeq: number;+}++export interface InstallBugReportSendToastsOptions {+ /** Defaults to the module singleton every send surface starts its operation on. */+ readonly manager?: BugReportSendManager;+ /** Desktop bridge behind the toast's actions. Absent in web / CLI distribution. */+ readonly bridge?: OkDesktopBridge;+}++/** Returns the unsubscribe, so a test can detach the adapter it installed. */+/**+ * Guards the SINGLETON path only. `main.tsx` is re-evaluated on HMR, and a+ * second subscriber against the same manager would mint every toast twice.+ * Tests inject their own manager and legitimately install more than once, so+ * the flag is keyed on identity rather than set unconditionally — matching the+ * `attached` guard in `crash-invite-store.ts` without breaking injection.+ */+let attachedToSingleton = false;++export function installBugReportSendToasts(+ options: InstallBugReportSendToastsOptions = {},+): () => void {+ const manager = options.manager ?? bugReportSendManager;+ if (manager === bugReportSendManager) {+ if (attachedToSingleton) return () => {};+ attachedToSingleton = true;+ }+ const bridge = options.bridge;+ const rendered = new Map<string, RenderedLayout>();++ function actionsFor(operationId: string): BugReportSendToastActions {+ return {+ dismiss: () => {+ toast.dismiss(operationId);+ },+ retry: () => {+ manager.retryBugReportSend(operationId);+ },+ openExternal: (url) => {+ void bridge?.shell.openExternal(url);+ },+ revealInFileManager: (zipPath) => {+ void bridge?.shell.showItemInFolder(zipPath);+ },+ writeToClipboard: scheduleClipboardWrite,+ };+ }++ function mint(operation: BugReportSendOperation): void {+ const { operationId, status, requestSeq } = operation;+ // The operation id doubles as the toast id: sonner's own ids are numbers+ // from an internal counter, so a zip basename cannot collide with one, and+ // sharing the id is what makes an update-in-place possible.+ toast.custom(+ () =>+ createElement(BugReportSendToast, {+ operationId,+ manager,+ actions: actionsFor(operationId),+ platform: bridge?.platform,+ }),+ { id: operationId, duration: durationFor(status) },+ );+ rendered.set(operationId, { status, requestSeq });+ }++ const unsubscribe = manager.subscribe(() => {+ for (const operation of manager.getSnapshot()) {+ const shown = rendered.get(operation.operationId);+ if (+ shown !== undefined &&+ shown.status === operation.status &&+ shown.requestSeq === operation.requestSeq+ ) {+ continue;+ }+ mint(operation);+ }+ });++ return () => {+ unsubscribe();+ if (manager === bugReportSendManager) attachedToSingleton = false;+ };+}diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 3344c7e67..19e75b4b7 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -185,7 +185,6 @@"أضف ترتيبًا قائمًا على المعنى إلى البحث لتظهر الصفحات المرتبطة مفاهيميًا حتى لو لم تشترك في أي كلمات مفتاحية."],"1NgrlY": ["طرق أخرى للتثبيت"],- "1OKzC_": ["تعذّر إرسال تقريرك. أعد المحاولة أو أرسله بالبريد بدلًا من ذلك."],"1QfxQT": ["تجاهل"],"1RluQD": ["إظهار الاستبدال"],"1TNIig": ["فتح"],@@ -267,6 +266,7 @@"2wxgft": ["إعادة تسمية"],"2zvUIK": ["عرض هذه التعليقات في لوحة التعليقات"],"322lyb": ["أبرِز النصائح والتحذيرات والملاحظات."],+ "32TTpa": ["مراسلة الدعم بشأن هذا التقرير"],"34qyH5": ["تعذّر الوصول إلى الخادم"],"36WXSC": ["تعذّر حذف القالب: ", ["error"]],"36aWJD": ["انضم إلينا على Discord"],@@ -507,6 +507,7 @@["userToken"],"</1> لملء تاريخ اليوم أو اسم المؤلف تلقائيًا."],+ "5hFl0U": ["نسخ المرجع"],"5jEnaB": ["غير متاح على هذه المنصة"],"5kWklo": ["(قد يكون بعضها مخفيًا بالفعل بقواعد أخرى)"],"5lWFkC": ["تسجيل الدخول"],@@ -662,6 +663,7 @@],"7PzzBU": ["المستخدم"],"7S7FNA": ["تحقق OpenKnowledge من المشروع"],+ "7WnfoD": ["هذا التقرير في طريقه بالفعل. ستظهر نتيجته في سجل تقارير العلل."],"7Y9yTo": ["تم إنشاء ", ["owner"], "/", ["name"], "، لكن فشل الدفع."],"7YRrJ9": ["متاح في تطبيق OpenKnowledge لسطح المكتب. من الطرفية، استخدم<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -717,7 +719,6 @@"87GMKe": ["هل تريد كشف هذا المشروع على الشبكة؟"],"881Uwh": ["حذف الجدول المحدد"],"89TtiD": ["ملف جديد من القالب «", ["displayTitle"], "» (", ["fileName"], ") في جذر المشروع"],- "89y7ar": [["sizeText"], " · تم إخفاء الأسرار"],"8AjnFz": ["«", ["0"], "» مستورد بالفعل (محتوى مطابق)."],"8F1i42": ["الصفحة غير موجودة"],"8FqTCr": [@@ -753,6 +754,7 @@],"8Uv5e6": ["الوكلاء"],"8Vq20-": ["تبديل شجرة العمل"],+ "8W9CF6": ["يجري إرسال هذا التقرير بالفعل"],"8WTrGF": [["summary"], " في هذا الملف. افتح لوحة المشكلات لمزيد من التفاصيل."],"8Wav8y": ["إذا وصل تحديث لشيء تحرّره، فأنت من يختار أي نسخة يُبقي، مثل تعارض الدمج."],"8XQRON": ["يجري تحميل المستودعات"],@@ -815,7 +817,6 @@],"9Vh9Jf": ["أعد فتح هذه النافذة لتسجيل الدخول عبر متصفحك"],"9Vnjc9": ["إدخال"],- "9XIEYq": ["أرفق الملف في رسالة بريد إلى <0/>"],"9Y6cCI": ["تعذر تحميل الصفحات"],"9_2oe6": ["أعِد ",@@ -1537,9 +1538,6 @@],"HdS4Ft": ["تعذّر استعادة آخر مستند مفتوح لديك."],"HdkSiO": ["ملف جديد"],- "HepFJQ": [- "تقريرك محفوظ على هذا الجهاز، لذا لم يُفقد شيء. يمكنك إرساله إلينا بالبريد الإلكتروني بدلاً من ذلك."- ],"HfI1dR": ["لديّ نسخة محلية بالفعل ←"],"HjNrT0": [[@@ -1891,7 +1889,6 @@"LvdLef": ["شكرًا على ملاحظاتك!"],"LwMxXg": ["فشل فتح شجرة العمل."],"LzM_ga": ["تصفية المهارات"],- "M-IF14": ["مرجع التقرير"],"M0jOcG": ["العرض في مصدر Markdown"],"M1OfV9": ["تشخيص المصدر التالي"],"M3ytY_": ["يبدو هذا جذر قرص (مثل C:\\). سيفحص البناء هنا قرصًا كاملًا."],@@ -1927,7 +1924,6 @@"MI6Z0f": ["اختر رمزًا تعبيريًا لإدراجه عند المؤشر."],"MIF36T": ["تعذّر حل التفرّع: ", ["0"]],"MILoeL": ["الخدمات"],- "MJqRO6": ["يجري إرسال تقريرك."],"MJuO1q": ["نافذة السياق:"],"MKEPCY": ["متابعة"],"MLVPcm": [["0"], " الإصدار ", ["1"]],@@ -1982,6 +1978,7 @@"N1KkEO": ["الانتقال إلى آخر تبويب"],"N1YYa7": ["يجري تحميل الصورة"],"N1mdmS": ["لا يمكن فتح هذا الملف في محرر النصوص."],+ "N2C89m": ["المرجع"],"N2FcBE": ["متزامن"],"N2S1rs": ["فارغ"],"N2eHWq": ["كتلة كود"],@@ -2101,7 +2098,6 @@"OXdGnd": ["المشكلات"],"OYnx7O": ["لا يمكن أن يبدأ المسار بـ «/»"],"OZavHH": ["كل ما تحت ", ["0"], "/"],- "Oawo4U": ["تعذّر الوصول إلى خدمة التقارير."],"OdmsFg": ["فشل حذف العنصر"],"OeAl1e": ["مثال: assets/uploads"],"OfhWJH": ["إعادة تعيين"],@@ -3083,7 +3079,6 @@],"_Bix3-": ["مواضع ظهور ", ["localizedFirstMessage"]],"_DwR-n": ["جارٍ الإنشاء…"],- "_FLBbi": [["sizeText"], " · تم إخفاء الأسرار · لم يُخفَ تفريغ الأعطال"],"_G7A92": ["الحفاظ على index.md"],"_GRWOJ": ["هل تريد تغيير مزوّد التضمينات؟"],"_HgF9q": ["الترتيب حسب"],@@ -3599,7 +3594,6 @@"fvrHin": ["متاح في كل مشروع على هذا الجهاز. غير مشترك عبر git."],"fwhX-N": ["زيادة أو تقليل إزاحة المصدر"],"fwrPh4": ["يرجى إدخال بريد إلكتروني صالح."],- "fxJk_6": ["<0>هل لديك المزيد لتضيفه؟</0> راسلنا على <1/> واذكر رقم مرجعك."],"fxbCNQ": ["تمت المزامنة. الرابط محدَّث."],"g-dkjJ": ["تفاصيل الملفات المحلية غير متاحة بعد."],"g12y1g": ["YAML غير صالح"],@@ -4597,7 +4591,6 @@"qjHMHf": ["فشل تعطيل المزامنة — ", ["detail"]],"qkqG0b": ["أخذ نسخة المستودع البعيد"],"qlAIQ1": ["بعيد"],- "qmL1UG": ["يجري الرفع بأمان"],"qo4zCg": ["لا يمكن أن يحتوي المسار على شرطات مائلة عكسية"],"qpQwGC": ["صِف ما تعمل عليه ويتولى الوكيل إعداده لك."],"qribBG": ["المخطط ", ["deleteTarget"]],@@ -4611,6 +4604,7 @@"r6ncaO": ["إغلاق التبويب"],"r6y-jM": ["تحذير"],"r7IaYp": ["Open Knowledge Format التوجيه"],+ "r7tQuq": ["تقريرك محفوظ على هذا الحاسوب، فلم يُفقد شيء."],"r871ed": ["أصبحت قاعدة معرفتك على GitHub في <0>", ["ownerLogin"], "/", ["repoName"], "</0>."],"rDOuNw": ["فشل استيراد القالب"],"rENNI6": ["رابط المشاركة غير صالح."],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex e98d538c4..ddcc834ca 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -383,8 +383,8 @@ msgstr "{0} تشترك في هذا المجلد."msgid "{0} templates available"msgstr "{0} قالب متاح"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} إجمالًا"@@ -869,10 +869,6 @@ msgstr "خصائص {settingsDescriptorLabel}"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} ليس اسم فرع صالحًا."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · تم إخفاء الأسرار"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · تم إخفاء الأسرار · {fileCount, plural, zero {# ملف} one {ملف واحد} two {ملفان} few {# ملفات} many {# ملفًا} other {# ملف}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · تم إخفاء الأسرار · {fileCount, plural, zeromsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · تم إخفاء الأسرار · {fileCount, plural, zero {# ملف} one {ملف واحد} two {ملفان} few {# ملفات} many {# ملفًا} other {# ملف}} · لم يُخفَ تفريغ الأعطال"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · تم إخفاء الأسرار · لم يُخفَ تفريغ الأعطال"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, zero {مهارات} one {مهارة} two {مهارتان} few {مهارات} many {مهارةً} other {مهارة}}"@@ -1008,10 +1000,6 @@ msgstr "تعذّر عرض <{descriptorLabel}> (على الأرجح خاصية غmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "يبقى <0>~/.ok/bin</0> و<1>~/.ok/env.sh</1> في الحالتين — يتولى التطبيق صيانتهما دائمًا."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>هل لديك المزيد لتضيفه؟</0> راسلنا على <1/> واذكر رقم مرجعك."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>مرآة — اختر مصدرًا.</0> اضبط <1>src</1> + <2>anchor</2> من لوحة الخصائص للإشارة إلى <3><MirrorSource></3> في مكان آخر."@@ -1634,6 +1622,10 @@ msgstr "مثبَّت بالفعل — لا شيء جديد لاستيراده."msgid "Already open"msgstr "مفتوح بالفعل"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "يجري إرسال هذا التقرير بالفعل"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "مُعدّ بالفعل — الأمر ok متاح في طرفيتك"@@ -1869,10 +1861,6 @@ msgstr "إرفاق ملف"msgid "Attach images"msgstr "إرفاق صور"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "أرفق الملف في رسالة بريد إلى <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "استعراض skills.sh"msgid "Browse your repos:"msgstr "استعرض مستودعاتك:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "تقرير علة {0}"@@ -2652,7 +2640,6 @@ msgstr "يجري الاستنساخ..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "تم نسخ المسار"msgid "Copied relative path"msgstr "تم نسخ المسار النسبي"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "تم النسخ!"@@ -3293,6 +3281,10 @@ msgstr "نسخ المسار"msgid "Copy Path"msgstr "نسخ المسار"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "نسخ المرجع"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "نسخ المسار النسبي"@@ -3880,7 +3872,7 @@ msgstr "تعذّر حفظ المفتاح — يرجى المحاولة مرة أmsgid "Couldn't save the resolution for {filePath}."msgstr "تعذّر حفظ الحل لـ {filePath}."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "تعذّر إرسال التقرير"@@ -4521,6 +4513,7 @@ msgstr "قطع الاتصال"msgid "Disconnecting"msgstr "يجري قطع الاتصال"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "تم"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "البريد الإلكتروني"msgid "Email address"msgstr "عنوان البريد الإلكتروني"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "مراسلة الدعم بشأن هذا التقرير"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "أُرسل بالبريد"@@ -8615,7 +8611,7 @@ msgstr "لا شيء ({0} ليس نمطًا صالحًا)"msgid "Nothing set yet."msgstr "لم يُضبط شيء بعد."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "لم يُرفع أي شيء. يبقى التقرير على هذا الجهاز حتى ترسله إلينا بالبريد الإلكتروني."@@ -8873,7 +8869,7 @@ msgstr "افتح تأكيد الحذف لعناصر شجرة الملفات الmsgid "Open documents tagged #{chip}"msgstr "فتح المستندات الموسومة بـ #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "فتح مسودة البريد"@@ -10163,6 +10159,10 @@ msgstr "إعادة"msgid "Refactoring"msgstr "إعادة هيكلة"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "المرجع"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "الإبلاغ عن علة"msgid "Report a bug…"msgstr "الإبلاغ عن علة…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "مرجع التقرير"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "الإرسال إلى المحادثة ({0})"msgid "Send when the agent is free"msgstr "الإرسال عندما يكون الوكيل متفرغًا"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "أرسل تقريرك بالبريد الإلكتروني"@@ -11274,7 +11270,7 @@ msgstr "أرسل تقريرك بالبريد الإلكتروني"msgid "Sending"msgstr "يجري الإرسال"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "يجري إرسال التقرير"@@ -12587,7 +12583,7 @@ msgstr "شكرًا لاشتراكك. راقب بريدك لتحديثات المmsgid "Thanks for the feedback!"msgstr "شكرًا على ملاحظاتك!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "شكرًا على التقرير!"@@ -12772,10 +12768,6 @@ msgstr "رفض المزوّد الطلب. تحقق من مفتاح API ومعرmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "عنوان URL العام الذي يخدمه النفق الخاص بك. يقبل الخادم الطلبات الموجّهة إلى هذا المضيف ويعلن عنه في عناوين URL التي يُصدرها."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "تعذّر الوصول إلى خدمة التقارير."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "المستودع خاص وحساب GitHub الخاص بك لا يملك صلاحية الوصول إليه."@@ -13267,6 +13259,10 @@ msgstr "يحزم هذا المستودع {count} مهارة، إضافةً إلmsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "يحزم هذا المستودع {count} مهارة. ثبّت أيًّا منها من الإضافة."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "هذا التقرير في طريقه بالفعل. ستظهر نتيجته في سجل تقارير العلل."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "لم يعد هذا الطلب نشطًا."@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "جرّب موجّهًا"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "يجري رفع {keyName}"msgid "Uploading file"msgstr "يجري رفع الملف"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "يجري الرفع بأمان"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "المزامنة مع المصدر البعيد"@@ -14142,7 +14134,7 @@ msgstr "سننشئ مستودعًا ونبدأ المزامنة — بلا حاmsgid "We’ll create a safe theme ID from this name."msgstr "سننشئ معرّف سمة آمنًا من هذا الاسم."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "سجّلناه لدى الفريق وأرفقنا سجلاتك."@@ -14528,17 +14520,9 @@ msgstr "نسختك المحلية من الفرع <0>{branch}</0> متأخرة.msgid "Your message didn't reach {agentName}."msgstr "لم تصل رسالتك إلى {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "تعذّر إرسال تقريرك. أعد المحاولة أو أرسله بالبريد بدلًا من ذلك."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "يجري إرسال تقريرك."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "تقريرك محفوظ على هذا الجهاز، لذا لم يُفقد شيء. يمكنك إرساله إلينا بالبريد الإلكتروني بدلاً من ذلك."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "تقريرك محفوظ على هذا الحاسوب، فلم يُفقد شيء."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex a476e4420..437447b17 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -158,7 +158,6 @@"অনুসন্ধানে অর্থভিত্তিক ক্রম যোগ করুন যাতে ধারণাগতভাবে সম্পর্কিত পাতাগুলো অভিন্ন কীওয়ার্ড না থাকলেও সামনে আসে।"],"1NgrlY": ["ইনস্টল করার অন্যান্য উপায়"],- "1OKzC_": ["আপনার রিপোর্ট পাঠানো যায়নি। আবার চেষ্টা করুন নয়তো বদলে ইমেইল করুন।"],"1QfxQT": ["সরিয়ে দিন"],"1RluQD": ["বদলানো দেখান"],"1TNIig": ["খুলুন"],@@ -242,6 +241,7 @@"2wxgft": ["নাম বদলান"],"2zvUIK": ["এই মন্তব্যগুলি মন্তব্য প্যানেলে দেখান"],"322lyb": ["পরামর্শ, সতর্কতা ও নোট হাইলাইট করুন।"],+ "32TTpa": ["এই রিপোর্ট সম্পর্কে সাপোর্টে ইমেইল করুন"],"34qyH5": ["সার্ভারের নাগাল পাওয়া যায়নি"],"36WXSC": ["টেমপ্লেট মুছে ফেলা যায়নি: ", ["error"]],"36aWJD": ["Discord-এ আমাদের সঙ্গে যোগ দিন"],@@ -431,6 +431,7 @@["userToken"],"</1> লিখুন।"],+ "5hFl0U": ["রেফারেন্স কপি করুন"],"5jEnaB": ["এই প্ল্যাটফর্মে নেই"],"5kWklo": ["(কিছু হয়তো অন্য নিয়মে আগেই লুকানো আছে)"],"5lWFkC": ["সাইন ইন করুন"],@@ -556,6 +557,7 @@],"7PzzBU": ["ব্যবহারকারী"],"7S7FNA": ["OpenKnowledge প্রকল্প পরীক্ষা করেছে"],+ "7WnfoD": ["এই রিপোর্ট ইতিমধ্যেই পথে আছে। এর ফলাফল বাগ রিপোর্টের ইতিহাসে দেখা যাবে।"],"7Y9yTo": [["owner"], "/", ["name"], " তৈরি হয়েছে, তবে পুশ ব্যর্থ হয়েছে।"],"7YRrJ9": ["OpenKnowledge ডেস্কটপ অ্যাপে পাওয়া যায়। টার্মিনাল থেকে <0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2> ব্যবহার করুন।"@@ -598,7 +600,6 @@"87GMKe": ["এই প্রজেক্টটি নেটওয়ার্কে এক্সপোজ করবেন?"],"881Uwh": ["নির্বাচিত টেবিল মুছুন"],"89TtiD": ["প্রকল্পের রুটে টেমপ্লেট \"", ["displayTitle"], "\" (", ["fileName"], ") থেকে নতুন ফাইল"],- "89y7ar": [["sizeText"], " · গোপন তথ্য সরানো হয়েছে"],"8AjnFz": ["\"", ["0"], "\" আগেই আমদানি করা হয়েছিল (একই বিষয়বস্তু)।"],"8F1i42": ["পাতা পাওয়া যায়নি"],"8FqTCr": [@@ -627,6 +628,7 @@],"8Uv5e6": ["এজেন্ট"],"8Vq20-": ["ওয়ার্কট্রি বদলান"],+ "8W9CF6": ["এই রিপোর্ট আগে থেকেই পাঠানো হচ্ছে"],"8WTrGF": ["এই ফাইলে ", ["summary"], "। বিস্তারিত জানতে সমস্যা প্যানেল খুলুন।"],"8Wav8y": ["আপনি যা সম্পাদনা করছেন তার জন্য কোনো হালনাগাদ এলে আপনি বেছে নেন কোন সংস্করণটি রাখবেন, ঠিক মার্জ দ্বন্দ্বের মতো।"@@ -693,7 +695,6 @@],"9Vh9Jf": ["আপনার ব্রাউজার দিয়ে সাইন ইন করতে এই জানালাটি আবার খুলুন"],"9Vnjc9": ["Enter"],- "9XIEYq": ["ফাইলটি একটি ইমেইলে <0/>-এ সংযুক্ত করুন"],"9Y6cCI": ["পৃষ্ঠা লোড করা যায়নি"],"9_2oe6": [["0"],@@ -1286,9 +1287,6 @@"HbcQYf": [["display"], "-এ থাকা সিমলিংকটি স্কিলের একটি স্বতন্ত্র অনুলিপি দিয়ে বদলাবেন? আর কিছু সরে না।"],"HdS4Ft": ["আপনার সর্বশেষ খোলা নথি পুনরুদ্ধার করা যায়নি।"],"HdkSiO": ["নতুন ফাইল"],- "HepFJQ": [- "আপনার রিপোর্ট এই কম্পিউটারে সংরক্ষিত আছে, তাই কিছুই হারায়নি। আপনি এর বদলে আমাদের ইমেল করতে পারেন।"- ],"HfI1dR": ["এটি আমার কাছে আগে থেকেই স্থানীয়ভাবে আছে →"],"HjNrT0": [["0", "plural", { "one": ["#", " ব্যাকলিংক"], "other": ["#", " ব্যাকলিংক"] }]],"Hl89Qd": ["টেমপ্লেট লোড হচ্ছে"],@@ -1570,7 +1568,6 @@"LvdLef": ["মতামতের জন্য ধন্যবাদ!"],"LwMxXg": ["ওয়ার্কট্রি খুলতে ব্যর্থ।"],"LzM_ga": ["স্কিল ছাঁকুন"],- "M-IF14": ["রিপোর্ট রেফারেন্স"],"M0jOcG": ["সোর্স markdown-এ দেখুন"],"M1OfV9": ["পরবর্তী সোর্স নির্ণয়"],"M3ytY_": ["এটি একটি ড্রাইভের রুট মনে হচ্ছে (যেমন C:\\)। এখানে কাঠামো গড়লে পুরো ড্রাইভ স্ক্যান হবে।"],@@ -1599,7 +1596,6 @@"MI6Z0f": ["কার্সরে ঢোকানোর জন্য একটি ইমোজি বাছুন।"],"MIF36T": ["ফর্কটি মীমাংসা করা যায়নি: ", ["0"]],"MILoeL": ["পরিষেবা"],- "MJqRO6": ["আপনার রিপোর্ট পাঠানো হচ্ছে।"],"MJuO1q": ["প্রসঙ্গ জানালা:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " সংস্করণ ", ["1"]],@@ -1652,6 +1648,7 @@"N1KkEO": ["শেষ ট্যাবে যান"],"N1YYa7": ["ছবি লোড হচ্ছে"],"N1mdmS": ["এই ফাইলটি টেক্সট সম্পাদকে খোলা যায় না।"],+ "N2C89m": ["রেফারেন্স"],"N2FcBE": ["সিঙ্ক হয়েছে"],"N2S1rs": ["খালি"],"N2eHWq": ["কোড ব্লক"],@@ -1773,7 +1770,6 @@"OXdGnd": ["সমস্যা"],"OYnx7O": ["পথ \"/\" দিয়ে শুরু হতে পারে না"],"OZavHH": [["0"], "/-এর নিচের সবকিছু"],- "Oawo4U": ["রিপোর্ট সেবার নাগাল পাওয়া যায়নি।"],"OdmsFg": ["আইটেম মুছতে ব্যর্থ"],"OeAl1e": ["যেমন assets/uploads"],"OfhWJH": ["রিসেট করুন"],@@ -2607,7 +2603,6 @@],"_Bix3-": [["localizedFirstMessage"], "-এর উপস্থিতিগুলি"],"_DwR-n": ["তৈরি হচ্ছে…"],- "_FLBbi": [["sizeText"], " · গোপন তথ্য সরানো হয়েছে · ক্র্যাশ ডাম্প থেকে সরানো হয়নি"],"_G7A92": ["index.md বজায় রাখুন"],"_GRWOJ": ["এমবেডিং সরবরাহকারী বদলাবেন?"],"_HgF9q": ["এই অনুযায়ী সাজান"],@@ -3035,7 +3030,6 @@"fvrHin": ["এই মেশিনের প্রতিটি প্রকল্পে পাওয়া যায়। git-এর মাধ্যমে ভাগ করা হয় না।"],"fwhX-N": ["সোর্স ভেতরে বা বাইরে নিন"],"fwrPh4": ["অনুগ্রহ করে একটি বৈধ ইমেইল দিন।"],- "fxJk_6": ["<0>আরও কিছু যোগ করার আছে?</0> <1/>-এ লিখুন এবং আপনার রেফারেন্স উল্লেখ করুন।"],"fxbCNQ": ["সিঙ্ক হয়েছে। লিংকটি হালনাগাদ।"],"g-dkjJ": ["স্থানীয় ফাইলের বিবরণ এখনও উপলব্ধ নয়।"],"g12y1g": ["অবৈধ YAML"],@@ -3893,7 +3887,6 @@"qjHMHf": ["সিঙ্ক নিষ্ক্রিয় করতে ব্যর্থ — ", ["detail"]],"qkqG0b": ["আপস্ট্রিমেরটি নিন"],"qlAIQ1": ["রিমোট"],- "qmL1UG": ["নিরাপদে আপলোড করা হচ্ছে"],"qo4zCg": ["পথে ব্যাকস্ল্যাশ থাকতে পারে না"],"qpQwGC": ["আপনি কী নিয়ে কাজ করছেন তার বর্ণনা দিন, এজেন্ট আপনার জন্য সেটি সাজিয়ে দেবে।"],"qribBG": ["স্কিমা ", ["deleteTarget"]],@@ -3907,6 +3900,7 @@"r6ncaO": ["ট্যাব বন্ধ করুন"],"r6y-jM": ["সতর্কতা"],"r7IaYp": ["Open Knowledge Format নির্দেশিকা"],+ "r7tQuq": ["আপনার রিপোর্ট এই কম্পিউটারে সংরক্ষিত আছে, তাই কিছুই হারায়নি।"],"r871ed": ["আপনার জ্ঞানভাণ্ডার এখন GitHub-এ <0>", ["ownerLogin"], "/", ["repoName"], "</0>-এ আছে।"],"rDOuNw": ["টেমপ্লেট আমদানি করতে ব্যর্থ"],"rENNI6": ["শেয়ার URL সঠিক নয়।"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex fc6b6add1..0e046f029 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -383,8 +383,8 @@ msgstr "{0} এই ফোল্ডারটি ভাগ করে।"msgid "{0} templates available"msgstr "{0}টি টেমপ্লেট আছে"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "মোট {0}"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} প্রপার্টি"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} একটি বৈধ ব্রাঞ্চ নাম নয়।"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছে"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছে · {fileCount, plural, one {# ফাইল} other {# ফাইল}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছে · {fileCount, plural, one {# ফাইল} other {# ফাইল}} · ক্র্যাশ ডাম্প থেকে সরানো হয়নি"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · গোপন তথ্য সরানো হয়েছে · ক্র্যাশ ডাম্প থেকে সরানো হয়নি"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {স্কিল} other {স্কিল}}"@@ -1004,10 +996,6 @@ msgstr "<{descriptorLabel}> রেন্ডার করা যায়নি (msgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> ও <1>~/.ok/env.sh</1> দুই ক্ষেত্রেই থেকে যায় — অ্যাপ সবসময় সেগুলো রক্ষণাবেক্ষণ করে।"-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>আরও কিছু যোগ করার আছে?</0> <1/>-এ লিখুন এবং আপনার রেফারেন্স উল্লেখ করুন।"-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>মিরর — একটি উৎস বাছুন।</0> অন্য কোথাও থাকা কোনো <3><MirrorSource></3>-এর দিকে নির্দেশ করতে প্রপার্টি প্যানেল থেকে <1>src</1> + <2>anchor</2> নির্ধারণ করুন।"@@ -1630,6 +1618,10 @@ msgstr "আগে থেকেই ইনস্টল করা — আমদাmsgid "Already open"msgstr "আগে থেকেই খোলা"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "এই রিপোর্ট আগে থেকেই পাঠানো হচ্ছে"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "আগে থেকেই সেট আপ করা — ok আপনার টার্মিনালে আছে"@@ -1865,10 +1857,6 @@ msgstr "একটি ফাইল সংযুক্ত করুন"msgid "Attach images"msgstr "ছবি সংযুক্ত করুন"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "ফাইলটি একটি ইমেইলে <0/>-এ সংযুক্ত করুন"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2173,8 +2161,8 @@ msgstr "skills.sh ব্রাউজ করুন"msgid "Browse your repos:"msgstr "আপনার রিপোজিটরি ব্রাউজ করুন:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "বাগ রিপোর্ট {0}"@@ -2648,7 +2636,6 @@ msgstr "ক্লোন করা হচ্ছে…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3208,6 +3195,7 @@ msgstr "পথ কপি হয়েছে"msgid "Copied relative path"msgstr "আপেক্ষিক পথ কপি হয়েছে"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "কপি হয়েছে!"@@ -3289,6 +3277,10 @@ msgstr "পথ কপি করুন"msgid "Copy Path"msgstr "পথ কপি করুন"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "রেফারেন্স কপি করুন"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "আপেক্ষিক পথ কপি করুন"@@ -3876,7 +3868,7 @@ msgstr "কী সংরক্ষণ করা যায়নি — অনুmsgid "Couldn't save the resolution for {filePath}."msgstr "{filePath}-এর মীমাংসা সংরক্ষণ করা যায়নি।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "রিপোর্ট পাঠানো যায়নি"@@ -4517,6 +4509,7 @@ msgstr "সংযোগ বিচ্ছিন্ন করুন"msgid "Disconnecting"msgstr "সংযোগ বিচ্ছিন্ন করা হচ্ছে"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4627,7 +4620,6 @@ msgstr "সম্পন্ন"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4921,6 +4913,10 @@ msgstr "ইমেইল"msgid "Email address"msgstr "ইমেইল ঠিকানা"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "এই রিপোর্ট সম্পর্কে সাপোর্টে ইমেইল করুন"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "ইমেইল করা হয়েছে"@@ -8611,7 +8607,7 @@ msgstr "কিছুই নয় ({0} একটি বৈধ প্যাটাmsgid "Nothing set yet."msgstr "এখনও কিছুই নির্ধারিত হয়নি।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "কিছুই আপলোড করা হয়নি। আপনি আমাদের ইমেল না করা পর্যন্ত রিপোর্টটি এই কম্পিউটারেই থাকে।"@@ -8869,7 +8865,7 @@ msgstr "নির্বাচিত ফাইল-ট্রি আইটেমগmsgid "Open documents tagged #{chip}"msgstr "#{chip} ট্যাগযুক্ত নথি খুলুন"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "ইমেইলের খসড়া খুলুন"@@ -10159,6 +10155,10 @@ msgstr "পুনরায় করুন"msgid "Refactoring"msgstr "পুনর্গঠন"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "রেফারেন্স"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10511,10 +10511,6 @@ msgstr "একটি বাগ জানান"msgid "Report a bug…"msgstr "একটি বাগ জানান…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "রিপোর্ট রেফারেন্স"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11261,7 +11257,7 @@ msgstr "আলাপে পাঠান ({0})"msgid "Send when the agent is free"msgstr "এজেন্ট মুক্ত হলে পাঠান"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "আপনার রিপোর্ট ইমেইলে পাঠান"@@ -11270,7 +11266,7 @@ msgstr "আপনার রিপোর্ট ইমেইলে পাঠানmsgid "Sending"msgstr "পাঠানো হচ্ছে"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "রিপোর্ট পাঠানো হচ্ছে"@@ -12583,7 +12579,7 @@ msgstr "সদস্য হওয়ার জন্য ধন্যবাদ।msgid "Thanks for the feedback!"msgstr "মতামতের জন্য ধন্যবাদ!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "রিপোর্টের জন্য ধন্যবাদ!"@@ -12768,10 +12764,6 @@ msgstr "সরবরাহকারী অনুরোধটি প্রত্msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "আপনার টানেল যে পাবলিক URL পরিবেশন করে। সার্ভার এই হোস্টের জন্য অনুরোধ গ্রহণ করে এবং এটি যে URL জারি করে তাতে সেটি প্রচার করে।"-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "রিপোর্ট সেবার নাগাল পাওয়া যায়নি।"-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "রিপোজিটরিটি ব্যক্তিগত এবং আপনার GitHub অ্যাকাউন্টের সেখানে প্রবেশাধিকার নেই।"@@ -13263,6 +13255,10 @@ msgstr "এই রিপোজিটরিতে {count}টি স্কিলmsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "এই রিপোজিটরিতে {count}টি স্কিল আছে। এগুলোর যেকোনোটি প্লাগইন থেকে ইনস্টল করুন।"+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "এই রিপোর্ট ইতিমধ্যেই পথে আছে। এর ফলাফল বাগ রিপোর্টের ইতিহাসে দেখা যাবে।"+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "এই অনুরোধটি আর সক্রিয় নয়।"@@ -13499,9 +13495,9 @@ msgid "Try a prompt"msgstr "একটি প্রম্পট চেষ্টা করে দেখুন"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13898,10 +13894,6 @@ msgstr "{keyName} আপলোড করা হচ্ছে"msgid "Uploading file"msgstr "ফাইল আপলোড করা হচ্ছে"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "নিরাপদে আপলোড করা হচ্ছে"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "আপস্ট্রিম সিঙ্ক"@@ -14138,7 +14130,7 @@ msgstr "আমরা একটি রিপোজিটরি তৈরি কmsgid "We’ll create a safe theme ID from this name."msgstr "এই নাম থেকে আমরা একটি নিরাপদ থিম আইডি তৈরি করব।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "আমরা এটি দলের কাছে জমা দিয়েছি এবং আপনার লগ সংযুক্ত করেছি।"@@ -14524,17 +14516,9 @@ msgstr "ব্রাঞ্চ <0>{branch}</0>-এর আপনার স্থmsgid "Your message didn't reach {agentName}."msgstr "আপনার বার্তা {agentName}-এ পৌঁছায়নি।"-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "আপনার রিপোর্ট পাঠানো যায়নি। আবার চেষ্টা করুন নয়তো বদলে ইমেইল করুন।"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "আপনার রিপোর্ট পাঠানো হচ্ছে।"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "আপনার রিপোর্ট এই কম্পিউটারে সংরক্ষিত আছে, তাই কিছুই হারায়নি। আপনি এর বদলে আমাদের ইমেল করতে পারেন।"+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "আপনার রিপোর্ট এই কম্পিউটারে সংরক্ষিত আছে, তাই কিছুই হারায়নি।"#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex 91fe60f2d..26833e00b 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -162,7 +162,6 @@"Add meaning-based ranking to search so conceptually-related pages surface even when they share no keywords."],"1NgrlY": ["Other ways to install"],- "1OKzC_": ["Your report couldn't be sent. Try again or email it instead."],"1QfxQT": ["Dismiss"],"1RluQD": ["Show replace"],"1TNIig": ["Open"],@@ -246,6 +245,7 @@"2wxgft": ["Rename"],"2zvUIK": ["Show these comments in the Comments panel"],"322lyb": ["Highlight tips, warnings, and notes."],+ "32TTpa": ["Email support about this report"],"34qyH5": ["Could not reach server"],"36WXSC": ["Couldn't delete template: ", ["error"]],"36aWJD": ["Join us on Discord"],@@ -436,6 +436,7 @@["userToken"],"</1> to fill in today's date or the author's name automatically."],+ "5hFl0U": ["Copy reference"],"5jEnaB": ["Not available on this platform"],"5kWklo": ["(some may already be hidden by other rules)"],"5lWFkC": ["Sign in"],@@ -561,6 +562,9 @@],"7PzzBU": ["User"],"7S7FNA": ["OpenKnowledge checked the project"],+ "7WnfoD": [+ "This report is already on its way. Its result will appear in your bug report history."+ ],"7Y9yTo": ["Created ", ["owner"], "/", ["name"], ", push failed."],"7YRrJ9": ["Available in the OpenKnowledge desktop app. From a terminal, use<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -613,7 +617,6 @@["fileName"],") in the project root"],- "89y7ar": [["sizeText"], " · secrets redacted"],"8AjnFz": ["\"", ["0"], "\" was already imported (identical content)."],"8F1i42": ["Page not found"],"8FqTCr": [@@ -642,6 +645,7 @@],"8Uv5e6": ["Agents"],"8Vq20-": ["Switch worktree"],+ "8W9CF6": ["Already sending this report"],"8WTrGF": [["summary"], " in this file. Open the Problems panel for details."],"8Wav8y": ["If an update arrives for something you are editing, you choose which version to keep, like a merge conflict."@@ -708,7 +712,6 @@],"9Vh9Jf": ["Reopen this window to sign in with your browser"],"9Vnjc9": ["Enter"],- "9XIEYq": ["Attach the file in an email to <0/>"],"9Y6cCI": ["Failed to load pages"],"9_2oe6": ["Turn ",@@ -1323,9 +1326,6 @@],"HdS4Ft": ["Your last open document couldn't be restored."],"HdkSiO": ["New file"],- "HepFJQ": [- "Your report is saved on this computer, so nothing was lost. You can email it to us instead."- ],"HfI1dR": ["I already have it locally →"],"HjNrT0": [["0", "plural", { "one": ["#", " backlink"], "other": ["#", " backlinks"] }]],"Hl89Qd": ["Loading templates"],@@ -1613,7 +1613,6 @@"LvdLef": ["Thanks for the feedback!"],"LwMxXg": ["Failed to open worktree."],"LzM_ga": ["Filter skills"],- "M-IF14": ["Report reference"],"M0jOcG": ["View in source markdown"],"M1OfV9": ["Next source diagnostic"],"M3ytY_": [@@ -1647,7 +1646,6 @@"MI6Z0f": ["Pick an emoji to insert at the cursor."],"MIF36T": ["Couldn't resolve the fork: ", ["0"]],"MILoeL": ["Services"],- "MJqRO6": ["Your report is being sent."],"MJuO1q": ["Context window:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " version ", ["1"]],@@ -1702,6 +1700,7 @@"N1KkEO": ["Jump to last tab"],"N1YYa7": ["Loading image"],"N1mdmS": ["This file can't be opened in the text editor."],+ "N2C89m": ["Reference"],"N2FcBE": ["Synced"],"N2S1rs": ["Empty"],"N2eHWq": ["Code Block"],@@ -1823,7 +1822,6 @@"OXdGnd": ["Problems"],"OYnx7O": ["Path cannot start with \"/\""],"OZavHH": ["everything under ", ["0"], "/"],- "Oawo4U": ["The report service couldn't be reached."],"OdmsFg": ["Failed to delete item"],"OeAl1e": ["e.g. assets/uploads"],"OfhWJH": ["Reset"],@@ -2661,7 +2659,6 @@],"_Bix3-": ["Occurrences of ", ["localizedFirstMessage"]],"_DwR-n": ["Creating…"],- "_FLBbi": [["sizeText"], " · secrets redacted · crash dump not redacted"],"_G7A92": ["Maintain index.md"],"_GRWOJ": ["Change the embeddings provider?"],"_HgF9q": ["Sort by"],@@ -3112,7 +3109,6 @@"fvrHin": ["Available in every project on this machine. Not shared through git."],"fwhX-N": ["Indent or outdent source"],"fwrPh4": ["Please enter a valid email."],- "fxJk_6": ["<0>Have more to add?</0> Write to <1/> and mention your reference."],"fxbCNQ": ["Synced. The link is up to date."],"g-dkjJ": ["Local file details aren't available yet."],"g12y1g": ["Invalid YAML"],@@ -4015,7 +4011,6 @@"qjHMHf": ["Failed to disable sync — ", ["detail"]],"qkqG0b": ["Take upstream"],"qlAIQ1": ["Remote"],- "qmL1UG": ["Uploading securely"],"qo4zCg": ["Path cannot contain backslashes"],"qpQwGC": ["Describe what you're working on and the agent sets it up for you."],"qribBG": ["schema ", ["deleteTarget"]],@@ -4029,6 +4024,7 @@"r6ncaO": ["Close tab"],"r6y-jM": ["Warning"],"r7IaYp": ["Open Knowledge Format guidance"],+ "r7tQuq": ["Your report is saved on this computer, so nothing was lost."],"r871ed": ["Your knowledge base is now on GitHub at <0>",["ownerLogin"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 6554fb583..8936127e8 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -383,8 +383,8 @@ msgstr "{0} share this folder."msgid "{0} templates available"msgstr "{0} templates available"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} total"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} properties"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} isn't a valid branch name."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · secrets redacted"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · secrets redacted · {fileCount, plural, one {# file} othermsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · secrets redacted · crash dump not redacted"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {skill} other {skills}}"@@ -1008,10 +1000,6 @@ msgstr "<{descriptorLabel}> failed to render (likely a bad prop). Copy the sourcmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>Have more to add?</0> Write to <1/> and mention your reference."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."@@ -1634,6 +1622,10 @@ msgstr "Already installed — nothing new to import."msgid "Already open"msgstr "Already open"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "Already sending this report"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "Already set up — ok is available in your terminal"@@ -1869,10 +1861,6 @@ msgstr "Attach a file"msgid "Attach images"msgstr "Attach images"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "Attach the file in an email to <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "Browse skills.sh"msgid "Browse your repos:"msgstr "Browse your repos:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "Bug report {0}"@@ -2652,7 +2640,6 @@ msgstr "Cloning..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "Copied path"msgid "Copied relative path"msgstr "Copied relative path"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "Copied!"@@ -3293,6 +3281,10 @@ msgstr "Copy path"msgid "Copy Path"msgstr "Copy Path"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "Copy reference"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "Copy relative path"@@ -3880,7 +3872,7 @@ msgstr "Couldn't save the key — please try again."msgid "Couldn't save the resolution for {filePath}."msgstr "Couldn't save the resolution for {filePath}."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "Couldn't send the report"@@ -4521,6 +4513,7 @@ msgstr "Disconnect"msgid "Disconnecting"msgstr "Disconnecting"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "done"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "Email"msgid "Email address"msgstr "Email address"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "Email support about this report"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "Emailed"@@ -8615,7 +8611,7 @@ msgstr "nothing ({0} is not a valid pattern)"msgid "Nothing set yet."msgstr "Nothing set yet."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "Nothing was uploaded. The report stays on this computer until you email it to us."@@ -8873,7 +8869,7 @@ msgstr "Open delete confirmation for the selected file-tree items."msgid "Open documents tagged #{chip}"msgstr "Open documents tagged #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "Open email draft"@@ -10163,6 +10159,10 @@ msgstr "Redo"msgid "Refactoring"msgstr "Refactoring"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "Reference"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "Report a bug"msgid "Report a bug…"msgstr "Report a bug…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "Report reference"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "Send to chat ({0})"msgid "Send when the agent is free"msgstr "Send when the agent is free"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "Send your report by email"@@ -11274,7 +11270,7 @@ msgstr "Send your report by email"msgid "Sending"msgstr "Sending"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "Sending report"@@ -12587,7 +12583,7 @@ msgstr "Thanks for subscribing. Watch your inbox for product updates."msgid "Thanks for the feedback!"msgstr "Thanks for the feedback!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "Thanks for the report!"@@ -12772,10 +12768,6 @@ msgstr "The provider rejected the request. Check the API key and the model id."msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "The report service couldn't be reached."-#: src/components/ShareReceiveDialog.tsxmsgid "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."@@ -13267,6 +13259,10 @@ msgstr "This repo bundles {count} skills, plus {0}. Install any of them from themsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "This repo bundles {count} skills. Install any of them from the plugin."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "This report is already on its way. Its result will appear in your bug report history."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "This request is no longer active."@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "Try a prompt"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "Uploading {keyName}"msgid "Uploading file"msgstr "Uploading file"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "Uploading securely"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "Upstream sync"@@ -14142,7 +14134,7 @@ msgstr "We'll create a repository and start syncing — no terminal needed."msgid "We’ll create a safe theme ID from this name."msgstr "We’ll create a safe theme ID from this name."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "We've filed it with the team and attached your logs."@@ -14528,17 +14520,9 @@ msgstr "Your local copy of branch <0>{branch}</0> is behind. Pull the latest chamsgid "Your message didn't reach {agentName}."msgstr "Your message didn't reach {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "Your report couldn't be sent. Try again or email it instead."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "Your report is being sent."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "Your report is saved on this computer, so nothing was lost. You can email it to us instead."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "Your report is saved on this computer, so nothing was lost."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex dc3c03fdd..ef759c2ad 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -186,7 +186,6 @@"Añade a la búsqueda una clasificación por significado para que aparezcan páginas relacionadas conceptualmente aunque no compartan palabras clave."],"1NgrlY": ["Otras formas de instalarlo"],- "1OKzC_": ["No se pudo enviar tu informe. Inténtalo de nuevo o mándalo por correo."],"1QfxQT": ["Descartar"],"1RluQD": ["Mostrar reemplazar"],"1TNIig": ["Abrir"],@@ -274,6 +273,7 @@"2wxgft": ["Renombrar"],"2zvUIK": ["Mostrar estos comentarios en el panel de comentarios"],"322lyb": ["Resalta consejos, advertencias y notas."],+ "32TTpa": ["Escribir a soporte sobre este informe"],"34qyH5": ["No se pudo contactar con el servidor"],"36WXSC": ["No se pudo eliminar la plantilla: ", ["error"]],"36aWJD": ["Únete a nosotros en Discord"],@@ -517,6 +517,7 @@["userToken"],"</1> para rellenar automáticamente la fecha de hoy o el nombre del autor."],+ "5hFl0U": ["Copiar referencia"],"5jEnaB": ["No disponible en esta plataforma"],"5kWklo": ["(puede que otras reglas ya oculten algunos)"],"5lWFkC": ["Iniciar sesión"],@@ -665,6 +666,9 @@],"7PzzBU": ["Usuario"],"7S7FNA": ["OpenKnowledge revisó el proyecto"],+ "7WnfoD": [+ "Este informe ya va en camino. Su resultado aparecerá en el historial de informes de error."+ ],"7Y9yTo": ["Se creó ", ["owner"], "/", ["name"], ", pero falló el envío."],"7YRrJ9": ["Disponible en la aplicación de escritorio de OpenKnowledge. Desde una terminal, usa<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -725,7 +729,6 @@["fileName"],") en la raíz del proyecto"],- "89y7ar": [["sizeText"], " · secretos ocultos"],"8AjnFz": ["\"", ["0"], "\" ya se había importado (contenido idéntico)."],"8F1i42": ["No se encontró la página"],"8FqTCr": [@@ -760,6 +763,7 @@],"8Uv5e6": ["Agentes"],"8Vq20-": ["Cambiar de worktree"],+ "8W9CF6": ["Este informe ya se está enviando"],"8WTrGF": [["summary"], " en este archivo. Abre el panel Problemas para ver los detalles."],"8Wav8y": ["Si llega una actualización de algo que estás editando, tú eliges qué versión conservar, como en un conflicto de fusión."@@ -830,7 +834,6 @@],"9Vh9Jf": ["Vuelve a abrir esta ventana para iniciar sesión con tu navegador"],"9Vnjc9": ["Intro"],- "9XIEYq": ["Adjunta el archivo en un correo a <0/>"],"9Y6cCI": ["No se pudieron cargar las páginas"],"9_2oe6": ["Vuelve a convertir ",@@ -1548,9 +1551,6 @@],"HdS4Ft": ["No se pudo restaurar tu último documento abierto."],"HdkSiO": ["Archivo nuevo"],- "HepFJQ": [- "Tu informe está guardado en este equipo, así que no se perdió nada. Puedes enviárnoslo por correo."- ],"HfI1dR": ["Ya lo tengo en local →"],"HjNrT0": [[@@ -1898,7 +1898,6 @@"LvdLef": ["¡Gracias por tus comentarios!"],"LwMxXg": ["No se pudo abrir el worktree."],"LzM_ga": ["Filtrar habilidades"],- "M-IF14": ["Referencia del informe"],"M0jOcG": ["Ver en el markdown de origen"],"M1OfV9": ["Diagnóstico de código siguiente"],"M3ytY_": [@@ -1935,7 +1934,6 @@"MI6Z0f": ["Elige un emoji para insertarlo en el cursor."],"MIF36T": ["No se pudo resolver la bifurcación: ", ["0"]],"MILoeL": ["Servicios"],- "MJqRO6": ["Tu informe se está enviando."],"MJuO1q": ["Ventana de contexto:"],"MKEPCY": ["Seguir"],"MLVPcm": [["0"], " versión ", ["1"]],@@ -1992,6 +1990,7 @@"N1KkEO": ["Ir a la última pestaña"],"N1YYa7": ["Cargando la imagen"],"N1mdmS": ["Este archivo no se puede abrir en el editor de texto."],+ "N2C89m": ["Referencia"],"N2FcBE": ["Sincronizado"],"N2S1rs": ["Vacío"],"N2eHWq": ["Bloque de código"],@@ -2117,7 +2116,6 @@"OXdGnd": ["Problemas"],"OYnx7O": ["La ruta no puede empezar por \"/\""],"OZavHH": ["todo lo que hay en ", ["0"], "/"],- "Oawo4U": ["No se pudo contactar con el servicio de informes."],"OdmsFg": ["No se pudo eliminar el elemento"],"OeAl1e": ["p. ej. assets/uploads"],"OfhWJH": ["Restablecer"],@@ -3097,7 +3095,6 @@],"_Bix3-": ["Apariciones de ", ["localizedFirstMessage"]],"_DwR-n": ["Creando…"],- "_FLBbi": [["sizeText"], " · secretos ocultos · volcado de fallo sin ocultar"],"_G7A92": ["Mantener index.md"],"_GRWOJ": ["¿Cambiar el proveedor de embeddings?"],"_HgF9q": ["Ordenar por"],@@ -3642,7 +3639,6 @@"fvrHin": ["Disponible en todos los proyectos de este equipo. No se comparte por git."],"fwhX-N": ["Aumentar o reducir la sangría del código"],"fwrPh4": ["Escribe un correo válido."],- "fxJk_6": ["<0>¿Tienes algo más que añadir?</0> Escribe a <1/> y menciona tu referencia."],"fxbCNQ": ["Sincronizado. El enlace está al día."],"g-dkjJ": ["Los detalles de los archivos locales aún no están disponibles."],"g12y1g": ["YAML no válido"],@@ -4654,7 +4650,6 @@"qjHMHf": ["No se pudo desactivar la sincronización — ", ["detail"]],"qkqG0b": ["Aceptar la versión remota"],"qlAIQ1": ["Remoto"],- "qmL1UG": ["Subiendo de forma segura"],"qo4zCg": ["La ruta no puede contener barras invertidas"],"qpQwGC": ["Describe en qué estás trabajando y el agente te lo prepara."],"qribBG": ["esquema ", ["deleteTarget"]],@@ -4668,6 +4663,7 @@"r6ncaO": ["Cerrar pestaña"],"r6y-jM": ["Advertencia"],"r7IaYp": ["Guía de Open Knowledge Format"],+ "r7tQuq": ["Tu informe está guardado en este equipo, así que no se perdió nada."],"r871ed": ["Tu base de conocimiento ya está en GitHub, en <0>",["ownerLogin"],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 866ef0c02..68eec7450 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -383,8 +383,8 @@ msgstr "{0} comparten esta carpeta."msgid "{0} templates available"msgstr "{0} plantillas disponibles"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} en total"@@ -869,10 +869,6 @@ msgstr "Propiedades de {settingsDescriptorLabel}"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} no es un nombre de rama válido."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · secretos ocultos"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · secretos ocultos · {fileCount, plural, one {# archivo} many {# archivos} other {# archivos}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · secretos ocultos · {fileCount, plural, one {# archivo} mamsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · secretos ocultos · {fileCount, plural, one {# archivo} many {# archivos} other {# archivos}} · volcado de fallo sin ocultar"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · secretos ocultos · volcado de fallo sin ocultar"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {habilidad} many {habilidades} other {habilidades}}"@@ -1008,10 +1000,6 @@ msgstr "No se pudo renderizar <{descriptorLabel}> (probablemente por una propiedmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> y <1>~/.ok/env.sh</1> se conservan en cualquier caso: la aplicación siempre los mantiene."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>¿Tienes algo más que añadir?</0> Escribe a <1/> y menciona tu referencia."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>Espejo: elige una fuente.</0> Define <1>src</1> + <2>anchor</2> desde el panel de propiedades para apuntar a un <3><MirrorSource></3> de otro sitio."@@ -1634,6 +1622,10 @@ msgstr "Ya está instalado: no hay nada nuevo que importar."msgid "Already open"msgstr "Ya está abierto"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "Este informe ya se está enviando"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "Ya está configurado: ok está disponible en tu terminal"@@ -1869,10 +1861,6 @@ msgstr "Adjuntar un archivo"msgid "Attach images"msgstr "Adjuntar imágenes"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "Adjunta el archivo en un correo a <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "Explorar skills.sh"msgid "Browse your repos:"msgstr "Explora tus repositorios:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "Informe de error {0}"@@ -2652,7 +2640,6 @@ msgstr "Clonando..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "Ruta copiada"msgid "Copied relative path"msgstr "Ruta relativa copiada"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "¡Copiado!"@@ -3293,6 +3281,10 @@ msgstr "Copiar ruta"msgid "Copy Path"msgstr "Copiar ruta"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "Copiar referencia"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "Copiar ruta relativa"@@ -3880,7 +3872,7 @@ msgstr "No se pudo guardar la clave; inténtalo de nuevo."msgid "Couldn't save the resolution for {filePath}."msgstr "No se pudo guardar la resolución de {filePath}."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "No se pudo enviar el informe"@@ -4521,6 +4513,7 @@ msgstr "Desconectar"msgid "Disconnecting"msgstr "Desconectando"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "listo"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "Correo electrónico"msgid "Email address"msgstr "Dirección de correo"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "Escribir a soporte sobre este informe"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "Enviado por correo"@@ -8615,7 +8611,7 @@ msgstr "nada ({0} no es un patrón válido)"msgid "Nothing set yet."msgstr "Todavía no hay nada definido."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "No se subió nada. El informe permanece en este equipo hasta que nos lo envíes por correo."@@ -8873,7 +8869,7 @@ msgstr "Abre la confirmación de eliminación de los elementos seleccionados delmsgid "Open documents tagged #{chip}"msgstr "Abrir los documentos etiquetados con #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "Abrir el borrador de correo"@@ -10163,6 +10159,10 @@ msgstr "Rehacer"msgid "Refactoring"msgstr "Refactorización"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "Referencia"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "Informar de un error"msgid "Report a bug…"msgstr "Informar de un error…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "Referencia del informe"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "Enviar al chat ({0})"msgid "Send when the agent is free"msgstr "Enviar cuando el agente esté libre"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "Envía tu informe por correo"@@ -11274,7 +11270,7 @@ msgstr "Envía tu informe por correo"msgid "Sending"msgstr "Enviando"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "Enviando el informe"@@ -12587,7 +12583,7 @@ msgstr "Gracias por suscribirte. Estate atento a tu correo para recibir novedademsgid "Thanks for the feedback!"msgstr "¡Gracias por tus comentarios!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "¡Gracias por el informe!"@@ -12772,10 +12768,6 @@ msgstr "El proveedor rechazó la solicitud. Revisa la clave de API y el id del mmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "La URL pública que sirve tu túnel. El servidor admite solicitudes para este host y lo anuncia en las URL que emite."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "No se pudo contactar con el servicio de informes."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "El repositorio es privado y tu cuenta de GitHub no tiene acceso."@@ -13267,6 +13259,10 @@ msgstr "Este repositorio incluye {count} habilidades, además de {0}. Puedes insmsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "Este repositorio incluye {count} habilidades. Puedes instalar cualquiera de ellas desde el complemento."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "Este informe ya va en camino. Su resultado aparecerá en el historial de informes de error."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "Esta solicitud ya no está activa."@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "Prueba un prompt"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "Subiendo {keyName}"msgid "Uploading file"msgstr "Subiendo el archivo"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "Subiendo de forma segura"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "Sincronización con el remoto"@@ -14142,7 +14134,7 @@ msgstr "Crearemos un repositorio y empezaremos a sincronizar; no hace falta termmsgid "We’ll create a safe theme ID from this name."msgstr "Crearemos un ID de tema seguro a partir de este nombre."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "Lo hemos pasado al equipo y hemos adjuntado tus registros."@@ -14528,17 +14520,9 @@ msgstr "Tu copia local de la rama <0>{branch}</0> está por detrás. Trae los úmsgid "Your message didn't reach {agentName}."msgstr "Tu mensaje no llegó a {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "No se pudo enviar tu informe. Inténtalo de nuevo o mándalo por correo."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "Tu informe se está enviando."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "Tu informe está guardado en este equipo, así que no se perdió nada. Puedes enviárnoslo por correo."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "Tu informe está guardado en este equipo, así que no se perdió nada."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 6331141fb..9999e75bc 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -192,7 +192,6 @@"Ajoute à la recherche un classement fondé sur le sens, afin que les pages liées par le concept ressortent même sans mots-clés communs."],"1NgrlY": ["Autres méthodes d'installation"],- "1OKzC_": ["Votre rapport n'a pas pu être envoyé. Réessayez ou envoyez-le par e-mail."],"1QfxQT": ["Ignorer"],"1RluQD": ["Afficher le remplacement"],"1TNIig": ["Ouvrir"],@@ -286,6 +285,7 @@"2wxgft": ["Renommer"],"2zvUIK": ["Afficher ces commentaires dans le panneau des commentaires"],"322lyb": ["Mettez en avant des conseils, des avertissements et des remarques."],+ "32TTpa": ["Écrire au support à propos de ce rapport"],"34qyH5": ["Impossible de joindre le serveur"],"36WXSC": ["Impossible de supprimer le modèle : ", ["error"]],"36aWJD": ["Rejoignez-nous sur Discord"],@@ -539,6 +539,7 @@["userToken"],"</1> pour insérer automatiquement la date du jour ou le nom de l'auteur."],+ "5hFl0U": ["Copier la référence"],"5jEnaB": ["Non disponible sur cette plateforme"],"5kWklo": ["(certains sont peut-être déjà masqués par d'autres règles)"],"5lWFkC": ["Se connecter"],@@ -689,6 +690,9 @@],"7PzzBU": ["Utilisateur"],"7S7FNA": ["OpenKnowledge a vérifié le projet"],+ "7WnfoD": [+ "Ce rapport est déjà en route. Son résultat apparaîtra dans l'historique des rapports de bug."+ ],"7Y9yTo": [["owner"], "/", ["name"], " a été créé, mais l'envoi a échoué."],"7YRrJ9": ["Disponible dans l'application de bureau OpenKnowledge. Depuis un terminal, utilisez<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -749,7 +753,6 @@["fileName"],") à la racine du projet"],- "89y7ar": [["sizeText"], " · secrets masqués"],"8AjnFz": ["« ", ["0"], " » avait déjà été importé (contenu identique)."],"8F1i42": ["Page introuvable"],"8FqTCr": [@@ -784,6 +787,7 @@],"8Uv5e6": ["Agents"],"8Vq20-": ["Changer de worktree"],+ "8W9CF6": ["Ce rapport est déjà en cours d'envoi"],"8WTrGF": [["summary"], " dans ce fichier. Ouvrez le panneau Problèmes pour plus de détails."],"8Wav8y": ["Si une mise à jour arrive pour ce que vous êtes en train de modifier, vous choisissez quelle version conserver, comme pour un conflit de fusion."@@ -854,7 +858,6 @@],"9Vh9Jf": ["Rouvrez cette fenêtre pour vous connecter avec votre navigateur"],"9Vnjc9": ["Entrée"],- "9XIEYq": ["Joignez le fichier à un e-mail adressé à <0/>"],"9Y6cCI": ["Échec du chargement des pages"],"9_2oe6": ["Retransformez ",@@ -1575,9 +1578,6 @@],"HdS4Ft": ["Impossible de restaurer votre dernier document ouvert."],"HdkSiO": ["Nouveau fichier"],- "HepFJQ": [- "Votre rapport est enregistré sur cet ordinateur, rien n'a donc été perdu. Vous pouvez nous l'envoyer par e-mail à la place."- ],"HfI1dR": ["Je l'ai déjà en local →"],"HjNrT0": [[@@ -1923,7 +1923,6 @@"LvdLef": ["Merci pour votre retour !"],"LwMxXg": ["Échec de l'ouverture du worktree."],"LzM_ga": ["Filtrer les compétences"],- "M-IF14": ["Référence du rapport"],"M0jOcG": ["Voir dans la source markdown"],"M1OfV9": ["Diagnostic de source suivant"],"M3ytY_": [@@ -1960,7 +1959,6 @@"MI6Z0f": ["Choisissez un émoji à insérer au curseur."],"MIF36T": ["Impossible de résoudre la divergence : ", ["0"]],"MILoeL": ["Services"],- "MJqRO6": ["Votre rapport est en cours d'envoi."],"MJuO1q": ["Fenêtre de contexte :"],"MKEPCY": ["Suivre"],"MLVPcm": [["0"], " version ", ["1"]],@@ -2017,6 +2015,7 @@"N1KkEO": ["Aller au dernier onglet"],"N1YYa7": ["Chargement de l'image"],"N1mdmS": ["Ce fichier ne peut pas être ouvert dans l'éditeur de texte."],+ "N2C89m": ["Référence"],"N2FcBE": ["Synchronisé"],"N2S1rs": ["Vide"],"N2eHWq": ["Bloc de code"],@@ -2142,7 +2141,6 @@"OXdGnd": ["Problèmes"],"OYnx7O": ["Le chemin ne peut pas commencer par « / »"],"OZavHH": ["tout ce qui se trouve sous ", ["0"], "/"],- "Oawo4U": ["Le service de rapports n'a pas pu être joint."],"OdmsFg": ["Échec de la suppression de l'élément"],"OeAl1e": ["par ex. assets/uploads"],"OfhWJH": ["Réinitialiser"],@@ -3127,7 +3125,6 @@],"_Bix3-": ["Occurrences de ", ["localizedFirstMessage"]],"_DwR-n": ["Création…"],- "_FLBbi": [["sizeText"], " · secrets masqués · vidage de plantage non masqué"],"_G7A92": ["Maintenir index.md"],"_GRWOJ": ["Changer de fournisseur d'embeddings ?"],"_HgF9q": ["Trier par"],@@ -3671,9 +3668,6 @@"fvrHin": ["Disponible dans tous les projets de cette machine. Non partagé via git."],"fwhX-N": ["Augmenter ou réduire le retrait de la source"],"fwrPh4": ["Veuillez saisir un e-mail valide."],- "fxJk_6": [- "<0>Vous avez autre chose à ajouter ?</0> Écrivez à <1/> en mentionnant votre référence."- ],"fxbCNQ": ["Synchronisé. Le lien est à jour."],"g-dkjJ": ["Les détails des fichiers locaux ne sont pas encore disponibles."],"g12y1g": ["YAML non valide"],@@ -4705,7 +4699,6 @@"qjHMHf": ["Échec de la désactivation de la synchronisation — ", ["detail"]],"qkqG0b": ["Prendre la version amont"],"qlAIQ1": ["Distant"],- "qmL1UG": ["Envoi sécurisé"],"qo4zCg": ["Le chemin ne peut pas contenir d'antislash"],"qpQwGC": ["Décrivez ce sur quoi vous travaillez et l'agent le met en place pour vous."],"qribBG": ["schéma ", ["deleteTarget"]],@@ -4721,6 +4714,7 @@"r6ncaO": ["Fermer l'onglet"],"r6y-jM": ["Avertissement"],"r7IaYp": ["Open Knowledge Format conseils"],+ "r7tQuq": ["Votre rapport est enregistré sur cet ordinateur, rien n'a donc été perdu."],"r871ed": ["Votre base de connaissances est désormais sur GitHub, à l'adresse <0>",["ownerLogin"],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 8452598c7..5fddee214 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -383,8 +383,8 @@ msgstr "{0} partagent ce dossier."msgid "{0} templates available"msgstr "{0} modèles disponibles"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} au total"@@ -869,10 +869,6 @@ msgstr "Propriétés de {settingsDescriptorLabel}"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} n'est pas un nom de branche valide."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · secrets masqués"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · secrets masqués · {fileCount, plural, one {# fichier} many {# fichiers} other {# fichiers}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · secrets masqués · {fileCount, plural, one {# fichier} mamsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · secrets masqués · {fileCount, plural, one {# fichier} many {# fichiers} other {# fichiers}} · vidage de plantage non masqué"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · secrets masqués · vidage de plantage non masqué"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {compétence} many {compétences} other {compétences}}"@@ -1008,10 +1000,6 @@ msgstr "Le rendu de <{descriptorLabel}> a échoué (probablement une propriétémsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> et <1>~/.ok/env.sh</1> restent dans les deux cas — l'application les maintient toujours."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>Vous avez autre chose à ajouter ?</0> Écrivez à <1/> en mentionnant votre référence."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>Miroir — choisissez une source.</0> Définissez <1>src</1> + <2>anchor</2> dans le panneau des propriétés pour pointer vers un <3><MirrorSource></3> ailleurs."@@ -1634,6 +1622,10 @@ msgstr "Déjà installé — rien de nouveau à importer."msgid "Already open"msgstr "Déjà ouvert"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "Ce rapport est déjà en cours d'envoi"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "Déjà configuré — ok est disponible dans votre terminal"@@ -1869,10 +1861,6 @@ msgstr "Joindre un fichier"msgid "Attach images"msgstr "Joindre des images"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "Joignez le fichier à un e-mail adressé à <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "Parcourir skills.sh"msgid "Browse your repos:"msgstr "Parcourez vos dépôts :"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "Rapport de bug {0}"@@ -2652,7 +2640,6 @@ msgstr "Clonage…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "Chemin copié"msgid "Copied relative path"msgstr "Chemin relatif copié"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "Copié !"@@ -3293,6 +3281,10 @@ msgstr "Copier le chemin"msgid "Copy Path"msgstr "Copier le chemin"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "Copier la référence"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "Copier le chemin relatif"@@ -3880,7 +3872,7 @@ msgstr "Impossible d'enregistrer la clé — veuillez réessayer."msgid "Couldn't save the resolution for {filePath}."msgstr "Impossible d'enregistrer la résolution pour {filePath}."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "Impossible d'envoyer le rapport"@@ -4521,6 +4513,7 @@ msgstr "Déconnecter"msgid "Disconnecting"msgstr "Déconnexion"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "terminé"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "E-mail"msgid "Email address"msgstr "Adresse e-mail"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "Écrire au support à propos de ce rapport"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "Envoyé par e-mail"@@ -8615,7 +8611,7 @@ msgstr "rien ({0} n'est pas un motif valide)"msgid "Nothing set yet."msgstr "Rien de défini pour l'instant."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "Rien n'a été envoyé. Le rapport reste sur cet ordinateur jusqu'à ce que vous nous l'envoyiez par e-mail."@@ -8873,7 +8869,7 @@ msgstr "Ouvre la confirmation de suppression pour les éléments sélectionnésmsgid "Open documents tagged #{chip}"msgstr "Ouvrir les documents étiquetés #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "Ouvrir le brouillon d'e-mail"@@ -10163,6 +10159,10 @@ msgstr "Rétablir"msgid "Refactoring"msgstr "Refactorisation"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "Référence"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "Signaler un bug"msgid "Report a bug…"msgstr "Signaler un bug…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "Référence du rapport"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "Envoyer dans la discussion ({0})"msgid "Send when the agent is free"msgstr "Envoyer quand l’agent sera libre"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "Envoyez votre rapport par e-mail"@@ -11274,7 +11270,7 @@ msgstr "Envoyez votre rapport par e-mail"msgid "Sending"msgstr "Envoi en cours"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "Envoi du rapport"@@ -12587,7 +12583,7 @@ msgstr "Merci pour votre abonnement. Surveillez votre boîte mail pour les nouvemsgid "Thanks for the feedback!"msgstr "Merci pour votre retour !"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "Merci pour ce rapport !"@@ -12772,10 +12768,6 @@ msgstr "Le fournisseur a rejeté la requête. Vérifiez la clé API et l'id du mmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "L'URL publique servie par votre tunnel. Le serveur accepte les requêtes destinées à cet hôte et l'annonce dans les URL qu'il émet."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "Le service de rapports n'a pas pu être joint."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "Le dépôt est privé et votre compte GitHub n'y a pas accès."@@ -13267,6 +13259,10 @@ msgstr "Ce dépôt regroupe {count} compétences, plus {0}. Installez-en n'impormsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "Ce dépôt regroupe {count} compétences. Installez-en n'importe laquelle depuis le plugin."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "Ce rapport est déjà en route. Son résultat apparaîtra dans l'historique des rapports de bug."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "Cette requête n'est plus active."@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "Essayer une invite"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "Envoi de {keyName}"msgid "Uploading file"msgstr "Envoi du fichier"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "Envoi sécurisé"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "Synchronisation amont"@@ -14142,7 +14134,7 @@ msgstr "Nous allons créer un dépôt et démarrer la synchronisation — aucunmsgid "We’ll create a safe theme ID from this name."msgstr "Nous créerons un ID de thème sûr à partir de ce nom."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "Nous l'avons transmis à l'équipe avec vos journaux."@@ -14528,17 +14520,9 @@ msgstr "Votre copie locale de la branche <0>{branch}</0> est en retard. Tirez lemsgid "Your message didn't reach {agentName}."msgstr "Votre message n’est pas parvenu à {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "Votre rapport n'a pas pu être envoyé. Réessayez ou envoyez-le par e-mail."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "Votre rapport est en cours d'envoi."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "Votre rapport est enregistré sur cet ordinateur, rien n'a donc été perdu. Vous pouvez nous l'envoyer par e-mail à la place."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "Votre rapport est enregistré sur cet ordinateur, rien n'a donc été perdu."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex e7224e51d..0d27a3418 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -160,7 +160,6 @@"खोज में अर्थ-आधारित रैंकिंग जोड़ें ताकि वैचारिक रूप से जुड़े पेज तब भी सामने आएँ जब उनमें कोई साझा कीवर्ड न हो।"],"1NgrlY": ["इंस्टॉल करने के अन्य तरीके"],- "1OKzC_": ["आपकी रिपोर्ट नहीं भेजी जा सकी। फिर कोशिश करें या इसके बजाय इसे ईमेल करें।"],"1QfxQT": ["ख़ारिज करें"],"1RluQD": ["बदलें दिखाएँ"],"1TNIig": ["खोलें"],@@ -244,6 +243,7 @@"2wxgft": ["नाम बदलें"],"2zvUIK": ["इन टिप्पणियों को टिप्पणियाँ पैनल में दिखाएँ"],"322lyb": ["सुझाव, चेतावनियाँ और नोट उभारें।"],+ "32TTpa": ["इस रिपोर्ट के बारे में सहायता को ईमेल करें"],"34qyH5": ["सर्वर तक नहीं पहुँचा जा सका"],"36WXSC": ["टेम्पलेट नहीं हटाया जा सका: ", ["error"]],"36aWJD": ["Discord पर हमसे जुड़ें"],@@ -432,6 +432,7 @@["userToken"],"</1> लिखें।"],+ "5hFl0U": ["संदर्भ कॉपी करें"],"5jEnaB": ["इस प्लेटफ़ॉर्म पर उपलब्ध नहीं"],"5kWklo": ["(कुछ पहले से ही अन्य नियमों द्वारा छिपे हो सकते हैं)"],"5lWFkC": ["साइन इन करें"],@@ -559,6 +560,7 @@],"7PzzBU": ["उपयोगकर्ता"],"7S7FNA": ["OpenKnowledge ने प्रोजेक्ट की जाँच की"],+ "7WnfoD": ["यह रिपोर्ट पहले ही रास्ते में है। इसका नतीजा बग रिपोर्ट इतिहास में दिखेगा।"],"7Y9yTo": [["owner"], "/", ["name"], " बन गया, लेकिन पुश विफल रहा।"],"7YRrJ9": ["OpenKnowledge डेस्कटॉप ऐप में उपलब्ध। टर्मिनल से <0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2> का उपयोग करें।"@@ -601,7 +603,6 @@"87GMKe": ["क्या इस प्रोजेक्ट को नेटवर्क पर एक्सपोज़ करें?"],"881Uwh": ["चयनित तालिका हटाएँ"],"89TtiD": ["प्रोजेक्ट रूट में टेम्पलेट \"", ["displayTitle"], "\" (", ["fileName"], ") से नई फ़ाइल"],- "89y7ar": [["sizeText"], " · गोपनीय जानकारी हटाई गई"],"8AjnFz": ["\"", ["0"], "\" पहले ही आयात किया जा चुका था (समान सामग्री)।"],"8F1i42": ["पेज नहीं मिला"],"8FqTCr": [@@ -626,6 +627,7 @@],"8Uv5e6": ["एजेंट"],"8Vq20-": ["वर्कट्री बदलें"],+ "8W9CF6": ["यह रिपोर्ट पहले से भेजी जा रही है"],"8WTrGF": ["इस फ़ाइल में ", ["summary"], "। विवरण के लिए समस्याएँ पैनल खोलें।"],"8Wav8y": ["यदि आपके संपादित किए जा रहे किसी हिस्से के लिए कोई अपडेट आता है, तो आप चुनते हैं कि कौन सा संस्करण रखना है, ठीक मर्ज टकराव की तरह।"@@ -692,7 +694,6 @@],"9Vh9Jf": ["अपने ब्राउज़र से साइन इन करने के लिए यह विंडो दोबारा खोलें"],"9Vnjc9": ["Enter"],- "9XIEYq": ["फ़ाइल को एक ईमेल में <0/> पर संलग्न करें"],"9Y6cCI": ["पेज लोड नहीं हो सके"],"9_2oe6": [["0"],@@ -1284,9 +1285,6 @@"HbcQYf": [["display"], " पर मौजूद सिमलिंक को स्किल की एक स्वतंत्र प्रति से बदलें? और कुछ नहीं हिलता।"],"HdS4Ft": ["आपका पिछला खुला दस्तावेज़ पुनर्स्थापित नहीं किया जा सका।"],"HdkSiO": ["नई फ़ाइल"],- "HepFJQ": [- "आपकी रिपोर्ट इस कंप्यूटर पर सहेजी गई है, इसलिए कुछ भी नहीं खोया। आप इसके बजाय हमें ईमेल कर सकते हैं।"- ],"HfI1dR": ["यह मेरे पास पहले से स्थानीय रूप से है →"],"HjNrT0": [["0", "plural", { "one": ["#", " बैकलिंक"], "other": ["#", " बैकलिंक"] }]],"Hl89Qd": ["टेम्पलेट लोड हो रहे हैं"],@@ -1572,7 +1570,6 @@"LvdLef": ["प्रतिक्रिया के लिए धन्यवाद!"],"LwMxXg": ["वर्कट्री खोलने में विफल।"],"LzM_ga": ["स्किल फ़िल्टर करें"],- "M-IF14": ["रिपोर्ट संदर्भ"],"M0jOcG": ["स्रोत markdown में देखें"],"M1OfV9": ["अगला स्रोत निदान"],"M3ytY_": ["यह किसी ड्राइव का रूट लगता है (जैसे C:\\)। यहाँ ढाँचा बनाने पर पूरी ड्राइव स्कैन होगी।"],@@ -1604,7 +1601,6 @@"MI6Z0f": ["कर्सर पर डालने के लिए कोई इमोजी चुनें।"],"MIF36T": ["फ़ोर्क नहीं सुलझाया जा सका: ", ["0"]],"MILoeL": ["सेवाएँ"],- "MJqRO6": ["आपकी रिपोर्ट भेजी जा रही है।"],"MJuO1q": ["संदर्भ विंडो:"],"MKEPCY": ["Follow"],"MLVPcm": [["0"], " संस्करण ", ["1"]],@@ -1655,6 +1651,7 @@"N1KkEO": ["अंतिम टैब पर जाएँ"],"N1YYa7": ["छवि लोड हो रही है"],"N1mdmS": ["यह फ़ाइल पाठ संपादक में नहीं खोली जा सकती।"],+ "N2C89m": ["संदर्भ"],"N2FcBE": ["सिंक हो गया"],"N2S1rs": ["खाली"],"N2eHWq": ["कोड ब्लॉक"],@@ -1776,7 +1773,6 @@"OXdGnd": ["समस्याएँ"],"OYnx7O": ["पथ \"/\" से शुरू नहीं हो सकता"],"OZavHH": [["0"], "/ के अंतर्गत सब कुछ"],- "Oawo4U": ["रिपोर्ट सेवा तक नहीं पहुँचा जा सका।"],"OdmsFg": ["आइटम हटाने में विफल"],"OeAl1e": ["जैसे assets/uploads"],"OfhWJH": ["रीसेट करें"],@@ -2594,7 +2590,6 @@],"_Bix3-": [["localizedFirstMessage"], " की घटनाएँ"],"_DwR-n": ["बनाया जा रहा है…"],- "_FLBbi": [["sizeText"], " · गोपनीय जानकारी हटाई गई · क्रैश डंप से नहीं हटाई गई"],"_G7A92": ["index.md बनाए रखें"],"_GRWOJ": ["एम्बेडिंग प्रदाता बदलें?"],"_HgF9q": ["इसके अनुसार क्रम"],@@ -3028,7 +3023,6 @@"fvrHin": ["इस मशीन के हर प्रोजेक्ट में उपलब्ध। git के ज़रिए साझा नहीं।"],"fwhX-N": ["स्रोत को अंदर या बाहर करें"],"fwrPh4": ["कृपया एक मान्य ईमेल डालें।"],- "fxJk_6": ["<0>और कुछ जोड़ना है?</0> <1/> पर लिखें और अपने संदर्भ का उल्लेख करें।"],"fxbCNQ": ["सिंक हो गया। लिंक अद्यतित है।"],"g-dkjJ": ["स्थानीय फ़ाइल विवरण अभी उपलब्ध नहीं हैं।"],"g12y1g": ["अमान्य YAML"],@@ -3889,7 +3883,6 @@"qjHMHf": ["सिंक अक्षम करने में विफल — ", ["detail"]],"qkqG0b": ["अपस्ट्रीम वाला लें"],"qlAIQ1": ["रिमोट"],- "qmL1UG": ["सुरक्षित रूप से अपलोड किया जा रहा है"],"qo4zCg": ["पथ में बैकस्लैश नहीं हो सकते"],"qpQwGC": ["बताएँ कि आप किस पर काम कर रहे हैं और एजेंट आपके लिए इसे सेट अप कर देगा।"],"qribBG": ["स्कीमा ", ["deleteTarget"]],@@ -3903,6 +3896,7 @@"r6ncaO": ["टैब बंद करें"],"r6y-jM": ["चेतावनी"],"r7IaYp": ["Open Knowledge Format मार्गदर्शन"],+ "r7tQuq": ["आपकी रिपोर्ट इस कंप्यूटर पर सेव है, इसलिए कुछ भी नहीं खोया।"],"r871ed": ["आपका ज्ञान आधार अब GitHub पर <0>", ["ownerLogin"], "/", ["repoName"], "</0> पर है।"],"rDOuNw": ["टेम्पलेट आयात करने में विफल"],"rENNI6": ["साझा करने का URL अमान्य है।"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex fa7194b39..dc1cdb632 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -383,8 +383,8 @@ msgstr "{0} इस फ़ोल्डर को साझा करते हैmsgid "{0} templates available"msgstr "{0} टेम्पलेट उपलब्ध"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "कुल {0}"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} प्रॉपर्टी"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} एक मान्य ब्रांच नाम नहीं है।"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · गोपनीय जानकारी हटाई गई"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · गोपनीय जानकारी हटाई गई · {fileCount, plural, one {# फ़ाइल} other {# फ़ाइलें}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · गोपनीय जानकारी हटाई गmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · गोपनीय जानकारी हटाई गई · {fileCount, plural, one {# फ़ाइल} other {# फ़ाइलें}} · क्रैश डंप से नहीं हटाई गई"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · गोपनीय जानकारी हटाई गई · क्रैश डंप से नहीं हटाई गई"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {स्किल} other {स्किल}}"@@ -1004,10 +996,6 @@ msgstr "<{descriptorLabel}> रेंडर नहीं हो सका (शmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> और <1>~/.ok/env.sh</1> दोनों ही स्थिति में बने रहते हैं — ऐप हमेशा इनका रखरखाव करता है।"-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>और कुछ जोड़ना है?</0> <1/> पर लिखें और अपने संदर्भ का उल्लेख करें।"-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>मिरर — एक स्रोत चुनें।</0> कहीं और मौजूद किसी <3><MirrorSource></3> की ओर इंगित करने के लिए प्रॉपर्टी पैनल से <1>src</1> + <2>anchor</2> सेट करें।"@@ -1630,6 +1618,10 @@ msgstr "पहले से इंस्टॉल है — आयात करmsgid "Already open"msgstr "पहले से खुला है"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "यह रिपोर्ट पहले से भेजी जा रही है"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "पहले से सेट अप है — ok आपके टर्मिनल में उपलब्ध है"@@ -1865,10 +1857,6 @@ msgstr "फ़ाइल संलग्न करें"msgid "Attach images"msgstr "छवियाँ संलग्न करें"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "फ़ाइल को एक ईमेल में <0/> पर संलग्न करें"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2173,8 +2161,8 @@ msgstr "skills.sh ब्राउज़ करें"msgid "Browse your repos:"msgstr "अपनी रिपॉज़िटरी ब्राउज़ करें:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "बग रिपोर्ट {0}"@@ -2648,7 +2636,6 @@ msgstr "क्लोन किया जा रहा है…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3208,6 +3195,7 @@ msgstr "पथ कॉपी किया गया"msgid "Copied relative path"msgstr "सापेक्ष पथ कॉपी किया गया"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "कॉपी हो गया!"@@ -3289,6 +3277,10 @@ msgstr "पथ कॉपी करें"msgid "Copy Path"msgstr "पथ कॉपी करें"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "संदर्भ कॉपी करें"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "सापेक्ष पथ कॉपी करें"@@ -3876,7 +3868,7 @@ msgstr "कुंजी नहीं सहेजी जा सकी — कृmsgid "Couldn't save the resolution for {filePath}."msgstr "{filePath} का समाधान नहीं सहेजा जा सका।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "रिपोर्ट नहीं भेजी जा सकी"@@ -4517,6 +4509,7 @@ msgstr "कनेक्शन तोड़ें"msgid "Disconnecting"msgstr "कनेक्शन तोड़ा जा रहा है"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4627,7 +4620,6 @@ msgstr "पूर्ण"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4921,6 +4913,10 @@ msgstr "ईमेल"msgid "Email address"msgstr "ईमेल पता"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "इस रिपोर्ट के बारे में सहायता को ईमेल करें"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "ईमेल भेजा गया"@@ -8611,7 +8607,7 @@ msgstr "कुछ नहीं ({0} एक मान्य पैटर्नmsgid "Nothing set yet."msgstr "अभी कुछ भी सेट नहीं।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "कुछ भी अपलोड नहीं किया गया। जब तक आप हमें ईमेल नहीं करते, रिपोर्ट इसी कंप्यूटर पर रहती है।"@@ -8869,7 +8865,7 @@ msgstr "चयनित फ़ाइल-ट्री आइटम के लिmsgid "Open documents tagged #{chip}"msgstr "#{chip} टैग वाले दस्तावेज़ खोलें"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "ईमेल मसौदा खोलें"@@ -10159,6 +10155,10 @@ msgstr "फिर से करें"msgid "Refactoring"msgstr "पुनर्संरचना"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "संदर्भ"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10511,10 +10511,6 @@ msgstr "बग की रिपोर्ट करें"msgid "Report a bug…"msgstr "बग की रिपोर्ट करें…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "रिपोर्ट संदर्भ"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11261,7 +11257,7 @@ msgstr "चैट में भेजें ({0})"msgid "Send when the agent is free"msgstr "एजेंट के खाली होने पर भेजें"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "अपनी रिपोर्ट ईमेल से भेजें"@@ -11270,7 +11266,7 @@ msgstr "अपनी रिपोर्ट ईमेल से भेजें"msgid "Sending"msgstr "भेजा जा रहा है"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "रिपोर्ट भेजी जा रही है"@@ -12583,7 +12579,7 @@ msgstr "सदस्यता लेने के लिए धन्यवाmsgid "Thanks for the feedback!"msgstr "प्रतिक्रिया के लिए धन्यवाद!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "रिपोर्ट के लिए धन्यवाद!"@@ -12768,10 +12764,6 @@ msgstr "प्रदाता ने अनुरोध अस्वीकारmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "वह सार्वजनिक URL जिसे आपका tunnel सर्व करता है। सर्वर इस host के लिए अनुरोध स्वीकार करता है और अपने द्वारा जारी किए गए URL में इसका विज्ञापन करता है।"-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "रिपोर्ट सेवा तक नहीं पहुँचा जा सका।"-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "रिपॉज़िटरी निजी है और आपके GitHub खाते की उस तक पहुँच नहीं है।"@@ -13263,6 +13255,10 @@ msgstr "इस रिपॉज़िटरी में {count} स्किलmsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "इस रिपॉज़िटरी में {count} स्किल हैं। इनमें से कोई भी प्लगइन से इंस्टॉल करें।"+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "यह रिपोर्ट पहले ही रास्ते में है। इसका नतीजा बग रिपोर्ट इतिहास में दिखेगा।"+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "यह अनुरोध अब सक्रिय नहीं है।"@@ -13499,9 +13495,9 @@ msgid "Try a prompt"msgstr "कोई प्रॉम्प्ट आज़माएँ"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13898,10 +13894,6 @@ msgstr "{keyName} अपलोड किया जा रहा है"msgid "Uploading file"msgstr "फ़ाइल अपलोड की जा रही है"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "सुरक्षित रूप से अपलोड किया जा रहा है"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "अपस्ट्रीम सिंक"@@ -14138,7 +14130,7 @@ msgstr "हम एक रिपॉज़िटरी बनाकर सिंmsgid "We’ll create a safe theme ID from this name."msgstr "हम इस नाम से एक सुरक्षित थीम ID बनाएँगे।"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "हमने इसे टीम के पास दर्ज कर दिया है और आपके लॉग संलग्न कर दिए हैं।"@@ -14524,17 +14516,9 @@ msgstr "ब्रांच <0>{branch}</0> की आपकी स्थानmsgid "Your message didn't reach {agentName}."msgstr "आपका संदेश {agentName} तक नहीं पहुँचा।"-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "आपकी रिपोर्ट नहीं भेजी जा सकी। फिर कोशिश करें या इसके बजाय इसे ईमेल करें।"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "आपकी रिपोर्ट भेजी जा रही है।"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "आपकी रिपोर्ट इस कंप्यूटर पर सहेजी गई है, इसलिए कुछ भी नहीं खोया। आप इसके बजाय हमें ईमेल कर सकते हैं।"+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "आपकी रिपोर्ट इस कंप्यूटर पर सेव है, इसलिए कुछ भी नहीं खोया।"#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex 21b7c26ec..a570fd639 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -164,7 +164,6 @@"Menambahkan pemeringkatan berbasis makna ke pencarian agar halaman yang berkaitan secara konsep tetap muncul meski tidak berbagi kata kunci."],"1NgrlY": ["Cara lain untuk memasang"],- "1OKzC_": ["Laporan Anda tidak bisa dikirim. Coba lagi atau kirim lewat surel saja."],"1QfxQT": ["Tutup"],"1RluQD": ["Tampilkan penggantian"],"1TNIig": ["Buka"],@@ -250,6 +249,7 @@"2wxgft": ["Ganti nama"],"2zvUIK": ["Tampilkan komentar ini di panel komentar"],"322lyb": ["Menyoroti tip, peringatan, dan catatan."],+ "32TTpa": ["Kirim surel ke dukungan tentang laporan ini"],"34qyH5": ["Server tidak dapat dihubungi"],"36WXSC": ["Templat tidak bisa dihapus: ", ["error"]],"36aWJD": ["Gabung dengan kami di Discord"],@@ -447,6 +447,7 @@["userToken"],"</1> untuk mengisi tanggal hari ini atau nama penulis secara otomatis."],+ "5hFl0U": ["Salin referensi"],"5jEnaB": ["Tidak tersedia di platform ini"],"5kWklo": ["(sebagian mungkin sudah disembunyikan oleh aturan lain)"],"5lWFkC": ["Masuk"],@@ -571,6 +572,7 @@],"7PzzBU": ["Pengguna"],"7S7FNA": ["OpenKnowledge memeriksa proyek"],+ "7WnfoD": ["Laporan ini sudah dalam perjalanan. Hasilnya akan muncul di riwayat laporan bug."],"7Y9yTo": [["owner"], "/", ["name"], " dibuat, tetapi push gagal."],"7YRrJ9": ["Tersedia di aplikasi desktop OpenKnowledge. Dari terminal, gunakan<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -625,7 +627,6 @@["fileName"],") di akar proyek"],- "89y7ar": [["sizeText"], " · rahasia disunting"],"8AjnFz": ["\"", ["0"], "\" sudah diimpor sebelumnya (isinya sama)."],"8F1i42": ["Halaman tidak ditemukan"],"8FqTCr": [["chunksRemaining", "plural", { "other": ["#", " bagian belum diselesaikan"] }]],@@ -650,6 +651,7 @@],"8Uv5e6": ["Agen"],"8Vq20-": ["Ganti worktree"],+ "8W9CF6": ["Laporan ini sudah dikirim"],"8WTrGF": [["summary"], " di file ini. Buka panel Masalah untuk detailnya."],"8Wav8y": ["Jika sebuah pembaruan datang untuk hal yang sedang Anda sunting, Anda memilih versi mana yang disimpan, seperti konflik penggabungan."@@ -720,7 +722,6 @@],"9Vh9Jf": ["Buka lagi jendela ini untuk masuk lewat peramban Anda"],"9Vnjc9": ["Enter"],- "9XIEYq": ["Lampirkan berkasnya dalam surel ke <0/>"],"9Y6cCI": ["Gagal memuat halaman"],"9_2oe6": ["Mengubah ",@@ -1329,9 +1330,6 @@],"HdS4Ft": ["Dokumen terakhir yang Anda buka tidak dapat dipulihkan."],"HdkSiO": ["Berkas baru"],- "HepFJQ": [- "Laporan Anda tersimpan di komputer ini, jadi tidak ada yang hilang. Anda dapat mengirimkannya kepada kami lewat email."- ],"HfI1dR": ["Saya sudah punya secara lokal →"],"HjNrT0": [["0", "plural", { "other": ["#", " tautan balik"] }]],"Hl89Qd": ["Memuat templat"],@@ -1628,7 +1626,6 @@"LvdLef": ["Terima kasih atas masukannya!"],"LwMxXg": ["Gagal membuka worktree."],"LzM_ga": ["Saring keterampilan"],- "M-IF14": ["Referensi laporan"],"M0jOcG": ["Lihat di markdown sumber"],"M1OfV9": ["Diagnostik sumber berikutnya"],"M3ytY_": [@@ -1653,7 +1650,6 @@"MI6Z0f": ["Pilih sebuah emoji untuk disisipkan di posisi kursor."],"MIF36T": ["Percabangannya tidak bisa diselesaikan: ", ["0"]],"MILoeL": ["Layanan"],- "MJqRO6": ["Laporan Anda sedang dikirim."],"MJuO1q": ["Jendela konteks:"],"MKEPCY": ["Ikuti"],"MLVPcm": [["0"], " versi ", ["1"]],@@ -1710,6 +1706,7 @@"N1KkEO": ["Lompat ke tab terakhir"],"N1YYa7": ["Memuat gambar"],"N1mdmS": ["Berkas ini tidak bisa dibuka di penyunting teks."],+ "N2C89m": ["Referensi"],"N2FcBE": ["Tersinkron"],"N2S1rs": ["Kosong"],"N2eHWq": ["Blok Kode"],@@ -1833,7 +1830,6 @@"OXdGnd": ["Masalah"],"OYnx7O": ["Jalur tidak boleh diawali \"/\""],"OZavHH": ["semua yang ada di ", ["0"], "/"],- "Oawo4U": ["Layanan laporan tidak dapat dihubungi."],"OdmsFg": ["Gagal menghapus item"],"OeAl1e": ["mis. assets/uploads"],"OfhWJH": ["Setel ulang"],@@ -2675,7 +2671,6 @@],"_Bix3-": ["Kemunculan ", ["localizedFirstMessage"]],"_DwR-n": ["Membuat…"],- "_FLBbi": [["sizeText"], " · rahasia disunting · crash dump tidak disunting"],"_G7A92": ["Pertahankan index.md"],"_GRWOJ": ["Ganti penyedia embedding?"],"_HgF9q": ["Urutkan menurut"],@@ -3141,7 +3136,6 @@"fvrHin": ["Tersedia di setiap proyek pada komputer ini. Tidak dibagikan lewat git."],"fwhX-N": ["Tambah atau kurangi indentasi sumber"],"fwrPh4": ["Silakan masukkan surel yang valid."],- "fxJk_6": ["<0>Ada yang ingin ditambahkan?</0> Tulis ke <1/> dan sebutkan referensi Anda."],"fxbCNQ": ["Tersinkron. Tautannya sudah mutakhir."],"g-dkjJ": ["Detail berkas lokal belum tersedia."],"g12y1g": ["YAML tidak valid"],@@ -4041,7 +4035,6 @@"qjHMHf": ["Gagal menonaktifkan sinkronisasi — ", ["detail"]],"qkqG0b": ["Ambil versi remote"],"qlAIQ1": ["Remote"],- "qmL1UG": ["Mengunggah dengan aman"],"qo4zCg": ["Jalur tidak boleh memuat garis miring terbalik"],"qpQwGC": ["Jelaskan apa yang sedang Anda kerjakan dan agennya akan menyiapkannya untuk Anda."],"qribBG": ["skema ", ["deleteTarget"]],@@ -4055,6 +4048,7 @@"r6ncaO": ["Tutup tab"],"r6y-jM": ["Peringatan"],"r7IaYp": ["Open Knowledge Format bimbingan"],+ "r7tQuq": ["Laporan Anda tersimpan di komputer ini, jadi tidak ada yang hilang."],"r871ed": ["Basis pengetahuan Anda kini ada di GitHub di <0>",["ownerLogin"],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex a9a79db38..bb6fde320 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -383,8 +383,8 @@ msgstr "{0} berbagi folder ini."msgid "{0} templates available"msgstr "{0} templat tersedia"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} total"@@ -869,10 +869,6 @@ msgstr "Properti {settingsDescriptorLabel}"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} bukan nama cabang yang valid."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · rahasia disunting"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · rahasia disunting · {fileCount, plural, other {# berkas}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · rahasia disunting · {fileCount, plural, other {# berkas}}msgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · rahasia disunting · {fileCount, plural, other {# berkas}} · crash dump tidak disunting"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · rahasia disunting · crash dump tidak disunting"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, other {keterampilan}}"@@ -1004,10 +996,6 @@ msgstr "<{descriptorLabel}> gagal dirender (kemungkinan prop yang salah). Salinmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> dan <1>~/.ok/env.sh</1> tetap ada apa pun pilihannya — aplikasi selalu memeliharanya."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>Ada yang ingin ditambahkan?</0> Tulis ke <1/> dan sebutkan referensi Anda."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>Cermin — pilih sebuah sumber.</0> Atur <1>src</1> + <2>anchor</2> lewat panel properti agar mengarah ke <3><MirrorSource></3> di tempat lain."@@ -1630,6 +1618,10 @@ msgstr "Sudah terpasang — tidak ada yang baru untuk diimpor."msgid "Already open"msgstr "Sudah terbuka"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "Laporan ini sudah dikirim"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "Sudah disiapkan — ok tersedia di terminal Anda"@@ -1865,10 +1857,6 @@ msgstr "Lampirkan berkas"msgid "Attach images"msgstr "Lampirkan gambar"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "Lampirkan berkasnya dalam surel ke <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2173,8 +2161,8 @@ msgstr "Jelajahi skills.sh"msgid "Browse your repos:"msgstr "Jelajahi repo Anda:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "Laporan bug {0}"@@ -2648,7 +2636,6 @@ msgstr "Mengkloning..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3208,6 +3195,7 @@ msgstr "Jalur disalin"msgid "Copied relative path"msgstr "Jalur relatif disalin"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "Disalin!"@@ -3289,6 +3277,10 @@ msgstr "Salin jalur"msgid "Copy Path"msgstr "Salin Jalur"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "Salin referensi"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "Salin jalur relatif"@@ -3876,7 +3868,7 @@ msgstr "Kuncinya tidak bisa disimpan — silakan coba lagi."msgid "Couldn't save the resolution for {filePath}."msgstr "Penyelesaian untuk {filePath} tidak bisa disimpan."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "Laporannya tidak bisa dikirim"@@ -4517,6 +4509,7 @@ msgstr "Putuskan koneksi"msgid "Disconnecting"msgstr "Memutus koneksi"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4627,7 +4620,6 @@ msgstr "selesai"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4921,6 +4913,10 @@ msgstr "Surel"msgid "Email address"msgstr "Alamat surel"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "Kirim surel ke dukungan tentang laporan ini"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "Dikirim lewat surel"@@ -8611,7 +8607,7 @@ msgstr "tidak apa pun ({0} bukan pola yang valid)"msgid "Nothing set yet."msgstr "Belum ada yang disetel."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "Tidak ada yang diunggah. Laporan tetap di komputer ini sampai Anda mengirimkannya kepada kami lewat email."@@ -8869,7 +8865,7 @@ msgstr "Membuka konfirmasi penghapusan untuk item pohon berkas yang dipilih."msgid "Open documents tagged #{chip}"msgstr "Buka dokumen bertag #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "Buka draf surel"@@ -10159,6 +10155,10 @@ msgstr "Ulangi"msgid "Refactoring"msgstr "Refaktor"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "Referensi"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10511,10 +10511,6 @@ msgstr "Laporkan bug"msgid "Report a bug…"msgstr "Laporkan bug…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "Referensi laporan"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11261,7 +11257,7 @@ msgstr "Kirim ke obrolan ({0})"msgid "Send when the agent is free"msgstr "Kirim saat agen sedang senggang"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "Kirim laporan Anda lewat surel"@@ -11270,7 +11266,7 @@ msgstr "Kirim laporan Anda lewat surel"msgid "Sending"msgstr "Mengirim"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "Mengirim laporan"@@ -12583,7 +12579,7 @@ msgstr "Terima kasih sudah berlangganan. Pantau kotak masuk Anda untuk kabar termsgid "Thanks for the feedback!"msgstr "Terima kasih atas masukannya!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "Terima kasih atas laporannya!"@@ -12768,10 +12764,6 @@ msgstr "Penyedianya menolak permintaannya. Periksa kunci API dan id modelnya."msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "URL publik yang dilayani tunnel Anda. Server menerima permintaan untuk host ini dan mengumumkannya dalam URL yang diterbitkannya."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "Layanan laporan tidak dapat dihubungi."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "Repositorinya bersifat pribadi dan akun GitHub Anda tidak punya akses ke sana."@@ -13263,6 +13255,10 @@ msgstr "Repo ini memuat {count} keterampilan, ditambah {0}. Pasang salah satunyamsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "Repo ini memuat {count} keterampilan. Pasang salah satunya dari plugin."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "Laporan ini sudah dalam perjalanan. Hasilnya akan muncul di riwayat laporan bug."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "Permintaan ini sudah tidak aktif."@@ -13499,9 +13495,9 @@ msgid "Try a prompt"msgstr "Coba sebuah prompt"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13898,10 +13894,6 @@ msgstr "Mengunggah {keyName}"msgid "Uploading file"msgstr "Mengunggah berkas"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "Mengunggah dengan aman"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "Sinkronisasi hulu"@@ -14138,7 +14130,7 @@ msgstr "Kami akan membuat sebuah repositori dan mulai menyinkronkan — tanpa pemsgid "We’ll create a safe theme ID from this name."msgstr "Kami akan membuat ID tema yang aman dari nama ini."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "Kami sudah meneruskannya ke tim dan melampirkan log Anda."@@ -14524,17 +14516,9 @@ msgstr "Salinan lokal cabang <0>{branch}</0> milik Anda tertinggal. Tarik perubamsgid "Your message didn't reach {agentName}."msgstr "Pesanmu tidak sampai ke {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "Laporan Anda tidak bisa dikirim. Coba lagi atau kirim lewat surel saja."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "Laporan Anda sedang dikirim."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "Laporan Anda tersimpan di komputer ini, jadi tidak ada yang hilang. Anda dapat mengirimkannya kepada kami lewat email."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "Laporan Anda tersimpan di komputer ini, jadi tidak ada yang hilang."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex 64fcf9121..1cf74ade9 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -155,7 +155,6 @@"검색에 의미 기반 순위를 추가하여 공통 키워드가 없어도 개념적으로 관련된 페이지가 나타나게 합니다."],"1NgrlY": ["다른 설치 방법"],- "1OKzC_": ["보고서를 보내지 못했습니다. 다시 시도하거나 대신 이메일로 보내세요."],"1QfxQT": ["닫기"],"1RluQD": ["바꾸기 표시"],"1TNIig": ["열기"],@@ -239,6 +238,7 @@"2wxgft": ["이름 변경"],"2zvUIK": ["댓글 패널에서 이 댓글 보기"],"322lyb": ["팁, 경고, 노트를 강조합니다."],+ "32TTpa": ["이 보고서에 대해 지원팀에 이메일 보내기"],"34qyH5": ["서버에 연결하지 못했습니다"],"36WXSC": ["템플릿 삭제 실패: ", ["error"]],"36aWJD": ["Discord에서 함께하기"],@@ -427,6 +427,7 @@["userToken"],"</1>을 입력하면 오늘 날짜나 작성자 이름이 자동으로 채워집니다."],+ "5hFl0U": ["참조 복사"],"5jEnaB": ["이 플랫폼에서 사용할 수 없음"],"5kWklo": ["(다른 규칙으로 이미 숨겨진 항목이 있을 수 있습니다)"],"5lWFkC": ["로그인"],@@ -549,6 +550,7 @@],"7PzzBU": ["사용자"],"7S7FNA": ["OpenKnowledge에서 프로젝트 확인"],+ "7WnfoD": ["이 보고서는 이미 전송 중입니다. 결과는 버그 신고 기록에 표시됩니다."],"7Y9yTo": [["owner"], "/", ["name"], " 생성 완료. 푸시에 실패했습니다."],"7YRrJ9": ["OpenKnowledge 데스크톱 앱에서 사용할 수 있습니다. 터미널에서 <0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>를 사용합니다."@@ -601,7 +603,6 @@["fileName"],")에서 프로젝트 루트에 새 파일"],- "89y7ar": [["sizeText"], " · 시크릿이 비공개 처리됨"],"8AjnFz": ["\"", ["0"], "\"은 이미 가져와져 있습니다(내용이 동일합니다)."],"8F1i42": ["페이지를 찾을 수 없습니다"],"8FqTCr": [["chunksRemaining", "plural", { "other": ["해결되지 않은 변경 블록 ", "#", "개"] }]],@@ -626,6 +627,7 @@],"8Uv5e6": ["에이전트"],"8Vq20-": ["워크트리 전환"],+ "8W9CF6": ["이 보고서는 이미 보내는 중입니다"],"8WTrGF": ["이 파일에 ", ["summary"], "가 있습니다. 자세한 내용은 문제 패널을 여세요."],"8Wav8y": ["편집 중인 항목에 업데이트가 도착하면 병합 충돌처럼 유지할 버전을 선택합니다."],"8XQRON": ["저장소 불러오는 중"],@@ -690,7 +692,6 @@],"9Vh9Jf": ["브라우저로 로그인하려면 이 창을 다시 여세요"],"9Vnjc9": ["Enter"],- "9XIEYq": ["<0/>에 보내는 이메일에 파일 첨부"],"9Y6cCI": ["페이지 불러오기 실패"],"9_2oe6": [["0"],@@ -1277,9 +1278,6 @@],"HdS4Ft": ["마지막으로 열려 있던 문서를 복원할 수 없습니다."],"HdkSiO": ["새 파일"],- "HepFJQ": [- "보고서가 이 컴퓨터에 저장되었으므로 아무것도 손실되지 않았습니다. 대신 이메일로 보낼 수 있습니다."- ],"HfI1dR": ["이미 로컬에 있음 →"],"HjNrT0": [["0", "plural", { "other": ["#", "개 백링크"] }]],"Hl89Qd": ["템플릿 불러오는 중"],@@ -1559,7 +1557,6 @@"LvdLef": ["피드백 감사합니다!"],"LwMxXg": ["워크트리를 열지 못했습니다"],"LzM_ga": ["스킬 필터"],- "M-IF14": ["보고서 참조"],"M0jOcG": ["소스 Markdown에서 보기"],"M1OfV9": ["다음 소스 진단으로 이동"],"M3ytY_": [@@ -1586,7 +1583,6 @@"MI6Z0f": ["커서 위치에 삽입할 이모지를 선택하세요."],"MIF36T": ["포크 해결 실패: ", ["0"]],"MILoeL": ["서비스"],- "MJqRO6": ["보고서를 보내는 중입니다."],"MJuO1q": ["컨텍스트 창:"],"MKEPCY": ["팔로우"],"MLVPcm": [["0"], " 버전 ", ["1"]],@@ -1640,6 +1636,7 @@"N1KkEO": ["마지막 탭으로 이동"],"N1YYa7": ["이미지 불러오는 중"],"N1mdmS": ["이 파일은 텍스트 편집기에서 열 수 없습니다."],+ "N2C89m": ["참조"],"N2FcBE": ["동기화됨"],"N2S1rs": ["비어 있음"],"N2eHWq": ["코드 블록"],@@ -1762,7 +1759,6 @@"OXdGnd": ["문제"],"OYnx7O": ["경로가 \"/\"로 시작할 수 없음"],"OZavHH": [["0"], "/ 아래의 모든 항목"],- "Oawo4U": ["보고서 서비스에 연결할 수 없습니다."],"OdmsFg": ["항목 삭제 실패"],"OeAl1e": ["예: assets/uploads"],"OfhWJH": ["초기화"],@@ -2563,7 +2559,6 @@],"_Bix3-": [["localizedFirstMessage"], " 발생 횟수"],"_DwR-n": ["만드는 중…"],- "_FLBbi": [["sizeText"], " · 시크릿이 비공개 처리됨 · 크래시 덤프는 비공개 처리되지 않음"],"_G7A92": ["index.md 유지"],"_GRWOJ": ["임베딩 제공업체를 변경하시겠습니까?"],"_HgF9q": ["정렬 기준"],@@ -3009,7 +3004,6 @@"fvrHin": ["이 컴퓨터의 모든 프로젝트에서 사용할 수 있습니다. git으로 공유되지 않습니다."],"fwhX-N": ["소스의 들여쓰기 또는 내어쓰기를 조정합니다."],"fwrPh4": ["유효한 이메일을 입력하세요."],- "fxJk_6": ["<0>더 추가할 항목이 있나요?</0> <1/>에 작성하고 참고 자료를 알려 주세요."],"fxbCNQ": ["동기화됨. 링크가 최신 상태입니다."],"g-dkjJ": ["로컬 파일 세부 정보를 아직 사용할 수 없습니다."],"g12y1g": ["잘못된 YAML"],@@ -3853,7 +3847,6 @@"qjHMHf": ["동기화를 사용 중지하지 못했습니다. ", ["detail"]],"qkqG0b": ["업스트림 가져오기"],"qlAIQ1": ["원격"],- "qmL1UG": ["안전하게 업로드 중"],"qo4zCg": ["경로에 백슬래시를 포함할 수 없음"],"qpQwGC": ["작업 중인 내용을 설명하면 에이전트가 설정합니다."],"qribBG": ["스키마 ", ["deleteTarget"]],@@ -3867,6 +3860,7 @@"r6ncaO": ["탭 닫기"],"r6y-jM": ["경고"],"r7IaYp": ["Open Knowledge Format 안내"],+ "r7tQuq": ["보고서는 이 컴퓨터에 저장되어 있으므로 아무것도 잃지 않았습니다."],"r871ed": ["지식 베이스가 이제 GitHub의 <0>",["ownerLogin"],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex 31ee98e25..4422eabcc 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -383,8 +383,8 @@ msgstr "{0}이(가) 이 폴더를 공유합니다."msgid "{0} templates available"msgstr "템플릿 {0}개 사용 가능"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "총 {0}"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} 속성"msgid "{shareBranch} isn't a valid branch name."msgstr "유효하지 않은 브랜치 이름입니다: {shareBranch}"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · 시크릿이 비공개 처리됨"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · 시크릿이 비공개 처리됨 · {fileCount, plural, other {파일 #개}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · 시크릿이 비공개 처리됨 · {fileCount, plural, otmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · 시크릿이 비공개 처리됨 · {fileCount, plural, other {파일 #개}} · 크래시 덤프는 비공개 처리되지 않음"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · 시크릿이 비공개 처리됨 · 크래시 덤프는 비공개 처리되지 않음"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, other {스킬}}"@@ -1008,10 +1000,6 @@ msgstr "<{descriptorLabel}> 컴포넌트를 렌더링하지 못했습니다. 잘msgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> 및 <1>~/.ok/env.sh</1>는 어느 경우에도 유지됩니다. 앱이 항상 관리합니다."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>더 추가할 항목이 있나요?</0> <1/>에 작성하고 참고 자료를 알려 주세요."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>미러, 소스를 선택하세요.</0> 속성 패널에서 <1>src</1>와 <2>anchor</2>를 설정해 다른 곳의 <3><MirrorSource></3>를 가리키세요."@@ -1634,6 +1622,10 @@ msgstr "이미 설치되어 있습니다. 가져올 항목이 없습니다."msgid "Already open"msgstr "이미 열려 있음"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "이 보고서는 이미 보내는 중입니다"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "이미 설정됨. 터미널에서 ok 사용 가능"@@ -1869,10 +1861,6 @@ msgstr "파일 첨부"msgid "Attach images"msgstr "이미지 첨부"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "<0/>에 보내는 이메일에 파일 첨부"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "skills.sh 찾아보기"msgid "Browse your repos:"msgstr "저장소 찾아보기:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "버그 보고서 {0}"@@ -2652,7 +2640,6 @@ msgstr "클론 중…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "복사된 경로"msgid "Copied relative path"msgstr "상대 경로를 복사했습니다"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "복사됨!"@@ -3293,6 +3281,10 @@ msgstr "경로 복사"msgid "Copy Path"msgstr "경로 복사"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "참조 복사"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "상대 경로 복사"@@ -3880,7 +3872,7 @@ msgstr "키를 저장하지 못했습니다. 다시 시도합니다."msgid "Couldn't save the resolution for {filePath}."msgstr "{filePath}의 해결 결과를 저장하지 못했습니다."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "보고서를 보내지 못했습니다"@@ -4521,6 +4513,7 @@ msgstr "연결 해제"msgid "Disconnecting"msgstr "연결 해제 중"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "완료"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "이메일"msgid "Email address"msgstr "이메일 주소"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "이 보고서에 대해 지원팀에 이메일 보내기"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "이메일로 보냄"@@ -8615,7 +8611,7 @@ msgstr "없음 ({0}로는 유효한 패턴이 아님)"msgid "Nothing set yet."msgstr "아직 설정된 항목 없음."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "아무것도 업로드되지 않았습니다. 보고서는 이메일로 보내기 전까지 이 컴퓨터에 남아 있습니다."@@ -8873,7 +8869,7 @@ msgstr "선택한 파일 트리 항목의 삭제 확인을 엽니다."msgid "Open documents tagged #{chip}"msgstr "#{chip} 태그가 있는 문서 열기"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "이메일 초안 열기"@@ -10163,6 +10159,10 @@ msgstr "다시 실행"msgid "Refactoring"msgstr "리팩터링"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "참조"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "버그 신고"msgid "Report a bug…"msgstr "버그 신고…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "보고서 참조"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "채팅에 보내기 ({0})"msgid "Send when the agent is free"msgstr "에이전트 유휴 시 전송"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "이메일로 보고서 보내기"@@ -11274,7 +11270,7 @@ msgstr "이메일로 보고서 보내기"msgid "Sending"msgstr "보내는 중"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "보고서 보내는 중"@@ -12587,7 +12583,7 @@ msgstr "구독해 주셔서 감사합니다. 받은 편지함에서 제품 업msgid "Thanks for the feedback!"msgstr "피드백 감사합니다!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "보고서 감사합니다!"@@ -12772,10 +12768,6 @@ msgstr "제공업체가 요청을 거부했습니다. API 키와 모델 ID를msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "터널이 제공하는 공개 URL입니다. 서버는 이 호스트에 대한 요청을 허용하고 발급하는 URL에 이 주소를 사용합니다."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "보고서 서비스에 연결할 수 없습니다."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "비공개 저장소에 접근 권한이 없습니다. 접근 권한이 있는 GitHub 계정으로 로그인하세요."@@ -13267,6 +13259,10 @@ msgstr "이 저장소에는 스킬 {count}개와 {0}이 함께 들어 있습니msgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "이 저장소에는 스킬 {count}개가 들어 있습니다. 플러그인에서 원하는 항목을 설치하세요."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "이 보고서는 이미 전송 중입니다. 결과는 버그 신고 기록에 표시됩니다."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "요청 만료 또는 비활성 상태."@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "프롬프트 사용"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "{keyName} 업로드 중"msgid "Uploading file"msgstr "파일 업로드 중"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "안전하게 업로드 중"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "상위 저장소 동기화"@@ -14142,7 +14134,7 @@ msgstr "저장소를 만들고 동기화를 시작합니다. 터미널은 필요msgid "We’ll create a safe theme ID from this name."msgstr "이 이름으로 안전한 테마 ID를 만듭니다."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "팀에 전달하고 로그를 첨부했습니다."@@ -14528,17 +14520,9 @@ msgstr "브랜치 <0>{branch}</0>의 로컬 사본이 뒤처져 있습니다.msgid "Your message didn't reach {agentName}."msgstr "에이전트에 메시지 도달 실패: {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "보고서를 보내지 못했습니다. 다시 시도하거나 대신 이메일로 보내세요."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "보고서를 보내는 중입니다."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "보고서가 이 컴퓨터에 저장되었으므로 아무것도 손실되지 않았습니다. 대신 이메일로 보낼 수 있습니다."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "보고서는 이 컴퓨터에 저장되어 있으므로 아무것도 잃지 않았습니다."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 9ee91b854..4e0a566df 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -162,7 +162,6 @@"Àďď ḿēàńĩńĝ-ƀàśēď ŕàńķĩńĝ ţō śēàŕćĥ śō ćōńćēƥţũàĺĺŷ-ŕēĺàţēď ƥàĝēś śũŕƒàćē ēvēń ŵĥēń ţĥēŷ śĥàŕē ńō ķēŷŵōŕďś."],"1NgrlY": ["Ōţĥēŕ ŵàŷś ţō ĩńśţàĺĺ"],- "1OKzC_": ["Ŷōũŕ ŕēƥōŕţ ćōũĺďń'ţ ƀē śēńţ. Ţŕŷ àĝàĩń ōŕ ēḿàĩĺ ĩţ ĩńśţēàď."],"1QfxQT": ["Ďĩśḿĩśś"],"1RluQD": ["Śĥōŵ ŕēƥĺàćē"],"1TNIig": ["Ōƥēń"],@@ -246,6 +245,7 @@"2wxgft": ["Ŕēńàḿē"],"2zvUIK": ["Śĥōŵ ţĥēśē ćōḿḿēńţś ĩń ţĥē Ćōḿḿēńţś ƥàńēĺ"],"322lyb": ["Ĥĩĝĥĺĩĝĥţ ţĩƥś, ŵàŕńĩńĝś, àńď ńōţēś."],+ "32TTpa": ["Ēḿàĩĺ śũƥƥōŕţ àƀōũţ ţĥĩś ŕēƥōŕţ"],"34qyH5": ["Ćōũĺď ńōţ ŕēàćĥ śēŕvēŕ"],"36WXSC": ["Ćōũĺďń'ţ ďēĺēţē ţēḿƥĺàţē: ", ["error"]],"36aWJD": ["ĵōĩń ũś ōń Ďĩśćōŕď"],@@ -436,6 +436,7 @@["userToken"],"</1> ţō ƒĩĺĺ ĩń ţōďàŷ'ś ďàţē ōŕ ţĥē àũţĥōŕ'ś ńàḿē àũţōḿàţĩćàĺĺŷ."],+ "5hFl0U": ["Ćōƥŷ ŕēƒēŕēńćē"],"5jEnaB": ["Ńōţ àvàĩĺàƀĺē ōń ţĥĩś ƥĺàţƒōŕḿ"],"5kWklo": ["(śōḿē ḿàŷ àĺŕēàďŷ ƀē ĥĩďďēń ƀŷ ōţĥēŕ ŕũĺēś)"],"5lWFkC": ["Śĩĝń ĩń"],@@ -561,6 +562,9 @@],"7PzzBU": ["Ũśēŕ"],"7S7FNA": ["ŌƥēńĶńōŵĺēďĝē ćĥēćķēď ţĥē ƥŕōĴēćţ"],+ "7WnfoD": [+ "Ţĥĩś ŕēƥōŕţ ĩś àĺŕēàďŷ ōń ĩţś ŵàŷ. Ĩţś ŕēśũĺţ ŵĩĺĺ àƥƥēàŕ ĩń ŷōũŕ ƀũĝ ŕēƥōŕţ ĥĩśţōŕŷ."+ ],"7Y9yTo": ["Ćŕēàţēď ", ["owner"], "/", ["name"], ", ƥũśĥ ƒàĩĺēď."],"7YRrJ9": ["Àvàĩĺàƀĺē ĩń ţĥē ŌƥēńĶńōŵĺēďĝē ďēśķţōƥ àƥƥ. Ƒŕōḿ à ţēŕḿĩńàĺ, ũśē<0> ōķ ćōńƒĩĝ-śĥàŕĩńĝ śţàţũś</0> / <1>śĥàŕē</1> / <2>ũńśĥàŕē</2>."@@ -613,7 +617,6 @@["fileName"],") ĩń ţĥē ƥŕōĴēćţ ŕōōţ"],- "89y7ar": [["sizeText"], " · śēćŕēţś ŕēďàćţēď"],"8AjnFz": ["\"", ["0"], "\" ŵàś àĺŕēàďŷ ĩḿƥōŕţēď (ĩďēńţĩćàĺ ćōńţēńţ)."],"8F1i42": ["Ƥàĝē ńōţ ƒōũńď"],"8FqTCr": [@@ -642,6 +645,7 @@],"8Uv5e6": ["Àĝēńţś"],"8Vq20-": ["Śŵĩţćĥ ŵōŕķţŕēē"],+ "8W9CF6": ["Àĺŕēàďŷ śēńďĩńĝ ţĥĩś ŕēƥōŕţ"],"8WTrGF": [["summary"], " ĩń ţĥĩś ƒĩĺē. Ōƥēń ţĥē Ƥŕōƀĺēḿś ƥàńēĺ ƒōŕ ďēţàĩĺś."],"8Wav8y": ["Ĩƒ àń ũƥďàţē àŕŕĩvēś ƒōŕ śōḿēţĥĩńĝ ŷōũ àŕē ēďĩţĩńĝ, ŷōũ ćĥōōśē ŵĥĩćĥ vēŕśĩōń ţō ķēēƥ, ĺĩķē à ḿēŕĝē ćōńƒĺĩćţ."@@ -708,7 +712,6 @@],"9Vh9Jf": ["Ŕēōƥēń ţĥĩś ŵĩńďōŵ ţō śĩĝń ĩń ŵĩţĥ ŷōũŕ ƀŕōŵśēŕ"],"9Vnjc9": ["Ēńţēŕ"],- "9XIEYq": ["Àţţàćĥ ţĥē ƒĩĺē ĩń àń ēḿàĩĺ ţō <0/>"],"9Y6cCI": ["Ƒàĩĺēď ţō ĺōàď ƥàĝēś"],"9_2oe6": ["Ţũŕń ",@@ -1323,9 +1326,6 @@],"HdS4Ft": ["Ŷōũŕ ĺàśţ ōƥēń ďōćũḿēńţ ćōũĺďń'ţ ƀē ŕēśţōŕēď."],"HdkSiO": ["Ńēŵ ƒĩĺē"],- "HepFJQ": [- "Ŷōũŕ ŕēƥōŕţ ĩś śàvēď ōń ţĥĩś ćōḿƥũţēŕ, śō ńōţĥĩńĝ ŵàś ĺōśţ. Ŷōũ ćàń ēḿàĩĺ ĩţ ţō ũś ĩńśţēàď."- ],"HfI1dR": ["Ĩ àĺŕēàďŷ ĥàvē ĩţ ĺōćàĺĺŷ →"],"HjNrT0": [["0", "plural", { "one": ["#", " ƀàćķĺĩńķ"], "other": ["#", " ƀàćķĺĩńķś"] }]],"Hl89Qd": ["Ĺōàďĩńĝ ţēḿƥĺàţēś"],@@ -1613,7 +1613,6 @@"LvdLef": ["Ţĥàńķś ƒōŕ ţĥē ƒēēďƀàćķ!"],"LwMxXg": ["Ƒàĩĺēď ţō ōƥēń ŵōŕķţŕēē."],"LzM_ga": ["Ƒĩĺţēŕ śķĩĺĺś"],- "M-IF14": ["Ŕēƥōŕţ ŕēƒēŕēńćē"],"M0jOcG": ["Vĩēŵ ĩń śōũŕćē ḿàŕķďōŵń"],"M1OfV9": ["Ńēxţ śōũŕćē ďĩàĝńōśţĩć"],"M3ytY_": [@@ -1647,7 +1646,6 @@"MI6Z0f": ["Ƥĩćķ àń ēḿōĴĩ ţō ĩńśēŕţ àţ ţĥē ćũŕśōŕ."],"MIF36T": ["Ćōũĺďń'ţ ŕēśōĺvē ţĥē ƒōŕķ: ", ["0"]],"MILoeL": ["Śēŕvĩćēś"],- "MJqRO6": ["Ŷōũŕ ŕēƥōŕţ ĩś ƀēĩńĝ śēńţ."],"MJuO1q": ["Ćōńţēxţ ŵĩńďōŵ:"],"MKEPCY": ["Ƒōĺĺōŵ"],"MLVPcm": [["0"], " vēŕśĩōń ", ["1"]],@@ -1702,6 +1700,7 @@"N1KkEO": ["ĵũḿƥ ţō ĺàśţ ţàƀ"],"N1YYa7": ["Ĺōàďĩńĝ ĩḿàĝē"],"N1mdmS": ["Ţĥĩś ƒĩĺē ćàń'ţ ƀē ōƥēńēď ĩń ţĥē ţēxţ ēďĩţōŕ."],+ "N2C89m": ["Ŕēƒēŕēńćē"],"N2FcBE": ["Śŷńćēď"],"N2S1rs": ["Ēḿƥţŷ"],"N2eHWq": ["Ćōďē ßĺōćķ"],@@ -1823,7 +1822,6 @@"OXdGnd": ["Ƥŕōƀĺēḿś"],"OYnx7O": ["Ƥàţĥ ćàńńōţ śţàŕţ ŵĩţĥ \"/\""],"OZavHH": ["ēvēŕŷţĥĩńĝ ũńďēŕ ", ["0"], "/"],- "Oawo4U": ["Ţĥē ŕēƥōŕţ śēŕvĩćē ćōũĺďń'ţ ƀē ŕēàćĥēď."],"OdmsFg": ["Ƒàĩĺēď ţō ďēĺēţē ĩţēḿ"],"OeAl1e": ["ē.ĝ. àśśēţś/ũƥĺōàďś"],"OfhWJH": ["Ŕēśēţ"],@@ -2661,7 +2659,6 @@],"_Bix3-": ["Ōććũŕŕēńćēś ōƒ ", ["localizedFirstMessage"]],"_DwR-n": ["Ćŕēàţĩńĝ…"],- "_FLBbi": [["sizeText"], " · śēćŕēţś ŕēďàćţēď · ćŕàśĥ ďũḿƥ ńōţ ŕēďàćţēď"],"_G7A92": ["Ḿàĩńţàĩń ĩńďēx.ḿď"],"_GRWOJ": ["Ćĥàńĝē ţĥē ēḿƀēďďĩńĝś ƥŕōvĩďēŕ?"],"_HgF9q": ["Śōŕţ ƀŷ"],@@ -3112,7 +3109,6 @@"fvrHin": ["Àvàĩĺàƀĺē ĩń ēvēŕŷ ƥŕōĴēćţ ōń ţĥĩś ḿàćĥĩńē. Ńōţ śĥàŕēď ţĥŕōũĝĥ ĝĩţ."],"fwhX-N": ["Ĩńďēńţ ōŕ ōũţďēńţ śōũŕćē"],"fwrPh4": ["Ƥĺēàśē ēńţēŕ à vàĺĩď ēḿàĩĺ."],- "fxJk_6": ["<0>Ĥàvē ḿōŕē ţō àďď?</0> Ŵŕĩţē ţō <1/> àńď ḿēńţĩōń ŷōũŕ ŕēƒēŕēńćē."],"fxbCNQ": ["Śŷńćēď. Ţĥē ĺĩńķ ĩś ũƥ ţō ďàţē."],"g-dkjJ": ["Ĺōćàĺ ƒĩĺē ďēţàĩĺś àŕēń'ţ àvàĩĺàƀĺē ŷēţ."],"g12y1g": ["Ĩńvàĺĩď ŶÀḾĹ"],@@ -4015,7 +4011,6 @@"qjHMHf": ["Ƒàĩĺēď ţō ďĩśàƀĺē śŷńć — ", ["detail"]],"qkqG0b": ["Ţàķē ũƥśţŕēàḿ"],"qlAIQ1": ["Ŕēḿōţē"],- "qmL1UG": ["Ũƥĺōàďĩńĝ śēćũŕēĺŷ"],"qo4zCg": ["Ƥàţĥ ćàńńōţ ćōńţàĩń ƀàćķśĺàśĥēś"],"qpQwGC": ["Ďēśćŕĩƀē ŵĥàţ ŷōũ'ŕē ŵōŕķĩńĝ ōń àńď ţĥē àĝēńţ śēţś ĩţ ũƥ ƒōŕ ŷōũ."],"qribBG": ["śćĥēḿà ", ["deleteTarget"]],@@ -4029,6 +4024,7 @@"r6ncaO": ["Ćĺōśē ţàƀ"],"r6y-jM": ["Ŵàŕńĩńĝ"],"r7IaYp": ["Ōƥēń Ķńōŵĺēďĝē Ƒōŕḿàţ ĝũĩďàńćē"],+ "r7tQuq": ["Ŷōũŕ ŕēƥōŕţ ĩś śàvēď ōń ţĥĩś ćōḿƥũţēŕ, śō ńōţĥĩńĝ ŵàś ĺōśţ."],"r871ed": ["Ŷōũŕ ķńōŵĺēďĝē ƀàśē ĩś ńōŵ ōń ĜĩţĤũƀ àţ <0>",["ownerLogin"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex ae0657f4a..c2ed7f36f 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -383,8 +383,8 @@ msgstr ""msgid "{0} templates available"msgstr ""-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr ""@@ -869,10 +869,6 @@ msgstr ""msgid "{shareBranch} isn't a valid branch name."msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr ""-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr ""@@ -881,10 +877,6 @@ msgstr ""msgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr ""-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr ""@@ -1004,10 +996,6 @@ msgstr ""msgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr ""-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr ""@@ -1630,6 +1618,10 @@ msgstr ""msgid "Already open"msgstr ""+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr ""+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr ""@@ -1865,10 +1857,6 @@ msgstr ""msgid "Attach images"msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr ""-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2173,8 +2161,8 @@ msgstr ""msgid "Browse your repos:"msgstr ""-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr ""@@ -2648,7 +2636,6 @@ msgstr ""#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3208,6 +3195,7 @@ msgstr ""msgid "Copied relative path"msgstr ""+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr ""@@ -3289,6 +3277,10 @@ msgstr ""msgid "Copy Path"msgstr ""+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr ""+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr ""@@ -3876,7 +3868,7 @@ msgstr ""msgid "Couldn't save the resolution for {filePath}."msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr ""@@ -4517,6 +4509,7 @@ msgstr ""msgid "Disconnecting"msgstr ""+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4627,7 +4620,6 @@ msgstr ""#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4921,6 +4913,10 @@ msgstr ""msgid "Email address"msgstr ""+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr ""+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr ""@@ -8611,7 +8607,7 @@ msgstr ""msgid "Nothing set yet."msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr ""@@ -8869,7 +8865,7 @@ msgstr ""msgid "Open documents tagged #{chip}"msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr ""@@ -10159,6 +10155,10 @@ msgstr ""msgid "Refactoring"msgstr ""+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr ""+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10511,10 +10511,6 @@ msgstr ""msgid "Report a bug…"msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr ""-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11261,7 +11257,7 @@ msgstr ""msgid "Send when the agent is free"msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr ""@@ -11270,7 +11266,7 @@ msgstr ""msgid "Sending"msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr ""@@ -12583,7 +12579,7 @@ msgstr ""msgid "Thanks for the feedback!"msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr ""@@ -12768,10 +12764,6 @@ msgstr ""msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr ""-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr ""@@ -13263,6 +13255,10 @@ msgstr ""msgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr ""+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr ""+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr ""@@ -13499,9 +13495,9 @@ msgid "Try a prompt"msgstr ""#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13898,10 +13894,6 @@ msgstr ""msgid "Uploading file"msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr ""-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr ""@@ -14138,7 +14130,7 @@ msgstr ""msgid "We’ll create a safe theme ID from this name."msgstr ""-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr ""@@ -14524,16 +14516,8 @@ msgstr ""msgid "Your message didn't reach {agentName}."msgstr ""-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr ""--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr ""--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."msgstr ""#: src/components/CloneDialog.tsxdiff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex d55c73ab3..422f2ed6c 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -182,7 +182,6 @@"Adiciona à busca uma classificação por significado para que páginas relacionadas conceitualmente apareçam mesmo sem palavras-chave em comum."],"1NgrlY": ["Outras formas de instalar"],- "1OKzC_": ["Não foi possível enviar seu relatório. Tente de novo ou mande por e-mail."],"1QfxQT": ["Dispensar"],"1RluQD": ["Mostrar substituir"],"1TNIig": ["Abrir"],@@ -270,6 +269,7 @@"2wxgft": ["Renomear"],"2zvUIK": ["Mostrar estes comentários no painel de comentários"],"322lyb": ["Destaca dicas, avisos e notas."],+ "32TTpa": ["Escrever para o suporte sobre este relatório"],"34qyH5": ["Não foi possível contatar o servidor"],"36WXSC": ["Não deu para excluir o modelo: ", ["error"]],"36aWJD": ["Entre no nosso Discord"],@@ -515,6 +515,7 @@["userToken"],"</1> para preencher automaticamente a data de hoje ou o nome do autor."],+ "5hFl0U": ["Copiar referência"],"5jEnaB": ["Indisponível nesta plataforma"],"5kWklo": ["(outras regras podem já ocultar alguns)"],"5lWFkC": ["Entrar"],@@ -661,6 +662,9 @@],"7PzzBU": ["Usuário"],"7S7FNA": ["OpenKnowledge verificou o projeto"],+ "7WnfoD": [+ "Este relatório já está a caminho. O resultado vai aparecer no histórico de relatórios de erro."+ ],"7Y9yTo": [["owner"], "/", ["name"], " foi criado, mas o envio falhou."],"7YRrJ9": ["Disponível no app de desktop do OpenKnowledge. Em um terminal, use<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>."@@ -715,7 +719,6 @@["fileName"],") na raiz do projeto"],- "89y7ar": [["sizeText"], " · segredos ocultados"],"8AjnFz": ["\"", ["0"], "\" já tinha sido importado (conteúdo idêntico)."],"8F1i42": ["Página não encontrada"],"8FqTCr": [@@ -750,6 +753,7 @@],"8Uv5e6": ["Agentes"],"8Vq20-": ["Trocar de worktree"],+ "8W9CF6": ["Este relatório já está sendo enviado"],"8WTrGF": [["summary"], " neste arquivo. Abra o painel Problemas para ver os detalhes."],"8Wav8y": ["Se chegar uma atualização de algo que você está editando, você escolhe qual versão manter, como em um conflito de mesclagem."@@ -820,7 +824,6 @@],"9Vh9Jf": ["Abra esta janela de novo para entrar pelo navegador"],"9Vnjc9": ["Enter"],- "9XIEYq": ["Anexe o arquivo em um e-mail para <0/>"],"9Y6cCI": ["Falha ao carregar as páginas"],"9_2oe6": ["Transforma ",@@ -1530,9 +1533,6 @@],"HdS4Ft": ["Não foi possível restaurar seu último documento aberto."],"HdkSiO": ["Novo arquivo"],- "HepFJQ": [- "Seu relatório está salvo neste computador, então nada foi perdido. Você pode nos enviar por e-mail."- ],"HfI1dR": ["Já tenho isso localmente →"],"HjNrT0": [[@@ -1866,7 +1866,6 @@"LvdLef": ["Obrigado pelo retorno!"],"LwMxXg": ["Falha ao abrir o worktree."],"LzM_ga": ["Filtrar habilidades"],- "M-IF14": ["Referência do relatório"],"M0jOcG": ["Ver no markdown de origem"],"M1OfV9": ["Próximo diagnóstico do código"],"M3ytY_": [@@ -1903,7 +1902,6 @@"MI6Z0f": ["Escolha um emoji para inserir no cursor."],"MIF36T": ["Não deu para resolver a bifurcação: ", ["0"]],"MILoeL": ["Serviços"],- "MJqRO6": ["Seu relatório está sendo enviado."],"MJuO1q": ["Janela de contexto:"],"MKEPCY": ["Acompanhar"],"MLVPcm": [["0"], " versão ", ["1"]],@@ -1960,6 +1958,7 @@"N1KkEO": ["Ir para a última aba"],"N1YYa7": ["Carregando a imagem"],"N1mdmS": ["Não dá para abrir este arquivo no editor de texto."],+ "N2C89m": ["Referência"],"N2FcBE": ["Sincronizado"],"N2S1rs": ["Vazio"],"N2eHWq": ["Bloco de código"],@@ -2085,7 +2084,6 @@"OXdGnd": ["Problemas"],"OYnx7O": ["O caminho não pode começar com \"/\""],"OZavHH": ["tudo dentro de ", ["0"], "/"],- "Oawo4U": ["Não foi possível contatar o serviço de relatórios."],"OdmsFg": ["Falha ao excluir o item"],"OeAl1e": ["ex.: assets/uploads"],"OfhWJH": ["Redefinir"],@@ -3036,7 +3034,6 @@],"_Bix3-": ["Ocorrências de ", ["localizedFirstMessage"]],"_DwR-n": ["Criando…"],- "_FLBbi": [["sizeText"], " · segredos ocultados · despejo de falha sem ocultação"],"_G7A92": ["Manter index.md"],"_GRWOJ": ["Trocar o provedor de embeddings?"],"_HgF9q": ["Ordenar por"],@@ -3564,7 +3561,6 @@"fvrHin": ["Disponível em todos os projetos deste computador. Não é compartilhado por git."],"fwhX-N": ["Aumentar ou diminuir o recuo do código"],"fwrPh4": ["Digite um e-mail válido."],- "fxJk_6": ["<0>Tem mais a acrescentar?</0> Escreva para <1/> e mencione sua referência."],"fxbCNQ": ["Sincronizado. O link está atualizado."],"g-dkjJ": ["Os detalhes dos arquivos locais ainda não estão disponíveis."],"g12y1g": ["YAML inválido"],@@ -4556,7 +4552,6 @@"qjHMHf": ["Falha ao desativar a sincronização — ", ["detail"]],"qkqG0b": ["Aceitar a versão remota"],"qlAIQ1": ["Remoto"],- "qmL1UG": ["Enviando com segurança"],"qo4zCg": ["O caminho não pode conter barras invertidas"],"qpQwGC": ["Descreva no que você está trabalhando e o agente prepara tudo para você."],"qribBG": ["esquema ", ["deleteTarget"]],@@ -4570,6 +4565,7 @@"r6ncaO": ["Fechar aba"],"r6y-jM": ["Aviso"],"r7IaYp": ["Open Knowledge Format orientação"],+ "r7tQuq": ["Seu relatório está salvo neste computador, então nada foi perdido."],"r871ed": ["Sua base de conhecimento já está no GitHub, em <0>",["ownerLogin"],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex b72c98e6e..ea61130d6 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -383,8 +383,8 @@ msgstr "{0} compartilham esta pasta."msgid "{0} templates available"msgstr "{0} modelos disponíveis"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "{0} no total"@@ -869,10 +869,6 @@ msgstr "Propriedades de {settingsDescriptorLabel}"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} não é um nome de ramo válido."-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · segredos ocultados"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · segredos ocultados · {fileCount, plural, one {# arquivo} many {# arquivos} other {# arquivos}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · segredos ocultados · {fileCount, plural, one {# arquivo}msgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · segredos ocultados · {fileCount, plural, one {# arquivo} many {# arquivos} other {# arquivos}} · despejo de falha sem ocultação"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · segredos ocultados · despejo de falha sem ocultação"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {habilidade} many {habilidades} other {habilidades}}"@@ -1004,10 +996,6 @@ msgstr "Não foi possível renderizar <{descriptorLabel}> (provavelmente uma promsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> e <1>~/.ok/env.sh</1> permanecem de qualquer forma — o app sempre os mantém."-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>Tem mais a acrescentar?</0> Escreva para <1/> e mencione sua referência."-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>Espelho — escolha uma fonte.</0> Defina <1>src</1> + <2>anchor</2> no painel de propriedades para apontar para um <3><MirrorSource></3> em outro lugar."@@ -1630,6 +1618,10 @@ msgstr "Já instalado — nada novo para importar."msgid "Already open"msgstr "Já está aberto"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "Este relatório já está sendo enviado"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "Já configurado — ok está disponível no seu terminal"@@ -1865,10 +1857,6 @@ msgstr "Anexar um arquivo"msgid "Attach images"msgstr "Anexar imagens"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "Anexe o arquivo em um e-mail para <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2173,8 +2161,8 @@ msgstr "Explorar skills.sh"msgid "Browse your repos:"msgstr "Explore seus repositórios:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "Relatório de erro {0}"@@ -2648,7 +2636,6 @@ msgstr "Clonando..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3208,6 +3195,7 @@ msgstr "Caminho copiado"msgid "Copied relative path"msgstr "Caminho relativo copiado"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "Copiado!"@@ -3289,6 +3277,10 @@ msgstr "Copiar caminho"msgid "Copy Path"msgstr "Copiar caminho"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "Copiar referência"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "Copiar caminho relativo"@@ -3876,7 +3868,7 @@ msgstr "Não deu para salvar a chave — tente de novo."msgid "Couldn't save the resolution for {filePath}."msgstr "Não deu para salvar a resolução de {filePath}."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "Não deu para enviar o relatório"@@ -4517,6 +4509,7 @@ msgstr "Desconectar"msgid "Disconnecting"msgstr "Desconectando"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4627,7 +4620,6 @@ msgstr "pronto"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4921,6 +4913,10 @@ msgstr "E-mail"msgid "Email address"msgstr "Endereço de e-mail"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "Escrever para o suporte sobre este relatório"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "Enviado por e-mail"@@ -8611,7 +8607,7 @@ msgstr "nada ({0} não é um padrão válido)"msgid "Nothing set yet."msgstr "Ainda não há nada definido."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "Nada foi enviado. O relatório fica neste computador até você nos enviar por e-mail."@@ -8869,7 +8865,7 @@ msgstr "Abre a confirmação de exclusão dos itens selecionados na árvore de amsgid "Open documents tagged #{chip}"msgstr "Abrir os documentos com a tag #{chip}"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "Abrir o rascunho de e-mail"@@ -10159,6 +10155,10 @@ msgstr "Refazer"msgid "Refactoring"msgstr "Refatoração"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "Referência"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10511,10 +10511,6 @@ msgstr "Relatar um erro"msgid "Report a bug…"msgstr "Relatar um erro…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "Referência do relatório"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11261,7 +11257,7 @@ msgstr "Enviar para o chat ({0})"msgid "Send when the agent is free"msgstr "Enviar quando o agente estiver livre"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "Envie seu relatório por e-mail"@@ -11270,7 +11266,7 @@ msgstr "Envie seu relatório por e-mail"msgid "Sending"msgstr "Enviando"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "Enviando o relatório"@@ -12583,7 +12579,7 @@ msgstr "Obrigado por assinar. Fique de olho no seu e-mail para as novidades do pmsgid "Thanks for the feedback!"msgstr "Obrigado pelo retorno!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "Obrigado pelo relatório!"@@ -12768,10 +12764,6 @@ msgstr "O provedor recusou a requisição. Verifique a chave de API e o id do momsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "A URL pública que o seu túnel serve. O servidor aceita requisições para este host e o anuncia nas URLs que emite."-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "Não foi possível contatar o serviço de relatórios."-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "O repositório é privado e sua conta do GitHub não tem acesso a ele."@@ -13263,6 +13255,10 @@ msgstr "Este repositório traz {count} habilidades, além de {0}. Instale qualqumsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "Este repositório traz {count} habilidades. Instale qualquer uma delas pelo plugin."+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "Este relatório já está a caminho. O resultado vai aparecer no histórico de relatórios de erro."+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "Esta requisição não está mais ativa."@@ -13499,9 +13495,9 @@ msgid "Try a prompt"msgstr "Experimente um prompt"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13898,10 +13894,6 @@ msgstr "Enviando {keyName}"msgid "Uploading file"msgstr "Enviando o arquivo"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "Enviando com segurança"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "Sincronização com o remoto"@@ -14138,7 +14130,7 @@ msgstr "Vamos criar um repositório e começar a sincronizar — sem precisar demsgid "We’ll create a safe theme ID from this name."msgstr "Criaremos um ID de tema seguro a partir deste nome."-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "Já registramos com a equipe e anexamos seus logs."@@ -14524,17 +14516,9 @@ msgstr "Sua cópia local do ramo <0>{branch}</0> está atrasada. Traga as últimmsgid "Your message didn't reach {agentName}."msgstr "Sua mensagem não chegou a {agentName}."-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "Não foi possível enviar seu relatório. Tente de novo ou mande por e-mail."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "Seu relatório está sendo enviado."--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "Seu relatório está salvo neste computador, então nada foi perdido. Você pode nos enviar por e-mail."+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "Seu relatório está salvo neste computador, então nada foi perdido."#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex a360e882f..af2c3322a 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -162,7 +162,6 @@"تلاش میں معنی پر مبنی درجہ بندی شامل کریں تاکہ تصوراتی طور پر متعلقہ صفحات اس وقت بھی سامنے آئیں جب ان میں کوئی مشترک کلیدی الفاظ نہ ہوں۔"],"1NgrlY": ["انسٹال کرنے کے دیگر طریقے"],- "1OKzC_": ["آپ کی رپورٹ نہیں بھیجی جا سکی۔ دوبارہ کوشش کریں یا اس کے بجائے ای میل کر دیں۔"],"1QfxQT": ["برخاست کریں"],"1RluQD": ["تبدیلی دکھائیں"],"1TNIig": ["کھولیں"],@@ -248,6 +247,7 @@"2wxgft": ["نام بدلیں"],"2zvUIK": ["ان تبصروں کو تبصرے پینل میں دکھائیں"],"322lyb": ["مشورے، انتباہات اور نوٹس نمایاں کریں۔"],+ "32TTpa": ["اس رپورٹ کے بارے میں سپورٹ کو ای میل کریں"],"34qyH5": ["سرور تک رسائی نہیں ہو سکی"],"36WXSC": ["ٹیمپلیٹ حذف نہیں ہو سکا: ", ["error"]],"36aWJD": ["Discord پر ہمارے ساتھ شامل ہوں"],@@ -450,6 +450,7 @@["userToken"],"</1> لکھیں۔"],+ "5hFl0U": ["حوالہ کاپی کریں"],"5jEnaB": ["اس پلیٹ فارم پر دستیاب نہیں"],"5kWklo": ["(کچھ پہلے ہی دوسرے قواعد سے چھپے ہو سکتے ہیں)"],"5lWFkC": ["سائن اِن کریں"],@@ -577,6 +578,7 @@],"7PzzBU": ["صارف"],"7S7FNA": ["OpenKnowledge نے پروجیکٹ کی جانچ کی"],+ "7WnfoD": ["یہ رپورٹ پہلے ہی راستے میں ہے۔ اس کا نتیجہ بگ رپورٹ کی تاریخ میں نظر آئے گا۔"],"7Y9yTo": [["owner"], "/", ["name"], " بن گیا، لیکن پش ناکام رہا۔"],"7YRrJ9": ["OpenKnowledge ڈیسک ٹاپ ایپ میں دستیاب۔ ٹرمینل سے<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2> استعمال کریں۔"@@ -629,7 +631,6 @@["fileName"],") سے نئی فائل"],- "89y7ar": [["sizeText"], " · رازداری کی معلومات چھپا دی گئیں"],"8AjnFz": ["«", ["0"], "» پہلے ہی درآمد ہو چکا تھا (یکساں مواد)۔"],"8F1i42": ["صفحہ نہیں ملا"],"8FqTCr": [@@ -658,6 +659,7 @@],"8Uv5e6": ["ایجنٹس"],"8Vq20-": ["ورک ٹری بدلیں"],+ "8W9CF6": ["یہ رپورٹ پہلے ہی بھیجی جا رہی ہے"],"8WTrGF": ["اس فائل میں ", ["summary"], "۔ تفصیلات کے لیے مسائل پینل کھولیں۔"],"8Wav8y": ["اگر آپ جس چیز میں ترمیم کر رہے ہیں اس کی اپ ڈیٹ آ جائے تو آپ خود منتخب کرتے ہیں کہ کون سا ورژن رکھنا ہے، بالکل ضم کے تصادم کی طرح۔"@@ -724,7 +726,6 @@],"9Vh9Jf": ["اپنے براؤزر سے سائن اِن کرنے کے لیے یہ ونڈو دوبارہ کھولیں"],"9Vnjc9": ["درج کریں"],- "9XIEYq": ["فائل کو ای میل میں منسلک کر کے <0/> کو بھیجیں"],"9Y6cCI": ["صفحات لوڈ نہیں ہو سکے"],"9_2oe6": [["0"],@@ -1349,9 +1350,6 @@],"HdS4Ft": ["آپ کا آخری کھلا دستاویز بحال نہیں کیا جا سکا۔"],"HdkSiO": ["نئی فائل"],- "HepFJQ": [- "آپ کی رپورٹ اس کمپیوٹر پر محفوظ ہے، اس لیے کچھ ضائع نہیں ہوا۔ آپ اس کے بجائے ہمیں ای میل کر سکتے ہیں۔"- ],"HfI1dR": ["یہ میرے پاس پہلے سے مقامی طور پر موجود ہے ←"],"HjNrT0": [["0", "plural", { "one": ["#", " بیک لنک"], "other": ["#", " بیک لنکس"] }]],"Hl89Qd": ["ٹیمپلیٹس لوڈ ہو رہے ہیں"],@@ -1651,7 +1649,6 @@"LvdLef": ["رائے دینے کا شکریہ!"],"LwMxXg": ["ورک ٹری نہیں کھل سکا۔"],"LzM_ga": ["مہارتیں چھانیں"],- "M-IF14": ["رپورٹ کا حوالہ"],"M0jOcG": ["سورس Markdown میں دیکھیں"],"M1OfV9": ["اگلی سورس تشخیص"],"M3ytY_": [@@ -1687,7 +1684,6 @@"MI6Z0f": ["کرسر پر داخل کرنے کے لیے کوئی ایموجی منتخب کریں۔"],"MIF36T": ["فورک حل نہیں ہو سکا: ", ["0"]],"MILoeL": ["خدمات"],- "MJqRO6": ["آپ کی رپورٹ بھیجی جا رہی ہے۔"],"MJuO1q": ["سیاق کی ونڈو:"],"MKEPCY": ["پیروی"],"MLVPcm": [["0"], " ورژن ", ["1"]],@@ -1742,6 +1738,7 @@"N1KkEO": ["آخری ٹیب پر جائیں"],"N1YYa7": ["تصویر لوڈ ہو رہی ہے"],"N1mdmS": ["یہ فائل ٹیکسٹ ایڈیٹر میں نہیں کھل سکتی۔"],+ "N2C89m": ["حوالہ"],"N2FcBE": ["مطابق ہو گیا"],"N2S1rs": ["خالی"],"N2eHWq": ["کوڈ بلاک"],@@ -1865,7 +1862,6 @@"OXdGnd": ["مسائل"],"OYnx7O": ["راستہ «/» سے شروع نہیں ہو سکتا"],"OZavHH": [["0"], "/ کے تحت سب کچھ"],- "Oawo4U": ["رپورٹ کی سروس تک رسائی نہیں ہو سکی۔"],"OdmsFg": ["آئٹم حذف نہیں ہو سکا"],"OeAl1e": ["مثلاً assets/uploads"],"OfhWJH": ["دوبارہ ترتیب دیں"],@@ -2728,7 +2724,6 @@],"_Bix3-": [["localizedFirstMessage"], " کے واقعات"],"_DwR-n": ["بنائی جا رہی ہے…"],- "_FLBbi": [["sizeText"], " · رازداری کی معلومات چھپا دی گئیں · کریش ڈمپ نہیں چھپایا گیا"],"_G7A92": ["برقرار رکھیں index.md"],"_GRWOJ": ["ایمبیڈنگز فراہم کنندہ بدلیں؟"],"_HgF9q": ["ترتیب کا معیار"],@@ -3193,7 +3188,6 @@"fvrHin": ["اس مشین کے ہر پروجیکٹ میں دستیاب۔ git کے ذریعے شیئر نہیں ہوتا۔"],"fwhX-N": ["سورس کی اندروں یا باہر کی جگہ بدلیں"],"fwrPh4": ["براہِ کرم درست ای میل درج کریں۔"],- "fxJk_6": ["<0>مزید کچھ کہنا ہے؟</0> <1/> پر لکھیں اور اپنا حوالہ ذکر کریں۔"],"fxbCNQ": ["مطابق ہو گیا۔ لنک تازہ ترین ہے۔"],"g-dkjJ": ["مقامی فائل کی تفصیلات ابھی دستیاب نہیں ہیں۔"],"g12y1g": ["YAML درست نہیں"],@@ -4099,7 +4093,6 @@"qjHMHf": ["مطابقت پذیری بند نہیں ہو سکی — ", ["detail"]],"qkqG0b": ["اپ سٹریم والا لیں"],"qlAIQ1": ["ریموٹ"],- "qmL1UG": ["محفوظ طریقے سے اپ لوڈ ہو رہا ہے"],"qo4zCg": ["راستے میں الٹی سلیش نہیں ہو سکتی"],"qpQwGC": ["بیان کریں کہ آپ کس چیز پر کام کر رہے ہیں اور ایجنٹ اسے آپ کے لیے ترتیب دے دے گا۔"],"qribBG": ["اسکیما ", ["deleteTarget"]],@@ -4113,6 +4106,7 @@"r6ncaO": ["ٹیب بند کریں"],"r6y-jM": ["انتباہ"],"r7IaYp": ["Open Knowledge Format رہنمائی"],+ "r7tQuq": ["آپ کی رپورٹ اس کمپیوٹر پر محفوظ ہے، اس لیے کچھ ضائع نہیں ہوا۔"],"r871ed": ["آپ کا نالج بیس اب GitHub پر <0>", ["ownerLogin"], "/", ["repoName"], "</0> پر ہے۔"],"rDOuNw": ["ٹیمپلیٹ درآمد نہیں ہو سکا"],"rENNI6": ["شیئر URL درست نہیں۔"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 277788a4f..6ead9e327 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -383,8 +383,8 @@ msgstr "{0} یہ فولڈر مشترکہ استعمال کرتے ہیں۔"msgid "{0} templates available"msgstr "{0} ٹیمپلیٹس دستیاب"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "کل {0}"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} کی خصوصیات"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} برانچ کا درست نام نہیں ہے۔"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیں"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیں · {fileCount, plural, one {# فائل} other {# فائلیں}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیںmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیں · {fileCount, plural, one {# فائل} other {# فائلیں}} · کریش ڈمپ نہیں چھپایا گیا"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · رازداری کی معلومات چھپا دی گئیں · کریش ڈمپ نہیں چھپایا گیا"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, one {مہارت} other {مہارتیں}}"@@ -1008,10 +1000,6 @@ msgstr "<{descriptorLabel}> رینڈر نہیں ہو سکا (غالباً کوئmsgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "<0>~/.ok/bin</0> اور <1>~/.ok/env.sh</1> دونوں صورتوں میں رہتے ہیں — ایپ ہمیشہ ان کی دیکھ بھال کرتی ہے۔"-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>مزید کچھ کہنا ہے؟</0> <1/> پر لکھیں اور اپنا حوالہ ذکر کریں۔"-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>مرر — ایک ماخذ منتخب کریں۔</0> خصوصیات کے پینل سے <1>src</1> + <2>anchor</2> مقرر کریں تاکہ کہیں اور موجود <3><MirrorSource></3> کی طرف اشارہ ہو۔"@@ -1634,6 +1622,10 @@ msgstr "پہلے سے نصب ہے — درآمد کرنے کو کچھ نیا نmsgid "Already open"msgstr "پہلے سے کھلا ہے"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "یہ رپورٹ پہلے ہی بھیجی جا رہی ہے"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "پہلے سے ترتیب دیا جا چکا ہے — ok آپ کے ٹرمینل میں دستیاب ہے"@@ -1869,10 +1861,6 @@ msgstr "فائل منسلک کریں"msgid "Attach images"msgstr "تصاویر منسلک کریں"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "فائل کو ای میل میں منسلک کر کے <0/> کو بھیجیں"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "skills.sh براؤز کریں"msgid "Browse your repos:"msgstr "اپنی ریپوز براؤز کریں:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "بگ رپورٹ {0}"@@ -2652,7 +2640,6 @@ msgstr "کلون کیا جا رہا ہے..."#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "راستہ نقل ہو گیا"msgid "Copied relative path"msgstr "نسبتی راستہ نقل ہو گیا"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "نقل ہو گیا!"@@ -3293,6 +3281,10 @@ msgstr "راستہ نقل کریں"msgid "Copy Path"msgstr "راستہ نقل کریں"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "حوالہ کاپی کریں"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "نسبتی راستہ نقل کریں"@@ -3880,7 +3872,7 @@ msgstr "کلید محفوظ نہیں ہو سکی — براہِ کرم دوباmsgid "Couldn't save the resolution for {filePath}."msgstr "{filePath} کا حل محفوظ نہیں ہو سکا۔"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "رپورٹ نہیں بھیجی جا سکی"@@ -4521,6 +4513,7 @@ msgstr "منقطع کریں"msgid "Disconnecting"msgstr "منقطع کیا جا رہا ہے"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "مکمل"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "ای میل"msgid "Email address"msgstr "ای میل پتہ"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "اس رپورٹ کے بارے میں سپورٹ کو ای میل کریں"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "ای میل کیا گیا"@@ -8615,7 +8611,7 @@ msgstr "کچھ نہیں ({0} درست پیٹرن نہیں ہے)"msgid "Nothing set yet."msgstr "ابھی کچھ مقرر نہیں۔"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "کچھ بھی اپ لوڈ نہیں ہوا۔ جب تک آپ ہمیں ای میل نہیں کرتے، رپورٹ اسی کمپیوٹر پر رہتی ہے۔"@@ -8873,7 +8869,7 @@ msgstr "منتخب فائل ٹری آئٹمز کے لیے حذف کی تصدیقmsgid "Open documents tagged #{chip}"msgstr "#{chip} سے ٹیگ شدہ دستاویزات کھولیں"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "ای میل کا مسودہ کھولیں"@@ -10163,6 +10159,10 @@ msgstr "دوبارہ کریں"msgid "Refactoring"msgstr "دوبارہ ڈھانچہ سازی"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "حوالہ"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "بگ رپورٹ کریں"msgid "Report a bug…"msgstr "بگ رپورٹ کریں…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "رپورٹ کا حوالہ"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "چیٹ میں بھیجیں ({0})"msgid "Send when the agent is free"msgstr "ایجنٹ فارغ ہونے پر بھیجیں"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "اپنی رپورٹ ای میل سے بھیجیں"@@ -11274,7 +11270,7 @@ msgstr "اپنی رپورٹ ای میل سے بھیجیں"msgid "Sending"msgstr "بھیجا جا رہا ہے"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "رپورٹ بھیجی جا رہی ہے"@@ -12587,7 +12583,7 @@ msgstr "رکنیت لینے کا شکریہ۔ مصنوعات کی اپ ڈیٹسmsgid "Thanks for the feedback!"msgstr "رائے دینے کا شکریہ!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "رپورٹ کا شکریہ!"@@ -12772,10 +12768,6 @@ msgstr "فراہم کنندہ نے درخواست مسترد کر دی۔ API کmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "وہ عوامی URL جو آپ کا ٹنل سرو کرتا ہے۔ سرور اس ہوسٹ کے لیے درخواستیں قبول کرتا ہے اور جو URLs جاری کرتا ہے ان میں اسی کی تشہیر کرتا ہے۔"-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "رپورٹ کی سروس تک رسائی نہیں ہو سکی۔"-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "ریپازٹری نجی ہے اور آپ کے GitHub اکاؤنٹ کو اس تک رسائی نہیں۔"@@ -13267,6 +13259,10 @@ msgstr "یہ ریپو {count} مہارتیں سمیٹے ہوئے ہے، اورmsgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "یہ ریپو {count} مہارتیں سمیٹے ہوئے ہے۔ ان میں سے کوئی بھی پلگ اِن سے نصب کریں۔"+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "یہ رپورٹ پہلے ہی راستے میں ہے۔ اس کا نتیجہ بگ رپورٹ کی تاریخ میں نظر آئے گا۔"+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "یہ درخواست اب فعال نہیں۔"@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "کوئی پرامپٹ آزمائیں"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "{keyName} اپ لوڈ ہو رہا ہے"msgid "Uploading file"msgstr "فائل اپ لوڈ ہو رہی ہے"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "محفوظ طریقے سے اپ لوڈ ہو رہا ہے"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "اپ سٹریم مطابقت پذیری"@@ -14142,7 +14134,7 @@ msgstr "ہم ایک ریپازٹری بنا کر مطابقت پذیری شروmsgid "We’ll create a safe theme ID from this name."msgstr "ہم اس نام سے ایک محفوظ تھیم ID بنائیں گے۔"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "ہم نے اسے ٹیم کے پاس درج کر دیا ہے اور آپ کے لاگز منسلک کر دیے ہیں۔"@@ -14528,17 +14520,9 @@ msgstr "برانچ <0>{branch}</0> کی آپ کی مقامی نقل پیچھےmsgid "Your message didn't reach {agentName}."msgstr "آپ کا پیغام {agentName} تک نہیں پہنچا۔"-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "آپ کی رپورٹ نہیں بھیجی جا سکی۔ دوبارہ کوشش کریں یا اس کے بجائے ای میل کر دیں۔"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "آپ کی رپورٹ بھیجی جا رہی ہے۔"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "آپ کی رپورٹ اس کمپیوٹر پر محفوظ ہے، اس لیے کچھ ضائع نہیں ہوا۔ آپ اس کے بجائے ہمیں ای میل کر سکتے ہیں۔"+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "آپ کی رپورٹ اس کمپیوٹر پر محفوظ ہے، اس لیے کچھ ضائع نہیں ہوا۔"#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 3f2f9fbce..75c3d6f16 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -147,7 +147,6 @@"1MGRQl": ["终端会话"],"1NKoc6": ["为搜索加入基于语义的排序,即使没有共同关键词,概念相关的页面也能被找到。"],"1NgrlY": ["其他安装方式"],- "1OKzC_": ["你的报告没能发送出去。请重试,或者改用邮件发送。"],"1QfxQT": ["忽略"],"1RluQD": ["显示替换"],"1TNIig": ["打开"],@@ -223,6 +222,7 @@"2wxgft": ["重命名"],"2zvUIK": ["在评论面板中显示这些评论"],"322lyb": ["突出显示提示、警告和备注。"],+ "32TTpa": ["就此报告发送邮件给支持团队"],"34qyH5": ["无法连接到服务器"],"36WXSC": ["无法删除模板:", ["error"]],"36aWJD": ["来 Discord 加入我们"],@@ -406,6 +406,7 @@["userToken"],"</1> 可自动填入今天的日期或作者姓名。"],+ "5hFl0U": ["复制编号"],"5jEnaB": ["这个平台不支持"],"5kWklo": ["(其中一些可能已被其他规则隐藏)"],"5lWFkC": ["登录"],@@ -514,6 +515,7 @@],"7PzzBU": ["用户"],"7S7FNA": ["OpenKnowledge 检查了项目"],+ "7WnfoD": ["该报告已经在发送途中,结果会显示在错误报告历史里。"],"7Y9yTo": ["已创建 ", ["owner"], "/", ["name"], ",但推送失败。"],"7YRrJ9": ["在 OpenKnowledge 桌面应用中可用。在终端里可使用<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>。"@@ -556,7 +558,6 @@"87GMKe": ["要将此项目公开到网络吗?"],"881Uwh": ["删除选中的表格"],"89TtiD": ["在项目根目录中用模板“", ["displayTitle"], "”新建文件(", ["fileName"], ")"],- "89y7ar": [["sizeText"], " · 已隐去机密信息"],"8AjnFz": ["“", ["0"], "”已导入过(内容相同)。"],"8F1i42": ["找不到页面"],"8FqTCr": [["chunksRemaining", "plural", { "other": ["#", " 处未解决的差异块"] }]],@@ -578,6 +579,7 @@],"8Uv5e6": ["智能体"],"8Vq20-": ["切换 worktree"],+ "8W9CF6": ["该报告已在发送中"],"8WTrGF": ["此文件中有 ", ["summary"], "。打开问题面板查看详情。"],"8Wav8y": ["如果你正在编辑的内容收到更新,你可以像处理合并冲突那样选择保留哪个版本。"],"8XQRON": ["正在加载仓库"],@@ -640,7 +642,6 @@],"9Vh9Jf": ["重新打开这个窗口,以便用浏览器登录"],"9Vnjc9": ["Enter"],- "9XIEYq": ["把文件通过邮件发送到 <0/>"],"9Y6cCI": ["加载页面失败"],"9_2oe6": ["把 ",@@ -1165,9 +1166,6 @@"HbcQYf": ["要把 ", ["display"], " 处的符号链接替换为技能的独立副本吗?其他内容不会移动。"],"HdS4Ft": ["无法恢复你上次打开的文档。"],"HdkSiO": ["新建文件"],- "HepFJQ": [- "你的报告已保存在这台电脑上,因此没有丢失任何内容。你可以改为通过电子邮件发送给我们。"- ],"HfI1dR": ["我本地已经有了 →"],"HjNrT0": [["0", "plural", { "other": ["#", " 个反向链接"] }]],"Hl89Qd": ["正在加载模板"],@@ -1418,7 +1416,6 @@"LvdLef": ["感谢你的反馈!"],"LwMxXg": ["打开 worktree 失败。"],"LzM_ga": ["筛选技能"],- "M-IF14": ["报告编号"],"M0jOcG": ["在 markdown 源码中查看"],"M1OfV9": ["下一条源码诊断"],"M3ytY_": ["这看起来像是驱动器根目录(例如 C:\\)。在这里搭建项目会扫描整个驱动器。"],@@ -1439,7 +1436,6 @@"MI6Z0f": ["选择一个表情符号插入到光标处。"],"MIF36T": ["无法解决该分叉:", ["0"]],"MILoeL": ["服务"],- "MJqRO6": ["你的报告正在发送。"],"MJuO1q": ["上下文窗口:"],"MKEPCY": ["跟随"],"MLVPcm": [["0"], " 版本 ", ["1"]],@@ -1492,6 +1488,7 @@"N1KkEO": ["跳到最后一个标签页"],"N1YYa7": ["正在加载图片"],"N1mdmS": ["这个文件无法在文本编辑器中打开。"],+ "N2C89m": ["编号"],"N2FcBE": ["已同步"],"N2S1rs": ["空"],"N2eHWq": ["代码块"],@@ -1609,7 +1606,6 @@"OXdGnd": ["问题"],"OYnx7O": ["路径不能以 \"/\" 开头"],"OZavHH": [["0"], "/ 下的所有内容"],- "Oawo4U": ["无法连接到报告服务。"],"OdmsFg": ["删除项目失败"],"OeAl1e": ["例如 assets/uploads"],"OfhWJH": ["重置"],@@ -2361,7 +2357,6 @@],"_Bix3-": [["localizedFirstMessage"], " 的出现位置"],"_DwR-n": ["正在创建…"],- "_FLBbi": [["sizeText"], " · 已隐去机密信息 · 崩溃转储未隐去"],"_G7A92": ["维护index.md"],"_GRWOJ": ["要更换嵌入服务提供方吗?"],"_HgF9q": ["排序方式"],@@ -2770,7 +2765,6 @@"fvrHin": ["在这台电脑的每个项目中都可用。不通过 git 共享。"],"fwhX-N": ["增加或减少源码缩进"],"fwrPh4": ["请输入有效的邮箱。"],- "fxJk_6": ["<0>还有想补充的吗?</0>请写信到 <1/> 并附上你的编号。"],"fxbCNQ": ["已同步。链接是最新的。"],"g-dkjJ": ["本地文件详情尚不可用。"],"g12y1g": ["无效的 YAML"],@@ -3545,7 +3539,6 @@"qjHMHf": ["关闭同步失败——", ["detail"]],"qkqG0b": ["采用远程版本"],"qlAIQ1": ["远程"],- "qmL1UG": ["正在安全上传"],"qo4zCg": ["路径不能包含反斜杠"],"qpQwGC": ["描述一下你在做什么,智能体会为你搭建好。"],"qribBG": ["架构 ", ["deleteTarget"]],@@ -3559,6 +3552,7 @@"r6ncaO": ["关闭标签页"],"r6y-jM": ["警告"],"r7IaYp": ["Open Knowledge Format 指导"],+ "r7tQuq": ["你的报告已保存在这台电脑上,没有丢失任何内容。"],"r871ed": ["你的知识库现在已经在 GitHub 上,地址是 <0>",["ownerLogin"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex f15c60fc0..42dbfa232 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -383,8 +383,8 @@ msgstr "{0} 共用此文件夹。"msgid "{0} templates available"msgstr "有 {0} 个模板可用"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "共 {0} 个"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} 属性"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} 不是有效的分支名。"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · 已隐去机密信息"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · 已隐去机密信息 · {fileCount, plural, other {# 个文件}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · 已隐去机密信息 · {fileCount, plural, other {# 个msgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · 已隐去机密信息 · {fileCount, plural, other {# 个文件}} · 崩溃转储未隐去"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · 已隐去机密信息 · 崩溃转储未隐去"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, other {技能}}"@@ -1008,10 +1000,6 @@ msgstr "<{descriptorLabel}> 渲染失败(很可能是属性有误)。复制msgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "无论如何 <0>~/.ok/bin</0> 和 <1>~/.ok/env.sh</1> 都会保留——应用始终会维护它们。"-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>还有想补充的吗?</0>请写信到 <1/> 并附上你的编号。"-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>镜像——请选择一个来源。</0>在属性面板中设置 <1>src</1> + <2>anchor</2>,指向别处的 <3><MirrorSource></3>。"@@ -1634,6 +1622,10 @@ msgstr "已安装——没有可导入的新内容。"msgid "Already open"msgstr "已经打开"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "该报告已在发送中"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "已配置完成——ok 现在可以在你的终端中使用"@@ -1869,10 +1861,6 @@ msgstr "附加文件"msgid "Attach images"msgstr "附加图片"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "把文件通过邮件发送到 <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "浏览 skills.sh"msgid "Browse your repos:"msgstr "浏览你的仓库:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "错误报告 {0}"@@ -2652,7 +2640,6 @@ msgstr "正在克隆…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "已复制路径"msgid "Copied relative path"msgstr "已复制相对路径"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "已复制!"@@ -3293,6 +3281,10 @@ msgstr "复制路径"msgid "Copy Path"msgstr "复制路径"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "复制编号"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "复制相对路径"@@ -3880,7 +3872,7 @@ msgstr "无法保存密钥——请重试。"msgid "Couldn't save the resolution for {filePath}."msgstr "无法保存 {filePath} 的解决结果。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "无法发送报告"@@ -4521,6 +4513,7 @@ msgstr "断开连接"msgid "Disconnecting"msgstr "正在断开连接"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "完成"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "电子邮件"msgid "Email address"msgstr "邮箱地址"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "就此报告发送邮件给支持团队"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "已通过邮件发送"@@ -8615,7 +8611,7 @@ msgstr "无({0} 不是有效的模式)"msgid "Nothing set yet."msgstr "还没有设置任何内容。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "未上传任何内容。在你通过电子邮件发送给我们之前,报告会保留在这台电脑上。"@@ -8873,7 +8869,7 @@ msgstr "为选中的文件树项目打开删除确认框。"msgid "Open documents tagged #{chip}"msgstr "打开带 #{chip} 标签的文档"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "打开邮件草稿"@@ -10163,6 +10159,10 @@ msgstr "重做"msgid "Refactoring"msgstr "重构"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "编号"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "报告问题"msgid "Report a bug…"msgstr "报告问题…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "报告编号"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "发送到对话({0})"msgid "Send when the agent is free"msgstr "在智能体空闲时发送"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "通过邮件发送你的报告"@@ -11274,7 +11270,7 @@ msgstr "通过邮件发送你的报告"msgid "Sending"msgstr "正在发送"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "正在发送报告"@@ -12587,7 +12583,7 @@ msgstr "感谢订阅。请留意你的邮箱,我们会发送产品动态。"msgid "Thanks for the feedback!"msgstr "感谢你的反馈!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "感谢你的报告!"@@ -12772,10 +12768,6 @@ msgstr "服务提供方拒绝了这个请求。请检查 API 密钥和模型 idmsgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "你的隧道对外提供的公开 URL。服务器会接受针对此主机的请求,并在其签发的 URL 中公布该地址。"-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "无法连接到报告服务。"-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "这个仓库是私有的,你的 GitHub 账户没有访问权限。"@@ -13267,6 +13259,10 @@ msgstr "这个仓库包含 {count} 个技能,外加 {0}。你可以从插件msgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "这个仓库包含 {count} 个技能。你可以从插件中安装其中任意一个。"+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "该报告已经在发送途中,结果会显示在错误报告历史里。"+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "这个请求已不再有效。"@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "试试一段提示词"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "正在上传 {keyName}"msgid "Uploading file"msgstr "正在上传文件"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "正在安全上传"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "上游同步"@@ -14142,7 +14134,7 @@ msgstr "我们会创建一个仓库并开始同步——不需要用终端。"msgid "We’ll create a safe theme ID from this name."msgstr "我们将根据此名称创建安全的主题 ID。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "我们已经把它提交给团队,并附上了你的日志。"@@ -14528,17 +14520,9 @@ msgstr "你本地的 <0>{branch}</0> 分支副本落后了。请拉取最新改msgid "Your message didn't reach {agentName}."msgstr "你的消息未送达 {agentName}。"-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "你的报告没能发送出去。请重试,或者改用邮件发送。"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "你的报告正在发送。"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "你的报告已保存在这台电脑上,因此没有丢失任何内容。你可以改为通过电子邮件发送给我们。"+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "你的报告已保存在这台电脑上,没有丢失任何内容。"#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex db805f1b7..d18fe6414 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -149,7 +149,6 @@"為搜尋加入以語意為基礎的排序,這樣即使沒有共同關鍵字,概念相關的頁面也能被找出來。"],"1NgrlY": ["其他安裝方式"],- "1OKzC_": ["你的回報沒能送出去。請再試一次,或者改用電子郵件寄送。"],"1QfxQT": ["關閉"],"1RluQD": ["顯示取代"],"1TNIig": ["開啟"],@@ -227,6 +226,7 @@"2wxgft": ["重新命名"],"2zvUIK": ["在註解面板中顯示這些註解"],"322lyb": ["凸顯提示、警告和備註。"],+ "32TTpa": ["就此回報寄郵件給支援團隊"],"34qyH5": ["無法連上伺服器"],"36WXSC": ["無法刪除範本:", ["error"]],"36aWJD": ["來 Discord 加入我們"],@@ -410,6 +410,7 @@["userToken"],"</1> 可自動填入今天的日期或作者姓名。"],+ "5hFl0U": ["複製編號"],"5jEnaB": ["這個平台不支援"],"5kWklo": ["(其中有些可能已被其他規則隱藏)"],"5lWFkC": ["登入"],@@ -518,6 +519,7 @@],"7PzzBU": ["使用者"],"7S7FNA": ["OpenKnowledge 檢查了專案"],+ "7WnfoD": ["這份回報已經在傳送途中,結果會顯示在錯誤回報記錄裡。"],"7Y9yTo": ["已建立 ", ["owner"], "/", ["name"], ",但推送失敗。"],"7YRrJ9": ["在 OpenKnowledge 桌面應用程式中提供。在終端機裡可以使用<0> ok config-sharing status</0> / <1>share</1> / <2>unshare</2>。"@@ -560,7 +562,6 @@"87GMKe": ["要將此專案公開到網路上嗎?"],"881Uwh": ["刪除選取的表格"],"89TtiD": ["在專案根目錄中用範本「", ["displayTitle"], "」新增檔案(", ["fileName"], ")"],- "89y7ar": [["sizeText"], " · 已遮蔽機密資訊"],"8AjnFz": ["「", ["0"], "」先前已匯入過(內容相同)。"],"8F1i42": ["找不到頁面"],"8FqTCr": [["chunksRemaining", "plural", { "other": ["#", " 處未解決的差異區塊"] }]],@@ -582,6 +583,7 @@],"8Uv5e6": ["代理"],"8Vq20-": ["切換 worktree"],+ "8W9CF6": ["這份回報已在傳送中"],"8WTrGF": ["此檔案中有 ", ["summary"], "。開啟問題面板查看詳情。"],"8Wav8y": ["如果你正在編輯的東西收到更新,你可以像處理合併衝突那樣選擇要保留哪個版本。"],"8XQRON": ["正在載入儲存庫"],@@ -644,7 +646,6 @@],"9Vh9Jf": ["重新開啟這個視窗,就能用瀏覽器登入"],"9Vnjc9": ["Enter"],- "9XIEYq": ["把檔案用電子郵件寄到 <0/>"],"9Y6cCI": ["載入頁面失敗"],"9_2oe6": ["把 ",@@ -1179,7 +1180,6 @@"HbcQYf": ["要把 ", ["display"], " 處的符號連結換成技能的獨立副本嗎?其他東西都不會動。"],"HdS4Ft": ["無法還原你上次開啟的文件。"],"HdkSiO": ["新增檔案"],- "HepFJQ": ["你的報告已儲存在這台電腦上,因此沒有遺失任何內容。你可以改用電子郵件寄給我們。"],"HfI1dR": ["我本機已經有了 →"],"HjNrT0": [["0", "plural", { "other": ["#", " 個反向連結"] }]],"Hl89Qd": ["正在載入範本"],@@ -1440,7 +1440,6 @@"LvdLef": ["謝謝你的意見回饋!"],"LwMxXg": ["開啟 worktree 失敗。"],"LzM_ga": ["篩選技能"],- "M-IF14": ["回報編號"],"M0jOcG": ["在 markdown 原始碼中檢視"],"M1OfV9": ["下一則原始碼診斷"],"M3ytY_": ["這看起來像是磁碟機根目錄(例如 C:\\)。在這裡建立專案骨架會掃描整個磁碟機。"],@@ -1461,7 +1460,6 @@"MI6Z0f": ["挑一個表情符號插入到游標處。"],"MIF36T": ["無法解決這個分岔:", ["0"]],"MILoeL": ["服務"],- "MJqRO6": ["你的回報正在傳送。"],"MJuO1q": ["脈絡視窗:"],"MKEPCY": ["跟隨"],"MLVPcm": [["0"], " 版本 ", ["1"]],@@ -1514,6 +1512,7 @@"N1KkEO": ["跳到最後一個分頁"],"N1YYa7": ["正在載入圖片"],"N1mdmS": ["這個檔案無法在文字編輯器中開啟。"],+ "N2C89m": ["編號"],"N2FcBE": ["已同步"],"N2S1rs": ["空的"],"N2eHWq": ["程式碼區塊"],@@ -1631,7 +1630,6 @@"OXdGnd": ["問題"],"OYnx7O": ["路徑不能以「/」開頭"],"OZavHH": [["0"], "/ 底下的所有內容"],- "Oawo4U": ["連不上回報服務。"],"OdmsFg": ["刪除項目失敗"],"OeAl1e": ["例如 assets/uploads"],"OfhWJH": ["重設"],@@ -2385,7 +2383,6 @@],"_Bix3-": [["localizedFirstMessage"], " 的出現位置"],"_DwR-n": ["正在建立…"],- "_FLBbi": [["sizeText"], " · 已遮蔽機密資訊 · 當機傾印未遮蔽"],"_G7A92": ["維護index.md"],"_GRWOJ": ["要更換嵌入服務供應商嗎?"],"_HgF9q": ["排序方式"],@@ -2794,7 +2791,6 @@"fvrHin": ["在這台電腦的每個專案中都可以使用。不會透過 git 分享。"],"fwhX-N": ["增加或減少原始碼縮排"],"fwrPh4": ["請輸入有效的電子郵件。"],- "fxJk_6": ["<0>還有想補充的嗎?</0>請寫信到 <1/> 並附上你的編號。"],"fxbCNQ": ["已同步。連結是最新的。"],"g-dkjJ": ["本機檔案詳情尚無法使用。"],"g12y1g": ["無效的 YAML"],@@ -3575,7 +3571,6 @@"qjHMHf": ["關閉同步失敗——", ["detail"]],"qkqG0b": ["採用上游版本"],"qlAIQ1": ["遠端"],- "qmL1UG": ["正在安全上傳"],"qo4zCg": ["路徑不能包含反斜線"],"qpQwGC": ["描述一下你正在做的事,代理就會幫你設定好。"],"qribBG": ["結構描述 ", ["deleteTarget"]],@@ -3589,6 +3584,7 @@"r6ncaO": ["關閉分頁"],"r6y-jM": ["警告"],"r7IaYp": ["Open Knowledge Format 指導"],+ "r7tQuq": ["你的回報已儲存在這台電腦上,沒有遺失任何內容。"],"r871ed": ["你的知識庫現在已經在 GitHub 上,位置是 <0>",["ownerLogin"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 61dd3c0f1..521eebdd8 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -383,8 +383,8 @@ msgstr "{0} 共用此資料夾。"msgid "{0} templates available"msgstr "有 {0} 個範本可用"-#. placeholder {0}: formatSize(phase.report.zipSizeBytes)-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: formatBundleSize(operation.zipSizeBytes)+#: src/components/BugReportSendToast.tsxmsgid "{0} total"msgstr "共 {0} 個"@@ -869,10 +869,6 @@ msgstr "{settingsDescriptorLabel} 屬性"msgid "{shareBranch} isn't a valid branch name."msgstr "{shareBranch} 不是有效的分支名稱。"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted"-msgstr "{sizeText} · 已遮蔽機密資訊"-#: src/components/ReportBugDialogBody.tsxmsgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}}"msgstr "{sizeText} · 已遮蔽機密資訊 · {fileCount, plural, other {# 個檔案}}"@@ -881,10 +877,6 @@ msgstr "{sizeText} · 已遮蔽機密資訊 · {fileCount, plural, other {# 個msgid "{sizeText} · secrets redacted · {fileCount, plural, one {# file} other {# files}} · crash dump not redacted"msgstr "{sizeText} · 已遮蔽機密資訊 · {fileCount, plural, other {# 個檔案}} · 當機傾印未遮蔽"-#: src/components/ReportBugDialogBody.tsx-msgid "{sizeText} · secrets redacted · crash dump not redacted"-msgstr "{sizeText} · 已遮蔽機密資訊 · 當機傾印未遮蔽"-#: src/components/CreatedItemsList.tsxmsgid "{skillCount, plural, one {skill} other {skills}}"msgstr "{skillCount, plural, other {技能}}"@@ -1008,10 +1000,6 @@ msgstr "<{descriptorLabel}> 顯示失敗(很可能是屬性有誤)。複製msgid "<0>~/.ok/bin</0> and <1>~/.ok/env.sh</1> stay either way — the app always maintains them."msgstr "無論如何 <0>~/.ok/bin</0> 和 <1>~/.ok/env.sh</1> 都會保留——應用程式一律會維護它們。"-#: src/components/ReportBugDialogBody.tsx-msgid "<0>Have more to add?</0> Write to <1/> and mention your reference."-msgstr "<0>還有想補充的嗎?</0>請寫信到 <1/> 並附上你的編號。"-#: src/editor/components/Mirror.tsxmsgid "<0>Mirror — pick a source.</0> Set <1>src</1> + <2>anchor</2> via the property panel to point at a <3><MirrorSource></3> elsewhere."msgstr "<0>鏡像——請挑一個來源。</0>在屬性面板中設定 <1>src</1> + <2>anchor</2>,指向別處的 <3><MirrorSource></3>。"@@ -1634,6 +1622,10 @@ msgstr "已經安裝了——沒有可匯入的新內容。"msgid "Already open"msgstr "已經開啟"+#: src/components/BugReportSendToast.tsx+msgid "Already sending this report"+msgstr "這份回報已在傳送中"+#: src/components/McpConsentDialogBody.tsxmsgid "Already set up — ok is available in your terminal"msgstr "已經設定好了——ok 現在可以在你的終端機中使用"@@ -1869,10 +1861,6 @@ msgstr "附加檔案"msgid "Attach images"msgstr "附加圖片"-#: src/components/ReportBugDialogBody.tsx-msgid "Attach the file in an email to <0/>"-msgstr "把檔案用電子郵件寄到 <0/>"-#: src/components/settings/AttachmentsSection.tsx#: src/components/settings/SettingsDialogShell.tsxmsgid "Attachments"@@ -2177,8 +2165,8 @@ msgstr "瀏覽 skills.sh"msgid "Browse your repos:"msgstr "瀏覽你的儲存庫:"-#. placeholder {0}: phase.reference-#: src/components/ReportBugDialogBody.tsx+#. placeholder {0}: row.reference+#: src/components/BugReportHistory.tsxmsgid "Bug report {0}"msgstr "錯誤回報 {0}"@@ -2652,7 +2640,6 @@ msgstr "正在複製…"#: src/components/EditorTabs.tsx#: src/components/FeedbackForm.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/SeedDialog.tsx#: src/components/SubscribeForm.tsx#: src/components/ui/dialog.tsx@@ -3212,6 +3199,7 @@ msgstr "已複製路徑"msgid "Copied relative path"msgstr "已複製相對路徑"+#: src/components/BugReportSendToast.tsx#: src/components/CopyButton.tsxmsgid "Copied!"msgstr "已複製!"@@ -3293,6 +3281,10 @@ msgstr "複製路徑"msgid "Copy Path"msgstr "複製路徑"+#: src/components/BugReportSendToast.tsx+msgid "Copy reference"+msgstr "複製編號"+#: src/components/command-palette-commands.tsmsgid "Copy relative path"msgstr "複製相對路徑"@@ -3880,7 +3872,7 @@ msgstr "無法儲存金鑰——請再試一次。"msgid "Couldn't save the resolution for {filePath}."msgstr "無法儲存 {filePath} 的解決結果。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Couldn't send the report"msgstr "無法送出回報"@@ -4521,6 +4513,7 @@ msgstr "中斷連接"msgid "Disconnecting"msgstr "正在中斷連接"+#: src/components/BugReportSendToast.tsx#: src/components/ClaudeReadinessBanner.tsx#: src/components/NavigatorApp.tsx#: src/components/OnboardingCard.tsx@@ -4631,7 +4624,6 @@ msgstr "完成"#: src/components/InstallInClaudeDesktopDialog.tsx#: src/components/PublishToGitHubDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/CustomThemeEditor.tsx#: src/editor/extensions/JsxComponentView.tsx#: src/editor/extensions/JsxInlineView.tsx@@ -4925,6 +4917,10 @@ msgstr "電子郵件"msgid "Email address"msgstr "電子郵件地址"+#: src/components/BugReportHistory.tsx+msgid "Email support about this report"+msgstr "就此回報寄郵件給支援團隊"+#: src/components/BugReportHistory.tsxmsgid "Emailed"msgstr "已用電子郵件寄出"@@ -8615,7 +8611,7 @@ msgstr "無({0} 不是有效的模式)"msgid "Nothing set yet."msgstr "還沒有設定任何東西。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Nothing was uploaded. The report stays on this computer until you email it to us."msgstr "未上傳任何內容。在你以電子郵件寄給我們之前,報告會保留在這台電腦上。"@@ -8873,7 +8869,7 @@ msgstr "為選取的檔案樹項目開啟刪除確認框。"msgid "Open documents tagged #{chip}"msgstr "開啟標了 #{chip} 的文件"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Open email draft"msgstr "開啟郵件草稿"@@ -10163,6 +10159,10 @@ msgstr "重做"msgid "Refactoring"msgstr "重構"+#: src/components/BugReportSendToast.tsx+msgid "Reference"+msgstr "編號"+#. placeholder {0}: row.reference#: src/components/BugReportHistory.tsxmsgid "Reference <0>{0}</0>"@@ -10515,10 +10515,6 @@ msgstr "回報問題"msgid "Report a bug…"msgstr "回報問題…"-#: src/components/ReportBugDialogBody.tsx-msgid "Report reference"-msgstr "回報編號"-#: src/components/AppErrorBoundary.tsx#: src/components/DocumentErrorBoundary.tsxmsgid "Report this error"@@ -11265,7 +11261,7 @@ msgstr "傳送到對話({0})"msgid "Send when the agent is free"msgstr "在智慧體空閒時傳送"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Send your report by email"msgstr "用電子郵件寄出你的回報"@@ -11274,7 +11270,7 @@ msgstr "用電子郵件寄出你的回報"msgid "Sending"msgstr "正在傳送"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Sending report"msgstr "正在傳送回報"@@ -12587,7 +12583,7 @@ msgstr "謝謝訂閱。請留意你的信箱,我們會寄出產品動態。"msgid "Thanks for the feedback!"msgstr "謝謝你的意見回饋!"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "Thanks for the report!"msgstr "謝謝你的回報!"@@ -12772,10 +12768,6 @@ msgstr "供應商拒絕了這個要求。請檢查 API 金鑰和模型 id。"msgid "The public URL your tunnel serves. The server admits requests for this host and advertises it in the URLs it issues."msgstr "你的通道所提供的公開 URL。伺服器會接受針對此主機的請求,並在其發出的 URL 中公告此位址。"-#: src/components/ReportBugDialogBody.tsx-msgid "The report service couldn't be reached."-msgstr "連不上回報服務。"-#: src/components/ShareReceiveDialog.tsxmsgid "The repository is private and your GitHub account doesn't have access to it."msgstr "這個儲存庫是私人的,你的 GitHub 帳戶沒有存取權。"@@ -13267,6 +13259,10 @@ msgstr "這個儲存庫包含 {count} 個技能,外加 {0}。你可以從外msgid "This repo bundles {count} skills. Install any of them from the plugin."msgstr "這個儲存庫包含 {count} 個技能。你可以從外掛中安裝其中任何一個。"+#: src/components/BugReportSendToast.tsx+msgid "This report is already on its way. Its result will appear in your bug report history."+msgstr "這份回報已經在傳送途中,結果會顯示在錯誤回報記錄裡。"+#: src/components/acp/ThreadView.tsxmsgid "This request is no longer active."msgstr "這個要求已經失效。"@@ -13503,9 +13499,9 @@ msgid "Try a prompt"msgstr "試試一段提示"#: src/components/AppErrorBoundary.tsx+#: src/components/BugReportSendToast.tsx#: src/components/DocumentErrorBoundary.tsx#: src/components/InstallInClaudeDesktopDialog.tsx-#: src/components/ReportBugDialogBody.tsx#: src/components/settings/AccountSection.tsx#: src/components/settings/SavedThemesTiles.tsx#: src/components/ShareReceiveDialog.tsx@@ -13902,10 +13898,6 @@ msgstr "正在上傳 {keyName}"msgid "Uploading file"msgstr "正在上傳檔案"-#: src/components/ReportBugDialogBody.tsx-msgid "Uploading securely"-msgstr "正在安全上傳"-#: src/components/TimelinePanel.tsxmsgid "Upstream sync"msgstr "上游同步"@@ -14142,7 +14134,7 @@ msgstr "我們會建立一個儲存庫並開始同步——不必用終端機。msgid "We’ll create a safe theme ID from this name."msgstr "我們會根據這個名稱建立安全的主題 ID。"-#: src/components/ReportBugDialogBody.tsx+#: src/components/BugReportSendToast.tsxmsgid "We've filed it with the team and attached your logs."msgstr "我們已經把它交給團隊,並附上了你的記錄。"@@ -14528,17 +14520,9 @@ msgstr "你本機的 <0>{branch}</0> 分支副本落後了。請拉取最新的msgid "Your message didn't reach {agentName}."msgstr "你的訊息未送達 {agentName}。"-#: src/components/ReportBugDialogBody.tsx-msgid "Your report couldn't be sent. Try again or email it instead."-msgstr "你的回報沒能送出去。請再試一次,或者改用電子郵件寄送。"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is being sent."-msgstr "你的回報正在傳送。"--#: src/components/ReportBugDialogBody.tsx-msgid "Your report is saved on this computer, so nothing was lost. You can email it to us instead."-msgstr "你的報告已儲存在這台電腦上,因此沒有遺失任何內容。你可以改用電子郵件寄給我們。"+#: src/components/BugReportSendToast.tsx+msgid "Your report is saved on this computer, so nothing was lost."+msgstr "你的回報已儲存在這台電腦上,沒有遺失任何內容。"#: src/components/CloneDialog.tsxmsgid "Your repositories"diff --git a/packages/app/src/main.tsx b/packages/app/src/main.tsxindex ccf11c9be..484487ffa 100644--- a/packages/app/src/main.tsx+++ b/packages/app/src/main.tsx@@ -40,6 +40,7 @@ import { installCrashInviteListener } from '@/lib/crash-invite-store';import { installFeedbackNudgeStore } from '@/lib/feedback-nudge-store';// Side-effect import: loads + activates the i18n catalog before first render.import { i18n } from '@/lib/i18n';+import { installBugReportSendToasts } from '@/lib/install-bug-report-send-toasts';import { installClientLogForwarder } from '@/lib/install-client-log-forwarder';import { installDeepLinkListener } from '@/lib/install-deep-link-listener';import { installOnboardingToastListener } from '@/lib/install-onboarding-toast';@@ -208,6 +209,14 @@ if (typeof window !== 'undefined') {installCrashInviteListener({ bridge: window.okDesktop });}+// Desktop-only: surface background bug-report sends as toasts. The send+// manager it watches is module-level, so a send outlives the dialog that+// started it; installing here means the toast is minted from the first+// progress publish, whatever surface pressed Send.+if (typeof window !== 'undefined') {+ installBugReportSendToasts({ bridge: window.okDesktop });+}+// Desktop-only: ephemeral single-file window (`ok <file>`). Seed the doc into// the hash BEFORE `createRoot().render()` so `NavigationHandler`'s first-mount// read lands on the file — deterministic, no post-load `ok:deep-link` IPC to@@ -273,14 +282,21 @@ createRoot(root).render(<ReportBugCrashInviteTrigger bridge={desktopBridge} /></CrashReportingBoundary>)}+ {/*+ * Sonner toaster for ad-hoc status/error toasts (clone dialog, file+ * tree, etc.). Auto-update notices are NOT routed here — they live+ * in the sidebar footer via <UpdateNotices /> for a persistent home+ * that matches their permanent-until-clicked semantics.+ *+ * Inside TooltipProvider on purpose: a toast renders outside every+ * error boundary, so a body that reads a missing Radix provider+ * throws where nothing can catch it and unmounts the React root —+ * on whatever the toast was reporting. The provider above it+ * removes the sharpest edge; toast bodies still avoid+ * provider-dependent primitives.+ */}+ <Toaster richColors closeButton /></TooltipProvider>- {/*- * Sonner toaster for ad-hoc status/error toasts (clone dialog, file- * tree, etc.). Auto-update notices are NOT routed here — they live- * in the sidebar footer via <UpdateNotices /> for a persistent home- * that matches their permanent-until-clicked semantics.- */}- <Toaster richColors closeButton /></ThemeProvider></QueryClientProvider></I18nProvider>diff --git a/packages/core/src/desktop-bridge.ts b/packages/core/src/desktop-bridge.tsindex 2402ef2f6..7484e4d4d 100644--- a/packages/core/src/desktop-bridge.ts+++ b/packages/core/src/desktop-bridge.ts@@ -1093,6 +1093,18 @@ export interface OkBugReportSendInput {* upload the capture it may still hold.*/includeScreenshot?: boolean;+ /**+ * W3C `traceparent` for the renderer span that owns this send attempt. Main+ * extracts it and parents its transport span underneath, so one trace covers+ * the whole send rather than two disconnected halves.+ *+ * Declared here because it genuinely crosses the boundary: without it on the+ * shared contract the field travels undeclared (a conditional spread at the+ * call site slips past excess-property checking), so anyone editing this+ * interface cannot see it exists, and a validator that rejects unknown keys+ * would drop it silently. Absent when telemetry is off, which is the default.+ */+ traceparent?: string;}/**diff --git a/packages/core/src/logger-types.ts b/packages/core/src/logger-types.tsindex fd5752562..7a0a5e8cd 100644--- a/packages/core/src/logger-types.ts+++ b/packages/core/src/logger-types.ts@@ -145,9 +145,12 @@ export interface OkBugReportSendMetadata {* `send-failed` covers real failures: a configured upload that was attempted* and refused (offline, timeout, rejection at any step), or a request the* handler refused outright (malformed payload, zip outside the bug-reports- * root).+ * root). `send-in-flight` is neither: nothing failed and nothing was refused,+ * the same bundle is simply mid-flight already (a second window retrying a+ * report whose owning send still holds the in-flight lock). Callers must not+ * render it as a failure.*/-export type OkBugReportSendFallbackReason = 'email-draft' | 'send-failed';+export type OkBugReportSendFallbackReason = 'email-draft' | 'send-failed' | 'send-in-flight';/*** Result of the desktop `ok:bug-report:dispatch` send operation. Successdiff --git a/packages/desktop/src/main/bug-report-trace.test.ts b/packages/desktop/src/main/bug-report-trace.test.tsnew file mode 100644index 000000000..188464645--- /dev/null+++ b/packages/desktop/src/main/bug-report-trace.test.ts@@ -0,0 +1,167 @@+/**+ * Span-shape tests for the bug-report send trace.+ *+ * The desktop package has no OTel SDK and cannot mount an+ * `InMemorySpanExporter`, so we intercept `getTracer` at the+ * `@inkeep/open-knowledge-server` boundary — the precedent set by+ * `git-preflight-handler-otel.test.ts`. The fake tracer records the parent+ * `Context` each `startSpan` was handed, which is the only way to assert+ * parentage without a real exporter.+ *+ * The load-bearing case is concurrency. Several bug reports can be uploading+ * at once, and the failure this module exists to prevent is one send's phase+ * spans attaching to another send's root — which is what happens if the+ * implementation parents from the ambient async context instead of an+ * explicit one. The parallel test below interleaves two sends deliberately so+ * an ambient-context implementation would fail it.+ */++import { type Context, type Span, trace } from '@opentelemetry/api';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';++interface StartedSpan {+ readonly name: string;+ readonly parent: Context | undefined;+ readonly span: FakeSpan;+}++const started: StartedSpan[] = [];++class FakeSpan {+ readonly attributes: Record<string, unknown> = {};+ status: number | undefined;+ ended = false;+ endedAt: number | undefined;+ isRecording() {+ return true;+ }+ setAttribute(key: string, value: unknown) {+ this.attributes[key] = value;+ return this;+ }+ setAttributes(attrs: Record<string, unknown>) {+ Object.assign(this.attributes, attrs);+ return this;+ }+ setStatus(status: { code: number }) {+ this.status = status.code;+ return this;+ }+ end(endTime?: number) {+ this.ended = true;+ this.endedAt = endTime;+ }+}++const actual = await import('@inkeep/open-knowledge-server');++vi.doMock('@inkeep/open-knowledge-server', () => ({+ ...actual,+ getTracer: () => ({+ startSpan(name: string, _options: unknown, parent?: Context) {+ const span = new FakeSpan();+ started.push({ name, parent, span });+ return span as unknown as Span;+ },+ }),+}));++// Imported AFTER the mock so its `getTracer` import binds to the fake.+const { beginSendTrace } = await import('./bug-report-trace.ts');++/** The span a recorded context points at, or undefined for a root. */+function parentSpanOf(entry: StartedSpan): Span | undefined {+ return entry.parent ? trace.getSpan(entry.parent) : undefined;+}++describe('bug-report send trace', () => {+ beforeEach(() => {+ started.length = 0;+ // The SDK is opt-in; every entry point is a no-op unless this is 'false'.+ process.env.OTEL_SDK_DISABLED = 'false';+ });++ afterEach(() => {+ process.env.OTEL_SDK_DISABLED = undefined;+ });++ test('a send opens its own root span and closes it with the outcome', () => {+ const t = beginSendTrace({ 'ok.bug_report.include_screenshot': true });+ t.phase('mint', { 'http.response.status_code': 200 }, 1_000, 1_200);+ t.end('sent');++ const root = started[0];+ expect(root.name).toBe('ok.bug-report.send');+ // Rooted at ROOT_CONTEXT, so it starts a trace rather than joining one.+ expect(parentSpanOf(root)).toBeUndefined();+ expect(root.span.attributes['ok.bug_report.outcome']).toBe('sent');+ expect(root.span.ended).toBe(true);++ const mint = started[1];+ expect(mint.name).toBe('ok.bug-report.mint');+ expect(mint.span.endedAt).toBe(1_200);+ });++ test('concurrent sends never adopt each other as parents', () => {+ // Interleaved on purpose: A opens, B opens, then A and B each record a+ // phase. An implementation reading `context.active()` would hand B's phase+ // whatever context was ambient — here, potentially A's.+ const a = beginSendTrace();+ const b = beginSendTrace();+ a.phase('upload', {}, 10, 20);+ b.phase('upload', {}, 11, 21);+ a.end('sent');+ b.end('upload-failed');++ const roots = started.filter((s) => s.name === 'ok.bug-report.send');+ const phases = started.filter((s) => s.name === 'ok.bug-report.upload');+ expect(roots).toHaveLength(2);+ expect(phases).toHaveLength(2);++ const [rootA, rootB] = roots;+ const [phaseA, phaseB] = phases;++ // Each root starts its own trace...+ expect(parentSpanOf(rootA)).toBeUndefined();+ expect(parentSpanOf(rootB)).toBeUndefined();+ // ...and each phase hangs off ITS OWN send, not its sibling's.+ expect(parentSpanOf(phaseA)).toBe(rootA.span);+ expect(parentSpanOf(phaseB)).toBe(rootB.span);+ expect(parentSpanOf(phaseA)).not.toBe(rootB.span);+ });++ test('only a genuine upload failure marks the span as an error', () => {+ // email-drafted is the designed no-intake path and send-in-flight is a+ // refused duplicate — neither is a failure, and marking them ERROR would+ // light up dashboards for behavior that is working as specified.+ for (const outcome of ['sent', 'email-drafted', 'send-in-flight'] as const) {+ started.length = 0;+ beginSendTrace().end(outcome);+ expect(started[0].span.status).toBe(1); // SpanStatusCode.OK+ }+ started.length = 0;+ beginSendTrace().end('upload-failed');+ expect(started[0].span.status).toBe(2); // SpanStatusCode.ERROR+ });++ test('end is idempotent and later phases are dropped', () => {+ const t = beginSendTrace();+ t.end('sent');+ t.end('upload-failed');+ t.phase('complete', {}, 1, 2);++ const roots = started.filter((s) => s.name === 'ok.bug-report.send');+ expect(roots).toHaveLength(1);+ // The first outcome stands; the second call must not rewrite it.+ expect(roots[0].span.attributes['ok.bug_report.outcome']).toBe('sent');+ expect(started.filter((s) => s.name === 'ok.bug-report.complete')).toHaveLength(0);+ });++ test('telemetry stays off unless explicitly enabled', () => {+ process.env.OTEL_SDK_DISABLED = undefined;+ const t = beginSendTrace();+ t.phase('mint', {}, 1, 2);+ t.end('sent');+ expect(started).toHaveLength(0);+ });+});diff --git a/packages/desktop/src/main/bug-report-trace.ts b/packages/desktop/src/main/bug-report-trace.tsnew file mode 100644index 000000000..4286dac1c--- /dev/null+++ b/packages/desktop/src/main/bug-report-trace.ts@@ -0,0 +1,172 @@+/**+ * OTel spans for the bug-report send path.+ *+ * The send used to be observable by eye: a modal held the reporter until it+ * resolved, so a slow or wedged upload was visible to the person who started+ * it. Sends now run in the background behind a toast, which means the only+ * remaining account of how long one took, and whether it worked, is this+ * trace. Everything the path emitted before was error-only (`logIpcError`), so+ * a send that succeeded slowly looked identical to one that succeeded fast.+ *+ * Topology: **one trace per send**, rooted at `ok.bug-report.send`, with a+ * child per transport step (`mint` / `upload` / `complete`). Sends are NOT+ * parented into the launch trace: `ok.app-startup` ends at window-shown, and a+ * report filed twenty minutes later would otherwise hang off a long-dead root.+ *+ * Concurrency is the reason this module exists rather than a `withSpan` call+ * at the handler. Several sends can be in flight at once (the whole point of+ * the background manager), and `startActiveSpan` parents from the *ambient*+ * async context — so an upload that begins while another is awaiting can nest+ * under its sibling and produce a trace that misreports one send as a phase of+ * another. Every span here is opened with an **explicit parent context** that+ * the caller holds, so two concurrent sends cannot see each other's context.+ * `beginSendTrace` returns a handle; the handle owns its context; phases pass+ * it back. Nothing reads `context.active()`.+ *+ * Fault isolation is total, matching `startup-trace.ts`: the SDK is off unless+ * `OTEL_SDK_DISABLED === 'false'`, every entry point swallows SDK faults, and+ * a non-recording span degrades to a no-op handle. Telemetry must never be+ * able to fail a bug report — the one path a user reaches *because* something+ * else already broke.+ */++import { getTracer } from '@inkeep/open-knowledge-server';+import {+ type Context,+ propagation,+ ROOT_CONTEXT,+ type Span,+ SpanStatusCode,+ trace,+} from '@opentelemetry/api';+import { getLogger } from './desktop-logger.ts';++/**+ * Closed set of terminal outcomes, mirroring the handler's own branches. A+ * closed enum is deliberate: the cardinality rule this trace shares with the+ * launch trace bars free-form string attributes (paths, ids, error text), and+ * a four-value set is bounded by construction. Anything unbounded belongs in+ * the log line, not on a span.+ */+type BugReportSendOutcome = 'sent' | 'email-drafted' | 'upload-failed' | 'send-in-flight';++/** Transport steps inside a send, in the order `uploadBugReport` runs them. */+type BugReportSendPhase = 'mint' | 'upload' | 'complete';++/** Bounded attributes only — numbers and booleans. See the cardinality note above. */+export type BoundedAttributes = Record<string, number | boolean>;++/**+ * A single send's trace. Every method is a no-op when OTel is off or the span+ * is not recording, so callers need no conditionals of their own.+ */+export interface BugReportSendTrace {+ /**+ * Record a transport step as a child of THIS send. Takes explicit start/end+ * timestamps because the steps are timed by the caller and recorded on+ * completion, and passes this handle's own context as the parent so a+ * concurrent send cannot capture it.+ */+ phase(+ name: BugReportSendPhase,+ attributes: BoundedAttributes,+ startMs: number,+ endMs: number,+ ): void;+ /** Terminal outcome. Idempotent — a second call is ignored. */+ end(outcome: BugReportSendOutcome, attributes?: BoundedAttributes): void;+}++/** Handle used when OTel is off, the SDK is not recording, or anything threw. */+const NOOP_TRACE: BugReportSendTrace = {+ phase: () => {},+ end: () => {},+};++function otelEnabled(): boolean {+ // Same gate as startup-trace: opt-IN, so a normal desktop run pays nothing.+ return process.env.OTEL_SDK_DISABLED === 'false';+}++/**+ * Open the root span for one send.+ *+ * `ROOT_CONTEXT` is passed explicitly rather than `context.active()`. That is+ * the load-bearing line for concurrency: it guarantees this send begins its+ * own trace no matter what ambient context the IPC handler happens to run+ * under, so two sends started microseconds apart are siblings in separate+ * traces rather than one appearing nested inside the other.+ *+ * Never throws. Returns a no-op handle when telemetry is unavailable.+ */+export function beginSendTrace(+ attributes: BoundedAttributes = {},+ traceparent?: string,+): BugReportSendTrace {+ if (!otelEnabled()) return NOOP_TRACE;+ try {+ // The renderer owns the user-perceived send and passes its W3C+ // `traceparent` over IPC, so main's transport work nests under the+ // operation the reporter actually started. Each in-flight send carries its+ // own header, which is what keeps the parenting correct when several are+ // running at once. Absent or malformed, `extract` yields the context+ // unchanged and this send roots its own trace instead.+ const parent =+ traceparent === undefined ? ROOT_CONTEXT : propagation.extract(ROOT_CONTEXT, { traceparent });+ const span = getTracer().startSpan('ok.bug-report.send', undefined, parent);+ if (!span.isRecording()) {+ // No real provider registered — end it rather than carry a phantom root+ // whose children would go nowhere.+ span.end();+ return NOOP_TRACE;+ }+ span.setAttributes(attributes);+ return createHandle(span, trace.setSpan(ROOT_CONTEXT, span));+ } catch (err) {+ getLogger('bug-report-trace').warn(+ { err },+ 'OTel span start failed for bug-report send — continuing untraced',+ );+ return NOOP_TRACE;+ }+}++function createHandle(span: Span, sendContext: Context): BugReportSendTrace {+ let ended = false;+ return {+ phase(name, attributes, startMs, endMs) {+ if (ended) return;+ try {+ // `sendContext` — this send's own context, captured at begin. Passing+ // it explicitly is what keeps concurrent sends from adopting each+ // other's spans as parents.+ const child = getTracer().startSpan(+ `ok.bug-report.${name}`,+ { startTime: startMs },+ sendContext,+ );+ child.setAttributes(attributes);+ child.end(endMs);+ } catch {+ // A telemetry fault must not surface in the send's result.+ }+ },+ end(outcome, attributes) {+ if (ended) return;+ ended = true;+ try {+ if (attributes) span.setAttributes(attributes);+ span.setAttribute('ok.bug_report.outcome', outcome);+ // Only a genuinely failed upload is an error. `email-drafted` is the+ // designed no-intake path and `send-in-flight` is a refused duplicate;+ // marking either ERROR would light up dashboards for working behavior.+ span.setStatus({+ code: outcome === 'upload-failed' ? SpanStatusCode.ERROR : SpanStatusCode.OK,+ });+ span.end();+ } catch {+ // ignore SDK fault on end+ }+ },+ };+}diff --git a/packages/desktop/src/main/ipc-log.test.ts b/packages/desktop/src/main/ipc-log.test.tsindex 371ae74af..969824814 100644--- a/packages/desktop/src/main/ipc-log.test.ts+++ b/packages/desktop/src/main/ipc-log.test.ts@@ -233,3 +233,44 @@ describe('logIpcError — cause boundary normalization', () => {expect(parsed.handler).toBe('mcpWiringConfirm');});});++describe('logIpcError — bounded details', () => {+ test('details ride the emitted payload alongside the canonical discriminants', () => {+ // `details` exists so a failed send is diagnosable from the bundle the+ // user submits rather than only from a terminal someone was tailing: the+ // fields below are what separate "this machine's DNS is broken" from "the+ // intake is down" from "the TLS clock is skewed", all of which reached the+ // log as the bare token `network-error` before.+ const captured = captureWarn(() => {+ logIpcError({+ event: 'ipc.error',+ channel: 'ok:bug-report:dispatch',+ reason: 'network-error',+ handler: 'handleBugReportSend',+ details: { step: 'upload', errCode: 'ENOTFOUND', host: 'intake.example.com' },+ });+ });++ expect(captured).toHaveLength(1);+ expect(JSON.parse(String(captured[0].args[0]))).toEqual({+ event: 'ipc.error',+ channel: 'ok:bug-report:dispatch',+ reason: 'network-error',+ handler: 'handleBugReportSend',+ details: { step: 'upload', errCode: 'ENOTFOUND', host: 'intake.example.com' },+ });+ });++ test('omitting details leaves the canonical wire shape byte-identical', () => {+ const captured = captureWarn(() => {+ logIpcError({ event: 'ipc.error', channel: 'c', reason: 'r', handler: 'h' });+ });++ expect(JSON.parse(String(captured[0].args[0]))).toEqual({+ event: 'ipc.error',+ channel: 'c',+ reason: 'r',+ handler: 'h',+ });+ });+});diff --git a/packages/desktop/src/main/ipc-log.ts b/packages/desktop/src/main/ipc-log.tsindex 2e87cc119..2885432e0 100644--- a/packages/desktop/src/main/ipc-log.ts+++ b/packages/desktop/src/main/ipc-log.ts@@ -46,6 +46,16 @@* metadata). Normalized at the boundary so Error instances preserve* message + name + stack on the wire and circular references degrade* safely instead of throwing — see `normalizeCause` below.+ * - `details` is optional BOUNDED context, and the two differ by destination+ * rather than by taste. `cause` reaches the console only: it carries stacks+ * and free-form text, which is exactly what you want when tailing a terminal+ * and exactly what must not be indexed. `details` additionally reaches the+ * pino file logger, which is collected into user-submitted diagnostic+ * bundles — so it takes only primitives whose value set is bounded by+ * construction (a step name, an errno, a status code, a host). Never put a+ * path, a signed URL, a document body, or a raw error message here; the+ * cardinality discipline that governs span attributes governs this field+ * for the same reason.*/interface IpcErrorLogPayload {readonly event: 'ipc.error';@@ -53,6 +63,7 @@ interface IpcErrorLogPayload {readonly reason: string;readonly handler: string;readonly cause?: unknown;+ readonly details?: Readonly<Record<string, string | number | boolean>>;}/**@@ -138,7 +149,15 @@ export function logIpcError(payload: IpcErrorLogPayload): void {try {const { getLogger } = require('./desktop-logger.ts');getLogger('ipc').warn(- { channel: payload.channel, handler: payload.handler, reason: payload.reason },+ // `details` is spread FIRST so the canonical discriminants always win a+ // key collision — a caller that passes `channel` in its details cannot+ // rewrite the field consumers index on.+ {+ ...payload.details,+ channel: payload.channel,+ handler: payload.handler,+ reason: payload.reason,+ },`IPC error: ${payload.channel} — ${payload.reason}`,);} catch {}diff --git a/packages/desktop/src/main/ipc/bug-report.test.ts b/packages/desktop/src/main/ipc/bug-report.test.tsindex 585dbab25..5a7fef205 100644--- a/packages/desktop/src/main/ipc/bug-report.test.ts+++ b/packages/desktop/src/main/ipc/bug-report.test.ts@@ -31,7 +31,34 @@ import {import { createServer, type Server } from 'node:http';import { tmpdir } from 'node:os';import { dirname, join, resolve } from 'node:path';-import { afterEach, beforeEach, describe, expect, test } from 'vitest';+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';++/**+ * Span names started during a send, for the phase-parity assertions below.+ * The real tracer is a no-op unless OTEL_SDK_DISABLED is 'false', so this+ * records at the `@inkeep/open-knowledge-server` boundary instead — the same+ * seam `bug-report-trace.test.ts` uses.+ */+const startedSpanNames: string[] = [];+vi.mock('@inkeep/open-knowledge-server', async (importOriginal) => {+ const actual = await importOriginal<Record<string, unknown>>();+ return {+ ...actual,+ getTracer: () => ({+ startSpan(name: string) {+ startedSpanNames.push(name);+ return {+ isRecording: () => true,+ setAttribute: () => {},+ setAttributes: () => {},+ setStatus: () => {},+ end: () => {},+ };+ },+ }),+ };+});+import {createBugReportSidecarStore,readReportSidecar,@@ -2422,12 +2449,18 @@ describe('bug-report sidecar wiring — create writes the record, send tracks stexpect(result.ok).toBe(false);if (result.ok) throw new Error('expected refusal');- expect(result.reason).toBe('send-failed');+ // Distinct from a genuine failure: the owning send is still running, so a+ // renderer that renders this as "couldn't send" would be lying about a+ // report that is about to succeed.+ expect(result.reason).toBe('send-in-flight');// The refusal must happen BEFORE any network work: the bundle is uploaded// exactly once no matter how many retries race.expect(stub.requests).toHaveLength(0);- // The owning send still holds the report; the refusal left it untouched.+ // The owning send still holds the report: the refusal returned before the+ // terminal hook, so it wrote no state and released no lock the owner is+ // still relying on.expect((await readReportSidecar(sidecarPathForId(dir, REPORT_ID)))?.state).toBe('uploading');+ expect((await store.sendHooks.onSendStart(REPORT_ID)).proceed).toBe(false);});test('a zip inside the reports dir with a non-report basename is refused', async () => {@@ -2465,3 +2498,141 @@ describe('bug-report sidecar wiring — create writes the record, send tracks st);});});++describe('handleBugReportSend — structured failure diagnostics', () => {+ /** The `logIpcError` lines emitted while `fn` ran, parsed. */+ async function captureIpcErrors(fn: () => Promise<unknown>): Promise<Record<string, unknown>[]> {+ const lines: Record<string, unknown>[] = [];+ const original = console.warn;+ console.warn = (...args: unknown[]) => {+ try {+ lines.push(JSON.parse(String(args[0])) as Record<string, unknown>);+ } catch {+ // Not a structured line — irrelevant here.+ }+ };+ try {+ await fn();+ } finally {+ console.warn = original;+ }+ return lines;+ }++ function dispatchFailure(lines: Record<string, unknown>[]): Record<string, unknown> {+ const line = lines.find(+ (l) => l.channel === 'ok:bug-report:dispatch' && l.handler === 'handleBugReportSend',+ );+ if (line === undefined) throw new Error('no dispatch failure line was logged');+ return line;+ }++ test('an unresolvable intake names the step, the errno, and the host', async () => {+ // Driven through real `fetch` rather than a thrown fake because the+ // behavior under test is undici-specific: it reports+ // every transport failure as the same opaque `TypeError: fetch failed`+ // and hangs the errno one level down in `cause`, so an implementation+ // that read `err.code` off the caught value would pass a fake and still+ // log nothing useful in production.+ const { deps, zipPath } = makeSendRig('https://intake.invalid-tld-for-test.invalid');++ const lines = await captureIpcErrors(() =>+ handleBugReportSend(deps, { kind: 'send', zipPath, metadata: SEND_METADATA }),+ );++ const details = dispatchFailure(lines).details as Record<string, unknown>;+ expect(details.step).toBe('mint');+ expect(details.host).toBe('intake.invalid-tld-for-test.invalid');+ expect(details.errName).toBe('TypeError');+ // The field that separates "this machine cannot resolve" from "the intake+ // refused" from "the certificate expired" — all previously indistinguishable+ // under the single token `network-error`.+ expect(details.errCode).toBe('ENOTFOUND');+ });++ test('a failing upload names the storage host without leaking the signature', async () => {+ // The upload step targets a MINTED, signed URL. Its host is the fact that+ // makes a failure triageable; its query is a live credential. Logging the+ // whole URL would write that credential into a bundle the user hands to+ // support, so this pins host-only rather than trusting the convention.+ const stub = await startIntakeStub({+ mintBody: {+ uploadUrl: 'https://storage.example.invalid/dest?X-Signature=SUPERSECRETSIG&exp=99',+ assetUrl: 'https://uploads.example.invalid/asset/dest',+ headers: {},+ },+ });+ const { deps, zipPath } = makeSendRig(stub.url);++ const lines = await captureIpcErrors(() =>+ handleBugReportSend(deps, { kind: 'send', zipPath, metadata: SEND_METADATA }),+ );++ const line = dispatchFailure(lines);+ const details = line.details as Record<string, unknown>;+ expect(details.step).toBe('upload');+ expect(details.host).toBe('storage.example.invalid');+ // Nothing anywhere on the line may carry the signature.+ expect(JSON.stringify(line)).not.toContain('SUPERSECRETSIG');+ });++ test('a rejected mint carries the step and the status it was rejected with', async () => {+ const stub = await startIntakeStub({ mintStatus: 503 });+ const { deps, zipPath } = makeSendRig(stub.url);++ const lines = await captureIpcErrors(() =>+ handleBugReportSend(deps, { kind: 'send', zipPath, metadata: SEND_METADATA }),+ );++ const details = dispatchFailure(lines).details as Record<string, unknown>;+ expect(details).toMatchObject({ step: 'mint', status: 503 });+ });+});++describe('handleBugReportSend — transport phase spans', () => {+ beforeEach(() => {+ startedSpanNames.length = 0;+ // The tracer is opt-in; without this every span call is a silent no-op,+ // which is precisely why the mint gap below went unnoticed.+ process.env.OTEL_SDK_DISABLED = 'false';+ });++ afterEach(() => {+ process.env.OTEL_SDK_DISABLED = undefined;+ });++ test('a REJECTED mint still records how long the mint took', async () => {+ // The failure this pins: the mint phase span used to be recorded after the+ // status checks, so a 500 skipped it entirely - the span was absent on+ // exactly the mint failures it exists to time, while upload and complete+ // recorded theirs before their own checks. A slow-then-rejecting intake+ // looked identical to an instant one.+ const stub = await startIntakeStub({ mintStatus: 500 });+ const { deps, zipPath } = makeSendRig(stub.url);++ const result = await handleBugReportSend(deps, {+ kind: 'send',+ zipPath,+ metadata: SEND_METADATA,+ });++ expect(result.ok).toBe(false);+ expect(startedSpanNames).toContain('ok.bug-report.mint');+ });++ test('a successful send records all three transport phases', async () => {+ const stub = await startIntakeStub();+ const { deps, zipPath } = makeSendRig(stub.url);++ await handleBugReportSend(deps, { kind: 'send', zipPath, metadata: SEND_METADATA });++ expect(startedSpanNames).toEqual(+ expect.arrayContaining([+ 'ok.bug-report.send',+ 'ok.bug-report.mint',+ 'ok.bug-report.upload',+ 'ok.bug-report.complete',+ ]),+ );+ });+});diff --git a/packages/desktop/src/main/ipc/bug-report.ts b/packages/desktop/src/main/ipc/bug-report.tsindex 4c80b77c9..804f73f53 100644--- a/packages/desktop/src/main/ipc/bug-report.ts+++ b/packages/desktop/src/main/ipc/bug-report.ts@@ -39,6 +39,7 @@ import {type ReportBundleLevel,} from '@inkeep/open-knowledge-core';import type { OkBugReportSendInput } from '@inkeep/open-knowledge-core/desktop-bridge';+import { type BugReportSendTrace, beginSendTrace } from '../bug-report-trace.ts';import type { MinidumpReportLookup } from '../crash-detection.ts';import { logIpcError } from '../ipc-log.ts';import { isPathWithinProject } from '../path-containment.ts';@@ -82,9 +83,9 @@ interface OkBugReportDeleteRequest {id: string;}-export type OkBugReportSendRequest = OkBugReportSendInput & {- kind: 'send';-};+// `traceparent` is NOT redeclared here: it lives on `OkBugReportSendInput` in+// core, which is the shared wire contract both sides read.+export type OkBugReportSendRequest = OkBugReportSendInput & { kind: 'send' };export interface OkBugReportCrashAckRequest {kind: 'crash-ack';@@ -778,6 +779,7 @@ function isSendRequest(request: unknown): request is OkBugReportSendRequest {const r = request as Record<string, unknown>;if (r.kind !== 'send' || typeof r.zipPath !== 'string') return false;if (r.includeScreenshot !== undefined && typeof r.includeScreenshot !== 'boolean') return false;+ if (r.traceparent !== undefined && typeof r.traceparent !== 'string') return false;if (typeof r.metadata !== 'object' || r.metadata === null) return false;const m = r.metadata as Record<string, unknown>;return (@@ -850,7 +852,84 @@ function parseCompletionReference(payload: unknown): string | null {type BugReportUploadOutcome =| { ok: true; reference: string }- | { ok: false; reason: string; cause?: unknown };+ | {+ ok: false;+ reason: string;+ cause?: unknown;+ /** Bounded transport facts for the log line — see `describeTransportFailure`. */+ details?: Readonly<Record<string, string | number | boolean>>;+ };++/** Transport steps inside a send, in the order `uploadBugReport` runs them. */+type BugReportSendStep = 'mint' | 'upload' | 'complete';++/**+ * Pull the transport errno out of a caught `fetch` rejection.+ *+ * undici reports every transport failure as the same opaque+ * `TypeError: fetch failed` and hangs the error that actually names the+ * problem — `ENOTFOUND`, `ECONNREFUSED`, `ECONNRESET`, `CERT_HAS_EXPIRED` —+ * one level down in `cause`. Reading `err.code` off the caught value+ * therefore yields nothing on precisely the failures worth triaging, which is+ * why this walks the chain instead of inspecting the top error.+ *+ * Depth- and cycle-bounded: `Error.cause` chains can be self-referential, and+ * an unguarded walk would stack-overflow inside a catch block whose whole job+ * is to keep the send's failure reportable (the hazard `normalizeCause` in+ * `ipc-log.ts` guards for the same reason).+ */+function transportErrorCode(err: unknown): string | undefined {+ const seen = new Set<unknown>();+ let cursor: unknown = err;+ for (let depth = 0; depth < 5 && cursor !== null && cursor !== undefined; depth += 1) {+ if (seen.has(cursor)) return undefined;+ seen.add(cursor);+ const code = (cursor as { code?: unknown }).code;+ if (typeof code === 'string' && code !== '') return code;+ cursor = (cursor as { cause?: unknown }).cause;+ }+ return undefined;+}++/** Origin host of a target, or undefined when it will not parse. */+function hostOf(target: URL | string | undefined): string | undefined {+ if (target === undefined) return undefined;+ try {+ return (typeof target === 'string' ? new URL(target) : target).host;+ } catch {+ return undefined;+ }+}++/**+ * Bounded facts about a failed transport step, for the structured log line.+ *+ * A failed send used to reach the log as the bare token `network-error`, which+ * cannot distinguish this machine's DNS being broken from the intake being+ * down from a TLS clock skew — so a report about a failed report was not+ * answerable from the bundle it shipped with. These are the four fields that+ * separate those cases.+ *+ * Every value is bounded by construction because this line is collected into+ * user-submitted diagnostic bundles. `host` is the ORIGIN HOST ONLY and that+ * restriction is load-bearing, not stylistic: the upload step targets a signed+ * URL whose path and query carry the signature, so logging the full URL would+ * write a live upload credential into a bundle the user hands to support.+ */+function describeTransportFailure(+ step: BugReportSendStep,+ target: URL | string | undefined,+ extras: { err?: unknown; status?: number } = {},+): Record<string, string | number | boolean> {+ const details: Record<string, string | number | boolean> = { step };+ const host = hostOf(target);+ if (host !== undefined) details.host = host;+ if (extras.status !== undefined) details.status = extras.status;+ if (extras.err instanceof Error) details.errName = extras.err.name;+ const code = transportErrorCode(extras.err);+ if (code !== undefined) details.errCode = code;+ return details;+}/*** Trace a skipped screenshot and return null in one expression. Every exit from@@ -953,6 +1032,7 @@ async function uploadBugReport(metadata: BugReportWireMetadata,timeouts?: Partial<BugReportUploadTimeouts>,screenshotBytes?: Uint8Array | null,+ sendTrace?: BugReportSendTrace,): Promise<BugReportUploadOutcome> {const base = parseTransportSafeUrl(baseUrl);if (base === null) {@@ -978,9 +1058,19 @@ async function uploadBugReport(} catch (err) {return { ok: false, reason: 'zip-unreadable', cause: err };}- let step: 'mint' | 'upload' | 'complete' = 'mint';+ let step: BugReportSendStep = 'mint';+ // The host the CURRENT step is talking to. Tracked separately from `base`+ // because the upload step moves to the minted signed URL, which routinely+ // lives on a different origin (an object store) than the intake — so a+ // failure that named `base` would point triage at the wrong service.+ const mintUrl = new URL('/api/bug-report', base);+ let stepTarget: URL | string = mintUrl;+ // Each step's span is closed right after its fetch settles, before the+ // status checks below — a rejected mint/upload/complete still shows how long+ // it took, which is the number you want when triaging a slow intake.+ let stepStartedAt = Date.now();try {- const mintRes = await fetch(new URL('/api/bug-report', base), {+ const mintRes = await fetch(mintUrl, {method: 'POST',headers: { 'content-type': 'application/json' },body: JSON.stringify({@@ -992,9 +1082,28 @@ async function uploadBugReport(redirect: 'manual',signal: AbortSignal.timeout(timeouts?.mintMs ?? MINT_TIMEOUT_MS),});- if (!mintRes.ok) return { ok: false, reason: `mint-rejected: ${mintRes.status}` };+ // Closed the instant the fetch settles, BEFORE the status checks below,+ // matching upload and complete. Recording it after them would skip the+ // span on exactly the mint failures it exists to time.+ sendTrace?.phase(+ 'mint',+ { 'http.response.status_code': mintRes.status },+ stepStartedAt,+ Date.now(),+ );+ if (!mintRes.ok)+ return {+ ok: false,+ reason: `mint-rejected: ${mintRes.status}`,+ details: describeTransportFailure(step, stepTarget, { status: mintRes.status }),+ };const mint = parseMintResponse(await mintRes.json().catch(() => null));- if (mint === null) return { ok: false, reason: 'mint-malformed' };+ if (mint === null)+ return {+ ok: false,+ reason: 'mint-malformed',+ details: describeTransportFailure(step, stepTarget, { status: mintRes.status }),+ };// The minted URL is the channel that carries the actual bundle bytes, so// it gets the same transport gate as the operator-configured base — a// misconfigured or compromised intake must not be able to downgrade the@@ -1005,10 +1114,15 @@ async function uploadBugReport(ok: false,reason: 'upload-url-rejected',cause: `rejected upload URL: ${mint.uploadUrl}`,+ // `stepTarget` is still the mint URL here: the minted one was refused,+ // so naming its host would point triage at a URL we declined to trust.+ details: describeTransportFailure(step, stepTarget, { status: mintRes.status }),};}step = 'upload';+ stepTarget = mint.uploadUrl;+ stepStartedAt = Date.now();const putRes = await fetch(mint.uploadUrl, {method: 'PUT',// Minted values win over the baseline content-type when they overlap —@@ -1021,6 +1135,13 @@ async function uploadBugReport(redirect: 'manual',signal: AbortSignal.timeout(timeouts?.putMs ?? PUT_TIMEOUT_MS),});+ sendTrace?.phase(+ 'upload',+ { 'http.response.status_code': putRes.status },+ stepStartedAt,+ Date.now(),+ );+// `redirect: 'manual'` surfaces the un-followed redirect either as the// raw 3xx or as an opaque-redirect response (status 0), depending on// runtime — classify both apart from an ordinary status rejection.@@ -1029,9 +1150,18 @@ async function uploadBugReport(putRes.status === 0 ||(putRes.status >= 300 && putRes.status < 400)) {- return { ok: false, reason: 'upload-redirected' };+ return {+ ok: false,+ reason: 'upload-redirected',+ details: describeTransportFailure(step, stepTarget, { status: putRes.status }),+ };}- if (!putRes.ok) return { ok: false, reason: `upload-rejected: ${putRes.status}` };+ if (!putRes.ok)+ return {+ ok: false,+ reason: `upload-rejected: ${putRes.status}`,+ details: describeTransportFailure(step, stepTarget, { status: putRes.status }),+ };// Upload the screenshot as its own Linear asset so the ticket can embed it// inline. Deliberately client-side: the intake cannot read the bytes back out@@ -1049,7 +1179,9 @@ async function uploadBugReport(: await uploadScreenshotAsset(base, screenshotBytes, metadata, timeouts);step = 'complete';- const completeRes = await fetch(new URL('/api/bug-report/complete', base), {+ stepTarget = new URL('/api/bug-report/complete', base);+ stepStartedAt = Date.now();+ const completeRes = await fetch(stepTarget, {method: 'POST',headers: { 'content-type': 'application/json' },body: JSON.stringify(@@ -1063,9 +1195,25 @@ async function uploadBugReport(redirect: 'manual',signal: AbortSignal.timeout(timeouts?.completeMs ?? COMPLETE_TIMEOUT_MS),});- if (!completeRes.ok) return { ok: false, reason: `complete-rejected: ${completeRes.status}` };+ sendTrace?.phase(+ 'complete',+ { 'http.response.status_code': completeRes.status },+ stepStartedAt,+ Date.now(),+ );+ if (!completeRes.ok)+ return {+ ok: false,+ reason: `complete-rejected: ${completeRes.status}`,+ details: describeTransportFailure(step, stepTarget, { status: completeRes.status }),+ };const reference = parseCompletionReference(await completeRes.json().catch(() => null));- if (reference === null) return { ok: false, reason: 'complete-malformed' };+ if (reference === null)+ return {+ ok: false,+ reason: 'complete-malformed',+ details: describeTransportFailure(step, stepTarget, { status: completeRes.status }),+ };return { ok: true, reference };} catch (err) {// Offline, DNS failure, refused connection — or a timeout ceiling firing@@ -1076,7 +1224,12 @@ async function uploadBugReport(// first splitting cancel out of this classification.const timedOut =err instanceof Error && (err.name === 'TimeoutError' || err.name === 'AbortError');- return { ok: false, reason: timedOut ? `${step}-timeout` : 'network-error', cause: err };+ return {+ ok: false,+ reason: timedOut ? `${step}-timeout` : 'network-error',+ cause: err,+ details: describeTransportFailure(step, stepTarget, { err }),+ };}}@@ -1228,6 +1381,14 @@ export async function handleBugReportSend(// The report id is the zip's basename — the sidecar key the state transitions// are recorded under, for both the first dialog send and a later list retry.const reportId = basename(request.zipPath);+ // One trace per send, opened before the first terminal branch so every+ // outcome below closes it exactly once. Concurrency safety lives in+ // `beginSendTrace`: the span roots at ROOT_CONTEXT, never the ambient async+ // context, so simultaneous sends cannot nest inside one another.+ const sendTrace = beginSendTrace(+ { 'ok.bug_report.include_screenshot': request.includeScreenshot === true },+ request.traceparent,+ );if (!deps.intakeBaseUrl) {// The designed default, not an error: no intake endpoint means the email// draft is the transport and no network request was ever attempted. The@@ -1240,6 +1401,7 @@ export async function handleBugReportSend(handler: 'handleBugReportSend',});await runSidecarHook(deps.sidecar?.onSendResult(reportId, { kind: 'email-drafted' }));+ sendTrace.end('email-drafted');return { ok: false, reason: 'email-draft', fallback };}if (deps.sidecar) {@@ -1270,7 +1432,8 @@ export async function handleBugReportSend(reason: 'send-in-flight',handler: 'handleBugReportSend',});- return { ok: false, reason: 'send-failed', fallback };+ sendTrace.end('send-in-flight');+ return { ok: false, reason: 'send-in-flight', fallback };}}// Consent gate first, bytes second. main holds the capture for this window@@ -1295,11 +1458,13 @@ export async function handleBugReportSend(wireMetadata,deps.timeouts,screenshotBytes,+ sendTrace,);if (outcome.ok) {await runSidecarHook(deps.sidecar?.onSendResult(reportId, { kind: 'sent', reference: outcome.reference }),);+ sendTrace.end('sent');return { ok: true, reference: outcome.reference };}logIpcError({@@ -1308,10 +1473,15 @@ export async function handleBugReportSend(reason: outcome.reason,handler: 'handleBugReportSend',cause: outcome.cause,+ // The bounded half reaches the pino file, which ships inside diagnostic+ // bundles — this is what makes a failed send answerable from a later+ // report rather than only from a terminal someone happened to be tailing.+ ...(outcome.details === undefined ? {} : { details: outcome.details }),});await runSidecarHook(deps.sidecar?.onSendResult(reportId, { kind: 'upload-failed', reason: outcome.reason }),);+ sendTrace.end('upload-failed');return { ok: false, reason: 'send-failed', fallback };}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 36ef33420..694da5371 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -682,6 +682,9 @@ importers:'@opentelemetry/context-async-hooks':specifier: ^2.0.0version: 2.9.0(@opentelemetry/[email protected])+ '@opentelemetry/core':+ specifier: ~2.8.0+ version: 2.8.0(@opentelemetry/[email protected])'@opentelemetry/sdk-trace-base':specifier: ^2.0.0version: 2.9.0(@opentelemetry/[email protected])