You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(provider-acp): Devin's html_render pages show in the thread - #41118
In Devin ACP (acpRegistry_devin) threads, html_render succeeds on T3's MCP backend and returns "Shown to the reader above your reply...", but no inline HTML card ever appears.
Two things cause this on main (fb23f12f):
Devin CLI (3000.14.30821) titles MCP tool calls "Called <tool> from <server>" (e.g. "Called html_render from t3-code"). extractMcpToolCallIdentity does not recognize that format, so the ACP adapter skips its T3 MCP branch and stores every Devin t3-code call as a generic dynamic_tool with toolName: "Called <tool> from t3-code".
Devin returns MCP tool output in ACP ToolCallContent blocks ([{ type: "content", content: { type: "text", text: "<json>" } }]) rather than rawOutput. compactDynamicToolOutput only inspected block.text, so WireProjection.projectTurnItemForWire, htmlRenderFromToolItem, and isError detection could not read the result payload from those blocks.
packages/shared/src/toolOutput.ts: unwrap ACP { type: "content", content: { type: "text", text } } blocks in readResult() so compactDynamicToolOutput and htmlRenderFromToolItem read both rendered page references and isError flags from ACP content blocks across server wire projection and web/mobile clients.
Extended existing unit tests in packages/provider-acp/src/server/runtimeModel.test.ts, packages/shared/src/toolOutput.test.ts, and packages/shared/src/htmlRender.test.ts.
Scope
Fixes#41115. Single bug fix scoped strictly to Devin's ACP MCP call recognition and ACP content-block result compaction. Orthogonal to #38579 (which recovers unnamed html_render calls); recognizing Devin's title format also restores t3-code.<tool> identity for Devin's other T3 MCP calls (t3_thread_read, link_pull_request, delegate_task, etc.).
Verification
Reproduced failing on main (fb23f12f) before the fix:
runtimeModel.test.ts: "Calling delegate_task from t3-code" / "Called delegate_task from t3-code" returned undefined.
toolOutput.test.ts & htmlRender.test.ts: [{ type: "content", content: { type: "text", text: json } }] returned undefined for both compactDynamicToolOutput and htmlRenderFromToolItem.
After the fix:
pnpm run check:changed: passed (format, lint, knip 1/2, knip 2/2, typecheck across 37 packages, vp test 4 files / 87 tests).
pnpm exec vp test run apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts apps/server/src/orchestration-v2/WireProjection.test.ts apps/web/src/session-logic.test.ts: 123/123 passed.
No actionable comments were generated in the recent review.
Walkthrough
The runtime now recognizes Devin’s T3 MCP call titles. The shared result reader also extracts text from nested MCP content blocks. Tests cover tool identity, nested result parsing, and html_render output.
Changes: Devin ACP MCP handling
Layer / File(s)
Summary
Recognize Devin T3 MCP titles packages/provider-acp/src/server/runtimeModel.ts, packages/provider-acp/src/server/runtimeModel.test.ts
The runtime matches Devin’s Calling and Called title formats when the server is t3-code, then validates the tool name against the known T3 MCP inventory. Tests cover accepted formats and rejected identities.
Read nested MCP result content packages/shared/src/toolOutput.ts, packages/shared/src/toolOutput.test.ts, packages/shared/src/htmlRender.test.ts
The result reader extracts text from object-valued nested content blocks. Tests cover nested text, image blocks, failure flags, and a t3-code.html_render result.
This change makes Devin's T3 tool calls and their rendered output recognized correctly. It is narrowly scoped and covered by tests, and no merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the Devin ACP provider and the html_render fix, which matches the main change. It is a conventional commit title and is specific about the symptom. The changeset also covers MCP title …
Description check
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the environment, the reproduction, and the root causes. The Change section lis…
Linked Issues check
The only linked issue, #41115, is marked closed and historical context only. Under the assessment rules, it supplies no coding requirements for this pull request. No active directly linked targets rem…
Out of Scope Changes check
All changed files relate to the PR's stated fix. packages/provider-acp/src/server/runtimeModel.ts adds a Devin title pattern for MCP identity extraction. The pattern requires the server suffix to matc…
Full details: Title check
Explanation
The title names the Devin ACP provider and the html_render fix, which matches the main change. It is a conventional commit title and is specific about the symptom. The changeset also covers MCP title recognition and ACP content-block unwrapping, which the title does not name, but that is expected in a short title.
Full details: Description check
Explanation
The description follows the template. It has Problem, Change, Scope, and Verification sections. The Problem section gives the environment, the reproduction, and the root causes. The Change section lists the files and logic. The Scope section links #41115 and explains why the change is limited. The Verification section gives reproduction on main, post-fix test results, an end-to-end projection check, and a stated gap (no live UI test). The template's model-and-harness line is present. The description does not include before/after screenshots, but the template only requires them for UI changes, and this fix is server- and wire-level, so the omission is acceptable.
Full details: Linked Issues check
Explanation
The only linked issue, #41115, is marked closed and historical context only. Under the assessment rules, it supplies no coding requirements for this pull request. No active directly linked targets remain, so no linked-issue coding requirements apply. The PR still changes the behavior described in #41115: runtimeModel.ts recognizes Devin's "Called/Calling <tool> from t3-code" titles, and shared toolOutput.ts unwraps ACP content blocks. This is noted for context only and does not affect the verdict.
Full details: Out of Scope Changes check
Explanation
All changed files relate to the PR's stated fix. packages/provider-acp/src/server/runtimeModel.ts adds a Devin title pattern for MCP identity extraction. The pattern requires the server suffix to match t3-code and the tool name to be in T3_MCP_TOOL_NAMES. packages/shared/src/toolOutput.ts unwraps ACP content blocks in readResult(), which compactDynamicToolOutput and htmlRenderFromToolItem use. The test updates in runtimeModel.test.ts, toolOutput.test.ts, and htmlRender.test.ts cover these same paths. The shared change affects web and mobile clients, but it supports the same content-block result reading the PR describes. No unrelated change was identified in the reviewed summary. Source inspection was not used to confirm the full diff.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:S10-29 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In Devin ACP (
acpRegistry_devin) threads,html_rendersucceeds on T3's MCP backend and returns"Shown to the reader above your reply...", but no inline HTML card ever appears.Two things cause this on
main(fb23f12f):3000.14.30821) titles MCP tool calls"Called <tool> from <server>"(e.g."Called html_render from t3-code").extractMcpToolCallIdentitydoes not recognize that format, so the ACP adapter skips its T3 MCP branch and stores every Devint3-codecall as a genericdynamic_toolwithtoolName: "Called <tool> from t3-code".ToolCallContentblocks ([{ type: "content", content: { type: "text", text: "<json>" } }]) rather thanrawOutput.compactDynamicToolOutputonly inspectedblock.text, soWireProjection.projectTurnItemForWire,htmlRenderFromToolItem, andisErrordetection could not read the result payload from those blocks.Change
packages/provider-acp/src/server/runtimeModel.ts: addT3_MCP_DEVIN_TITLE_CALLmatching^Call(?:ing|ed) (?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*) from t3[-_ ]?code$/iinextractMcpToolCallIdentity, gated onT3_MCP_TOOL_NAMES.has(candidateTool)(same pattern as Kiro fix(provider-acp): Kiro's html_render pages show in the thread #28253 and Hermes fix(provider-acp): Hermes html_render pages show in the thread #29141). Foreign servers like"Called html_render from linear"and unknown tool names remain unclassified.packages/shared/src/toolOutput.ts: unwrap ACP{ type: "content", content: { type: "text", text } }blocks inreadResult()socompactDynamicToolOutputandhtmlRenderFromToolItemread both rendered page references andisErrorflags from ACP content blocks across server wire projection and web/mobile clients.packages/provider-acp/src/server/runtimeModel.test.ts,packages/shared/src/toolOutput.test.ts, andpackages/shared/src/htmlRender.test.ts.Scope
Fixes #41115. Single bug fix scoped strictly to Devin's ACP MCP call recognition and ACP content-block result compaction. Orthogonal to #38579 (which recovers unnamed
html_rendercalls); recognizing Devin's title format also restorest3-code.<tool>identity for Devin's other T3 MCP calls (t3_thread_read,link_pull_request,delegate_task, etc.).Verification
main(fb23f12f) before the fix:runtimeModel.test.ts:"Calling delegate_task from t3-code"/"Called delegate_task from t3-code"returnedundefined.toolOutput.test.ts&htmlRender.test.ts:[{ type: "content", content: { type: "text", text: json } }]returnedundefinedfor bothcompactDynamicToolOutputandhtmlRenderFromToolItem.pnpm run check:changed: passed (format,lint,knip 1/2,knip 2/2,typecheckacross 37 packages,vp test4 files / 87 tests).pnpm exec vp test run apps/server/src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts apps/server/src/orchestration-v2/WireProjection.test.ts apps/web/src/session-logic.test.ts: 123/123 passed.tool_callshape from [Bug]: Devin (ACP) html_render pages never show inline because Devin titles MCP calls "Called <tool> from t3-code" #41115 throughparseSessionUpdateEvent→extractMcpToolCallIdentity→projectTurnItemForWire→htmlRenderFromToolItem):{ "identity": { "server": "t3-code", "tool": "html_render" }, "wireToolName": "t3-code.html_render", "wireOutput": { "htmlRender": { "attachmentId": "thread-devin-1-aa84159e-html", "title": "Example Diagram", "height": 1080 } }, "clientPage": { "attachmentId": "thread-devin-1-aa84159e-html", "title": "Example Diagram", "height": 1080 }, "failedWireOutput": { "isError": true, "htmlRender": { "attachmentId": "thread-devin-1-aa84159e-html", "title": "Example Diagram", "height": 1080 } }, "failedClientPage": null }session-logicunit tests using the live payload captured in [Bug]: Devin (ACP) html_render pages never show inline because Devin titles MCP calls "Called <tool> from t3-code" #41115).Written with Gemini 4 Neon High via Devin CLI (ACP) in T3 Code.