fix: preserve approval account bindings

This commit is contained in:
Gustavo Madeira Santana
2026-04-03 12:43:37 -04:00
parent 81afe53a37
commit cae169cd4f
5 changed files with 26 additions and 13 deletions

View File

@@ -276,9 +276,13 @@ describe("matrix exec approvals", () => {
"agent:ops-agent:matrix:channel:!room:example.org": {
sessionId: "main",
updatedAt: 1,
lastChannel: "matrix",
lastTo: "room:!room:example.org",
lastAccountId: "ops",
origin: {
provider: "matrix",
accountId: "ops",
},
lastChannel: "slack",
lastTo: "channel:C999",
lastAccountId: "work",
},
}),
"utf-8",

View File

@@ -128,9 +128,13 @@ describe("telegram exec approvals", () => {
"agent:ops:telegram:direct:123": {
sessionId: "main",
updatedAt: 1,
lastChannel: "telegram",
lastTo: "123",
lastAccountId: "ops",
origin: {
provider: "telegram",
accountId: "ops",
},
lastChannel: "slack",
lastTo: "channel:C999",
lastAccountId: "work",
},
}),
"utf-8",