Repository navigation
fix(acp-registry): a local devin command gets Devin's handling - #40984
juliusmarminge wants to merge 2 commits into
Conversation
…ut bypass Fails on main: isDevin only matches the registry agentId, so a local devin binary selects plan_bypass when the user accepts the plan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
isDevin only matched the registry agentId, which is empty for local commands, so a local devin binary got no client terminals, no Devin normalizers and no answerable-permission filter, and accepting its plan picked plan_bypass. Match the command basename like the other agents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
The automated pipeline stopped on this pull request and will not merge it: the fix is written and reviewed, but proving it needs something no worker has:
It stays open for a person to finish or close. |
|
This was tested and is working on my local |
A Devin CLI added as a local ACP command (a path to the
devinbinary) got plain ACP handling instead of Devin's. When the user accepted its plan, T3 picked 'implement plan and bypass permissions'. Shell commands also ran inside Devin's own process and not in a T3 terminal, and no subagent cards appeared.isDevinin the ACP Registry adapter now also recognises a local command nameddevin(.exe/.cmdon Windows), as the adapter already does for other agents. Local Devin now gets the same terminals, subagent grouping and plan approvals as a registry install.Fixes #40979
Reproduction on main
origin/main @ bc13afa. No Devin binary or account exists on the VM, so I drove the real ACP Registry adapter (makeAcpRegistryAdapterV2 through AcpRegistryAdapterV2) with Devin's recorded plan-exit permission frames. The same test ran twice: once with settings agentId "devin" (registry) and once with { source: "local", commandPath: "/opt/devin/bin/devin" }. Devin lists plan_bypass first and plan_accept_edits second, both allow_once. The user accepts the plan. Registry: the test passes and answers optionId plan_accept_edits. Local: the test fails and answers optionId plan_bypass (expected plan_accept_edits). So a local devin binary has its plan approval answered with 'implement plan and bypass permissions'. Command:
vp test run src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts -t "Devin's plan"from apps/server. Result: 1 failed (local), 1 passed (registry). The code shows the same isDevin gate controls clientTerminals, clientCapabilitiesMeta, normalizeDevinSessionUpdate/ToolCall and extractDevinSubagentUpdate. None of those were exercised against a real devin binary.Evidence
Being captured: before and after in the real app. This section is filled in before the pull request can merge.
Tests
vp test run src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts -t "Devin's plan"(apps/server) without the fix: 1 failed (local), 1 passed (registry)vp test run src/orchestration-v2/Adapters/AcpRegistryAdapterV2.test.ts(apps/server) with the fix: 55 passedvp run check:changed: format, lint, knip, graphql, typecheck (10 packages), tests (2 files, 57 passed) all passNot in this change
options.settings.commandPath.split(/[\\/]/).pop(); it could be one shared basename helper, but that is a refactor.Who did the work
Run by the t3code factory in T3 Code.