mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-23 19:06:35 +00:00
f460f6b163
Copilot and Generate Reply get four read-only, access-filtered tools to look up a customer's history: list the contact's other conversations, search conversations by exact email, fetch one conversation by reference number, and search contacts. Tool output is marked untrusted and capped so a big response can't blow the context window. Copilot panel changes: - per-agent persona picker that borrows an enabled assistant's voice, language and instructions without changing the tool set (stored in localStorage) - answers render as HTML; copy, insert-into-reply, and add-as-private-note actions per answer - chat history moves to its own copilot store; server history is persisted only after a successful reply and read back with a limit Adds AI tag suggestions: a new endpoint suggests up to 3 existing tags for a conversation, applied from the sidebar, never auto-applied. Hardening and fixes: - OIDC callback rejects non-agent users - custom tool URLs and params schema validated on save; tool HTTP client no longer follows redirects; query keys pinned in the tool URL win - GetAllConversationMessages takes an explicit limit (cap 1000) - FAQ mining skips a candidate already pending review - ai agent handoff records its event only after the move actually lands - share chat message role constants; rename v2.7.0 migration to v2.6.0 and add the fix_grammar_spelling prompt