From afbf4b40a2b2633bfae31b256d70004f6e95cce9 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 31 Aug 2026 15:20:44 -0400 Subject: [PATCH] fix(artifacts): clarify oversized request error --- .../src/components/artifacts/artifact-publish-flow.test.ts | 2 +- src/renderer/src/components/artifacts/artifact-publish-flow.ts | 2 +- src/renderer/src/i18n/locales/en.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/components/artifacts/artifact-publish-flow.test.ts b/src/renderer/src/components/artifacts/artifact-publish-flow.test.ts index 977a6d64373..e962b435476 100644 --- a/src/renderer/src/components/artifacts/artifact-publish-flow.test.ts +++ b/src/renderer/src/components/artifacts/artifact-publish-flow.test.ts @@ -97,7 +97,7 @@ describe('artifact publish flow', () => { await expect(publishArtifactFromSurface(createRequest)).resolves.toBeNull() expect(mocks.callRuntimeRpc).not.toHaveBeenCalled() expect(mocks.toastError).toHaveBeenCalledWith('Could not share artifact', { - description: 'Artifacts shared from Orca must be 5 MB or smaller.' + description: 'This artifact is too large to share.' }) }) diff --git a/src/renderer/src/components/artifacts/artifact-publish-flow.ts b/src/renderer/src/components/artifacts/artifact-publish-flow.ts index 46785ee870e..3f554218a81 100644 --- a/src/renderer/src/components/artifacts/artifact-publish-flow.ts +++ b/src/renderer/src/components/artifacts/artifact-publish-flow.ts @@ -128,7 +128,7 @@ function artifactPreparationErrorDescription(code: ArtifactPublishPreparationErr case 'too-large': return translate( 'auto.components.artifacts.artifact-publish-flow.6112db5a1c', - 'Artifacts shared from Orca must be 5 MB or smaller.' + 'This artifact is too large to share.' ) case 'unreadable': return translate( diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.json index 82f8bb6185e..4fad82e2788 100644 --- a/src/renderer/src/i18n/locales/en.json +++ b/src/renderer/src/i18n/locales/en.json @@ -16415,7 +16415,7 @@ "2fc727c831": "Artifact updated", "5cb4f5ec36": "Copy link", "fbb5018602": "This file is empty.", - "6112db5a1c": "Artifacts shared from Orca must be 5 MB or smaller.", + "6112db5a1c": "This artifact is too large to share.", "e2ed5acd8c": "Orca couldn't read this file. Open it from a workspace and try again.", "6d475e9b25": "Only local HTML and Markdown files can be shared as artifacts.", "29a406be09": "Artifacts must contain text."