Skip to content

bug: local MCP can cause assistant responses to disappear in v1.3.4 #20050

@kkugot

Description

@kkugot

Description

When a local MCP server is enabled in v1.3.4, assistant responses can fail to render in the UI during tool-using turns.

This appears to come from two regressions in the 1.3.4 refactor:

  • MessageV2.toModelMessages() changed toModelOutput to expect an object instead of raw output, which can break tool result serialization.
  • message.part.delta events are now transient bus events instead of sync-backed events, so streamed text deltas can be missed by late/reconnecting subscribers.

Plugins

None required

OpenCode version

v1.3.4

Steps to reproduce

  1. Configure any local MCP server.
  2. Start a session on v1.3.4.
  3. Ask for a prompt that causes MCP tool usage.
  4. Observe that the model completes work but the assistant response may not render or may render incompletely.

Screenshot and/or share link

N/A

Operating System

macOS

Terminal

N/A

Proposed fix

  • Make toModelOutput backward-compatible with both raw output and { output, ... } input.
  • Make message.part.delta sync-backed again so streamed text survives delayed SSE startup and reconnects.

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions