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.

Original post →

More from coding & agent

coding & agent channel →