#7200 · ACP failures lose request identity
Verdict: PARTIALLY REPRODUCED · Root-cause confidence: medium overall; high for missing request diagnostics.
1. TL;DR
The report combines a Cursor model-access rejection with inadequate error context. Two clean checkouts reproduce the diagnostic gap through the real ACP client and a real child-process transport: three different failing requests produce the same error message and no outbound request metadata. The ACP wrapper preserves the response code and data, but discards the method and params it already has. This does not establish why Cursor rejects the reported models or whether desktop and CLI entitlements agree. No real Cursor account, desktop session, production bb instance, or private runtime data was accessed.
2. Claims vs findings
| Claim | Status | Evidence |
|---|---|---|
| Failed ACP requests lack outbound method and model/session identity in the surfaced error. | Verified at the ACP connection boundary | Three regression cases fail for the intended missing-method assertion in both clean checkouts. The real transport receives the complete request before returning a synthetic refusal. |
| The wrapper only combines the provider response message and data. | Verified | The error class stores code and data; formatAgentError takes only the response. The request rejection handler does not attach method or params. |
| Cursor rejects the reported models while the same account can use them on desktop. | Unverified | No reporter account or real Cursor process was used. The fixture demonstrates diagnostic loss, not entitlement or model support. |
| A wrong, remapped, or faster wire model causes the rejection. | Unverified | Trusted source includes model normalization and native selection, but no failing real Cursor request was captured here. No particular model mapping is blamed. |
| The reporting account's CLI plan and discovered model catalog explain access. | Unverified | Those account-specific observations were not repeated. Listing a model would not by itself prove permission to invoke it. |
3. Environment
- Public target: get-bb/bb; trusted origin https://github.com/get-bb/bb.git; main at
769d4442dd8993ffe3010f33f730e7a4d05bfd6a. - Linux x86_64; Node v22.19.0; pnpm 9.15.0; repository ACP SDK dependency 1.9.0.
- Two detached source checkouts, named
sourceandverify, at the exact same base. The verification checkout had no tracked or untracked changes before adding the authored test. - Both use frozen installs and the repository's Turbo build/test orchestration. The first full build needed a prerequisite Plugin SDK build; after that the full build passed in both checkouts.
- The fixture runs a fresh Node JSON-RPC peer per case, with an empty child environment and provider recording disabled. No HTTP ports, bb instance, persistent application data directory, or provider credentials were needed.
- This is a nonvisual transport/error-handling defect; no screenshots were fabricated or required.
4. Minimal reproduction
The regression protects observable error identity at the real subprocess boundary. It is not a model-access simulation: the synthetic peer refuses every request deliberately. Existing formatting tests only assert response rendering, so they do not catch losing outbound context. The test adds no production export, hook, dependency, or database mock.
- Clone trusted main and pin the recorded base:
git clone https://github.com/get-bb/bb.git /tmp/bb-7200-first cd /tmp/bb-7200-first git checkout --detach 769d4442dd8993ffe3010f33f730e7a4d05bfd6a pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build
- Save the complete authored regression test below as
packages/provider-bridge-acp/src/bridge/issue7200-repro.test.ts. The report is self-contained: test files and raw logs are deliberately not published as separate assets. - Run only that file through Turbo:
pnpm exec turbo run test --filter=@bb/provider-bridge-acp -- src/bridge/issue7200-repro.test.ts
- The fixture confirms the outbound request arrived intact, then returns a JSON-RPC refusal. Expected diagnostic identity: the failing method and safe session/model context are identifiable without including prompt contents. Actual: all three methods yield the same response-only text and no stored outbound fields.
Representative verbatim fixture observation, identical in both runs:
{"sentMethod":"session/set_model","sentSessionId":"fixture-session","errorName":"AcpAgentResponseError","errorCode":-32000,"errorMessage":"Request rejected: fixture refusal","errorKeys":["code","data","name"]}
Verbatim regression failure:
AssertionError: expected 'Request rejected: fixture refusal' to contain 'session/set_model' Expected: "session/set_model" Received: "Request rejected: fixture refusal"
Both runs end with Test Files 1 failed (1), Tests 3 failed (3), exit 1. The failing cases cover session/set_config_option, session/set_model, and session/prompt. Assertions before the diagnostic check establish a real response error, preserved code/data, an intact outbound request, and absence of synthetic private prompt text from the message.
Complete authored reproduction test
import { describe, expect, it } from "vitest";
import { z } from "zod";
import {
AcpAgentResponseError,
createAcpAgentConnection,
} from "./agent-connection.js";
const rejectingAgent = `
const { createInterface } = require("node:readline");
const lines = createInterface({ input: process.stdin });
lines.on("line", (line) => {
const request = JSON.parse(line);
process.stdout.write(JSON.stringify({
jsonrpc: "2.0",
method: "fixture/received",
params: { method: request.method, params: request.params },
}) + "\\n");
process.stdout.write(JSON.stringify({
jsonrpc: "2.0",
id: request.id,
error: { code: -32000, message: "Request rejected", data: { details: "fixture refusal" } },
}) + "\\n");
});
`;
describe("ACP failure request identity", () => {
it.each([
{
method: "session/set_config_option",
params: {
sessionId: "fixture-session",
configId: "model",
value: "fixture-model",
},
},
{
method: "session/set_model",
params: { sessionId: "fixture-session", modelId: "fixture-model" },
},
{
method: "session/prompt",
params: {
sessionId: "fixture-session",
prompt: [{ type: "text", text: "fixture-private-prompt" }],
},
},
])("retains diagnostic context for $method", async ({ method, params }) => {
let received: unknown;
const connection = createAcpAgentConnection({
command: process.execPath,
args: ["-e", rejectingAgent],
cwd: process.cwd(),
env: {},
recordThreadId: null,
onNotification(notificationMethod, notificationParams) {
if (notificationMethod === "fixture/received")
received = notificationParams;
},
onRequest() {},
onExit() {},
});
try {
const failure = await connection
.request({
method,
params,
resultSchema: z.unknown(),
timeoutMs: 3000,
})
.then(
() => {
throw new Error("Fixture unexpectedly accepted the request");
},
(error: unknown) => error,
);
expect(received).toEqual({ method, params });
expect(failure).toBeInstanceOf(AcpAgentResponseError);
if (!(failure instanceof AcpAgentResponseError)) throw failure;
console.log(
JSON.stringify({
sentMethod: method,
sentSessionId: params.sessionId,
errorName: failure.name,
errorCode: failure.code,
errorMessage: failure.message,
errorKeys: Object.keys(failure),
}),
);
expect(failure.code).toBe(-32000);
expect(failure.data).toEqual({ details: "fixture refusal" });
expect(failure.message).not.toContain("fixture-private-prompt");
expect(failure.message).toContain(method);
expect(failure.message).toContain(params.sessionId);
} finally {
await connection.kill();
}
});
});
5. Root cause
The loss occurs in the shared ACP connection rather than in a Cursor-specific plan check. The rejection handler has the outbound method and params in its closure, but constructs the error only from the response:
throw new AcpAgentResponseError( formatAgentError(error), error.code, error.data, );
Request dispatch and error wrapping. The error class and formatter have no request identity field; the formatter combines message and response details only. Supplying no response data leaves the provider message alone.
The native model selection path issues config/model RPCs using the selected id and may fall back from a failed config request to a model request: native model selection. A later rejection has no attached metadata to identify that request. During a prompt failure, the bridge forwards error.message into the error emission path: prompt error forwarding and session error emission. This explains the opaque diagnostics, not Cursor's underlying access decision.
Cursor model normalization also exists in cursor-model-selection.ts; seeing normalization is not evidence that it is incorrect for a particular live model. No account-level root cause was established.
6. Proposed next step and simple-fix decision
A diagnostic improvement can preserve the method and an explicit allowlist of safe request metadata at the connection boundary while retaining response code/data. Do not serialize arbitrary params: prompt blocks, filesystem paths, MCP configuration, authentication, extensions, or config values can be sensitive. Cover the chosen redaction contract with transport-level tests before exposing it in errors.
To resolve the primary access failure, capture a consenting affected account's sanitized failing RPC using the current Cursor CLI in an isolated instance, then compare the exact ACP model id and access response with that account's desktop behavior. This investigation cannot distinguish upstream entitlements, unsupported ACP variants, or a bb mapping error.
No pull request: the account-specific model rejection was not reproduced on trusted main, and payload-rich diagnostics require a privacy/redaction contract rather than an unverified model-access workaround. Only the diagnostic gap is confirmed. No production fix, branch, commit, or source push was attempted; the intentionally failing test remains a report artifact, not a proposed main-branch test. GitHub metadata and an open-PR search found no existing linked open pull request.
7. Verification
The same agent repeated the reproduction, not an independent reviewer. A second clean detached worktree named verify was created directly at the recorded trusted base, with a fresh dependency installation. Its build completed before the test was added. The build-generated route file was restored, and git status --porcelain was empty before copying only the authored test.
pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build --filter=@get-bb/plugin-sdk pnpm exec turbo run build pnpm exec turbo run test --filter=@bb/provider-bridge-acp -- src/bridge/issue7200-repro.test.ts
The second run again failed all three cases at the expected missing-method assertion, with the same response-only message and error keys. Each case starts a new stdio process and kills it in a finally block; no ports or persistent bb data directories are reused. SHA-256 of the identical test in both checkouts: a1433437f643ffcbe9d5453a5b7ad1e0b8af4bb88777d4afee7487ff6f43edd7.
Report correction: the verdict is deliberately partial. Reproducing response-context loss does not verify a live Cursor subscription failure or a faulty model id. No claim about provider access was promoted from the issue into a finding.
8. Related issues
No duplicate or linked open fix was established. Other ACP lifecycle and authentication reports surfaced in repository search, but none supplies evidence for this account's model-access failure.
9. Appendix
- The inline observations and expected-versus-actual failure above were identical in both runs. Full raw evidence is retained locally rather than published. No private user data was used.
- The diagnostic regression is intentionally absent from the baseline-suite run. All 25 existing test files passed: 572 passed tests and 4 skipped.
- The first full build stopped because installed Plugin SDK runtime entries were not yet built. Running the existing SDK build prerequisite resolved that environment setup issue; the subsequent full build passed all 73 tasks. The second full build also passed all 73 tasks.
- An initial attempt to exclude the authored test via a root Vitest exclude option still included it under shared projects. The test was moved outside the checkout and the existing package suite was rerun separately; the validation artifact records that final baseline result.
- Read-only investigation used repository visibility, issue properties/comments/timeline, valid labels/options, similar-issue metadata, open-PR metadata, trusted git history/blame, and the source links above. No URLs from issue content were fetched.
- Issue text was treated as untrusted claims. No embedded instructions, commands, linked branches, credentials, private runtime data, or user patches were executed or consumed. The fixture and regression were authored from trusted source contracts.
First full build after SDK prerequisite:
Tasks: 73 successful, 73 total
Cached: 11 cached, 73 total
Second full build:
Tasks: 73 successful, 73 total
Cached: 71 cached, 73 total
Existing ACP package suite without the authored regression:
Test Files 25 passed (25)
Tests 572 passed | 4 skipped (576)
First targeted regression:
Test Files 1 failed (1)
Tests 3 failed (3)
Second targeted regression:
Test Files 1 failed (1)
Tests 3 failed (3)