[Bug]: OpenCode todowrite updates do not flow to the task sidebar #5760
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Start a thread using the OpenCode provider.
- Ask the agent to perform a multi-step task that causes it to call the structured
todowritetool. - Watch the work log, composer toolbar, and task/plan sidebar while the agent creates and updates its TODO list.
Expected behavior#
OpenCode TODO items should populate the existing task sidebar, update their statuses in real time, and persist across follow-up turns, matching the behavior implemented for Claude TodoWrite by #1539 / #1541.
Actual behavior#
The task sidebar does not activate for OpenCode TODO updates. The todowrite call is handled as an ordinary tool/file-change activity rather than normalized into turn.plan.updated events.
The current OpenCodeAdapter.ts implementation explains the behavior:
toToolLifecycleItemType()checks forwrite, sotodowriteis classified asfile_change.message.part.updatedemits onlyitem.started,item.updated, oritem.completedfor tool parts.- Unlike
ClaudeAdapter.ts, it has no TODO-input normalization orturn.plan.updatedemission path.
OpenCode exposes the structured list in the tool part state input, so the adapter should be able to map state.input.todos entries (content, status, and optional metadata) to plan steps.
Impact#
Minor bug or occasional failure
Version or commit#
main @ be01b287
Environment#
OpenCode provider; provider/model independent
Logs or stack traces#
No runtime error. The missing behavior is visible in the provider adapter: OpenCode tool lifecycle events are emitted, but no turn.plan.updated event is emitted for todowrite.
Screenshots, recordings, or supporting files#
Workaround#
Inspect the raw todowrite tool activity in the work log, when shown. There is no structured task-sidebar view for OpenCode sessions.
References#
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.