fix: correct type mismatch in observe-only tests and wrap long line

- Fix bus.Peer used where *routing.RoutePeer is expected in loop_test.go
- Wrap 127-char ObserveGroupMessage call in telegram.go to satisfy golines

https://claude.ai/code/session_01BEyzHEY8t2ghPnfr5WsSRB
This commit is contained in:
Claude 2026-03-29 16:11:22 +00:00 committed by github-actions[bot]
parent 316ce8041e
commit 3bd90a2212
2 changed files with 5 additions and 2 deletions

View file

@ -3482,7 +3482,7 @@ func TestObserveOnlyMessage_DoesNotRespondEvenWithContinuation(t *testing.T) {
// Confirm history accumulated // Confirm history accumulated
route := al.registry.ResolveRoute(routing.RouteInput{ route := al.registry.ResolveRoute(routing.RouteInput{
Channel: "slack", Channel: "slack",
Peer: bus.Peer{Kind: "channel", ID: "channel1"}, Peer: &routing.RoutePeer{Kind: "channel", ID: "channel1"},
}) })
defaultAgent := al.registry.GetDefaultAgent() defaultAgent := al.registry.GetDefaultAgent()
if defaultAgent == nil { if defaultAgent == nil {

View file

@ -715,7 +715,10 @@ func (c *TelegramChannel) handleMessage(ctx context.Context, message *telego.Mes
"first_name": user.FirstName, "first_name": user.FirstName,
"is_group": "true", "is_group": "true",
} }
c.ObserveGroupMessage(ctx, observePeer, messageIDStr, platformID, compositeChatID, content, mediaPaths, observeMeta, sender) c.ObserveGroupMessage(
ctx, observePeer, messageIDStr, platformID,
compositeChatID, content, mediaPaths, observeMeta, sender,
)
return nil return nil
} }
content = cleaned content = cleaned