fix(chat): wire agentic_tools_all into both agentic loop entry points #19
Reference in New Issue
Block a user
Delete Branch "fix/agentic-tools-all"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In
handle_chat_agentic,tools_jsonwas set toagentic_tools_with_web()which includes built-in tools and web_search but not MCP connector tools. Users in agentic mode could never call anymcp__*tool even whenneuron-connectdis running.handle_dharma_room_turn_agentichad the same problem (agentic_tools_literal()) plus an inline copy of the 8-iteration agentic loop that lacked bridge suspension support.Changes
handle_chat_agentic(line 579):agentic_tools_with_web()→agentic_tools_all()handle_dharma_room_turn_agentic:agentic_tools_literal()→agentic_tools_all(), inline loop replaced withagentic_loop()call,room_idextracted from body for dharma-scoped session IDs (dharma:<room_id>) so bridge suspension works per-roomagentic_tools_all()callsconnector_tools_json()internally, which returns[]ifneuron-connectdis not running, so this is safe when the bridge is down.Test plan
mcp__neuron__*tools are available in agentic chat when neuron-connectd is runningView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.