Integrate the shared document renderer and two-trees project work #209

Merged
weichen merged 49 commits from feature/unified-document-renderer-task10 into main 2026-10-18 12:41:32 +00:00
Showing only changes of commit 5b1b137c4c - Show all commits
+8 -1
View File
@@ -1293,7 +1293,14 @@ func (s *Server) execCommand(w http.ResponseWriter, r *http.Request) {
}
decision, err := s.ProjectCommandPreflight(r.Context(), body.AnchorMessageID, "project-command:"+commandID)
if err != nil || decision.State != extension.ProjectWorkProceed || decision.DecisionID == "" {
http.Error(w, "project command source analysis is not complete", http.StatusConflict)
reason := decision.Reason
if err != nil {
reason = err.Error()
}
if reason == "" {
reason = "source analysis did not commit a proceed decision"
}
http.Error(w, "project command source analysis is not complete: "+reason, http.StatusConflict)
return
}
}