MCPcopy Create free account
hub / github.com/Claw-AI-Lab/Claw-AI-Lab / toggleDiscussionMode

Function toggleDiscussionMode

frontend/src/App.tsx:232–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected