Gemini 4 Neon hallucinates fake subagent completion blocks with fabricated commit hashes in OpenCode

adonm · ghdev · 2026-11-21

A bug report against OpenCode describes how a parent session running opencode/gemini-4-neon repeatedly fabricates literal <subagent state="completed"> XML blocks — sometimes followed by raw user/model turn delimiters — while background child agents are still running.

Inspecting opencode.db and the session API, the reporter confirmed each child ran linearly with a single genuine completion delivery, yet the parent emitted premature forged blocks minutes ahead of reality, citing real child session IDs alongside fabricated commit hashes, binary sizes, and test outputs. One child went idle at 14:30:17 UTC but the parent claimed completion at 14:24:34; another produced 6 fake blocks before one real completion.

Original post →

More from coding & agent

coding & agent channel →