deerflow2/frontend/src
yangzheli f88970985a
fix(frontend): replace invalid "context" select field with "metadata" in threads.search (#2053)
* fix(frontend): replace invalid "context" select field with "metadata" in threads.search

The LangGraph API server does not support "context" as a select field for
threads/search, causing a 422 Unprocessable Entity error introduced by
commit 60e0abf (#1771).

- Replace "context" with "metadata" in the default select list
- Persist agent_name into thread metadata on creation so search results
  carry the agent identity
- Update pathOfThread() to fall back to metadata.agent_name when
  context is unavailable from search results
- Add regression tests for metadata-based agent routing

Fixes #2037

Made-with: Cursor

* fix: apply Copilot suggestions

* style: fix the lint error
2026-04-10 08:35:07 +08:00
..
app fix(frontend): preserve agent context in thread history routes (#1771) 2026-04-09 15:11:57 +08:00
components Fix abnormal preview of HTML files (#1986) 2026-04-09 16:32:01 +08:00
content Add documents site (#1767) 2026-04-03 07:25:40 +08:00
core fix(frontend): replace invalid "context" select field with "metadata" in threads.search (#2053) 2026-04-10 08:35:07 +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
server/better-auth style: format 2026-01-17 00:13:24 +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: implement the first section of landing page 2026-01-23 00:15:21 +08:00
mdx-components.ts Add documents site (#1767) 2026-04-03 07:25:40 +08:00