fix: chat session cannot delete (#14312)

fix #14309



#### PR Dependency Tree


* **PR #14312** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added AI chat session deletion with confirmation dialogs and
success/failure notifications.
* Localized AI chat panel labels, loading messages, and session
management text across multiple languages.

* **Documentation**
* Added internationalization support for chat panel titles, history
loading states, and deletion confirmations.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
DarkSky
2026-01-26 19:47:47 +08:00
committed by GitHub
parent 5498133627
commit 27ed15a83e
11 changed files with 306 additions and 104 deletions
@@ -206,6 +206,13 @@
"com.affine.ai.login-required.dialog-content": "To use AFFiNE AI, please sign in to your AFFiNE Cloud account.",
"com.affine.ai.login-required.dialog-title": "Sign in to continue",
"com.affine.ai.template-insert.failed": "Failed to insert template, please try again.",
"com.affine.ai.chat-panel.title": "AFFiNE AI",
"com.affine.ai.chat-panel.loading-history": "AFFiNE AI is loading history...",
"com.affine.ai.chat-panel.embedding-progress": "Embedding {{done}}/{{total}}",
"com.affine.ai.chat-panel.session.delete.confirm.title": "Delete this history?",
"com.affine.ai.chat-panel.session.delete.confirm.message": "Do you want to delete this AI conversation history? Once deleted, it cannot be recovered.",
"com.affine.ai.chat-panel.session.delete.toast.success": "History deleted",
"com.affine.ai.chat-panel.session.delete.toast.failed": "Failed to delete history",
"com.affine.all-pages.header": "All docs",
"com.affine.app-sidebar.learn-more": "Learn more",
"com.affine.app-sidebar.star-us": "Star us",
@@ -1813,6 +1820,7 @@
"com.affine.workspaceList.workspaceListType.local": "Local storage",
"com.affine.workspaceList.addServer": "Add Server",
"com.affine.workspaceSubPath.all": "All docs",
"com.affine.workspaceSubPath.chat": "Intelligence",
"com.affine.workspaceSubPath.trash": "Trash",
"com.affine.workspaceSubPath.trash.empty-description": "Deleted docs will appear here.",
"com.affine.write_with_a_blank_page": "Write with a blank page",