From 8485589ca777a72e9d518fb028dd89c20d6ddd20 Mon Sep 17 00:00:00 2001 From: James Feng <47167674+GhostDragon124@users.noreply.github.com> Date: Thu, 4 Jun 2026 14:58:21 +0800 Subject: [PATCH] fix: add typeof TungstenPill guard (partial cherry-pick a02a9fc) 8645d37 (Auth header) and a889ed8 (Gates reference) already present in CCP. --- src/components/PromptInput/PromptInputFooterLeftSide.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/PromptInput/PromptInputFooterLeftSide.tsx b/src/components/PromptInput/PromptInputFooterLeftSide.tsx index 997fe3e7d..5fb5aed74 100644 --- a/src/components/PromptInput/PromptInputFooterLeftSide.tsx +++ b/src/components/PromptInput/PromptInputFooterLeftSide.tsx @@ -351,7 +351,9 @@ function ModeIndicator({ // its click-target Box isn't nested inside the // wrapper (reconciler throws on Box-in-Text). // Tmux pill (ant-only) — appears right after tasks in nav order - ...(process.env.USER_TYPE === 'ant' && hasTmuxSession ? [] : []), + ...(process.env.USER_TYPE === 'ant' && hasTmuxSession && typeof TungstenPill === 'function' + ? [] + : []), ...(isAgentSwarmsEnabled() && hasTeams ? [] : []),