mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-11 13:28:57 +00:00
b3c162381a
The verification tools and OTP prompt block loaded for every unverified customer, so an assistant with no account-acting tools still asked people for an email code it had no use for. The worker now checks the assistant's tools first and skips both unless one is flagged requires_verification. A lookup error fails open and keeps the flow. The send tool's result did not say which address it mailed, so the model filled one in from chat history. After a sibling conversation rebound the contact's email, it named the old address while the mail went to the new one. The result now names the address and mentions the spam folder. The prompt did not say to check every code the customer sends, so after one rejection the model declared the next code wrong without calling the tool and handed off to a human.