Repository navigation
Commit 58e8ea1
fix(desktop): let the relay decide who may add an agent to a channel
The add-member search dropped every agent that was not in the caller's
own managed-agents list, so an agent running under another identity — a
teammate's, or one on a shared always-on machine — could never be added
to a channel from the UI. The same add via `buzz channels add-member`
succeeded, because nothing below the UI blocks it: add_channel_members
builds kind:9000 per pubkey and submits it, and the relay is the actual
authority, enforcing each user's channel_add_policy (default 'anyone',
refusing with policy:owner_only / policy:nobody otherwise).
The client filter therefore duplicated a relay check with strictly less
information. It also relied on relay-agent discovery (kind:10100), which
only `buzz channels set-add-policy` ever publishes and whose content
carries no channel_ids/respond_to — so the reachability path it depended
on is empty in practice and the filter collapsed to owned-only.
Drop it from the add surface and let refusals surface through the
existing per-pubkey error list. @mention autocomplete is untouched: its
invocability filter (block#1611) still applies there.
Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: kbst9 <[email protected]>1 parent d8f9d87 commit 58e8ea1
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
271 | 268 | | |
272 | 269 | | |
273 | 270 | | |
274 | | - | |
275 | | - | |
276 | 271 | | |
277 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
284 | | - | |
285 | | - | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
0 commit comments