diff --git a/src/main/ipc/crash-reporting.test.ts b/src/main/ipc/crash-reporting.test.ts index 86867659302..c7495634db1 100644 --- a/src/main/ipc/crash-reporting.test.ts +++ b/src/main/ipc/crash-reporting.test.ts @@ -138,7 +138,7 @@ describe('registerCrashReportingHandlers', () => { _resetRendererErrorReportDedupeForTests() }) - it('copies the latest pending diagnostic text to the clipboard', async () => { + it('copies the requested captured report to the clipboard', async () => { const latest = report() registerCrashReportingHandlers({ getById: vi.fn(async () => latest), @@ -151,6 +151,7 @@ describe('registerCrashReportingHandlers', () => { } as never) const result = await handlers.get('crashReports:copyLatestDiagnostics')?.(null, { + reportId: latest.id, notes: 'extra /Users/alice/project' }) diff --git a/src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx b/src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx index 94ffb8d342d..05ad8fff24e 100644 --- a/src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx +++ b/src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx @@ -16,6 +16,7 @@ import { useMountedRef } from '@/hooks/useMountedRef' import { formatCrashReportText, isReactErrorBoundaryReport, + MAX_USER_NOTES_LENGTH, type CrashReportDiagnosticBundle, type CrashReportRecord } from '../../../../shared/crash-reporting' @@ -277,13 +278,23 @@ export function CrashReportDialogSurface({ )} )} -