Repository navigation
Description
Summary
When research_search has no Firecrawl BYOK key and no funded Ace Wallet, it silently falls back to a "free" search tier that returns zero usable results for every query we tried — with no clear signal to the agent (or the user) about why. This led directly to a real, costly misdiagnosis in a live session: an agent concluded "web/network egress is blocked in this environment" and spent a long time working around a phantom network problem, when the actual cause was simply "no search credentials are configured."
Note on scope: unlike other issues we've filed, this isn't something traceable to a specific file/line in this open-source repo — research_search's no-BYOK path calls out to the hosted managed backend (https://app.syntheticsciences.ai/api/v1/research/search, per backend/cli/src/endpoints.ts's MANAGED_API_BASE), which is closed-source. This report is based on observed behavior from real tool output, not a traced source bug — flagging it as UX/reliability feedback on the hosted service's response, since that's the only part of this we could actually inspect.
Observed behavior
A research_search call with a perfectly reasonable, well-formed query, no Firecrawl key configured and no funded wallet, returns:
{
"status": "completed",
"provider": "free_search",
"funding": "free_fallback",
"results": [],
"warnings": [
"managed_search_wallet_unavailable",
"free_search_fallback",
"search_content_unavailable"
],
"wallet_charge_microusd": 0,
...
}Every one of several different, reasonable queries we tried in this state came back the same way: status: completed (not an error), zero results, the same three warning codes. From the calling agent's perspective this looks identical, call after call, regardless of query quality — there's nothing distinguishing "this specific query genuinely has no results" from "this entire code path is non-functional for you right now."
Why this is worse than it looks
research_search is in tool-selection.ts's always-included core set for the research agent — it's offered on every single turn, with no visible indication anywhere in its tool description that it might silently be running in a degraded, non-functional mode. An agent (or a user watching it work) has no reason to suspect "web search is actually broken for me right now" versus "there's genuinely nothing to find" — every failed search just looks like an unhelpful result, not a configuration problem. In our case, this compounded with a few other empty-result signals (PubMed returning 0 for an over-specific query, a couple of guessed/wrong download URLs) into a mistaken conclusion that the whole environment had no outbound network access at all — a conclusion that took real effort to disprove and was, in the end, unrelated to any of this.
Suggested improvement
Surface this distinctly and before wasting a request, if possible:
- If no Firecrawl key and no funded wallet are configured, either fail the tool call with a clear, actionable error (e.g. "No search provider configured — connect a Firecrawl key in Customize → Connectors, or fund your Ace Wallet"), rather than returning
status: "completed"with an empty result set that looks like a normal (if disappointing) search outcome. - If the "free" tier is meant to still attempt something rather than hard-fail, at least make
search_content_unavailabledistinguishable from "your search legitimately found nothing" — right now both look identical to the calling agent.
Happy to help test against a fix if the managed backend's response shape changes, though we obviously can't see or patch that code ourselves.
Activity