Update pkg/agent/loop.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Boris Bliznioukov
2026-03-05 13:30:24 +01:00
committed by GitHub
parent 968fff07b9
commit 00ad6be7ea
+1 -1
View File
@@ -673,7 +673,7 @@ func (al *AgentLoop) runAgentLoop(
) (string, error) {
// 0. Record last channel for heartbeat notifications (skip internal channels and cli)
if opts.Channel != "" && opts.ChatID != "" {
if !constants.IsInternalChannel(opts.Channel) && opts.Channel != "cli" {
if !constants.IsInternalChannel(opts.Channel) {
channelKey := fmt.Sprintf("%s:%s", opts.Channel, opts.ChatID)
if err := al.RecordLastChannel(channelKey); err != nil {
logger.WarnCF(