feat(core): support ai chat delete action (#13655)

<img width="411" height="205" alt="截屏2025-09-26 10 58 39"
src="https://github.com/user-attachments/assets/c3bce144-7847-4794-b766-5a3777cbc00d"
/>


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

- New Features
- Delete icon added to AI session history with tooltip and confirmation
prompt; deleting current session opens a new session.
- Session deletion wired end-to-end (toolbar → provider → backend) and
shows notifications.

- Improvements
- Cleanup now supports deleting sessions with or without a document ID
(document-specific or workspace-wide).
- UI tweaks for cleaner session item layout and safer click handling
(delete won’t trigger item click).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Wu Yue
2025-09-27 19:58:58 +08:00
committed by GitHub
parent 8d6f7047c2
commit 9f94d5c216
10 changed files with 108 additions and 12 deletions
+1 -1
View File
@@ -654,7 +654,7 @@ export interface DeleteAccount {
}
export interface DeleteSessionInput {
docId: Scalars['String']['input'];
docId?: InputMaybe<Scalars['String']['input']>;
sessionIds: Array<Scalars['String']['input']>;
workspaceId: Scalars['String']['input'];
}