mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-18 16:13:53 +00:00
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:
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)
|
||||
|
||||
Reference in new issue
Block a user