e7ed81c189
The send() method in adapter.py had a structural defect where the button-parsing, template-handling, and rest.post_message code (98 lines) was at module level instead of inside the send() method body. send() ended after room-resolution without a return statement, causing it to return None. _send_with_retry() in base.py then crashed with AttributeError: 'NoneType' object has no attribute 'success'. This made every Rocket.Chat response silently fail — the agent processed messages but could never deliver replies. Fix: moved the orphaned code block back into the send() method body where it belongs, after the room-resolution logic and before _find_fallback_room_for_user.