feat: refactor ChatInput with autocomplete, suggestion management, and settings integration

Extract word detection and suggestion logic into reusable utilities and hooks.
Add FloatingOverlay and Autocomplete components for intelligent input assistance.
Integrate settings panel and abort button directly into ChatInput component.
Simplify SessionHeader by removing settings dialog (now in ChatInput).
This commit is contained in:
weishu
2025-12-17 09:13:15 +08:00
parent a307fd4893
commit ec3a849cbd
12 changed files with 1130 additions and 151 deletions
+2
View File
@@ -13,6 +13,7 @@
/* Theme-aware colors (light mode defaults) */
--app-border: rgba(0, 0, 0, 0.1);
--app-divider: rgba(0, 0, 0, 0.08);
--app-subtle-bg: rgba(0, 0, 0, 0.05);
--app-code-bg: #f6f8fa;
--app-inline-code-bg: rgba(0, 0, 0, 0.08);
@@ -37,6 +38,7 @@
[data-theme="dark"] {
--app-border: rgba(255, 255, 255, 0.1);
--app-divider: rgba(255, 255, 255, 0.08);
--app-subtle-bg: rgba(255, 255, 255, 0.05);
--app-code-bg: #282c34;
--app-inline-code-bg: rgba(255, 255, 255, 0.1);