MCPcopy
hub / github.com/ATH-MaaS/ComfyUI-Copilot / handleDebugClick

Function handleDebugClick

ui/src/components/chat/ChatInput.tsx:196–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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' : ''}`}>

Callers

nothing calls this directly

Calls 1

generateUUIDFunction · 0.90

Tested by

no test coverage detected