diff --git a/backend/internal/server/router.go b/backend/internal/server/router.go index b28d3c79..caa122eb 100644 --- a/backend/internal/server/router.go +++ b/backend/internal/server/router.go @@ -36,6 +36,11 @@ func registerRoutes(r *gin.Engine, h *handler.Handlers, s *service.Services, rep c.JSON(http.StatusOK, gin.H{"status": "ok"}) }) + // Claude Code 遥测日志(忽略,直接返回200) + r.POST("/api/event_logging/batch", func(c *gin.Context) { + c.Status(http.StatusOK) + }) + // Setup status endpoint (always returns needs_setup: false in normal mode) // This is used by the frontend to detect when the service has restarted after setup r.GET("/setup/status", func(c *gin.Context) {