Skip to content

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.

fix(pruef): the stop test waits until round 2 is requested for both runs

purple1f8c68afad1b
diff --git a/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts b/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts
index 785f902b..1d8960f6 100644
--- a/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts
+++ b/src/hooks/__tests__/stopAllBackgroundWork-trifft-zwei-agentenlaeufe.test.ts
@@ -171,7 +171,7 @@ describe('stopAllBackgroundWork() beendet zwei gleichzeitig laufende Agentenlaeu
streamA1.done()
streamB1.pushTool('call-B')
streamB1.done()
- await tick()
+ for (let i = 0; i < 50 && (callsA < 2 || callsB < 2); i++) await tick()
})
// Round 2 has genuinely been requested for both; the loop is mid-run,