refactor(agent): prevent creating autofill and embedding tasks for audio assets

This commit is contained in:
yiling
2026-07-05 16:31:14 +08:00
parent 73aa374b2b
commit 8ad25215dd
3 changed files with 25 additions and 20 deletions
@@ -300,7 +300,9 @@ describe('Agent Autofill Workflow', () => {
},
})
await expect(agentAutofillMedia(task)).rejects.toThrow('unsupported media type for autofill: audio/mp3')
await expect(agentAutofillMedia(task)).rejects.toThrow(
'unsupported media type for autofill: audio/mp3',
)
// Verify task failed status
expect(mockActivities.updateTaskStatusActivity).toHaveBeenCalledWith({