gongzhiyongandClaude Opus 4.6 902c8331be
Trigger auto deployment for soc-langgraph / build-and-deploy (push) Failing after 20s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 39s
fix: lazy thread creation — only create thread on first message send
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>
2026-04-15 02:46:52 +08:00
S
Description
No description provided
17 MiB
Languages
TypeScript 98%
CSS 1.1%
JavaScript 0.6%
Dockerfile 0.1%