@@ -366,8 +366,6 @@ func (c *controllerV1) handleGetWorkspaceAgent(w http.ResponseWriter, r *http.Re
366366func (c *controllerV1) handlePostWorkspaceAgent(w http.ResponseWriter, r *http.Request) {
367367 id := r.PathValue("id")
368368
369− w.Header().Set("Accept", "application/json")
370−
371369 var msg proto.AgentMessage
372370 if err := json.NewDecoder(r.Body).Decode(&msg); err != nil {
373371 c.server.logError(r, "Failed to decode request", "error", err)
@@ -379,6 +377,7 @@ func (c *controllerV1) handlePostWorkspaceAgent(w http.ResponseWriter, r *http.R
379377 c.handleError(w, r, err)
380378 return
381379 }
380+ w.WriteHeader(http.StatusOK)
382381}
383382
384383func (c *controllerV1) handlePostWorkspaceAgentInit(w http.ResponseWriter, r *http.Request) {
@@ -387,6 +386,7 @@ func (c *controllerV1) handlePostWorkspaceAgentInit(w http.ResponseWriter, r *ht
387386 c.handleError(w, r, err)
388387 return
389388 }
389+ w.WriteHeader(http.StatusOK)
390390}
391391
392392func (c *controllerV1) handlePostWorkspaceAgentUpdate(w http.ResponseWriter, r *http.Request) {
@@ -395,6 +395,7 @@ func (c *controllerV1) handlePostWorkspaceAgentUpdate(w http.ResponseWriter, r *
395395 c.handleError(w, r, err)
396396 return
397397 }
398+ w.WriteHeader(http.StatusOK)
398399}
399400
400401func (c *controllerV1) handleGetWorkspaceAgentSession(w http.ResponseWriter, r *http.Request) {
@@ -439,13 +440,14 @@ func (c *controllerV1) handlePostWorkspaceAgentSessionPromptClear(w http.Respons
439440 w.WriteHeader(http.StatusOK)
440441}
441442
442−func (c *controllerV1) handleGetWorkspaceAgentSessionSummarize(w http.ResponseWriter, r *http.Request) {
443+func (c *controllerV1) handlePostWorkspaceAgentSessionSummarize(w http.ResponseWriter, r *http.Request) {
443444 id := r.PathValue("id")
444445 sid := r.PathValue("sid")
445446 if err := c.backend.SummarizeSession(r.Context(), id, sid); err != nil {
446447 c.handleError(w, r, err)
447448 return
448449 }
450+ w.WriteHeader(http.StatusOK)
449451}
450452
451453func (c *controllerV1) handleGetWorkspaceAgentSessionPromptList(w http.ResponseWriter, r *http.Request) {
@@ -484,6 +486,7 @@ func (c *controllerV1) handlePostWorkspacePermissionsGrant(w http.ResponseWriter
484486 c.handleError(w, r, err)
485487 return
486488 }
489+ w.WriteHeader(http.StatusOK)
487490}
488491
489492func (c *controllerV1) handlePostWorkspacePermissionsSkip(w http.ResponseWriter, r *http.Request) {