902c8331befbf642c33bf6886a632ac565c54ec6
Previously handleNewThread called client.threads.create() immediately, leaving empty "新对话" threads in the sidebar when users clicked new thread but never sent a message (ChatGPT-style behavior). Now handleNewThread just resets UI state (setCurrentThreadId(null)). A new ensureThread() helper in useConversation lazily creates the backend thread only when the user actually submits a message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Description
No description provided
17 MiB
Languages
TypeScript
98%
CSS
1.1%
JavaScript
0.6%
Dockerfile
0.1%