deerflow2/frontend/src
yangzheli f7b10d42e4
fix(frontend): create thread on first submit in new-agent page (#2656)
The new-agent page pre-generates a thread UUID and passed it directly
to useThreadStream, which made the LangGraph SDK POST to
/threads/{uuid}/runs/stream against a thread the backend had never
created. After PR #2566 introduced multi-tenant owner checks on the
runs endpoints, that request now 404s with "Thread not found".

Pass threadId: undefined to useThreadStream so the SDK takes the
create-then-run path. The pre-generated UUID is still forwarded via
SubmitOptions.threadId in sendMessage, so the new thread is created
with that exact id and onCreated rebinds the hook to it.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-30 06:41:54 +08:00
..
app fix(frontend): create thread on first submit in new-agent page (#2656) 2026-04-30 06:41:54 +08:00
components feat: enhance chat history loading with new hooks and UI components (#2338) 2026-04-26 11:20:17 +08:00
content try to fix the frontend e2e test errors 2026-04-26 15:48:57 +08:00
core Refactor DeerFlow to use Gateway's LangGraph-compatible API 2026-04-26 20:38:34 +08:00
hooks ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00
lib fix(frontend): prevent submit during IME composition (#1562) 2026-03-29 22:36:38 +08:00
styles fix(frontend): UI polish - fix CSS typo, dark mode border, and hardcoded colors (#1942) 2026-04-08 09:07:39 +08:00
typings feat: add 'about' page 2026-02-06 15:18:37 +08:00
env.js feat(auth): release-validation pass for 2.0-rc — 12 blockers + simplify follow-ups (#2008) 2026-04-26 11:08:11 +08:00
mdx-components.ts Add documents site (#1767) 2026-04-03 07:25:40 +08:00