Repository navigation
Commit 1bcec21
authored
fix(gateway): gate session.tool mirrors behind session subscriptions (#124732)
session.tool mirrors the raw agent tool event (full args/result
snapshots) onto session subscribers, but the event name was missing from
SESSION_SUBSCRIPTION_EVENTS. Clients with the session-scoped-events cap
(or browser copilot) that subscribed to one session's messages therefore
received every session's tool payloads through the mirror — the exact
data the registry gate suppresses on the raw agent event. session.observer
was added to the set for precisely this mirror-event class; session.tool
carries strictly more data.
Root cause: the gate is an allowlist and the newer mirror event never
joined it. One set entry; the payload already carries sessionKey so
registry keying works unchanged, and unscoped Control UI clients keep
full fanout.
Regression: new board test drives the server-chat-style targeted fanout
and asserts a scoped client subscribed to a different session receives
nothing — fails pre-fix.1 parent b7fb951 commit 1bcec21
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
167 | 199 | | |
168 | 200 | | |
169 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
0 commit comments