You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Log the constructed prompt for debugging until AI backend is wired
3234
+
// Log the constructed prompt for debugging
3234
3235
console.log(`[EasyAI] Action: ${actionId}`);
3235
3236
console.log(`[EasyAI] User Prompt: ${promptText}`);
3236
3237
console.log(`[EasyAI] System Prompt:\n${systemPrompt}`);
3237
3238
3238
-
// TODO: Send systemPrompt + promptText to AI backend and append response to editor
3239
-
// For now, inject a placeholder showing the prompt was built successfully
3240
-
conststubContent=`\n\n<!-- EasyAI Action: ${actionId} -->\n<!-- User Prompt: ${promptText} -->\n<!-- System prompt built (${systemPrompt.length} chars) — AI backend not yet connected -->\n\n`;
3239
+
// Keep the debug comment in editor so user sees what was sent
3240
+
conststubContent=`\n\n<!-- EasyAI Action: ${actionId} -->\n<!-- User Prompt: ${promptText} -->\n<!-- System prompt built (${systemPrompt.length} chars) -->\n\n`;
3241
3241
setEditorContent(prev=>prev+stubContent);
3242
-
showToast(`EasyAI (${actionId}) prompt ready — AI backend not yet connected.`,'info');
3242
+
showToast(`EasyAI (${actionId}) — sending to AI backend...`,'info');
0 commit comments