Skip to content

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

Open

Description

@BeforeLights

Before submitting

  • I searched existing issues and did not find a duplicate.
  • 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: fix(acp): Devin's terminal commands run under Git Bash on Windows, not cmd.exe #40418 and fix(acp): Devin terminals no longer inherit the launching thread's T3 MCP credentials #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 [Bug]: "Always allow this session" for Devin depends on the order of Devin's permission options #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.

Activity

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