v4.6.1 — Patch: agent autonomous-search fix
Patch — fixes the agent tool's autonomous search, caught by live MCP smoke testing of the v4.6.0 release.
Fixed
agenttool: autonomous search (GATHER) was a no-op.AgentOrchestratorparsed search results assuming the MCP content-wrapped shape (sr.content[0].text), butSearchWebTool.execute()returns the raw results object — soparsedwas alwaysnull, no URLs were ever queued, and anyagentcall without seedurls[]returned{degraded:true, reason:"No content could be fetched…"}. The orchestrator now handles both shapes (sr.content?.[0]?.text ? JSON.parse(...) : sr).src/core/AgentOrchestrator.js- Test gap that masked the above.
tests/unit/phaseD-regressions.test.jsmocked_searchTool.execute()with the content-wrapped shape, encoding the orchestrator's wrong assumption. All six mocks now return the raw shape that the realSearchWebToolreturns, so the suite guards this path. Verified live:agent({prompt})with no URLs now searches, fetches, and synthesizes.