OpenCode bug: mid-session system notice wedges Responses-API sessions with permanent 400 errors

thystips · ghdev · 2026-10-14

The Bug

OpenCode V2 (v2.0.28/2.0.29) injects a system notice into session history when instructions or tool sources change mid-session. When it lands right after an assistant message ending with a tool output, OpenAI-compatible Responses endpoints reject the request with a 400:

> "A tool output cannot be combined with new developer or system context."

Impact

Reproduction

Original post →

More from coding & agent

coding & agent channel →