feat(core): add ai-chat-toolbar for independent chat (#13021)

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

* **New Features**
* Introduced an AI chat toolbar for improved session management and
interaction.
  * Added the ability to pin chat sessions and reset chat content.
  * Enhanced chat header layout for better usability.

* **Improvements**
* Streamlined session creation and management within the AI chat
interface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-07-04 13:16:20 +08:00
committed by GitHub
parent fe8cb6bb44
commit 2b0b20cdd4
3 changed files with 104 additions and 16 deletions
@@ -310,6 +310,10 @@ export class AIChatContent extends SignalWatcher(
}
}
public reset() {
this.updateContext(DEFAULT_CHAT_CONTEXT_VALUE);
}
override connectedCallback() {
super.connectedCallback();
this.initChatContent().catch(console.error);