From 0397506694c59acd4d204799fd5a040f9ba26696 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?chore:=20merge=204=20upstream=20commits=20?= =?UTF-8?q?=E2=80=94=20Grok=20adapter,=20OpenAI=20image,=20CodeRabbit=20fi?= =?UTF-8?q?x,=20tsc=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/@ant/ink/src/core/ink.tsx | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/packages/@ant/ink/src/core/ink.tsx b/packages/@ant/ink/src/core/ink.tsx index f3fdb8e6f..687ea8983 100644 --- a/packages/@ant/ink/src/core/ink.tsx +++ b/packages/@ant/ink/src/core/ink.tsx @@ -352,7 +352,6 @@ export default class Ink { } } - // @ts-ignore createContainer arg count varies across react-reconciler versions this.container = reconciler.createContainer( this.rootNode, ConcurrentRoot, @@ -952,9 +951,8 @@ export default class Ink { pause(): void { // Flush pending React updates and render before pausing. - // @ts-ignore flushSyncFromReconciler exists in react-reconciler but not in @types - reconciler.flushSyncFromReconciler() - this.onRender() + reconciler.flushSyncFromReconciler(); + this.onRender(); this.isPaused = true } @@ -1701,10 +1699,8 @@ export default class Ink { ) - // @ts-ignore updateContainerSync exists in react-reconciler but not in @types - reconciler.updateContainerSync(tree, this.container, null, noop) - // @ts-ignore flushSyncWork exists in react-reconciler but not in @types - reconciler.flushSyncWork() + reconciler.updateContainerSync(tree, this.container, null, noop); + reconciler.flushSyncWork(); } unmount(error?: Error | number | null): void { @@ -1773,11 +1769,9 @@ export default class Ink { this.drainTimer = null } - // @ts-ignore updateContainerSync exists in react-reconciler but not in @types - reconciler.updateContainerSync(null, this.container, null, noop) - // @ts-ignore flushSyncWork exists in react-reconciler but not in @types - reconciler.flushSyncWork() - instances.delete(this.options.stdout) + reconciler.updateContainerSync(null, this.container, null, noop); + reconciler.flushSyncWork(); + instances.delete(this.options.stdout); // Free the root yoga node, then clear its reference. Children are already // freed by the reconciler's removeChildFromContainer; using .free() (not