Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/120-operator-greet-leave"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #120, reproduced live earlier tonight (issue comment 1264):
greet_when_joined's #85 anti-spoof leave ran after every accepted-invite join, so an operator's invite of the bot into a populated (>2-member) room was undone within seconds — silently breaking the documented manual invite-then-relink flow for restricted rooms.Fix: the inviter's tier is threaded into
greet_when_joined. Operator-accepted invites keep the group-room join (skipping only the greeting — the DM command gate ignores such rooms anyway); every self-serve join keeps the full #85 leave (the anti-spoof exists to stop self-serve users forgingis_direct; an operator may place the bot anywhere by definition).Evidence: new scenario
mgmt_operator_room_invite(suite → 28) reproduced the bug pre-fix (known_fail,leave_logged=true bot_still_joined=false) and passes post-fix on the same staging env (30.8 s);mgmt_dm_e2ee(DM greeting) +mgmt_self_serve_link(invite gate) unchanged and green; 124 unit tests + clippy-D warnings.Held for operator review — it relaxes the #85 gate for operator-tier invites only, but it's still a gate change, per the autonomous-run guardrails.
🤖 Generated with Claude Code