Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge upstream/main and preserve companion settings entries
Chris518e2ba2188a
diff --cc apps/mobile/src/session/CompanionProfileNativeView.ios.tsxindex 46d14faa59,3007565ef8..63cc42c750--- a/apps/mobile/src/session/CompanionProfileNativeView.ios.tsx+++ b/apps/mobile/src/session/CompanionProfileNativeView.ios.tsx@@@ -57,7 -59,12 +59,12 @@@ export function CompanionProfileNativeV<Text modifiers={[font({ textStyle: 'headline' }), lineLimit(2)]}>{p.name}</Text><Spacer /></HStack></Section><Section>{row('profile', 'person.crop.circle')}{row('memory', 'brain')}{row('models', 'slider.horizontal.3')}{row('skills', 'sparkles')}</Section>+ {/* Device preference for every teammate's chat, not part of this teammate's host profile. */}+ <Section title={tr('chat')} footer={<Text modifiers={[font({ textStyle: 'footnote' }), foregroundStyle(colors.textSecondary)]}>{tr('showReplyTargetHint')}</Text>}>+ <Toggle label={tr('showReplyTarget')} isOn={showReplyTargets} onIsOnChange={value => void saveCompanionReplyTargetPreference(value)}+ modifiers={[tint(colors.inputCaret)]} testID="companionProfile.showReplyTarget" />+ </Section>- {p.data?.panels.find(item => item.id === 'followUp')?.entries?.map(entry => <Section key={entry.id}>{action(label(entry.title), () => p.onEditor(entry.resourceId), !p.online)}</Section>)}+ {p.data?.panels.filter(item => item.id === 'projects' || item.id === 'followUp').flatMap(item => item.entries ?? [])?.map(entry => <Section key={entry.id}>{action(label(entry.title), () => p.onEditor(entry.resourceId), !p.online)}</Section>)}<Section>{row('artifacts', 'doc.text')}{p.onSearch ? row('search', 'magnifyingglass', p.onSearch) : null}{row('permissions', 'hand.raised')}</Section>{p.onHome ? <Section>{row('home', 'desktopcomputer', p.onHome)}</Section> : null}<Section>{p.data?.panels.filter(item => ['restart', 'resume', 'delete'].includes(item.id) && item.action).map(item => <Button key={item.id} onPress={() => p.onConfirm(item)} modifiers={[buttonStyle('plain'), listRowInsets({ top: 4, bottom: 4, leading: 16, trailing: 16 }), disabled(p.busy || !p.online), frame({ minHeight: 44 }), ...(item.id === 'delete' ? [foregroundStyle(colors.destructive)] : [])]}><HStack modifiers={[frame({ maxWidth: Infinity, minHeight: 44 }), contentShape(shapes.rectangle())]}><Text>{label(item.action!.label)}</Text><Spacer /></HStack></Button>)}</Section>diff --cc apps/mobile/src/session/CompanionProfileSheet.tsxindex e10aae435e,5eb6cca44c..e6cacabfa8--- a/apps/mobile/src/session/CompanionProfileSheet.tsx+++ b/apps/mobile/src/session/CompanionProfileSheet.tsx@@@ -383,7 -385,16 +385,16 @@@ function CompanionProfileSheetContent(p<Text accessibilityRole="header" numberOfLines={2} style={styles.name}>{name}</Text></View><View style={styles.group}>{row('profile', Info)}{row('memory', Brain)}{row('models', Sparkles)}{row('skills', Settings2)}</View>+ {/* Device preference for every teammate's chat, not part of this teammate's host profile. */}+ <View style={styles.field}>+ <View style={styles.group}><View style={styles.inline}>+ <Text style={styles.switchLabel}>{t('devices.companionProfile.showReplyTarget')}</Text>+ <NativeSwitch accessibilityLabel={t('devices.companionProfile.showReplyTarget')} value={showReplyTargets}+ onValueChange={value => void saveCompanionReplyTargetPreference(value)} seedColor={colors.inputCaret} />+ </View></View>+ {note('showReplyTargetHint')}+ </View>- {data?.panels.find(item => item.id === 'followUp')?.entries?.map(entry => <View style={styles.group} key={entry.id}><ContextSheetRow icon={null} trailing="chevron" label={label(entry.title)} onPress={() => void openEditor(entry.resourceId)} disabled={!online} /></View>)}+ {data?.panels.filter(item => item.id === 'projects' || item.id === 'followUp').flatMap(item => item.entries ?? [])?.map(entry => <View style={styles.group} key={entry.id}><ContextSheetRow icon={null} trailing="chevron" label={label(entry.title)} onPress={() => void openEditor(entry.resourceId)} disabled={!online} /></View>)}<View style={styles.group}>{row('artifacts', FileText)}{onOpenSearch ? row('search', History, onOpenSearch) : null}{row('permissions', Hand)}</View>{onOpenHome ? <View style={styles.group}>{row('home', Monitor, onOpenHome)}</View> : null}{/* Host order, like iOS: restart / resume / delete are whatever the computer offers now. */}