Skip to content

[Bug]: Devin (ACP) html_render pages never show inline because Devin titles MCP calls "Called <tool> from t3-code" #41115

Closed as not planned

Description

@mohamedmagdy17593

Before submitting

Area

apps/server

Steps to reproduce

  1. Start a thread in T3 Code using Devin from the ACP Registry (acpRegistry_devin).
  2. Ask Devin to preview and render a visual using html_preview and html_render (for example, an inline HTML diagram or <p>ACP render test</p>).
  3. Wait for the html_render call to complete and the assistant reply to finish.

Expected behavior

The rendered HTML card appears inline above the assistant's final reply in the thread timeline, and T3 recognizes Devin's t3-code MCP tool calls as t3-code.<tool>.

Actual behavior

html_render succeeds on T3's MCP backend and returns an attachmentId along with "Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.", so the agent omits the visual from its text reply — but no HTML card ever appears in the thread UI.

Diagnosis

Devin CLI (3000.14.30821) titles every MCP tool call over ACP as "Called <tool> from <server>" (for example, "Called html_render from t3-code", "Called t3_thread_read from t3-code", "Called link_pull_request from t3-code").

In packages/provider-acp/src/server/runtimeModel.ts (extractMcpToolCallIdentity, lines 1112–1236 on main):

  • T3_MCP_TITLE_CALL matches leading t3-code prefixes (^(@|mcp[-_]{1,2})?t3[-_ ]?code...)
  • T3_MCP_TITLE_SUFFIX_CALL matches <tool> (t3-code MCP Server) or <tool>-t3-code
  • T3_MCP_BARE_TITLE_CALL matches bare <tool> / <tool>:{...}
  • ANTIGRAVITY_TOOL_TITLE only strips Run / Running

None of these match "Called <tool> from t3-code". As a result:

  1. extractMcpToolCallIdentity returns undefined, so the ACP adapter skips its T3 MCP branch (including mcpSessions.takeHtmlRender(...)) and stores the call as a generic dynamic_tool with toolName: "Called html_render from t3-code".
  2. The raw output arrives as an ACP content block array ([{ "type": "content", "content": { "type": "text", "text": "{\"htmlRender\":...}" } }]), which is not projected into an inline HTML card.
  3. Because extractMcpToolCallIdentity misses "Called <tool> from t3-code", all t3-code MCP calls from Devin (not only html_render, also t3_thread_read, link_pull_request, delegate_task, etc.) lose their t3-code.<tool> identity.

Note: Even with open PR #38579 (which recovers unnamed html_render calls via takeHtmlRender), recognizing Devin's "Called <tool> from <server>" title in extractMcpToolCallIdentity (similar to the Kiro @t3-code/<tool> fix from #28230) would fix both html_render and proper projection for all other T3 MCP tools called by Devin.

Impact

Major degradation or frequent failure

Version or commit

T3 Code Desktop 0.1.11 (Beta); main checked at packages/provider-acp/src/server/runtimeModel.ts

Environment

macOS (Darwin 25.6.0, arm64), T3 Code Desktop 0.1.11 (Beta), acpRegistry_devin (devin 3000.14.30821, gemini-4-neon-high)

Logs or stack traces

{
  "type": "dynamic_tool",
  "status": "completed",
  "title": "Called html_render from t3-code",
  "text": {
    "toolName": "Called html_render from t3-code",
    "input": {
      "html": "<!DOCTYPE html>...",
      "height": 1080,
      "title": "Example Diagram"
    },
    "output": [
      {
        "type": "content",
        "content": {
          "type": "text",
          "text": "{\"htmlRender\":{\"attachmentId\":\"<threadId>-<id>-html\",\"title\":\"Example Diagram\",\"height\":1080},\"message\":\"Shown to the reader above your reply. Don't mention or describe the page; reply with only what it doesn't already say.\"}"
        }
      }
    ]
  }
}

Workaround

Save the generated HTML to a standalone file (e.g., in /tmp) and open it externally in a browser, or render inline text/Markdown diagrams instead of relying on html_render in Devin ACP threads.

Activity

  1. juliusmarminge commented on Nov 22, 2026

    @juliusmarminge
    Member

    I tried to reproduce this on the current build and could not.

    Not run in the live app: this VM has no Devin CLI or Devin account (devin is not on PATH, and T3's Devin agent is listed as unavailable on the VMs). Instead I proved the defect in the module that decides it, on origin/main fb23f12. In packages/provider-acp/src/server/runtimeModel.test.ts I added one row, "Called delegate_task from t3-code" (the reporter's Devin 3000.14.30821 title format), to the existing table test 'recovers T3 identity across the registry agents' naming conventions'. I ran vp test run src/server/runtimeModel.test.ts -t extractMcpToolCallIdentity in packages/provider-acp. The new row fails with expected undefined to deeply equal { server: 't3-code', tool: 'delegate_task' }, and the other 20 tests that ran pass. So extractMcpToolCallIdentity returns undefined for Devin's titles, which is the condition the reporter traced (the call stays a generic dynamic_tool and takeHtmlRender is never reached). The test is committed on factory/repro-41115.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions