From 182a9288c216b9fbece71dc08f16405134657272 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Oct 2026 00:41:43 +0000 Subject: [PATCH] test: expect the home main conversation's ask in another space's inbox Every project now has a main conversation of its own, so an ask waiting in the home main conversation is not visible from a project and its inbox lists it, answered in the home space. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u --- packages/testkit/src/inbox.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/testkit/src/inbox.test.ts b/packages/testkit/src/inbox.test.ts index 22dfc2f..8016419 100644 --- a/packages/testkit/src/inbox.test.ts +++ b/packages/testkit/src/inbox.test.ts @@ -207,14 +207,20 @@ describeInbox("inbox.list", () => { // Items of the current space carry no space. expect(items.filter((item) => item.space).map((item) => item.bot.id)).toEqual([remote.id]); - // From the other space, the same items with the sides swapped. + // From the other space, the same items with the sides swapped, plus the ask in the home + // main conversation: Remote's own main conversation does not show it. const fromRemote = await listInbox(app, cookie, remoteSpace.id); expect(fromRemote.map((item) => [item.kind, item.space?.id ?? null])).toEqual([ ["approval", me.spaceId], + ["ask", me.spaceId], ["takeover", me.spaceId], ["ask", null], ["unread", me.spaceId], ]); + expect(fromRemote[1]).toMatchObject({ + bot: expect.objectContaining({ id: scout.id }), + target: { groupId: main.groupId }, + }); }); it("answers an item from another space only in that space and only for its owner", async () => {