gongzhiyongandClaude Opus 4.6 99b3cda23c
Trigger auto deployment for soc-langgraph / build-and-deploy (push) Failing after 19s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 49s
fix(P0): 恢复 handleNewThread 立即创建线程,移除 ensureThread 懒创建
根因:ensureThread 异步 setCurrentThreadId 后 React 状态未同步刷新,
useStream 仍绑定 undefined threadId,thread.submit() 提交到错误线程。

修复:
- handleNewThread 恢复为 await client.threads.create()(立即创建)
- doSubmit 直接使用 currentThreadId(已同步可用)
- 移除 ensureThread、skipNextSwitchRef 等懒创建相关逻辑
- 空线程问题后续通过侧边栏过滤解决

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 03:08:25 +08:00
S
Description
No description provided
17 MiB
Languages
TypeScript 98%
CSS 1.1%
JavaScript 0.6%
Dockerfile 0.1%