OpenAI Responses API: chaining after web_search returns 500 — fix is re-declaring the tool
techtsp · reddit · 2026-12-04
A developer shares a debugging story: when chaining Responses API calls via previousresponseid, any follow-up chained to a response containing websearch items fails with an instant HTTP 500 and zero tokens used — even responses that chained fine the day before. Swapping models, removing the JSON schema, and removing userlocation all made no difference; OpenAI's status page showed no incident.
The fix: declare the websearch tool in the follow-up call too, with toolchoice: "none" so it never actually searches — the chain then returns 200 for both old and new stored responses.
Alternative: skip chaining entirely and pass the earlier input/answer text directly in the new request.
Side effect: with the chaining fix, the follow-up sees every search result from the first call, not just cited pages, so it lists more sources than intended.
More from coding & agent
- lattedit launches a login-free, local-first browser LaTeX editor with a compile API for agents — cneuralnetwork · 2026-12-04
- Daloopa open-sources Claude Code skills for equity research on its financial data MCP — angadsg · 2026-12-04
- Grok Bot merged 11,000 PRs in a month: Lauren Tan & Matt Palmer on team agents — Latent Space · 2026-12-04
- One month of agent traffic: 83% of input tokens were cache reads — MichelleZhao91 · 2026-12-04
- Notion Pitches Itself as the Context Hub for Claude, ChatGPT, Grok and More — nbaschez · 2026-12-04
- One refund, three payouts: approval flows break when the world changes between yes and execute — No-Conflict4823 · 2026-12-04