everydaytok commited on
Commit
bd3a409
·
verified ·
1 Parent(s): bf22eff

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +6 -0
app.js CHANGED
@@ -130,6 +130,12 @@ async function runBackgroundInitialization(projectId, userId, description) {
130
  try {
131
  const pmHistory = [];
132
 
 
 
 
 
 
 
133
  // 1. Generate GDD
134
  const gddPrompt = `Create a comprehensive Game Design Document (GDD) for: ${description}`;
135
  const gddResult = await AIEngine.callPM(pmHistory, gddPrompt);
 
130
  try {
131
  const pmHistory = [];
132
 
133
+ await StateManager.updateProject(projectId, {
134
+ gdd: "",
135
+ failureCount: 0,
136
+ status: "IDLE"
137
+ });
138
+
139
  // 1. Generate GDD
140
  const gddPrompt = `Create a comprehensive Game Design Document (GDD) for: ${description}`;
141
  const gddResult = await AIEngine.callPM(pmHistory, gddPrompt);