Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(opencode): show inline HTML visualizations #25827

Closedjoaomendoncaa(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/25827/headopened View on GitHub

OpenCode drops the htmlRender reference returned by T3's html_render tool, both on direct MCP calls and when Code Mode nests it under execute, so inline HTML visualizations never appear. This reattaches the published reference in both OpenCode adapters and lifts nested references into normal html_render items, with regression tests.

DeepSeek V4.1 Flash via OpenCode Go

    1. Verification

      • vp test run packages/provider-opencode/src/server/adapter.test.ts — 34/34
      • vp test run apps/server/src/orchestration-v2/Adapters/OpenCode2AdapterV2.test.ts — 85/85
      • vp test run packages/shared/src/htmlRender.test.ts — 13/13
      • Typecheck, lint, and format pass for the touched packages.
      • Live check with OpenCode 2 + Code Mode: one execute call wrapping two html_render results produced two html_render turn items with the correct attachment IDs; both frames rendered in the client.

      No UI changes. This is a focused fix for an obvious bug: the same feature already works for ACP/Antigravity, and OpenCode is the only adapter that does not reattach the reference. No prior issue. I did not manually drive a non-Code-Mode OpenCode session, but that path is covered by the adapter test.

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved at 7e5f13a

      Macroscope's review found this PR approvable — This is a scoped OpenCode adapter fix that restores existing inline HTML visualization references for direct and nested tool calls. The bounded extraction logic is covered by shared-library and adapter regression tests, with no production defaults or infrastructure changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Closing as a duplicate of #17031, which already implements this path and includes the thread-ownership check called out in #16745. I opened this without searching the existing issue and PR first — that was my mistake.

Sign in to join this conversation.