diff --git a/internal/app/app.go b/internal/app/app.go index d31d916f..44d81ac7 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -135,6 +135,10 @@ func New(cfg *config.Config, log *logger.Logger, configPath string) (*App, error externalMCPMgr.StartAllEnabled() } + execReconciler := monitor.NewExecutionReconciler(db, mcpServer, externalMCPMgr, log.Logger) + execReconciler.ReconcileOnStartup() + monitor.StartStaleRunningReconcileLoop(execReconciler, log.Logger) + // 创建Agent maxIterations := cfg.Agent.MaxIterations if maxIterations <= 0 {