Skip to content

Commit a02a9fc

Browse files
fix: 修复定义导入缺失的问题
1 parent e944633 commit a02a9fc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/PromptInput/PromptInputFooterLeftSide.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function ModeIndicator({
365365
// its click-target Box isn't nested inside the <Text wrap="truncate">
366366
// wrapper (reconciler throws on Box-in-Text).
367367
// Tmux pill (ant-only) — appears right after tasks in nav order
368-
...((process.env.USER_TYPE) === 'ant' && hasTmuxSession ? [<TungstenPill key="tmux" selected={tmuxSelected} />] : []), ...(isAgentSwarmsEnabled() && hasTeams ? [<TeamStatus key="teams" teamsSelected={teamsSelected} showHint={showHint && !hasBackgroundTasks} />] : []), ...(shouldShowPrStatus ? [<PrBadge key="pr-status" number={prStatus.number!} url={prStatus.url!} reviewState={prStatus.reviewState!} />] : [])];
368+
...(process.env.USER_TYPE === 'ant' && hasTmuxSession && typeof TungstenPill === 'function' ? [<TungstenPill key="tmux" selected={tmuxSelected} />] : []), ...(isAgentSwarmsEnabled() && hasTeams ? [<TeamStatus key="teams" teamsSelected={teamsSelected} showHint={showHint && !hasBackgroundTasks} />] : []), ...(shouldShowPrStatus ? [<PrBadge key="pr-status" number={prStatus.number!} url={prStatus.url!} reviewState={prStatus.reviewState!} />] : [])];
369369

370370
// Check if any in-process teammates exist (for hint text cycling)
371371
const hasAnyInProcessTeammates = Object.values(tasks).some(t_2 => t_2.type === 'in_process_teammate' && t_2.status === 'running');

src/constants/prompts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import { TICK_TAG } from './xml.js'
5959
import { logForDebugging } from '../utils/debug.js'
6060
import { loadMemoryPrompt } from '../memdir/memdir.js'
6161
import { isUndercover } from '../utils/undercover.js'
62+
import { getAntModelOverrideConfig } from '../utils/model/antModels.js'
6263
import { isMcpInstructionsDeltaEnabled } from '../utils/mcpInstructionsDelta.js'
6364

6465
// Dead code elimination: conditional imports for feature-gated modules

0 commit comments

Comments
 (0)