The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(sweep): Gedankenstriche in den zwei neuen Testdateien entfernt
purpled1fef564df25
diff --git a/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts b/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.tsindex 9c13f81e..785f902b 100644--- a/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts+++ b/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts@@ -124,7 +124,7 @@ describe('stopAllBackgroundWork() beendet zwei gleichzeitig laufende Agentenlaeu// Round 1 (tool call, plan item left 'in_progress' so G16 plan-reconcile// drives a real round 2) and round 2 are BOTH hand-driven, per// conversation, so the test can stop each run exactly between the two- // requests — mid-loop, not mid-connect or after the run already ended on+ // requests: mid-loop, not mid-connect or after the run already ended on// its own, which would make "no further request" true for free.const streamA1 = controllableSSE()const streamB1 = controllableSSE()@@ -174,7 +174,7 @@ describe('stopAllBackgroundWork() beendet zwei gleichzeitig laufende Agentenlaeuawait tick()})- // Round 2 has genuinely been requested for both — the loop is mid-run,+ // Round 2 has genuinely been requested for both; the loop is mid-run,// not idle and not between messages.expect(callsA).toBe(2)expect(callsB).toBe(2)@@ -189,7 +189,7 @@ describe('stopAllBackgroundWork() beendet zwei gleichzeitig laufende Agentenlaeuexpect(isRunStopped(convB)).toBe(true)// Round 2 itself is let through to completion (a real connection- // in flight when Stop is pressed is not retroactively unsent) — the+ // in flight when Stop is pressed is not retroactively unsent); the// question this test answers is whether the loop reaches for a THIRD// round afterwards. It must not: the third call throws in the mock// above, so a regression fails loudly here instead of just miscounting.diff --git a/src/hooks/__tests__/useAgentChat-zwei-agentenlaeufe-vermischen-nicht.test.ts b/src/hooks/__tests__/useAgentChat-zwei-agentenlaeufe-vermischen-nicht.test.tsindex 9af9f56a..5cd3dbc6 100644--- a/src/hooks/__tests__/useAgentChat-zwei-agentenlaeufe-vermischen-nicht.test.ts+++ b/src/hooks/__tests__/useAgentChat-zwei-agentenlaeufe-vermischen-nicht.test.ts@@ -162,7 +162,7 @@ describe('two agent-mode runs on two conversations do not mix, and neither is drconst { result } = renderHook(() => useAgentChat())await act(async () => {- // Send in A, switch to B, send in B WHILE A IS STILL STREAMING — the+ // Send in A, switch to B, send in B WHILE A IS STILL STREAMING: this is the// exact sequence the re-entry guard used to answer with silence.useChatStore.getState().setActiveConversation(convA)const runA = result.current.sendAgentMessage('task-A')@@ -181,7 +181,7 @@ describe('two agent-mode runs on two conversations do not mix, and neither is drawait tick()// 'completed', not 'in_progress': an open plan item makes the agent// loop steer for another round (G16, lib/plan-reconcile.ts) before it- // lets a text-only turn end the run — unrelated to what this test is+ // lets a text-only turn end the run; unrelated to what this test is// proving, and it would turn "2 model calls per conversation" into an// unpredictable number.streamA1.pushTool('call-A', { todos: [{ content: 'step-A', status: 'completed' }] })@@ -192,7 +192,7 @@ describe('two agent-mode runs on two conversations do not mix, and neither is drawait Promise.all([runA, runB])// The final content write is a coalesced requestAnimationFrame flush- // (scheduleUIUpdate), not part of what the run's own promise awaits —+ // (scheduleUIUpdate), not part of what the run's own promise awaits;// give it a tick to land before reading the store.await tick()})