Skip to content

v4.6.1 — Patch: agent autonomous-search fix

Choose a tag to compare

@mysleekdesigns mysleekdesigns released this 07 Jun 17:59
· 16 commits to main since this release

Patch — fixes the agent tool's autonomous search, caught by live MCP smoke testing of the v4.6.0 release.

Fixed

  • agent tool: autonomous search (GATHER) was a no-op. AgentOrchestrator parsed search results assuming the MCP content-wrapped shape (sr.content[0].text), but SearchWebTool.execute() returns the raw results object — so parsed was always null, no URLs were ever queued, and any agent call without seed urls[] 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.js mocked _searchTool.execute() with the content-wrapped shape, encoding the orchestrator's wrong assumption. All six mocks now return the raw shape that the real SearchWebTool returns, so the suite guards this path. Verified live: agent({prompt}) with no URLs now searches, fetches, and synthesizes.