()
| 230 | }, [resWsUrl]); |
| 231 | |
| 232 | const toggleDiscussionMode = () => { |
| 233 | const next = !discussionMode; |
| 234 | setDiscussionMode(next); |
| 235 | const ws = agentWsRef.current; |
| 236 | if (ws && ws.readyState === WebSocket.OPEN) { |
| 237 | ws.send(JSON.stringify({ command: 'set_discussion_mode', enabled: next })); |
| 238 | } |
| 239 | }; |
| 240 | |
| 241 | // ── Memoized derived state ── |
| 242 | const ideaAgents = useMemo(() => state.agents.filter((a) => a.layer === AgentLayer.IDEA), [state.agents]); |
nothing calls this directly
no outgoing calls
no test coverage detected