mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 22:35:51 +00:00
fix: 修复 USER_TYPE=ant 时 TUI 无法启动的问题
反编译版本中 global.d.ts 声明的全局函数运行时未定义, 通过显式 import、stub 组件和全局 polyfill 修复。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
12
src/components/AntModelSwitchCallout.tsx
Normal file
12
src/components/AntModelSwitchCallout.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user