fix(agent): propagate SenderID in AgentEvent emitters

Expose the original acting sender ID in agent events so group-chat
telemetry and audit logs stay aligned with the real Telegram user
instead of only the group-scoped UserID.
This commit is contained in:
viettranx committed 2026-04-17 20:45:48 +07:00
1 parent 680521a882
commit a29938ceed
5 files changed
+10 -1

No files matched your search

@@ -222,6 +222,7 @@ func makeToolEmitRun(l *Loop, req *RunRequest) func(AgentEvent) {
return func(event AgentEvent) {
event.RunKind = req.RunKind
event.SessionKey = req.SessionKey
event.SenderID = req.SenderID
event.UserID = req.UserID
event.Channel = req.Channel
l.emit(event)