Files
claude-code/src/components/AntModelSwitchCallout.tsx
claude-code-best 4ab4506de2 fix: 修复 USER_TYPE=ant 时 TUI 无法启动的问题
反编译版本中 global.d.ts 声明的全局函数运行时未定义,
通过显式 import、stub 组件和全局 polyfill 修复。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 20:31:04 +08:00

13 lines
328 B
TypeScript

// Stub — ant-only component, not available in decompiled build
import React from 'react';
export function AntModelSwitchCallout(_props: {
onDone: (selection: string, modelAlias?: string) => void;
}): React.ReactElement | null {
return null;
}
export function shouldShowModelSwitchCallout(): boolean {
return false;
}