deerflow2/frontend/src
Nan Gao 926406e0d6
fix(channels): make runtime provider state authoritative (#3580)
* fix(channels): make runtime provider state authoritative

* make format

* fix(channels): close runtime provider config races and status gaps

Address review findings on the runtime-provider-state change:

- configure/disconnect now re-read the live app.state.channels_config
  after the worker await and mutate only the affected provider key in
  place, so a concurrent mutation for a different provider is no longer
  clobbered by a stale pre-await snapshot.
- disconnect revokes DB connection rows before committing the store and
  cache, so a repo failure cannot leave the store/cache "disconnected"
  while the DB keeps "connected" rows a later re-configure would
  silently reactivate.
- _provider_response preserves non-connected statuses (e.g. revoked)
  when the provider is unavailable, only masking a stale "connected"
  row as not_connected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 07:45:46 +08:00
..
app fix(frontend): reset active chat after deletion (#3519) 2026-06-14 22:06:19 +08:00
components fix(channels): make runtime provider state authoritative (#3580) 2026-06-17 07:45:46 +08:00
content feat(community): add Brave Search web search tool (#3528) 2026-06-13 22:47:35 +08:00
core fix(frontend): cap deeply nested list indentation to prevent render crash (#3393) (#3570) 2026-06-14 22:19:54 +08:00
hooks feat(im): Add user-owned IM channel connections (#3487) 2026-06-12 15:24:58 +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