From 491c16da25d32d57e3476741874fb7b8690b769f Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Fri, 1 May 2026 22:00:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20tsc=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=94=99=E8=AF=AF=EF=BC=8C=E9=80=9A=E8=BF=87=20CI=20t?= =?UTF-8?q?ypecheck=20=E9=98=B6=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bridgeClient.ts: 添加缺失的 pairingInProgress 属性声明 - ink.tsx: 移除 5 处不再需要的 @ts-expect-error,保留 1 处 MACRO 比较 - client.ts: 添加缺失的 pendingSessionTarget 属性声明 Co-Authored-By: Claude Opus 4.7 --- packages/@ant/claude-for-chrome-mcp/src/bridgeClient.ts | 2 ++ packages/@ant/ink/src/core/ink.tsx | 6 ------ packages/remote-control-server/web/src/acp/client.ts | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/@ant/claude-for-chrome-mcp/src/bridgeClient.ts b/packages/@ant/claude-for-chrome-mcp/src/bridgeClient.ts index 3669f8fdd..3c5e01a3d 100644 --- a/packages/@ant/claude-for-chrome-mcp/src/bridgeClient.ts +++ b/packages/@ant/claude-for-chrome-mcp/src/bridgeClient.ts @@ -71,6 +71,8 @@ export class BridgeClient implements SocketClient { private peerConnectedWaiters: Array<(arrived: boolean) => void> = [] /** The request_id of the current pending pairing broadcast. */ private pendingPairingRequestId: string | undefined + /** Whether a pairing broadcast is in progress (multiple extensions, no persisted selection). */ + private pairingInProgress = false /** The deviceId from a previous persisted pairing. */ private persistedDeviceId: string | undefined /** Resolve callback for a blocking switchBrowser() call. */ diff --git a/packages/@ant/ink/src/core/ink.tsx b/packages/@ant/ink/src/core/ink.tsx index c8ccad037..99a5edb9b 100644 --- a/packages/@ant/ink/src/core/ink.tsx +++ b/packages/@ant/ink/src/core/ink.tsx @@ -329,7 +329,6 @@ export default class Ink { } }; - // @ts-expect-error createContainer arg count varies across react-reconciler versions this.container = reconciler.createContainer( this.rootNode, ConcurrentRoot, @@ -881,7 +880,6 @@ export default class Ink { pause(): void { // Flush pending React updates and render before pausing. - // @ts-expect-error flushSyncFromReconciler exists in react-reconciler but not in @types reconciler.flushSyncFromReconciler(); this.onRender(); @@ -1580,9 +1578,7 @@ export default class Ink { ); - // @ts-expect-error updateContainerSync exists in react-reconciler but not in @types reconciler.updateContainerSync(tree, this.container, null, noop); - // @ts-expect-error flushSyncWork exists in react-reconciler but not in @types reconciler.flushSyncWork(); } @@ -1651,9 +1647,7 @@ export default class Ink { this.drainTimer = null; } - // @ts-expect-error updateContainerSync exists in react-reconciler but not in @types reconciler.updateContainerSync(null, this.container, null, noop); - // @ts-expect-error flushSyncWork exists in react-reconciler but not in @types reconciler.flushSyncWork(); instances.delete(this.options.stdout); diff --git a/packages/remote-control-server/web/src/acp/client.ts b/packages/remote-control-server/web/src/acp/client.ts index 80ec3cd13..9893fd34b 100644 --- a/packages/remote-control-server/web/src/acp/client.ts +++ b/packages/remote-control-server/web/src/acp/client.ts @@ -118,6 +118,7 @@ export class ACPClient { reject: (err: Error) => void timer: ReturnType } | null = null + private pendingSessionTarget: string | null = null private connectResolve: ((value: undefined) => void) | null = null private connectReject: ((error: Error) => void) | null = null