t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Local ACP command Devin gets none of the Devin-specific handling (isDevin only matches registry agentId)

Open BeforeLights opened this issue 1 week ago • 0 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Install the Devin CLI so the binary is devin/devin.exe (e.g. a standalone install, or the CLI bundled inside Devin Desktop at Devin/resources/app/extensions/windsurf/devin/bin/devin.exe).
  2. Add it to T3 Code as a Local ACP command agent (acpRegistry driver, source: "local", commandPath → the devin binary).
  3. Start a thread and have Devin run a shell command, spawn a subagent, or ask for plan approval.
  4. Compare with the same binary installed through the ACP Registry (agentId: "devin").

Expected behavior

A local Devin binary gets the same agent-specific handling as the registry one — consistent with every other agent in packages/provider-acp-registry/src/server/adapter.ts, which all also match source: "local" by command basename (isCopilot, isKimi, isClaude, isDroid, isGlm, isVibe, isOpenCode, isAntigravityCli, isOmp).

Actual behavior

isDevin is registryAgentId === "devin" only, so with source: "local" it is always false and none of the Devin wiring applies:

  • clientTerminals is not set → the client doesn't advertise terminal. Verified against devin acp v3000.14.30833: with terminal: true, a shell prompt issues terminal/create (a managed terminal — visible, killable, correct shell/env); with terminal: false, Devin silently runs the command inside its own process instead — invisible and unkillable from the UI. This matters beyond cosmetics: #40418 and #26652 fixed shell selection and credential hygiene in exactly this code path.
  • clientCapabilitiesMeta is not sent → cognition.ai/subagentSupport and cognition.ai/messageGrouping aren't declared.
  • normalizeDevinSessionUpdate / normalizeDevinToolCall are not installed → _meta["cognition.ai/subagent_context"].parentAgentId isn't routed to the child session, streamingMessageId grouping is dropped, and inferenceToolName isn't lifted into the tool title — for any _meta Devin still emits.
  • extractDevinSubagentUpdate is not installed → no subagent cards.
  • devinAnswerablePermissionOptions is not installed → plan_bypass stays in the permission list, reopening the problem from #33136: plan-exit approval can offer "bypass permissions", which T3 never answers with bypass.

Impact

Major degradation or frequent failure

Version or commit

main @ 69720261214c047e583b494675ea9624bbe3a00a (isDevin at packages/provider-acp-registry/src/server/adapter.ts:199)

Environment

Windows 11, Devin CLI 3000.14.30833 (devin acp). The check is source-based, so macOS/Linux local installs behave identically.

Suggested fix

isDevin also matches /^devin(\.exe|\.cmd)?$/i on the commandPath basename when source === "local" — the same pattern its neighbors use. Happy to open the PR with a focused test.

BeforeLights avatar Nov 22 '26 18:11 BeforeLights