Fix ACP Registry agents using incorrect Cursor-specific auth

Add authMethodId and clientCapabilities to CursorAdapterLiveOptions and
forward them through makeCursorAdapter to makeCursorAcpRuntime.

AcpRegistryDriver now passes authMethodId: 'none' and empty
clientCapabilities so generic ACP registry agents no longer incorrectly
negotiate with cursor_login auth and Cursor-specific capabilities.
This commit is contained in:
Cursor Agent committed 2026-05-01 08:51:26 +00:00
1 parent 46fc8ff3f2
commit 78fb05040a
2 files changed
+8

No files matched your search

@@ -137,6 +137,8 @@ export const AcpRegistryDriver: ProviderDriver<AcpRegistrySettings, AcpRegistryD
readyReason: "ACP session ready",
applyCursorModelOptions: false,
normalizeModel: (model) => model?.trim() || "default",
authMethodId: "none",
clientCapabilities: {},
...(eventLoggers.native ? { nativeEventLogger: eventLoggers.native } : {}),
spawn: ({ cwd, environment: spawnEnv }) => ({
command: effectiveConfig.command.trim(),
@@ -101,6 +101,8 @@ export interface CursorAdapterLiveOptions {
};
readonly normalizeModel?: (model: string | null | undefined) => string;
readonly applyCursorModelOptions?: boolean;
readonly authMethodId?: string;
readonly clientCapabilities?: EffectAcpSchema.InitializeRequest["clientCapabilities"];
/**
* Selections are honored when `modelSelection.instanceId` matches this value.
* Defaults to the legacy built-in instance id (`cursor`).
@@ -546,6 +548,10 @@ export function makeCursorAdapter(
cwd,
...(resumeSessionId ? { resumeSessionId } : {}),
clientInfo: { name: "t3-code", version: "0.0.0" },
...(options?.authMethodId ? { authMethodId: options.authMethodId } : {}),
...(options?.clientCapabilities
? { clientCapabilities: options.clientCapabilities }
: {}),
...acpNativeLoggers,
}).pipe(
Effect.provideService(Scope.Scope, sessionScope),