fix(cli): fix crash on startup in NO_COLOR mode (#13343) due to ungua… (#13352)

This commit is contained in:
avilladsen
2025-11-18 20:18:18 -08:00
committed by GitHub
parent e8d0e0d342
commit 1e8ae5b9d7
3 changed files with 53 additions and 24 deletions

View File

@@ -23,7 +23,7 @@ import { useKeypress } from '../hooks/useKeypress.js';
import { theme } from '../semantic-colors.js';
import { DescriptiveRadioButtonSelect } from './shared/DescriptiveRadioButtonSelect.js';
import { ConfigContext } from '../contexts/ConfigContext.js';
import Gradient from 'ink-gradient';
import { ThemedGradient } from './ThemedGradient.js';
interface ModelDialogProps {
onClose: () => void;
@@ -115,9 +115,9 @@ export function ModelDialog({ onClose }: ModelDialogProps): React.JSX.Element {
<Text bold>Select Model</Text>
<Box marginTop={1} marginBottom={1} flexDirection="column">
<Gradient colors={theme.ui.gradient}>
<ThemedGradient>
<Text>{header}</Text>
</Gradient>
</ThemedGradient>
<Text>{subheader}</Text>
</Box>