Repository navigation
Send Op::Connectors before Op::Start/Op::Open so ACP agents receive mcpServers on startup - #386
Merged
Merged
Conversation
In Core::ensure_engine, Op::Start/Op::Open was sent before Op::Connectors. When using an installed ACP agent (agentcore acp), Op::Start immediately sends ACP session/new or session/load with the connectors received so far, so the first session started with mcpServers: [] and missed both user MCP connectors and Bate's per-bot loopback MCP bridge. Send Op::Connectors before Op::Start/Op::Open so ACP agents receive the full mcpServers list on startup, and assert that connectors precedes start in appd's loopback MCP bridge service test.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Core::ensure_engine(appd/src/core.rs), sendOp::ConnectorsbeforeOp::Start/Op::Open.agentcore acphandledOp::Startimmediately by sending ACPsession/new/session/loadwithmcpServers: self.servers(), which was empty untilOp::Connectorsarrived afterward. As a result, installed ACP agents missed both user connectors and Bate's per-botbateloopback MCP bridge on their initial session.connectorsbeforestartinops.log) toloopback_mcp_bridge_authenticates_enforces_approvals_and_shuts_downinappd/tests/service.rs.Evidence
appd+ realagentcore acp+ mock ACP agent binary: before this fix,session/newreceivedmcpServers: []; after this fix,session/newreceives thebateloopback MCP bridge and completes the full401auth check ->tools/list->memory_write(Needs youapproval card) ->memory_readflow (all 8/8 live smoke checks passed).cd window/ui && npm ci && npm run build && npm testcargo fmt --all --checkcargo clippy --workspace --all-targets --locked -- -D warningscargo test --workspace --lockedMerge Danger
appd/src/core.rsplus a regression assertion inappd/tests/service.rs. Built-inagentcorehandlesOp::ConnectorsbeforeOp::Startcleanly, and all existingappd,agentcore,native,proto, and UI tests pass unchanged.Device decision