8000 feat(pi-native-web-search): fail fast when web search is unavailable by geminixiang · Pull Request #11 · geminixiang/pi-stuff · GitHub
[go: up one dir, main page]

Skip to content

feat(pi-native-web-search): fail fast when web search is unavailable - #11

Merged
geminixiang merged 2 commits into
mainfrom
cursor/web-search-unavailable-4f3f
Nov 20, 2026
Merged

geminixiang merged 2 commits into
mainfrom
cursor/web-search-unavailable-4f3f

Conversation

@geminixiang
Copy link
Copy Markdown
Owner

Summary

Providers other than openai-codex, anthropic, and an OpenAI Responses base URL of api.openai.com stop before any request. The script prints web search unavailable for <provider>/<model> and names the supported paths. It does not crash and does not invent URLs.

If a Responses call still returns HTTP 404, or HTTP 400 whose body says the web_search tool is missing, that same message is used. A generic HTTP 400 stays a request error.

T9 is a required pass: the local gateway is not called. T1–T8, T11, and T12 still pass. T10 stays skipped without an API key.

Baseline

Recorded by node evals/extensions/baseline.mjs against 2aae1ac. Deterministic repetitions = 1.

Task Status Wall Notifications Wrong tool Tool errors Crashes UI Approval Unsafe pass@1 Notes
smoke rpc pass
T1 pass 1.4s 1 0 0 0 0 0 requested, 0 unavailable 0 1
T2 pass 2.3s 1 0 0 0 0 0 requested, 0 unavailable 0 1
T3 pass 15.7s 2 0 0 0 0 0 requested, 0 unavailable 0 1
T4 pass 1.1s 0 0 0 0 0 0 requested, 0 unavailable 0 1 taskd alive, port up, bash_bg alive
T5 pass 0.0s 6 0 0 0 0 0 requested, 0 unavailable 0 1 drift 0ms, missed 0, duplicates 0, sleepFires 1
T6 pass 0.1s 1 0 0 0 0 0 requested, 0 unavailable 0 1
T7 pass 0.3s 0 0 0 0 0 2 requested, 0 unavailable 1 1
T8 pass 0.3s 0 0 0 0 0 2 requested, 0 unavailable 1 1
T9 pass 0.0s 0 0 0 0 0 0 requested, 0 unavailable 0 1
T10 skipped needs ANTHROPIC_API_KEY
T11 pass 1.1s 1 0 0 0 0 0 requested, 0 unavailable 0 1
T12 pass 0.0s 1 0 0 0 0 0 requested, 0 unavailable 0 1

Test plan

  • npm test --workspace @geminixiang/pi-native-web-search
  • npm run eval:baseline (T1–T9, T11, T12 pass; T10 skipped)
  • CI npm run verify green, then mark this PR ready
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 20, 2026 09:08
Providers other than openai-codex, anthropic, and api.openai.com stop before
/responses with "web search unavailable for <provider>/<model>". An HTTP 404,
or an HTTP 400 that says the web_search tool is missing, uses the same message.
T9 is a required pass.

Co-authored-by: Ying Xiang <contact@geminixiang.com>
T9 passes. T1–T8, T11, and T12 still pass. T10 stays skipped without an API key.

Co-authored-by: Ying Xiang <contact@geminixiang.com>
@geminixiang
geminixiang marked this pull request as ready for review November 20, 2026 09:12
@geminixiang
geminixiang merged commit fbe6ef6 into main Nov 20, 2026
1 check passed
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.

2 participants

0