Allow sending queued messages when a task is stopped

This commit is contained in:
Ian Gulliver
2026-10-23 21:29:50 -07:00
parent 5987e764c4
commit d13e1f695f
6 changed files with 530 additions and 368 deletions
+12
View File
@@ -986,3 +986,15 @@ func writeStoreError(w http.ResponseWriter, err error) {
}
writeError(w, http.StatusInternalServerError, err)
}
func (s *Server) SendQueuedMessage(w http.ResponseWriter, r *http.Request, taskID string, inputID int64) {
u, ok := s.actingUser(w, r)
if !ok {
return
}
if err := s.agents.SendQueued(r.Context(), taskID, inputID, u); err != nil {
writeAgentError(w, err)
return
}
w.WriteHeader(http.StatusNoContent)
}