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
// If awaiting clarification, treat ANY response as a brief update
213
+
if(isRefinement||awaitingClarification){
210
214
// Send the refinement request to update the brief
211
215
// Combine original brief context with the refinement request
212
216
constrefinementPrompt=`Current creative brief:\n${JSON.stringify(pendingBrief,null,2)}\n\nUser requested change: ${content}\n\nPlease update the brief accordingly and return the complete updated brief.`;
@@ -216,16 +220,34 @@ function App() {
216
220
if(parsed.brief){
217
221
setPendingBrief(parsed.brief);
218
222
}
219
-
setGenerationStatus('');
220
223
221
-
constassistantMessage: ChatMessage={
222
-
id: uuidv4(),
223
-
role: 'assistant',
224
-
content: "I've updated the brief based on your feedback. Please review the changes above. Let me know if you'd like any other modifications, or click **Confirm Brief** when you're satisfied.",
content: "I've updated the brief based on your feedback. Please review the changes above. Let me know if you'd like any other modifications, or click **Confirm Brief** when you're satisfied.",
246
+
agent: 'PlanningAgent',
247
+
timestamp: newDate().toISOString(),
248
+
};
249
+
setMessages(prev=>[...prev,assistantMessage]);
250
+
}
229
251
}else{
230
252
// General question or comment while brief is pending
0 commit comments