From 4156cdaa3fe1c435780cc78031bd064242870d69 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Wed, 18 Nov 2026 17:38:12 +0500 Subject: [PATCH] =?UTF-8?q?PEP-209:=20=D1=82=D0=B5=D1=81=D1=82=20=D0=B0?= =?UTF-8?q?=D0=B2=D1=82=D0=BE=D0=BD=D0=BE=D0=BC=D0=B8=D0=B8=20=D0=B6=D0=B4?= =?UTF-8?q?=D1=91=D1=82=20=D0=BF=D0=BE=D0=B4=D1=80=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B5=D0=B9=20=D0=BA=D0=B0=D1=80=D1=82=D0=BE=D1=87?= =?UTF-8?q?=D0=BA=D0=B8=20=C2=AB=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=BE=C2=BB?= =?UTF-8?q?=20(=D0=B3=D0=BE=D0=BD=D0=BA=D0=B0=20=D0=B7=D0=B0=D0=BF=D0=B8?= =?UTF-8?q?=D1=81=D0=B8=20=D0=BD=D0=B0=20=D0=BC=D0=B5=D0=B4=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=D0=BC=20CI)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- packages/testkit/test/autonomy.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/testkit/test/autonomy.test.ts b/packages/testkit/test/autonomy.test.ts index ba64e6ac..e4d156d5 100644 --- a/packages/testkit/test/autonomy.test.ts +++ b/packages/testkit/test/autonomy.test.ts @@ -31,7 +31,9 @@ describe("autonomous cycle", () => { assert.match(review.text, /готова к ревью/); // PEP-152: the address of the result is a technical detail — under «Подробнее». assert.doesNotMatch(review.text, /pr\/7/); - assert.match((await core.messageDetails(db, [review.id])).get(review.id) ?? "", /pr\/7/); + // The details are written right after the message row appears (a separate write): wait for them. + const details = await waitFor("details of the review card", async () => (await core.messageDetails(db, [review.id])).get(review.id) || null).catch(() => ""); + assert.match(details, /pr\/7/); assert.equal(await nudges(sid), 1, "the agent was nudged once instead of pinging the PM"); assert.ok(p.log().some((e) => e.ev === "continue"), "mock continued via the Stop hook"); const qs = await db.select().from(questions).where(eq(questions.sessionId, sid));