import { View, Text, StyleSheet, Pressable, ScrollView, Switch } from 'react-native' import { useSafeAreaInsets } from 'react-native-safe-area-context' import { useRouter } from 'expo-router' import { ChevronLeft } from 'lucide-react-native' import { colors, radii, spacing, typography } from '../src/theme/mobile-theme' import { useMobileDefaultSessionViewPreference } from '../src/session/use-mobile-default-session-view-preference' export default function NativeChatSettingsScreen() { const router = useRouter() const insets = useSafeAreaInsets() const { defaultView, setDefaultView } = useMobileDefaultSessionViewPreference() const chatDefault = defaultView === 'chat' return ( router.back()} > Chat UI DEFAULT VIEW Choose how supported agent sessions (Claude, Codex, and other chat-capable agents) open on this device. Terminal shows the raw CLI; Chat UI shows a chat interface like the desktop app. You can still switch any individual session from its long-press menu. Open sessions in Chat UI {chatDefault ? 'On' : 'Off'} setDefaultView(next ? 'chat' : 'terminal')} trackColor={{ false: colors.bgRaised, true: colors.textSecondary }} thumbColor={colors.textPrimary} /> ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: colors.bgBase, paddingHorizontal: spacing.lg }, topRow: { flexDirection: 'row', alignItems: 'center', marginTop: spacing.sm, marginBottom: spacing.lg }, backButton: { width: 36, height: 36, borderRadius: 18, alignItems: 'center', justifyContent: 'center', marginRight: spacing.sm }, heading: { fontSize: 20, fontWeight: '700', color: colors.textPrimary }, groupHeading: { fontSize: 11, fontWeight: '600', color: colors.textMuted, letterSpacing: 0.5, marginBottom: spacing.xs, paddingHorizontal: spacing.xs }, groupDescription: { fontSize: typography.bodySize - 1, color: colors.textSecondary, lineHeight: 20, paddingHorizontal: spacing.xs }, section: { backgroundColor: colors.bgPanel, borderRadius: radii.card, overflow: 'hidden' }, sectionTopGap: { marginTop: spacing.sm }, row: { flexDirection: 'row', alignItems: 'center', gap: spacing.sm + 2, paddingVertical: spacing.md, paddingHorizontal: spacing.md + 2 }, rowContent: { flex: 1 }, rowLabel: { fontSize: typography.bodySize, fontWeight: '500', color: colors.textPrimary }, rowSublabel: { fontSize: typography.bodySize - 2, color: colors.textSecondary, marginTop: 2 } })