From 6cbfd0c2f0d79d17a24ff090c6ccdcfb14815c3f Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 Sep 2026 22:08:22 +0800 Subject: [PATCH] fix(frontend): remove dead commented-out connector block from the composer (#5165) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Why The composer in input-box.tsx carried a commented-out legacy attachments block (TODO: Add more connectors here) left over from before the AddAttachmentsButton component replaced it. Dead commented UI misleads maintainers into thinking the old path is live or half-migrated, and it has no runtime effect. ## What changed - Deleted the 9-line commented-out JSX block between and . - No component, import, or i18n key changed: PromptInputActionMenu* are still used by the live menus below, and AddAttachmentsButton already provides the attachments entry point. ## Surface area - [x] Frontend UI - composer tool row, comment-only change - [ ] Backend API / Agents / Sandbox / Skills / Dependencies / Default behavior change ## Validation - Comment-only deletion: no behavior change; the surrounding JSX is byte-identical outside the removed lines. - Full pnpm check requires node_modules install on this host; diff is limited to dead comments so lint/typecheck risk is nil. ## AI assistance **Tool(s) used:** Codex (coding agent) **How you used it:** located and removed the dead block with AI assistance; reviewed before commit. - [ ] I've read and understand every line of this change and take responsibility for it — it's not unreviewed AI output. --- frontend/src/components/workspace/input-box.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index 7cb8bfc68..235e7bba8 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -2297,15 +2297,6 @@ export function InputBox({ - {/* TODO: Add more connectors here - - - - - - */}