Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge pull request #5956 from makecindy/cindy/silly-ritchie
Lizi69661422beeb
diff --cc apps/mobile/src/__tests__/mobileGoalCommands.test.tsindex 9ecd3c4f05,99ef50b460..a0b1658a46--- a/apps/mobile/src/__tests__/mobileGoalCommands.test.ts+++ b/apps/mobile/src/__tests__/mobileGoalCommands.test.ts@@@ -226,23 -224,6 +230,24 @@@ describe('existing task /goal send bounexpect(h.bindings.sendInFlightRef.current).toBe(false);expect(h.bindings.sending).toBe(false);expect(h.release).toHaveBeenCalledTimes(2);+ expect(h.bindings.invalidateHistoryRecoveryNavigation).toHaveBeenCalledTimes(2);});++ it.each([false, true])('preserves the bot resource on a follow-up after Goal, array route params=%s', async arrayParams => {+ const h = existingHarness();+ const routeValue = (value: string) => arrayParams ? [value] : value;+ h.bindings.params = {+ resourceKind: routeValue('bot'),+ resourceCollectionId: routeValue('companions'),+ resourceId: routeValue('bot-1'),+ };+ await h.run();+ h.bindings.composerDocumentRef.current = textComposerDocument('ordinary follow-up');+ await h.run();+ expect(h.bindings.setError).toHaveBeenLastCalledWith(null);+ expect(h.bindings.mobileDurableOutbox.add).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({+ item: expect.objectContaining({ sessionId: 'existing-task', text: 'ordinary follow-up' }),+ resourceRef: { collectionId: 'companions', kind: 'bot', id: 'bot-1' },+ }));+ });});