Merge remote-tracking branch 'origin/main'

This commit is contained in:
2026-06-28 20:50:27 +08:00
4 changed files with 49 additions and 0 deletions
+4
View File
@@ -1598,6 +1598,10 @@ func boolValue(body map[string]any, key string) bool {
func (s *Server) getTask(w http.ResponseWriter, r *http.Request) {
task, err := s.store.GetTask(r.Context(), r.PathValue("taskID"))
if err == nil {
cancelState := runner.DescribeTaskCancellation(task)
task.Cancellable = &cancelState.Cancellable
task.Submitted = &cancelState.Submitted
task.Message = cancelState.Message
writeJSON(w, http.StatusOK, task)
return
}