Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(mobile): 补齐会话清理测试对隐藏光标标记的绑定
Dash541dcfd8a87d
diff --git a/apps/mobile/src/__tests__/composerAudioCleanup.test.ts b/apps/mobile/src/__tests__/composerAudioCleanup.test.tsindex 75bca1c026..00cb4b7874 100644--- a/apps/mobile/src/__tests__/composerAudioCleanup.test.ts+++ b/apps/mobile/src/__tests__/composerAudioCleanup.test.ts@@ -62,6 +62,8 @@ function pageCleanup(page: string, recording: boolean, starting: boolean) {voiceStateTransitionRef: { current: "idle" },setVoiceState: vi.fn(),setComposerVoiceHoldArmed: vi.fn(),+ voiceCaretPlacementSeqRef: { current: 0 },+ setVoiceCaretPlacementPending: vi.fn(),discardPendingPrewarm,setAudioModeAsync,};@@ -103,6 +105,8 @@ describe.each(["new.tsx", "[sessionId].tsx"])("%s audio cleanup", (page) => {expect(run.bindings.voiceStartupSeqRef).toEqual({ current: 2 });if (page === "[sessionId].tsx") {expect(run.bindings.setVoiceState).toHaveBeenCalledWith("idle");+ expect(run.bindings.setVoiceCaretPlacementPending).toHaveBeenCalledWith(false);+ expect(run.bindings.voiceCaretPlacementSeqRef).toEqual({ current: 1 });}},);