GeezerVison is showing github.com — fix(provider-acp): Devin's html_render pages show in the thread by mohamedmagdy17593 · Pull Request #41118 · pingdotgg/t3code
Conversation
Problem
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.
Change
packages/provider-acp/src/server/runtimeModel.ts: add T3_MCP_DEVIN_TITLE_CALL matching ^Call(?:ing|ed) (?<tool>[A-Za-z0-9][A-Za-z0-9_.-]*) from t3[-_ ]?code$/i in extractMcpToolCallIdentity, gated on T3_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 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.
- End-to-end projection check (feeding the real Devin ACP
tool_call shape from [Bug]: Devin (ACP) html_render pages never show inline because Devin titles MCP calls "Called <tool> from t3-code" #41115 through parseSessionUpdateEvent → 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
}
- Not tested: live patched T3 Desktop app UI against a running Devin session (verified through server + wire projection + web
session-logic unit 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

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. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested labels: bugfix, size:S
Suggested reviewers: juliusmarminge, macroscopeapp
Merge Risk: Minimal · up to be3ef
-
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)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between fb23f12 and be3ef0e.
Files selected for processing: 5
-
packages/provider-acp/src/server/runtimeModel.test.ts
packages/provider-acp/src/server/runtimeModel.ts
packages/shared/src/htmlRender.test.ts
packages/shared/src/toolOutput.test.ts
packages/shared/src/toolOutput.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
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.
|