We prove a uniqueness result for the broken ray transform acting on the sums of functions and 1-forms on surfaces in the presence of an external force and a reflecting obstacle. We assume that the considered twisted geodesic flows have nonpositive curvature. The broken rays are generated from the twisted geodesic flows by the law of reflection on the boundary of a suitably convex obstacle. Our work generalizes recent results for the broken geodesic ray transform on surfaces to more general families of curves including the magnetic flows and Gaussian thermostats.