aboutsummaryrefslogtreecommitdiffstats
path: root/renderer/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'renderer/src/App.tsx')
-rw-r--r--renderer/src/App.tsx12
1 files changed, 8 insertions, 4 deletions
diff --git a/renderer/src/App.tsx b/renderer/src/App.tsx
index ecbb5b2..74b1f91 100644
--- a/renderer/src/App.tsx
+++ b/renderer/src/App.tsx
@@ -263,13 +263,17 @@ export function App() {
263 selectedSession.phase === "research" ? "research.md" : "plan.md"; 263 selectedSession.phase === "research" ? "research.md" : "plan.md";
264 await api.writeSessionArtifact(selectedProject.id, selectedSession.id, filename, documentContent); 264 await api.writeSessionArtifact(selectedProject.id, selectedSession.id, filename, documentContent);
265 265
266 const nextPhase = await api.advancePhase(selectedSession.id); 266 const advanced = await api.advancePhase(selectedSession.id);
267 if (nextPhase) { 267 if (advanced) {
268 setSelectedSession({ ...selectedSession, phase: nextPhase }); 268 setSelectedSession({
269 ...selectedSession,
270 phase: advanced.phase,
271 git_branch: advanced.git_branch,
272 });
269 // Trigger initial message for next phase 273 // Trigger initial message for next phase
270 setIsLoading(true); 274 setIsLoading(true);
271 const initialMsg = 275 const initialMsg =
272 nextPhase === "plan" 276 advanced.phase === "plan"
273 ? "Create a detailed implementation plan based on the research." 277 ? "Create a detailed implementation plan based on the research."
274 : "Begin implementing the plan."; 278 : "Begin implementing the plan.";
275 await api.sendMessage(selectedSession.id, initialMsg); 279 await api.sendMessage(selectedSession.id, initialMsg);