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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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(