From ca3420c7916c570d590a308bbefc0833990d2148 Mon Sep 17 00:00:00 2001 From: mudler Date: Tue, 25 Mar 2025 17:25:59 +0100 Subject: [PATCH] fixup silly mistake Signed-off-by: mudler --- core/agent/agent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/agent/agent.go b/core/agent/agent.go index ed9fe5f..23e208a 100644 --- a/core/agent/agent.go +++ b/core/agent/agent.go @@ -621,8 +621,6 @@ func (a *Agent) consumeJob(job *types.Job, role string) { a.nextActionParams = &followingParams a.consumeJob(job, role) return - } else if followingAction.Definition().Name.Is(action.PlanActionName) { - xlog.Debug("Following action is a plan action, skipping", "agent", a.Character.Name) } else if followingAction == nil { xlog.Info("Not following another action", "agent", a.Character.Name) @@ -641,6 +639,8 @@ func (a *Agent) consumeJob(job *types.Job, role string) { job.Result.Finish(nil) return } + } else if followingAction.Definition().Name.Is(action.PlanActionName) { + xlog.Debug("Following action is a plan action, skipping", "agent", a.Character.Name) } }