From 6c964e0dda2fe926dd445a4fe1a378e24553f02d Mon Sep 17 00:00:00 2001 From: Anton Bogdanovich <27antonb@gmail.com> Date: Thu, 7 May 2026 15:00:58 -0700 Subject: [PATCH] fix(agents): drop unused response helper --- pkg/agent/agent_outbound.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pkg/agent/agent_outbound.go b/pkg/agent/agent_outbound.go index f5b81d884..f0c78796e 100644 --- a/pkg/agent/agent_outbound.go +++ b/pkg/agent/agent_outbound.go @@ -25,21 +25,6 @@ func (al *AgentLoop) maybePublishError(ctx context.Context, channel, chatID, ses return true } -func (al *AgentLoop) publishResponseOrError( - ctx context.Context, - channel, chatID, sessionKey string, - response string, - err error, -) { - if err != nil { - if !al.maybePublishError(ctx, channel, chatID, sessionKey, err) { - return - } - response = "" - } - al.PublishResponseIfNeeded(ctx, channel, chatID, sessionKey, response) -} - func (al *AgentLoop) PublishResponseIfNeeded(ctx context.Context, channel, chatID, sessionKey, response string) { al.publishResponseWithContextIfNeeded(ctx, channel, chatID, sessionKey, response, nil) }