multica/apps/web/app/hooks
Naiyuan Qing 403c44f536 refactor(web): unify hub + agent state into single Zustand store
Replace useState-based useHub hook and separate useActiveAgent store
with a single useHubStore (Zustand). This fixes the bug where
HubSidebar and Chat held independent state copies, causing stale data
and duplicate 30s polling. Agent create/delete logic now lives in the
store with automatic activeAgentId management.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 23:15:11 +08:00
..
use-device-id.ts fix(web): replace Zustand device store with local useDeviceId hook 2026-01-30 22:16:54 +08:00
use-gateway.ts feat(web): add gateway, hub, active-agent hooks and real message state 2026-01-30 22:40:50 +08:00
use-hub-init.ts refactor(web): unify hub + agent state into single Zustand store 2026-01-30 23:15:11 +08:00
use-hub-store.ts refactor(web): unify hub + agent state into single Zustand store 2026-01-30 23:15:11 +08:00
use-messages.ts feat(web): add gateway, hub, active-agent hooks and real message state 2026-01-30 22:40:50 +08:00
use-scroll-fade.ts feat(web): add scroll fade hint effect to chat message list 2026-01-30 22:14:19 +08:00