Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
merge: sync main into dash/mobile-collab-dispatch-collapsed
Dasha578143b41a9
diff --cc apps/mobile/src/__tests__/orcaCollab.test.tsindex f93a0439b7,f93a0439b7..dd49c015d4--- a/apps/mobile/src/__tests__/orcaCollab.test.ts+++ b/apps/mobile/src/__tests__/orcaCollab.test.ts@@@ -271,6 -271,6 +271,9 @@@ describe('MessageRenderer wires the orcexpect(source).toContain('<OrcaCollabCard card={item.message.orcaCard} screenWidth={actions.screenWidth}');expect(source).toContain('blockKey={JSON.stringify([actions.remoteDeviceId, item.key])}');expect(source).toContain('controlledExpanded={expanded}');++ // Legacy `orca-toggled-` entries meant "collapsed" for dispatch cards; do not read them.++ expect(source).toContain('`orca-expanded-${JSON.stringify([accountGeneration, blockKey, card.variant])}`');++ expect(source).not.toContain('`orca-toggled-');expect(source).toContain('onControlledToggle={toggleExpanded}');expect(source).toContain('testID={`message.orcaCard.${card.variant}`}');});diff --cc apps/mobile/src/session/MessageRenderer.tsxindex d2ba9877a4,85b5471c6c..80214b01c4--- a/apps/mobile/src/session/MessageRenderer.tsx+++ b/apps/mobile/src/session/MessageRenderer.tsx@@@ -5090,10 -5220,10 +5220,12 @@@ function OrcaCollabCard({ card, screenWcard: OrcaCollabCardModel; screenWidth?: number; blockKey: string;}) {const { accountGeneration } = useAuth();- // Remember explicit expansion for both variants using the+ // Remember manual expansions using the// existing bounded block store, including across native route reconstruction.++ // Key prefix orca-expanded- (not the old orca-toggled-): dispatch cards used to default open, so a++ // remembered legacy toggle meant "collapsed"; never reinterpret it as "expanded".const [expanded, toggleExpanded] = useFoldableExpandedState(- `orca-toggled-${JSON.stringify([accountGeneration, blockKey, card.variant])}`, false,+ `orca-expanded-${JSON.stringify([accountGeneration, blockKey, card.variant])}`, false,);const { colors } = useTheme();const styles = useThemedStyles(makeStyles);