GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `OpenAIResponses.lowerMessages` strips reasoning item `id` when replaying reasoning, causing HTTP 400 `invalid_payload` on Azure/OpenAI Responses API · Issue #49574 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionSummaryWhen OpenCode talks to a reasoning model over the OpenAI Responses API and the model returns a reasoning item, OpenCode's native Responses protocol implementation ( This breaks every multi-turn tool-call conversation for any provider whose reasoning output includes encrypted content. Environment
Root causeFile: Introduced in PR #34027 ("fix(llm): omit stateless response item ids", merged 26 Jun 2026). When replaying a reasoning item on a later turn, the object built and sent back to the API omits const replay = { type: reasoning.type, summary: reasoning.summary, encrypted_content: reasoning.encrypted_content, } reasoningItems[reasoning.id] = replay input.push(replay) The resulting Steps to reproduce
Expected behaviorA replayed reasoning item should retain its original Suggested fixFile: // Current — id omitted: const replay = { type: reasoning.type, summary: reasoning.summary, encrypted_content: reasoning.encrypted_content, } reasoningItems[reasoning.id] = replay input.push(replay) // Fixed — id restored, so it travels with encrypted_content as a matched pair: const replay = { type: reasoning.type, id: reasoning.id, summary: reasoning.summary, encrypted_content: reasoning.encrypted_content, } reasoningItems[reasoning.id] = replay input.push(replay) This also requires reverting the schema/type change from PR #34027 that made Plus a regression test in Happy to open a PR with this fix and test if that's useful — let me know. PluginsNo response OpenCode version1.18.31 Screenshot and/or share linkNo response Operating SystemMacOS 26.7 TerminalWarp Reacted by Michael Booth, Guy Templeton, kate-shin-1 and Connor Milloy Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |