(c echo.Context)
| 341 | } |
| 342 | |
| 343 | func (s *Server) toggleSessionYolo(c echo.Context) error { |
| 344 | if err := s.sm.ToggleToolApproval(c.Request().Context(), c.Param("id")); err != nil { |
| 345 | return echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("failed to toggle session tool approval mode: %v", err)) |
| 346 | } |
| 347 | return c.JSON(http.StatusOK, nil) |
| 348 | } |
| 349 | |
| 350 | func (s *Server) getAgentToolCount(c echo.Context) error { |
| 351 | count, err := s.sm.GetAgentToolCount(c.Request().Context(), c.Param("id"), c.Param("agent_name")) |
nothing calls this directly
no test coverage detected