From 00550405101cde3a9abb0e2d843cecd16629c846 Mon Sep 17 00:00:00 2001 From: keaixiaozhu Date: Tue, 14 Jul 2026 20:34:32 +0800 Subject: [PATCH] fix(web-shell): remove duplicate useWebShellPortalRoot import in ChatEditor PR #6872 ("fix(web-shell): make composer height adaptive") added a second `import { useWebShellPortalRoot } from '../portalRoot'` at ChatEditor.tsx:46 without noticing the identical import already existed at line 21. TypeScript reports: TS2300: Duplicate identifier 'useWebShellPortalRoot'. This fails the web-shell build (`vite build && ... && tsc -p tsconfig.lib.json`) in `npm run prepare`, so every subsequent PR's CI `Install dependencies` step aborts before any real test runs. Remove the duplicate line 46 (keep the earlier import) so `main` builds again. The two callers at lines 247 and 858 continue to resolve to the single retained import. --- 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';