The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(webapp): show the edit composer drop summary as a warning, like the main composer
unsupportedpastels1034e667ab92
diff --git a/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx b/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsxindex 7a4c9d3fff5..5de07aa71d7 100644--- a/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/user-edit-composer.tsx@@ -517,8 +517,9 @@ export const UserEditComposer: FC<UserEditComposerProps> = ({ cwd, gateway, sess}}+ // A warning, as in the main composer, so the same drop looks the same wherever it lands.if (failures.length) {- notify({ kind: 'error', title: t.desktop.dropFiles, ...dropWarning(failures, t.desktop.dropFilesMore) })+ notify({ kind: 'warning', title: t.desktop.dropFiles, ...dropWarning(failures, t.desktop.dropFilesMore) })}return refsdiff --git a/apps/desktop/src/components/assistant-ui/thread/user-message-edit-drop-staging.test.tsx b/apps/desktop/src/components/assistant-ui/thread/user-message-edit-drop-staging.test.tsxindex fbca5c6ca7b..2d1fa0f6efa 100644--- a/apps/desktop/src/components/assistant-ui/thread/user-message-edit-drop-staging.test.tsx+++ b/apps/desktop/src/components/assistant-ui/thread/user-message-edit-drop-staging.test.tsx@@ -84,7 +84,7 @@ describe('edit composer drop staging failures', () => {await waitFor(() => expect(stageFileForAttach).toHaveBeenCalledOnce())await waitFor(() =>expect($notifications.get()).toEqual([- expect.objectContaining({ kind: 'error', message: `Could not attach notes.txt: ${UPLOAD_413}` })+ expect.objectContaining({ kind: 'warning', message: `Could not attach notes.txt: ${UPLOAD_413}` })]))expect(request).not.toHaveBeenCalledWith('file.attach', expect.anything())@@ -126,7 +126,7 @@ describe('edit composer drop staging failures', () => {return found!})- expect(warning.kind).toBe('error')+ expect(warning.kind).toBe('warning')// A reason another item follows loses its period; the detail keeps it whole.expect(warning.message).toContain(`Could not attach ${'a'.repeat(24)}…${'a'.repeat(19)}.zip: ${limit.slice(0, -1)}; `)expect(warning.message).toContain(`Could not attach big.zip: ${limit}`)