()
| 194 | }; |
| 195 | |
| 196 | const handleDebugClick = () => { |
| 197 | if (onAddDebugMessage) { |
| 198 | if (messages?.[0]?.role === 'showcase') { |
| 199 | dispatch({ type: 'CLEAR_MESSAGES' }); |
| 200 | } |
| 201 | const debugMessage = { |
| 202 | id: generateUUID(), |
| 203 | role: 'ai' as const, |
| 204 | content: JSON.stringify({ |
| 205 | text: "Would you like me to help you debug the current workflow on the canvas?", |
| 206 | ext: [] |
| 207 | }), |
| 208 | format: 'debug_guide' as const, |
| 209 | name: 'Assistant' |
| 210 | }; |
| 211 | onAddDebugMessage(debugMessage); |
| 212 | } |
| 213 | }; |
| 214 | |
| 215 | return ( |
| 216 | <div className={`relative ${uploadedImages.length > 0 ? 'mt-12' : ''}`}> |
nothing calls this directly
no test coverage detected