Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(mobile): 补齐目标命令后续普通消息的 outbox harness (#5979)
Chris Zhang150bbc71cad8
diff --git a/apps/mobile/src/__tests__/mobileGoalCommands.test.ts b/apps/mobile/src/__tests__/mobileGoalCommands.test.tsindex 7486f2ac14..6de5fc02c5 100644--- a/apps/mobile/src/__tests__/mobileGoalCommands.test.ts+++ b/apps/mobile/src/__tests__/mobileGoalCommands.test.ts@@ -221,8 +221,9 @@ describe('existing task /goal send boundary', () => {h.bindings.goalBusy = false;h.bindings.attachmentsRef.current = [];h.bindings.composerDocumentRef.current = textComposerDocument('ordinary follow-up');+ h.bindings.setError.mockClear();await h.run();- expect(h.bindings.setError).toHaveBeenLastCalledWith(null);+ expect(h.bindings.setError).toHaveBeenCalledExactlyOnceWith(null);expect(h.bindings.mobileDurableOutbox.add).toHaveBeenCalledExactlyOnceWith(expect.objectContaining({item: expect.objectContaining({ sessionId: 'existing-task', text: 'ordinary follow-up' }),}));