fix(web): keep composer add action attachment-only

This commit is contained in:
imccyu
2026-07-25 16:19:36 +08:00
parent 08ce02da2b
commit 468c64a078
3 changed files with 2 additions and 5 deletions
@@ -72,6 +72,8 @@ describe('EmptyState', () => {
prompt: 'draft', phase: 'ready',
})
expect(b.view.getByRole('button', { name: 'Choose workspace' }).textContent).toContain('workspace')
fireEvent.click(b.view.getByRole('button', { name: 'Add attachment' }))
expect((b.pickerOwner() as { open: boolean }).open).toBe(false)
fireEvent.change(b.view.getByPlaceholderText('Describe what you want to build'), { target: { value: 'build it' } })
expect(b.updateSessionPrompt).toHaveBeenCalledWith('build it')
fireEvent.click(b.view.getByRole('button', { name: 'Send message' }))