@devries-cameron20 / t3code Mirror · read-only / commits / 4aead9e6d9
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 12:15 UTC

fix(server): Claude MCP elicitations T3 cannot show are cancelled, not declined (#33575)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Malte Buttjer committed Nov 15, 2026 at 05:39 UTC 4aead9e6d99243c4f000df07222308c62022bb6f
2 files changed +7 -4
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts
+2 -2
@@ -7177,7 +7177,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
7177 }).pipe(Effect.scoped, Effect.provide(testLayer)),
7178 );
7179
7180 - it.effect("declines URL and value forms without a card", () =>
7180 + it.effect("cancels URL and value forms without a card", () =>
7181 Effect.gen(function* () {
7182 const { elicit, runtimeRequests } = yield* startElicitationTurn();
7183 for (const request of [
@@ -7191,7 +7191,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
7191 },
7192 },
7193 ] satisfies ReadonlyArray<ElicitationRequest>) {
7194 - assert.deepEqual(yield* Fiber.join(yield* elicit(request)), { action: "decline" });
7194 + assert.deepEqual(yield* Fiber.join(yield* elicit(request)), { action: "cancel" });
7195 }
7196 assert.isEmpty(runtimeRequests());
7197 }).pipe(Effect.scoped, Effect.provide(testLayer)),
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
+5 -2
@@ -12215,14 +12215,17 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
12215 const context = yield* Ref.get(activeTurn);
12216 if (acceptance === undefined || context === null) {
12217 yield* Effect.logWarning(
12218 - "Declined an MCP elicitation the approval card cannot answer.",
12218 + "Cancelled an MCP elicitation the approval card cannot answer.",
12219 {
12220 serverName: request.serverName,
12221 mode: request.mode,
12222 activeTurn: context !== null,
12223 },
12224 );
12225 - return { action: "decline" } satisfies ElicitationResult;
12225 + // No card was shown, so the user made no choice. MCP reserves
12226 + // "decline" for an explicit no; "cancel" tells the server the
12227 + // request was dismissed and may be asked another way.
12228 + return { action: "cancel" } satisfies ElicitationResult;
12229 }
12230 const grantKey = `${request.serverName}\u0000${request.message}`;
12231 if ((yield* Ref.get(mcpElicitationSessionGrants)).has(grantKey)) {