Skip to content

OpenCode strict live-turn ownership — kills the render spasm - #417

Merged
Juliusolsson05 merged 1 commit into
mainfrom
fix/opencode-strict-turn-ownership
Jul 6, 2026
Merged

Juliusolsson05 merged 1 commit into
mainfrom
fix/opencode-strict-turn-ownership

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

One-knob fix: allowReplaceOfLiveTurn: false for opencode, with the honest post-mortem WHY (my original 'no racing producer' rationale was disproven by bundle 87f0eeef — 30 turn_starteds across 4 alternating messageIDs). Companion to opencode-headless#2 (session filter + tool_use vocabulary). Gate: tsc clean both projects.

🤖 Generated with Claude Code

allowReplaceOfLiveTurn true→false. The 'single stream = no racing
producer' assumption was disproven by the 2026-07-06T16-54 bundle:
OpenCode interleaves concurrent assistant messages on one SSE stream,
and live replacement ping-ponged the turn slot — 30 turn_starteds
across 4 alternating messageIDs, 27<->29 visible-row spasm. Strict
ownership matches codex; concurrent content backfills via assembled
committed entries and the universal ended-turn handoff.

Companion: opencode-headless fix/session-filter-tool-blocks (session
ownership filter — the other half of the interleaving).

Gate: tsc -b node exit 0, tsc web 0 errors on main checkout.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant