mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-17 13:13:35 +08:00
After the first assistant response, derive a quick placeholder title from the user message, then asynchronously call the provider's Haiku model to generate a polished 3-7 word title. Titles update again at message 3 with fuller conversation context. Updates push to frontend in real-time via WebSocket `session_title_updated` event. - extractTitle now reads `ai-title` JSONL entries (priority: custom > ai > first message) - New titleService with deriveTitle + generateTitle using active provider config - Handler tracks per-session message count and triggers generation on result - Frontend sessionStore receives live title updates for sidebar + header Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>