Skip to content

Search the web when signed out - #284

Merged
mehfuzh merged 1 commit into
mainfrom
feat/anonymous-websearch
Dec 2, 2026
Merged

mehfuzh merged 1 commit into
mainfrom
feat/anonymous-websearch

Conversation

@mehfuzh

@mehfuzh mehfuzh commented Dec 2, 2026

Copy link
Copy Markdown
Member

The hosted /v1/websearch serves anonymous callers since smartloop-labs/api#201, but the client still refused to call it without credentials. A signed-out user's web_search came back "not signed in to Smartloop" instead of results.

  • search/providers.rs: drop the credential gate from the search call and the availability check. A signed-in caller still sends its token, which keeps its searches in its access log.
  • web_tools.rs / web_search_agent.rs: drop the now-unreachable NoSearchCredentials case; the 401/403 message no longer mentions a monthly allowance.
  • Tests: the signed-out cases now assert the request goes out.

cargo test --test unit -- web_search platform_client: 140 passed.

The hosted /v1/websearch is open to anonymous callers now, but the client
still refused to call it without credentials, so a signed-out user got
"not signed in" instead of results. Drop the credential gate from the
search and status calls; a signed-in caller still sends its token, which
keeps its searches in its access log.
@mehfuzh
mehfuzh merged commit a8c8a71 into main Dec 2, 2026
5 checks passed
@mehfuzh
mehfuzh deleted the feat/anonymous-websearch branch December 2, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant