Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: OpenCode todowrite updates do not flow to the task sidebar #5760

Closedptqa(GitHub profile, opens in a new tab) opened this issue 0 comments

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

  1. Start a thread using the OpenCode provider.
  2. Ask the agent to perform a multi-step task that causes it to call the structured todowrite tool.
  3. 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 for write, so todowrite is classified as file_change.
  • message.part.updated emits only item.started, item.updated, or item.completed for tool parts.
  • Unlike ClaudeAdapter.ts, it has no TODO-input normalization or turn.plan.updated emission 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

Image

Workaround

Inspect the raw todowrite tool activity in the work log, when shown. There is no structured task-sidebar view for OpenCode sessions.

References

  • #1539 reported the equivalent Claude provider bug.
  • #1541 implemented Claude TODO normalization and task-sidebar updates.
  • Relevant OpenCode path: apps/server/src/provider/Layers/OpenCodeAdapter.ts.

Sign in to join this conversation.