From 54c7769729256ac820762af1572f43ebb7baac1e Mon Sep 17 00:00:00 2001 From: wenshao Date: Tue, 14 Jul 2026 21:12:55 +0800 Subject: [PATCH] fix(web-shell): drop a duplicate import that breaks every PR's CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `ChatEditor.tsx` imports `useWebShellPortalRoot` twice — once at line 21, and again at line 46, where #6872 added a second copy of an import the file already had. TypeScript answers with `TS2300: Duplicate identifier`, which fails `tsc -p tsconfig.lib.json`, which fails `npm run build --workspace=packages/web-shell`, which runs in the `prepare` lifecycle — so `npm ci` fails, and with it every job on every pull request, not only the ones that touch the web shell. The two `const portalRoot = useWebShellPortalRoot()` call sites are in different components and are both correct; only the second import is redundant. --- packages/web-shell/client/components/ChatEditor.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/web-shell/client/components/ChatEditor.tsx b/packages/web-shell/client/components/ChatEditor.tsx index 074c23d0f46..a4ad3318a47 100644 --- a/packages/web-shell/client/components/ChatEditor.tsx +++ b/packages/web-shell/client/components/ChatEditor.tsx @@ -43,7 +43,6 @@ import { isSafeImageSrc } from './messages/Markdown'; import { ModeIcon } from './ModeIcon'; import { planSlashSectionRows } from '../utils/slashSectionPlan'; import { getModelDisplayName } from '../utils/modelDisplay'; -import { useWebShellPortalRoot } from '../portalRoot'; import { VoiceButton } from '../voice/VoiceButton'; import { GitBranchIndicator } from './GitBranchIndicator'; import { WorkspaceIndicator } from './WorkspaceIndicator';