Fixed the following issues.
- After stopping the generation of a response midway in an AI Chat, messages could no longer be sent in that Chat
- The "Edit" option does not appear for questions sent in a new Chat until the page is reloaded
- When Exporting notes as PDF, diagrams (Mermaid) may render incorrectly
- Deleted knowledge items were still being counted in the knowledge list's perspective count